/* ==========================================================================
   PostSearchLabs: "warm product" theme layer
   Loads AFTER styles.css and only overrides it. Delete this file's <link>
   to go back to the old look instantly.
   Look: white canvas, warm peach hero glow, near-black pill buttons,
   one coral accent, big tight Fustat headings, soft rounded cards.
   ========================================================================== */

:root,
:root:not([data-theme="dark"]) {   /* light by default, even if the visitor's OS is dark */
  color-scheme: light;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #0A0A0A;
  --muted: #5E5E5E;
  --line: #EAEAEA;
  --accent: #F2542D;          /* coral: kickers, numbers, highlights */
  --brand-text: #F2542D;
  --accent-hover: #D9431E;
  --on-accent: #FFFFFF;
  --btn: #0A0A0A;             /* primary buttons are near-black */
  --btn-hover: #262626;
  --mark: rgba(255, 183, 150, 0.75);
  --deep: #0A0A0A;
  --deep-2: #141414;
  --on-deep: #FAFAFA;
  --on-deep-muted: #A3A3A3;
  --deep-line: #262626;
  --deep-accent: #FF8A65;
  --shadow: rgba(10, 10, 10, 0.18);
  --display: "Fustat", "Geist", "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --glow: #FFE3D6;
}

:root[data-theme="dark"] {
  --bg: #0A0A0A;
  --surface: #141414;
  --ink: #FAFAFA;
  --muted: #A3A3A3;
  --line: #262626;
  --accent: #FF7A54;
  --brand-text: #FF7A54;
  --accent-hover: #FF9775;
  --on-accent: #0A0A0A;
  --btn: #FAFAFA;
  --btn-hover: #E5E5E5;
  --mark: rgba(242, 84, 45, 0.35);
  --deep: #000000;
  --deep-2: #0F0F0F;
  --deep-line: #222222;
  --deep-accent: #FF8A65;
  --glow: rgba(242, 84, 45, 0.18);
}

/* Day/night toggle icons follow the light default */
:root:not([data-theme="dark"]) [data-theme-toggle] .when-dark { display: none; }
:root:not([data-theme="dark"]) [data-theme-toggle] .when-light { display: inline; }

