/* GSAI landing page, option 5a.
   Tokens, type scale and spacing from brief/DESIGN-HANDOFF.md.
   Mobile first, designed at 390px. Radius 0, no shadows: borders carry structure. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --navy:        #162840;
  --body:        #41474F;
  --muted:       #6B7078;
  /* The handoff's label grey is #7C8189. It measures 3.2 to 3.9:1 on every
     surface a label sits on, below the 4.5:1 that the handoff's own "WCAG AA
     minimum throughout" requires. Labels use the muted token instead. */
  --label:       #6B7078;
  --orange:      #A24A28;
  --orange-dark: #86391C;   /* hover: one step darker */
  --ground:      #F7F3EF;
  --wash:        #EFE6E0;
  --card:        #FFFFFF;
  --hair:        rgba(22, 40, 64, 0.14);
  --g-label:     #C98A6B;   /* 10px label on the navy guarantee block only */

  --on-dark:       #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --on-dark-faint: rgba(255, 255, 255, 0.5);
  --on-dark-rule:  rgba(255, 255, 255, 0.18);
  --on-dark-box:   rgba(255, 255, 255, 0.22);
  --on-dark-input: rgba(255, 255, 255, 0.5);   /* 3:1 non-text contrast for field edges */

  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
/* A navy ring is invisible on navy. On dark surfaces the ring goes white. */
.on-dark :focus-visible { outline-color: var(--on-dark); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ---------- Type roles ---------- */
.label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
}
.sec-label {                     /* section numeral + name, mono, burnt orange */
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.h-sec {                         /* section heading 22px/1.25/600 */
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--navy);
}
.lead { font-size: 17px; line-height: 1.6; color: var(--body); }
.micro { font-size: 13px; line-height: 1.55; color: var(--muted); }
.note {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.prose { display: flex; flex-direction: column; gap: 11px; }
.prose p { font-size: 16px; line-height: 1.65; color: var(--body); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--hair); }
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header .wordmark { height: 24px; width: auto; }

/* ---------- Hero ---------- */
.hero .wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 32px;
  padding-bottom: 28px;
}
.hero h1 {
  font-size: 30px;
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--navy);
}
.rule { width: 56px; height: 3px; background: var(--orange); }

.strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.strip__cell {
  min-width: 0;
  background: var(--card);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Hour deltas: mono, line-height 1.05, the > in orange */
.delta { font-family: var(--mono); color: var(--navy); line-height: 1.05; }
.delta span { display: block; }
.delta .arrow { display: inline; color: var(--orange); }
/* Doubled class: must outrank `.card p`, which would otherwise shrink these to body size. */
.delta.delta--strip { font-size: 26px; }
.delta.delta--card  { font-size: 42px; letter-spacing: -0.02em; color: var(--navy); line-height: 1.05; }
.was { font-size: 13px; line-height: 1.55; color: var(--muted); font-style: italic; }

/* ---------- CTA unit: button, microcopy, guarantee. Never separated. ---------- */
.cta { display: flex; flex-direction: column; gap: 10px; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: var(--orange);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease;
}
.btn:hover { background: var(--orange-dark); }
.cta .guarantee-line {
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--navy);
  border-top: 1px solid var(--hair);
  padding-top: 10px;
}

/* ---------- Sections ---------- */
.sec { padding: 28px 0; }
.sec > .wrap { display: flex; flex-direction: column; gap: 12px; }
.band--wash { background: var(--wash); padding: 24px 0; }
.band--navy { background: var(--navy); padding: 34px 0; }

.card {
  background: var(--card);
  border: 1px solid var(--hair);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3 { font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--navy); }
.card p { font-size: 16px; line-height: 1.55; color: var(--body); }
.cap { font-family: var(--mono); font-size: 13px; line-height: 1.45; color: var(--muted); }
.card figure { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }

/* ---------- Image placeholders ----------
   Each is one line in the HTML with the finished <img> sitting in a comment
   directly under it. Swap the two and the slot is done. */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px dashed #A9ADB3;
  background: #FAF9F7;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}
.ph--4x3 { aspect-ratio: 4 / 3; width: 100%; }
.ph--sq  { aspect-ratio: 1 / 1; width: 100%; }
.ph--navy { border-color: var(--navy); background: var(--card); }
.ph--portrait { width: 104px; height: 124px; flex: none; }
/* Finished images: same boxes, solid borders */
.shot { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--hair); }
.shot--sq { aspect-ratio: 1 / 1; }
.shot--navy { border-color: var(--navy); }
.portrait { width: 104px; height: 124px; flex: none; object-fit: cover; }

