/* ManagerSense Software Inc. - company site
   Brand Guidelines v1.0 (2026): Outfit for headings and the wordmark, IBM Plex Sans for text. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Brand palette */
  --navy: #133345;
  --navy-tint: #1c4a5f;     /* the tile's diagonal; hover on navy */
  --teal: #2a9d8f;
  --teal-deep: #1f7d72;     /* teal for text on light */
  --teal-bright: #4fc7b1;   /* teal on navy */
  --off-white: #f4f3ef;
  --paper: #ffffff;

  /* Derived from the palette */
  --ink: var(--navy);
  --pencil: rgba(19, 51, 69, 0.72);   /* secondary text */
  --rule: rgba(19, 51, 69, 0.14);
  --on-navy: rgba(255, 255, 255, 0.78);
  --highlight: #d7f2ec;               /* bright teal tint behind an answer */

  --heading: "Outfit", "Segoe UI", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
p, dd { text-wrap: pretty; }

h1, h2, h3 { font-family: var(--heading); }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
.top :focus-visible, .foot :focus-visible { outline-color: var(--teal-bright); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--highlight); color: var(--ink); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 0; }

/* ---------- Top: bar + hero on navy ---------- */

.top { background: var(--navy); color: #fff; overflow: hidden; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }

/* The horizontal lockup: teal tile (never a navy tile on navy), wordmark in Outfit */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand__icon { display: block; width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--heading); font-size: 1.625rem; font-weight: 400; letter-spacing: -0.01em; }
.brand__name b { font-weight: 700; }
.brand__inc { margin-top: 5px; font-family: var(--heading); font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--teal-bright); }

.nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.nav a { color: var(--on-navy); text-decoration: none; font-weight: 500; padding: 6px 0; }
.nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--teal-bright); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: clamp(36px, 7vw, 96px);
  padding-bottom: clamp(56px, 9vw, 128px);
}

/* Brand pattern: rows of the mark's S curve, tone on tone, behind the note only */
.hero::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 48%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='54' viewBox='0 0 72 54'%3E%3Cpath d='M0 27 A18 18 0 0 0 36 27 A18 18 0 0 1 72 27' fill='none' stroke='%231c4a5f' stroke-width='14'/%3E%3C/svg%3E");
  background-size: 72px 54px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 35%);
  mask-image: linear-gradient(to right, transparent, #000 35%);
  display: none;
}
.hero > * { position: relative; }

.hero h1 {
  font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.25rem);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero__lede { margin-top: 24px; max-width: 33em; color: var(--on-navy); font-size: 1.1875rem; line-height: 1.55; }

.hero__actions { margin-top: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }

.button {
  display: inline-block;
  background: var(--teal-bright);
  color: var(--navy);
  font-family: var(--heading);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 6px;
  line-height: 1.2;
}
.button:hover { background: #fff; }
.button--ink { background: var(--navy); color: #fff; }
.button--ink:hover { background: var(--navy-tint); }

.textlink { font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--teal-bright); }
.textlink:hover { text-decoration-color: #fff; }

/* ---------- The note: a manager's questions, answered ---------- */

.note {
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: 26px 28px 12px;
  box-shadow: 0 24px 48px -18px rgba(5, 20, 30, 0.75);
  transform: rotate(-1.2deg);
}

.note__head { padding-bottom: 14px; border-bottom: 2px solid var(--navy); font-family: var(--heading); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0.02em; color: var(--teal-deep); }

.ask { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ask:last-child { border-bottom: 0; }

.ask dt { font-size: 1.1875rem; font-weight: 500; line-height: 1.3; }
.ask dd { font-family: var(--heading); font-size: 1.25rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }

.answer {
  display: inline-block;
  padding: 1px 8px 2px;
  border-radius: 3px;
  background-image: linear-gradient(var(--highlight), var(--highlight));
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: 100% 100%;
}

/* script.js hides the answers, then gives them one by one */
.answer.is-waiting { background-size: 0% 100%; color: transparent; }
.answer.is-given { transition: background-size 0.4s cubic-bezier(0.3, 0.7, 0.2, 1), color 0.15s 0.12s; }

/* ---------- Bands below the hero ---------- */

.band { padding: clamp(56px, 8vw, 104px) 0; background: var(--paper); }
.band--plain { background: var(--off-white); }

h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.products { margin-top: 32px; }

.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 40px; align-items: center; padding: 28px 0; border-top: 1px solid var(--rule); }
.product:last-child { border-bottom: 1px solid var(--rule); }

.product__name { font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.product__what { color: var(--pencil); max-width: 34em; }
.product__go { margin-top: 8px; }

.contact__mail { margin-top: 22px; }
.contact__mail a {
  font-family: var(--heading);
  font-size: clamp(1.35rem, 0.9rem + 2.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  color: var(--teal-deep);
  text-decoration-color: var(--teal-bright);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}
.contact__mail a:hover { color: var(--navy); background: var(--highlight); }

.foot { background: var(--navy); color: var(--on-navy); padding: 28px 0; font-size: 0.9375rem; }
.foot__row { display: flex; align-items: center; gap: 14px; }
.foot__mark { display: block; width: 32px; height: auto; flex: none; }

/* ---------- Wider screens ---------- */

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; }
  .hero::before { display: block; }
  .product { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) auto; }
  .product__go { margin-top: 0; }
}

@media (max-width: 480px) {
  .note { padding: 20px 18px 6px; transform: none; }
  .ask dt, .ask dd { font-size: 1.125rem; }
  .brand__icon { width: 36px; height: 36px; }
  .brand__name { font-size: 1.375rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .answer.is-given { transition: none; }
}