/* ---------- Type ---------- */
h1, h2,
.cols--strong h3,
.stat__num,
.step__n,
.atlas h2, .atlas__say,
.fork h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.045em;
}
h1 { line-height: 1.02; }
h2 { line-height: 1.06; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h3 { letter-spacing: -0.02em; }

.kicker { color: var(--accent); }

/* ---------- Buttons: near-black pills ---------- */
.btn--primary,
.nav .btn,
.site-footer .footer__cta {
  background: var(--btn);
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 20px -10px var(--shadow);
}
:root[data-theme="dark"] .btn--primary,
:root[data-theme="dark"] .nav .btn { color: #0A0A0A; }
.btn--primary:hover,
.nav .btn:hover { background: var(--btn-hover); color: var(--on-accent); }
:root[data-theme="dark"] .btn--primary:hover { color: #0A0A0A; }
.band .btn--primary,
.site-footer .footer__cta { background: #FFFFFF; color: #0A0A0A; }
.band .btn--primary:hover,
.site-footer .footer__cta:hover { background: #F0F0F0; color: #0A0A0A; }
.btn--ghost { background: var(--surface); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

/* ---------- Header: light, blurred ---------- */
.site-header {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: transparent;
}
.brand__name span { color: var(--accent); }

/* ---------- Hero: warm peach glow ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {               /* the glow */
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 0%, var(--glow) 0%, transparent 70%),
    radial-gradient(35% 40% at 15% 10%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 70%),
    radial-gradient(35% 40% at 85% 10%, color-mix(in srgb, #FFB199 30%, transparent) 0%, transparent 70%);
}
.hero::after {                /* faint grid, fades out downward */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 75%);
}

/* Eyebrow becomes a bracketed badge */
.hero .eyebrow {
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-radius: 6px;
  --c: var(--accent);
  background-image:
    linear-gradient(var(--c),var(--c)), linear-gradient(var(--c),var(--c)),
    linear-gradient(var(--c),var(--c)), linear-gradient(var(--c),var(--c)),
    linear-gradient(var(--c),var(--c)), linear-gradient(var(--c),var(--c)),
    linear-gradient(var(--c),var(--c)), linear-gradient(var(--c),var(--c));
  background-repeat: no-repeat;
  background-size: 10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px,
                   10px 1.5px, 1.5px 10px, 10px 1.5px, 1.5px 10px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}
.hero h1 { max-width: 15ch; }
.hl {
  background-image: none;
  color: var(--accent);
  padding-inline: 0;
}

/* CTA block sits on a soft card, like a product input */
.hero .book {
  max-width: 620px;
  margin-inline: auto;
  padding: 28px 28px 22px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 60px -30px var(--shadow), 0 1px 0 rgba(255,255,255,.6) inset;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.book__meta span::before { color: var(--accent); }

/* Engine chips → logo strip */
.engines__label { color: var(--muted); }
.engines__row li {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 4px 14px -10px var(--shadow);
}

/* ---------- Dark bands → pure black ---------- */
.atlas { background: #0A0A0A; --atlas-mark: rgba(242, 84, 45, 0.45); }
.atlas .kicker { color: var(--deep-accent); }
.atlas__card {
  background: rgba(20, 20, 20, 0.92);
  border-color: #262626;
  box-shadow: 0 30px 80px -30px rgba(242, 84, 45, 0.45);
}

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.band::before {               /* coral glow in the corner of dark bands */
  content: "";
  position: absolute;
  inset: auto -20% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(242, 84, 45, 0.22), transparent);
}

/* Stats */
.stat__num { color: #FFFFFF; word-spacing: -0.12em; }
.stats > div {
  padding: 28px;
  border: 1px solid var(--deep-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}

/* ---------- Cards everywhere ---------- */
.cols--strong { gap: 16px; }
.cols--strong .col,
.col {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px -24px var(--shadow);
}
.cols--strong .col { border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cols--strong .col::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #FFB199);
}

.step,
.explore__card {
  border-radius: var(--radius);
  box-shadow: 0 12px 30px -24px var(--shadow);
}
.step__n {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  font-size: 22px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border-radius: 14px;
}
.step__time {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.explore__card { transition: border-color .2s, transform .2s, box-shadow .2s; }
.explore__card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px var(--shadow);
}
.explore__tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

/* Alternating soft sections instead of hard rules */
.section--line { border-top: 0; }
#how { background: linear-gradient(180deg, #FAFAFA, var(--bg)); }
:root[data-theme="dark"] #how { background: linear-gradient(180deg, #111, var(--bg)); }

/* Final CTA band */
.final h2 { max-width: 16ch; }

/* Footer */
.site-footer .brand__name span { color: var(--deep-accent); }

/* ---------- Motion (motion.js adds the classes) ---------- */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.js-motion .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal { opacity: 1; transform: none; transition: none; }
  .explore__card:hover { transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .hero .book { padding: 20px 16px 16px; border-radius: 18px; }
  .cols--strong .col, .col, .stats > div { padding: 20px; }
  .hero .eyebrow { font-size: 11px; padding: 7px 12px; }
}

/* ---------- Cookie banner: light card like the rest of the site ---------- */
.cc {
  background: #FFFFFF; color: #0A0A0A;
  border: 1px solid #EAEAEA;
  box-shadow: 0 30px 80px -24px rgba(10,10,10,.25);
}
.cc__title, .cc__opt strong, .cc__text a { color: #0A0A0A; }
.cc__text, .cc__opt small { color: #5E5E5E; }
.cc__text a:hover { color: var(--accent); }
.cc__prefs, .cc__opt { border-color: #EAEAEA; }
.cc__always { color: var(--accent); }
.cc__switch { background: #EAEAEA; border-color: #D4D4D4; }
.cc__switch:checked { background: #0A0A0A; border-color: #0A0A0A; }
.cc__switch:checked::after { background: #FFFFFF; }
.cc__switch:focus-visible, .cc__btn:focus-visible { outline-color: var(--accent); }
.cc__btn { border-radius: 999px; }
.cc__btn--light { background: #0A0A0A; color: #FFFFFF; }
.cc__btn--light:hover { background: #262626; }
.cc__btn--dark { background: #F5F5F5; color: #0A0A0A; border-color: #EAEAEA; }
.cc__btn--dark:hover { border-color: #0A0A0A; }
.cc__btn--dark.is-save { background: #0A0A0A; color: #FFFFFF; border-color: #0A0A0A; }
.cc__btn--dark.is-save:hover { background: #262626; border-color: #262626; }
:root[data-theme="dark"] .cc { background: #141414; color: #FAFAFA; border-color: #262626; }
:root[data-theme="dark"] .cc__title, :root[data-theme="dark"] .cc__opt strong, :root[data-theme="dark"] .cc__text a { color: #FAFAFA; }
:root[data-theme="dark"] .cc__btn--light { background: #FAFAFA; color: #0A0A0A; }
:root[data-theme="dark"] .cc__btn--dark { background: #0A0A0A; color: #FAFAFA; border-color: #262626; }

/* ==========================================================================
   v2 POLISH: calmer type scale, two font families, tighter hero,
   consistent card text, cleaner mobile. Overrides the rules above.
   ========================================================================== */

/* ---------- Type scale (desktop max → mobile min) ---------- */
h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.03; letter-spacing: -0.042em; }
.prose h1 { font-size: clamp(38px, 4.6vw, 60px); }
h2 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.08; letter-spacing: -0.035em; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.025em; }
.promise h2 { font-size: clamp(28px, 3vw, 38px); }
.atlas h2, .atlas__say { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.06; letter-spacing: -0.038em; }
h3 { font-size: 18px; line-height: 1.3; }
.cols--strong h3 { font-size: clamp(21px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -0.025em; }
.fork h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; }
.hero h1 { max-width: 16ch; }

/* Every big display number/quote uses the same Fustat 500 voice */
.stat__num, .calc__big, .tester__tally strong, .score__band,
.founder__text blockquote, .fixes li::before, .footer__slogan {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.stat__num { font-size: clamp(48px, 5.2vw, 72px); line-height: 1; letter-spacing: -0.045em; font-variant-numeric: normal; word-spacing: 0; }
.calc__big { font-size: clamp(48px, 6vw, 80px); letter-spacing: -0.045em; }
.footer__slogan { font-size: 24px; line-height: 1.15; }

.lede { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; max-width: 600px; }

/* ---------- Labels: mono only for small uppercase labels ---------- */
.eyebrow, .kicker { font-size: 12px; letter-spacing: 0.1em; }
.book__meta, .source, .steps__note, .atlas__note {
  font-family: var(--body);
  letter-spacing: 0;
}
.book__meta { font-size: 13.5px; }
.source, .steps__note { font-size: 13.5px; color: var(--muted); }
.band .source { color: var(--on-deep-muted); }
.atlas__note { font-size: 12px; }

/* ---------- Brand: Fustat replaces Lexend (one less font to load) ---------- */
.brand { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.04em; }
.site-footer .brand { font-size: 24px; }

/* ---------- Hero: less padding, tighter CTA card ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); }
.hero__top { gap: 20px; }
.hero .book { max-width: 560px; padding: 24px 24px 20px; gap: 12px; }
.book__note { font-size: 14.5px; line-height: 1.55; max-width: 46ch; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 16.5px; }
.engines { margin-top: clamp(36px, 4vw, 52px); }
.engines__row li { font-size: 14px; padding: 7px 13px; }

/* ---------- Section rhythm ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section__head { gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 720px; }
.final { gap: 20px; }
.final h2 { max-width: 18ch; }

/* ---------- Cards: one text size, one padding ---------- */
.col p, .step p, .explore__card p, .stat__label { font-size: 15.5px; line-height: 1.6; }
.stat__label { margin-top: 10px; }
.cols--strong .col, .col, .step { padding: 26px; gap: 10px; }
.explore__card { padding: 22px; }
.explore__card h3 { font-size: 17px; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  h1, .prose h1 { font-size: clamp(34px, 9.6vw, 40px); letter-spacing: -0.04em; }
  h2 { font-size: clamp(27px, 7.6vw, 32px); }
  .atlas h2, .atlas__say { font-size: clamp(28px, 8vw, 34px); }
  .lede { font-size: 16.5px; }
  .hero { padding-block: 24px 44px; }
  .hero__top { gap: 16px; }
  /* eyebrow: plain small label instead of a two-line box */
  .hero .eyebrow {
    background: none; padding: 0; border-radius: 0;
    font-size: 10.5px; letter-spacing: 0.08em; line-height: 1.6;
    color: var(--muted); max-width: 40ch; text-wrap: balance;
  }
  /* CTA: no card, full-width button that fits on one line */
  .hero .book {
    padding: 0; background: none; border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .book .btn--lg, .final .btn--lg { font-size: 16px; padding: 14px 18px; min-height: 54px; }
  .book .btn--lg svg, .final .btn--lg svg { display: none; }
  .book__note { font-size: 14px; }
  .section { padding-block: 56px; }
  .stats > div { padding: 20px; }
  .stat__num { font-size: 48px; }
  .cols--strong .col, .col, .step, .explore__card { padding: 20px; }
  .brand { font-size: 20px; }
  /* compact cookie banner so it doesn't cover half the screen */
  .cc { padding: 18px 18px 16px; }
  .cc__title { font-size: 17px; margin-bottom: 6px; }
  .cc__text { font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
  .cc__btn { min-height: 42px; font-size: 14.5px; }
}

/* ==========================================================================
   v3 HEADER: full-width white bar, numbered links that roll on hover,
   square bracketed buttons, "+" menu on mobile.
   ========================================================================== */
html { scroll-padding-top: 110px; }
html.gh-lock, html.gh-lock body { overflow: hidden; }

.gh {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
}
.gh::after {                       /* hairline under the bar */
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 0;
  height: 1px; background: var(--line);
}
.gh::before {                      /* small "+" marker in the middle of the hairline */
  content: ""; position: absolute; left: 50%; bottom: -5px; z-index: 1;
  width: 11px; height: 11px; transform: translateX(-50%);
  background:
    linear-gradient(var(--muted), var(--muted)) center / 11px 1px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 1px 11px no-repeat;
  opacity: .55;
}
.gh__in {
  display: flex; align-items: center; gap: 16px;
  height: 94px; padding-inline: 20px;
}
.gh .brand { flex: none; }

/* Numbered links */
.gh__links { display: flex; align-items: center; gap: 30px; margin-left: 72px; }
.gh__links a {
  display: inline-flex; align-items: flex-start; gap: 2px;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-size: 14px; font-weight: 500;
  letter-spacing: -0.1px; line-height: 22px;
  opacity: .5; transition: opacity .25s;
}
.gh__links a:hover, .gh__links a:focus-visible, .gh__links a[aria-current="page"] { opacity: 1; }
.gh__links sup, .gh__menu sup {
  font-family: var(--body); font-size: 10px; font-weight: 500;
  line-height: 12px; vertical-align: baseline; letter-spacing: 0;
}
.roll { display: inline-block; height: 22px; overflow: hidden; }
.roll > span { display: block; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.roll > span::after { content: attr(data-t); display: block; }
.gh__links a:hover .roll > span { transform: translateY(-22px); }

/* Square buttons with corner brackets */
.gh__cta { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.hb {
  --b: var(--accent);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font-family: var(--body); font-size: 14px; font-weight: 500; line-height: 1;
  border-radius: 0;
  background-image:
    linear-gradient(var(--b),var(--b)), linear-gradient(var(--b),var(--b)),
    linear-gradient(var(--b),var(--b)), linear-gradient(var(--b),var(--b)),
    linear-gradient(var(--b),var(--b)), linear-gradient(var(--b),var(--b)),
    linear-gradient(var(--b),var(--b)), linear-gradient(var(--b),var(--b));
  background-repeat: no-repeat;
  background-size: 7px 1.5px, 1.5px 7px, 7px 1.5px, 1.5px 7px,
                   7px 1.5px, 1.5px 7px, 7px 1.5px, 1.5px 7px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  transition: background-color .2s;
}
.hb--ghost { height: 41px; padding: 0 16px; background-color: #FBFAF9; }
.hb--ghost:hover { background-color: #F5F4F3; color: var(--ink); }
.hb--primary {
  --b: var(--ink);
  height: 54px; gap: 18px; padding: 5px 24px 5px 5px;
  background-color: #F5F4F3;
}
.hb--primary:hover { background-color: #EEECEA; color: var(--ink); }
.hb__icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  background: var(--accent); color: #FFFFFF;
}
.hb__icon svg { width: 18px; height: 18px; transition: transform .25s; }
.hb--primary:hover .hb__icon svg { transform: translateX(3px); }
:root[data-theme="dark"] .hb--ghost { background-color: #141414; }
:root[data-theme="dark"] .hb--primary { background-color: #1C1C1C; }
:root[data-theme="dark"] .hb--ghost:hover, :root[data-theme="dark"] .hb--primary:hover { background-color: #262626; }

/* "+" toggle and mobile panel */
.gh__toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
}
.gh__toggle svg { width: 26px; height: 26px; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.gh.is-open .gh__toggle svg { transform: rotate(45deg); }
.gh__panel { display: none; }
.gh__theme { display: none; }

/* Medium desktops: drop the ghost button, tighten the links */
@media (max-width: 1239px) {
  .gh__links { gap: 22px; margin-left: 40px; }
  .gh__cta .hb--ghost { display: none; }
}

/* Tablet + phone: logo and "+" only; the menu opens full screen */
@media (max-width: 1023px) {
  .gh__in { height: 64px; }
  .gh::before { display: none; }
  .gh__links, .gh__cta { display: none; }
  .gh__toggle { display: grid; place-items: center; }
  .gh__panel {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
    padding: 4px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
  }
  .gh.is-open .gh__panel { display: flex; }
  .gh__menu { display: flex; flex-direction: column; }
  .gh__menu a {
    display: flex; align-items: flex-start; gap: 3px;
    padding: 16px 0; border-bottom: 1px solid var(--line);
    color: var(--ink); text-decoration: none;
    font-family: var(--display); font-size: 24px; font-weight: 500;
    letter-spacing: -0.03em; line-height: 1.2;
  }
  .gh__menu a[aria-current="page"] { color: var(--accent); }
  .gh__menu sup { font-size: 11px; margin-top: 2px; }
  .gh__panel-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
  .gh__panel-cta .hb { height: 54px; }
  .gh__panel-cta .hb--primary { gap: 12px; padding-right: 14px; justify-content: flex-start; }
  .gh__theme:not([hidden]) {
    display: inline-flex; align-self: flex-start; margin-top: 18px; padding: 8px 0;
    border: 0; background: none; color: var(--muted); cursor: pointer;
    font: 500 14px/1 var(--body);
  }
  .gh__theme .when-dark { display: none; }
  :root[data-theme="dark"] .gh__theme .when-dark { display: inline; }
  :root[data-theme="dark"] .gh__theme .when-light { display: none; }
}
@media (max-width: 340px) {
  .gh__panel-cta { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .roll > span, .gh__toggle svg, .hb__icon svg { transition: none; }
}

/* ==========================================================================
   v4 HEADER ON SCROLL: see-through (light blur) over the hero,
   solid white once the hero has scrolled past. motion.js sets html.gh-top.
   ========================================================================== */
:root { --gh-h: 94px; }
@media (max-width: 1023px) { :root { --gh-h: 64px; } }

/* The header floats over the first section, so that section starts under it */
.gh {
  margin-bottom: calc(-1 * var(--gh-h));
  transition: background-color .35s ease, -webkit-backdrop-filter .35s ease, backdrop-filter .35s ease;
}
.gh::after, .gh::before { transition: opacity .35s ease; }
main > .hero:first-child { padding-top: calc(var(--gh-h) + clamp(40px, 6vw, 80px)); }
main > .section:first-child { padding-top: calc(var(--gh-h) + clamp(64px, 8vw, 112px)); }
@media (max-width: 760px) {
  main > .hero:first-child { padding-top: calc(var(--gh-h) + 24px); }
  main > .section:first-child { padding-top: calc(var(--gh-h) + 56px); }
}

html.gh-top .gh:not(.is-open) {
  background-color: rgba(255, 255, 255, 0.01);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
html.gh-top .gh:not(.is-open)::after,
html.gh-top .gh:not(.is-open)::before { opacity: 0; }

/* ==========================================================================
   v5 LEAD CAPTURE: website box in the hero + "AI visibility check" form.
   leads.js handles both and saves to Supabase.
   ========================================================================== */
.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;
}

/* Corner brackets, reused */
.sitebox__form, .audit__card {
  --b: var(--ink);
  background-image:
    linear-gradient(var(--b),var(--b)), linear-gradient(var(--b),var(--b)),
    linear-gradient(var(--b),var(--b)), linear-gradient(var(--b),var(--b)),
    linear-gradient(var(--b),var(--b)), linear-gradient(var(--b),var(--b)),
    linear-gradient(var(--b),var(--b)), linear-gradient(var(--b),var(--b));
  background-repeat: no-repeat;
  background-size: 9px 1.5px, 1.5px 9px, 9px 1.5px, 1.5px 9px,
                   9px 1.5px, 1.5px 9px, 9px 1.5px, 1.5px 9px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}

/* Hero: website box */
.sitebox { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.sitebox__form { display: flex; width: min(100%, 540px); padding: 16px; }
.sitebox__field {
  flex: 1; min-width: 0; display: flex; align-items: center;
  height: 50px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-right: 0;
  border-radius: 12px 0 0 12px;
  transition: border-color .15s;
}
.sitebox__field:focus-within { border-color: var(--ink); }
.sitebox__field input {
  width: 100%; padding: 0; border: 0; outline: 0; background: transparent;
  color: var(--ink); font: 400 15px/1.2 var(--body);
}
.sitebox__field input::placeholder { color: #9A9A9A; }
.sitebox__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: none;
  height: 50px; padding: 0 20px; border: 0; border-radius: 0 12px 12px 0;
  background: #141414; color: #FFFFFF; cursor: pointer; white-space: nowrap;
  font: 600 15px/1 var(--body);
  transition: background-color .15s;
}
.sitebox__btn:hover { background: #2A2A2A; }
.sitebox__btn svg { width: 16px; height: 16px; transition: transform .2s; }
.sitebox__btn:hover svg { transform: translateX(3px); }
:root[data-theme="dark"] .sitebox__btn { background: #FAFAFA; color: #0A0A0A; }
.sitebox__form.is-invalid .sitebox__field { border-color: #D92D20; }
.sitebox__hint { margin: -6px 0 0; font-size: 13.5px; color: #B42318; }
.sitebox__meta {
  margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  font-size: 13.5px; color: var(--muted);
}
.sitebox__meta span::before { content: "● "; color: var(--accent); }

/* Form section */
.audit { position: relative; isolation: isolate; overflow: hidden; }
.audit::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(45% 60% at 85% 35%, var(--glow) 0%, transparent 70%),
    radial-gradient(35% 45% at 10% 90%, color-mix(in srgb, #FFB199 22%, transparent) 0%, transparent 70%);
}
.audit__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.audit__intro { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.audit__intro h2 { max-width: 14ch; }
.audit__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 16px; }
.audit__list li { position: relative; padding-left: 36px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.audit__list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent);
  font: 700 13px/1 var(--body);
}
.audit__list strong { display: block; color: var(--ink); font-weight: 600; }
.audit__call { align-self: flex-start; margin-top: 6px; color: var(--accent); font-weight: 600; text-decoration: none; }
.audit__call:hover { text-decoration: underline; color: var(--accent); }
.audit__card {
  position: relative; padding: clamp(22px, 3vw, 34px);
  background-color: var(--surface);
  box-shadow: 0 40px 80px -48px rgba(10, 10, 10, 0.35), 0 0 0 1px var(--line);
}

.lead { display: grid; gap: 16px; margin: 0; }
.lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead__field { display: flex; flex-direction: column; gap: 7px; min-width: 0; font: 500 13.5px/1.3 var(--body); color: var(--ink); }
.lead__field em { font-style: normal; font-weight: 400; color: var(--muted); }
.lead__field input, .lead__field select {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background-color: var(--bg); color: var(--ink);
  font: 400 15px/1.2 var(--body); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lead__field select {
  -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235E5E5E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.lead__field select:invalid { color: #9A9A9A; }
.lead__field input::placeholder { color: #9A9A9A; }
.lead__field input:focus, .lead__field select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.lead__field [aria-invalid="true"] { border-color: #D92D20; }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; margin-top: 4px; border: 0; border-radius: 12px;
  background: #141414; color: #FFFFFF; cursor: pointer;
  font: 600 15.5px/1 var(--body);
  transition: background-color .15s;
}
.lead__submit:hover { background: #2A2A2A; }
.lead__submit svg { width: 16px; height: 16px; }
.lead__submit[disabled] { opacity: .6; cursor: progress; }
:root[data-theme="dark"] .lead__submit { background: #FAFAFA; color: #0A0A0A; }
.lead__legal { margin: 0; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.lead__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lead__error { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-fg); font-size: 14px; line-height: 1.45; }
.lead[hidden], .lead__error[hidden], .lead__done[hidden] { display: none; }
.lead__done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 6px 0; outline: none; }
.lead__check { width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent); color: #FFFFFF; }
.lead__check svg { width: 22px; height: 22px; }
.lead__done h3 { font-family: var(--display); font-size: 26px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.lead__done p { margin: 0; color: var(--muted); }
.lead__done strong { color: var(--ink); font-weight: 600; word-break: break-word; }

@media (max-width: 900px) {
  .audit__grid { grid-template-columns: 1fr; }
  .audit__intro h2 { max-width: none; }
}
@media (max-width: 560px) {
  .sitebox__form { flex-direction: column; padding: 12px; }
  .sitebox__field { flex: none; width: 100%; border-right: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; }
  .sitebox__form.is-invalid .sitebox__field { border-color: #D92D20; }
  .sitebox__btn { width: 100%; border-radius: 0 0 12px 12px; }
  .lead__row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v6 STEP CARDS ("How it works"): one font per role.
   Number + title in Fustat (the heading font), pill + text in Geist.
   ========================================================================== */
.steps .step { padding: 30px; gap: 12px; }
.step__top { align-items: center; margin-bottom: 8px; }
.step__n {
  width: 46px; height: 46px; border-radius: 12px;
  font-family: var(--display); font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1;
}
.step__time {
  padding: 7px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 3%, var(--surface));
  border: 1px solid var(--line);
  font-family: var(--body); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.01em; line-height: 1;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}
.step h3 {
  font-family: var(--display); font-size: 22px; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.2; color: var(--ink);
}
.step p {
  font-size: 15.5px; line-height: 1.65; color: var(--muted);
  text-wrap: pretty;
}
.steps__note { margin-top: 24px; font-size: 14px; line-height: 1.5; }
@media (max-width: 760px) {
  .steps .step { padding: 22px; }
  .step h3 { font-size: 20px; }
  .step p { font-size: 15px; }
}

/* ==========================================================================
   v7 FINAL CTA BAND (bottom of Services, Tools, Why, FAQ, About, Scorecard)
   Same button language as the header, calmer text, soft glow + grid.
   ========================================================================== */
.band:has(.final)::before {               /* centred coral glow instead of the corner one */
  inset: auto; left: 50%; top: 42%;
  width: min(900px, 90%); aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(242, 84, 45, 0.20), transparent);
}
.band:has(.final)::after {                /* faint grid, fades out from the centre */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 50% 45%, #000 0%, transparent 75%);
}
.final { gap: 0; max-width: 760px; margin-inline: auto; }
.final .kicker { margin-bottom: 18px; }
.final h2 { margin-bottom: 18px; }
.final .lede {
  max-width: 540px; margin: 0 auto;
  font-size: 17px; line-height: 1.65; color: var(--on-deep-muted);
  text-wrap: pretty;
}
.final h2 + .btn--lg, .final .lede + .btn--lg { margin-top: 34px; }

/* Button: white bar with a coral arrow square, brackets just outside the corners */
.final .btn--lg {
  position: relative; gap: 18px;
  min-height: 58px; padding: 6px 26px 6px 6px;
  border-radius: 0; background: #FFFFFF; color: #0A0A0A;
  font: 600 16px/1 var(--body); box-shadow: none;
}
.final .btn--lg:hover { background: #F1EFED; color: #0A0A0A; transform: none; }
.final .btn--lg svg {
  order: -1; box-sizing: border-box;
  width: 46px; height: 46px; padding: 14px;
  background: var(--accent); color: #FFFFFF;
  transition: background-color .2s;
}
.final .btn--lg:hover svg { background: var(--accent-hover); }
.final .btn--lg::before {
  --b: rgba(255, 255, 255, 0.6);
  content: ""; position: absolute; inset: -7px; pointer-events: none;
  background-image:
    linear-gradient(var(--b),var(--b)), linear-gradient(var(--b),var(--b)),
    linear-gradient(var(--b),var(--b)), linear-gradient(var(--b),var(--b)),
    linear-gradient(var(--b),var(--b)), linear-gradient(var(--b),var(--b)),
    linear-gradient(var(--b),var(--b)), linear-gradient(var(--b),var(--b));
  background-repeat: no-repeat;
  background-size: 9px 1.5px, 1.5px 9px, 9px 1.5px, 1.5px 9px,
                   9px 1.5px, 1.5px 9px, 9px 1.5px, 1.5px 9px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}

/* "Free · Takes 2 minutes · …" as small pills */
.final .book__meta { margin-top: 28px; gap: 8px; font-family: var(--body); font-size: 13px; }
.final .book__meta span {
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #D4D4D4;
}

/* "Not ready yet?" link in the body font, underline only on hover */
.final__alt {
  margin-top: 22px;
  font-family: var(--body); font-size: 14.5px; font-weight: 500;
  color: var(--on-deep-muted); text-decoration: none;
  transition: color .15s;
}
.final__alt:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .final .lede { font-size: 16px; }
  .final .btn--lg { width: 100%; padding: 6px 18px; justify-content: center; }
  .final .book__meta { margin-top: 22px; }
}

/* ==========================================================================
   v8 FOOTER BOTTOM LINE: "Made for people and AI · llms.txt" in the body font,
   same size as the copyright line.
   ========================================================================== */
.footer__meta { font-family: var(--body); font-size: inherit; letter-spacing: 0; }
.site-footer .footer__meta a {
  color: var(--on-deep);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  transition: text-decoration-color .15s;
}
.site-footer .footer__meta a:hover { text-decoration-color: currentColor; }

/* ==========================================================================
   v9 HERO FITS ONE SCREEN ON DESKTOP: type and spacing follow the window
   height, so the engine strip shows without scrolling on laptops
   (e.g. 1536x690 at 125% Windows scaling). Big screens keep the full size.
   ========================================================================== */
@media (min-width: 761px) {
  main > .hero:first-child { padding-top: calc(var(--gh-h) + clamp(24px, 4vh, 80px)); padding-bottom: clamp(48px, 7vh, 96px); }
  .hero__top { gap: clamp(12px, 2.2vh, 20px); }
  .hero h1 { font-size: clamp(40px, min(5.2vw, 7.6vh), 68px); }
  .hero .lede { font-size: clamp(16px, min(1.3vw, 2.4vh), 19px); }
  .hero__video { margin-top: clamp(20px, 3.5vh, 56px); }
  .hero .sitebox__form { padding-block: clamp(10px, 1.6vh, 16px); }
  .engines { margin-top: clamp(18px, 3.5vh, 52px); gap: 12px; }
}