/* ---------- 01 ---------- */
.proof { display: flex; flex-direction: column; gap: 12px; }

/* ---------- 02 ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair figure { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pair figcaption { font-size: 13px; line-height: 1.45; color: var(--muted); }
.pair .is-strong figcaption { color: var(--navy); font-weight: 500; }

/* ---------- 03 ---------- */
.step { display: flex; flex-direction: column; gap: 12px; }
.step + .step { border-top: 1px solid var(--hair); padding-top: 20px; margin-top: 8px; }
.h-step { font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--navy); }
.numlist li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--hair);
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
}
.numlist li:last-child { border-bottom: 1px solid var(--hair); }
.num {
  flex: none;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;   /* optically aligns the 13px numeral to the 16px first line */
  color: var(--orange);
}

.tools {
  background: var(--card);
  border: 1px solid var(--hair);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.tools__label {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--label);
}
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 24px;
  row-gap: 16px;
}
/* Optically balanced: square icons sit taller than horizontal wordmarks. */
.logos img { width: auto; height: 22px; }
.logos .is-icon { height: 24px; }
.logos .is-wordmark { height: 20px; }

/* ---------- 04 ---------- */
.who { display: flex; gap: 14px; align-items: flex-start; }
.cred { font-size: 16px; line-height: 1.55; font-weight: 500; color: var(--navy); }

/* ---------- 05 ---------- */
/* Three equal cells per the handoff. The copy deck added a sentence to each
   cell, which at 16px does not fit a 90px column: "Documented" broke mid-word
   at 390px. Below 480px the cells stack so no word breaks; three across above. */
.phases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.phase {
  min-width: 0;
  background: var(--card);
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.phase h3 { font-size: 16px; line-height: 1.3; font-weight: 500; color: var(--navy); }
.phase .dur { font-family: var(--mono); font-size: 13px; line-height: 1.3; color: var(--muted); }
.phase p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  overflow-wrap: break-word;
}
@media (min-width: 480px) {
  .phases { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 07 guarantee (navy) ---------- */
.band--navy .sec-label { color: var(--g-label); }   /* orange never sets type on navy */
.g-line { font-size: 26px; line-height: 1.3; font-weight: 600; color: var(--on-dark); }

/* ---------- 08 ---------- */
.after li {
  display: flex;
  gap: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}
.after li + li { margin-top: 11px; }

/* ---------- 09 ---------- */
.fit { display: flex; flex-direction: column; gap: 12px; }
.fit .card { padding: 16px; }
.fit .card--strong { border-color: var(--navy); }
.fit h3 { font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--navy); }
.fit li {
  position: relative;
  padding-left: 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}
.fit li + li { margin-top: 8px; }
.fit li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 1px;
  background: var(--navy);
}

/* ---------- 10 ---------- */
.faq { display: flex; flex-direction: column; gap: 18px; }
.faq h3 { font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.faq p { font-size: 16px; line-height: 1.55; color: var(--body); }

/* ---------- Footer (navy) ---------- */
.site-footer { background: var(--navy); color: var(--on-dark); }
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.f-head { font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--on-dark); }
.on-dark .micro { color: var(--on-dark-muted); }
.on-dark .cta .guarantee-line { color: var(--on-dark); border-top-color: var(--on-dark-rule); }

.formbox {
  border: 1px solid var(--on-dark-box);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.formbox h3 { font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--on-dark); }
.formbox .intro { font-size: 16px; line-height: 1.55; color: var(--on-dark-muted); }
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 16px; line-height: 1.4; color: var(--on-dark); }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--on-dark-input);
  border-radius: 0;
  background: transparent;
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 16px;          /* 16px also stops iOS zooming on focus */
  line-height: 1.4;
}
.field textarea { min-height: 96px; resize: vertical; }
.btn--light { background: var(--card); color: var(--navy); font-size: 16px; }
.btn--light:hover { background: var(--wash); }
.btn[disabled] { cursor: progress; }
.sent { font-size: 16px; line-height: 1.55; color: var(--on-dark); }
.sent:focus { outline: none; }

.hp {                             /* honeypot: off screen, out of tab order */
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.f-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--on-dark-rule);
  padding-top: 14px;
}
.f-base .wordmark { height: 22px; width: auto; }
.f-base .place { font-family: var(--mono); font-size: 13px; color: var(--on-dark-faint); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
