/* Expert Level AEO — landing page styles.
   Implemented from the Claude Design file "AEO Optimization v2.dc.html". */

:root {
  --bg: #faf7f2;
  --ink: #141613;
  --text: #1c1f1c;
  --body: #4a4e47;
  --muted: #8a8e83;
  --faint: #a3a79c;
  --green: #2f6b4f;
  --green-dark: #234f3a;
  --forest: #12241d;
  --rust: #a8503a;
  --coral: #d3866c;
  --line: #ece5db;
  --line-soft: #f1ece4;
  --on-dark: #c6d4cc;
  --on-dark-muted: #8fa79b;
  --mint: #7fbb9c;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: 48px;
  --nav-h: 78px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
#top { scroll-margin-top: 0; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
button, input { font: inherit; }
::selection { background: #e3ece6; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.section--dark :focus-visible, .nav :focus-visible { outline-color: var(--coral); }
svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
em { font-style: italic; }
ul, ol { list-style: none; margin: 0; padding: 0; }
sup { font-size: 10px; line-height: 0; color: var(--note, var(--muted)); }
sup a { color: inherit; }
sup a:hover { color: var(--accent); }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 14px; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* ---------- Section themes ---------- */
.section {
  position: relative;
  overflow: hidden;
  --heading: var(--ink);
  --accent: var(--rust);
  --copy: var(--body);
  --note: var(--muted);
}
.section--dark {
  background: var(--forest);
  --heading: #fff;
  --accent: var(--coral);
  --copy: var(--on-dark);
  --note: var(--on-dark-muted);
}
.section--warm-down   { background: linear-gradient(180deg, #fdfaf6 0%, #f9f3ec 100%); }
.section--warm-up     { background: linear-gradient(180deg, #f9f3ec 0%, #fdfaf6 100%); }
.section--warm-down-2 { background: linear-gradient(180deg, #fdfaf6 0%, #f8f1e9 100%); }
.section--warm-up-2   { background: linear-gradient(180deg, #f8f1e9 0%, #fdfaf6 100%); }
.hl { color: var(--accent); }

.eyebrow {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 26px;
}
.section-head { text-align: center; padding-top: 104px; }
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.12;
  color: var(--heading);
  letter-spacing: -.02em;
  margin: 0 auto;
  max-width: 900px;
  text-wrap: pretty;
}
.section-title--narrow { max-width: 880px; }
.section--dark .section-title { font-size: clamp(38px, 4.8vw, 58px); line-height: 1.1; }
.section-lede {
  font-size: 17.5px; line-height: 1.7; color: var(--copy);
  margin: 26px auto 0; max-width: 660px;
}
.section-lede--wide { max-width: 680px; }
.section-lede--free { max-width: none; }
.section-lede--serif {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.65;
  margin-top: 28px;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 18px 34px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); }
.btn--sm { flex: none; padding: 13px 24px; font-size: 14px; white-space: nowrap; }
.btn--sm:hover { transform: translateY(-1px); }
.btn--lg { padding: 20px 38px; font-size: 17px; }
.btn--light { background: #fff; color: var(--forest); }
.btn--light:hover { background: #e7e5df; color: var(--forest); }
.cta-note { font-size: 13.5px; line-height: 1.6; color: var(--note); margin-top: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: var(--forest);
  --accent: var(--coral);
  transition: transform .34s var(--ease), box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 10px 30px rgba(18, 36, 29, .16); }
.nav.is-hidden { transform: translateY(-100%); }
.nav:focus-within { transform: none; }
.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.brand { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand__name {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: #fff; letter-spacing: -.01em; white-space: nowrap;
}
.brand__name em { color: var(--accent); }
.brand__tag { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: #7d9187; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link { font-size: 14px; color: var(--on-dark); transition: color .2s; }
.nav__link:hover { color: #fff; }

/* ---------- Decorative glows (parallax) ---------- */
.blob { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }
.hero__blob--rust {
  top: -220px; right: -180px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(168, 80, 58, .10) 0%, rgba(168, 80, 58, 0) 68%);
}
.hero__blob--green {
  bottom: -260px; left: -200px; width: 660px; height: 660px;
  background: radial-gradient(circle, rgba(47, 107, 79, .12) 0%, rgba(47, 107, 79, 0) 68%);
}
.enemy__glow {
  top: -160px; left: 50%; width: 900px; height: 520px; margin-left: -450px;
  background: radial-gradient(ellipse, rgba(211, 134, 108, .14) 0%, rgba(211, 134, 108, 0) 70%);
}
.close__glow {
  bottom: -240px; right: -160px; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(211, 134, 108, .13) 0%, rgba(211, 134, 108, 0) 68%);
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(168deg, #fdfaf6 0%, #f8f1e9 46%, #f6ece4 100%); }
.hero__inner { position: relative; }
.hero__copy { padding-top: 154px; text-align: center; }
.hero__pain {
  font-family: var(--serif); font-size: clamp(22px, 2.3vw, 28px); font-weight: 600;
  line-height: 1.45; color: var(--ink); margin-bottom: 8px; text-wrap: pretty;
}
.hero__built {
  font-family: var(--serif); font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.55; color: #5f6259; margin-bottom: 40px; text-wrap: pretty;
}
.hero__title {
  font-family: var(--serif); font-size: clamp(40px, 6.4vw, 82px);
  line-height: 1.08; color: var(--ink); letter-spacing: -.025em;
  margin-bottom: 34px; text-wrap: pretty;
}
.hero__sub {
  font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--body);
  margin: 0 auto 64px; max-width: 720px; text-wrap: pretty;
}
.hero__sub strong { font-weight: 600; color: var(--ink); }

/* AI answer mockup */
.answer { position: relative; max-width: 880px; margin: 0 auto; padding-bottom: 96px; }
.answer__ghost {
  position: absolute; height: 60px; background: #fff; border-radius: 16px;
}
.answer__ghost--back { left: 34px; right: 34px; top: -26px; border: 1px solid var(--line); opacity: .65; }
.answer__ghost--mid { left: 16px; right: 16px; top: -13px; border: 1px solid #efe8de; opacity: .85; }
.answer__card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 70px rgba(20, 38, 31, .11); overflow: hidden;
}
.answer__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px; border-bottom: 1px solid var(--line-soft);
}
.dots { display: flex; gap: 6px; }
.dots span, .dot { width: 9px; height: 9px; border-radius: 50%; background: #e4ded4; }
.answer__label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}
.answer__icons { display: flex; gap: 7px; }
.ico { display: block; width: 15px; height: 15px; border: 1.5px solid #cfd4c9; }
.ico--circle { border-radius: 50%; }
.ico--diamond { border-radius: 3px; transform: rotate(45deg); }
.ico--drop { border-radius: 50% 50% 50% 0; }
.ico--square { border-radius: 4px; }
.answer__spacer { width: 52px; }
.answer__body { padding: 32px 34px 34px; text-align: left; }
.answer__q { display: flex; justify-content: flex-end; margin-bottom: 26px; }
.bubble {
  display: flex; align-items: center; gap: 4px;
  background: #f4f1ea; border-radius: 14px 14px 4px 14px;
  padding: 14px 20px; font-size: 16px; color: #3c4039;
}
.caret {
  display: inline-block; width: 1.5px; height: 18px; background: var(--green);
  animation: caret 1.1s step-end infinite;
}
.answer__a { display: flex; gap: 14px; align-items: flex-start; }
.ai-badge {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 13px; color: var(--green); margin-top: 2px;
}
.answer__content { flex: 1; min-width: 0; }
.answer__intro { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink); margin-bottom: 20px; }
.rank li {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line-soft);
}
.rank li:last-child { border-bottom: 1px solid var(--line-soft); }
.rank__n { font-family: var(--serif); font-size: 15px; color: var(--faint); }
.rank__name { font-size: 16px; color: #3c4039; }
.rank__tag { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.answer__miss { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--rust); margin-top: 20px; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 14px 38px rgba(20, 38, 31, .05);
}
.card--dark {
  background: var(--forest); border-color: var(--forest);
  box-shadow: 0 26px 60px rgba(18, 36, 29, .22);
  --heading: #fff; --accent: var(--coral); --copy: var(--on-dark);
}
.card--panel {
  border-radius: 16px; padding: 30px 30px 32px;
  box-shadow: 0 22px 52px rgba(20, 38, 31, .09);
}
.card__label {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 16px;
}
.card--dark .card__label { color: var(--on-dark-muted); }
.card__label--panel { font-size: 10.5px; margin-bottom: 22px; }

/* Two realities */
.duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start;
  padding-top: 56px;
}
.offset-lg { margin-top: 36px; }
.offset { margin-top: 32px; }
.realities { padding: 38px 38px 34px; }
.realities__title {
  font-family: var(--serif); font-size: clamp(28px, 2.8vw, 34px); line-height: 1.2;
  color: var(--heading); letter-spacing: -.01em; margin-bottom: 20px;
}
.realities__text { font-size: 16.5px; line-height: 1.75; color: var(--copy); margin-bottom: 26px; }
.checklist li {
  display: grid; grid-template-columns: 18px 1fr; gap: 14px;
  font-size: 15.5px; line-height: 1.6; color: var(--copy);
  padding: 14px 0; border-top: 1px solid var(--line-soft);
}
.checklist--no .checklist__mark { color: #c88a76; }
.checklist--yes li { border-top-color: rgba(255, 255, 255, .14); }
.checklist--yes .checklist__mark { color: var(--mint); }

.cta-block { text-align: center; padding: 88px 0 104px; }
.cta-block__title {
  font-family: var(--serif); font-size: clamp(30px, 3.4vw, 40px); line-height: 1.2;
  color: var(--ink); letter-spacing: -.015em; margin-bottom: 18px;
}
.cta-block__text { font-size: 17px; line-height: 1.7; color: var(--body); margin: 0 auto 34px; max-width: 600px; }
.cta-block--future { padding: 80px 0 104px; }
.cta-block__lead { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 26px); line-height: 1.5; color: var(--ink); margin-bottom: 28px; }
.cta-block--faq { padding: 56px 0 104px; }
.cta-block--faq .cta-block__text { margin-bottom: 26px; }

/* ---------- The Real Enemy ---------- */
.enemy { position: relative; padding-top: 104px; padding-bottom: 96px; }
.enemy__head { text-align: center; max-width: 860px; margin: 0 auto 72px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat {
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px; padding: 36px 32px 34px;
}
.stat__num {
  font-family: var(--serif); font-size: clamp(52px, 5.4vw, 70px); line-height: 1;
  color: #fff; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat__label {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral); margin: 18px 0 20px;
}
.stat__text { font-size: 15.5px; line-height: 1.7; color: var(--on-dark); }

/* ---------- Split rows (Mechanism / Process) ---------- */
.splits { padding-top: 80px; }
.splits--process { padding-top: 76px; }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  padding-bottom: 88px;
}
.splits--process .split { padding-bottom: 84px; }
.split:last-child, .splits--process .split:last-child { padding-bottom: 104px; }
.split__num { font-family: var(--serif); font-size: 15px; color: var(--rust); letter-spacing: .16em; margin-bottom: 18px; }
.split__title {
  font-family: var(--serif); font-size: clamp(30px, 3vw, 38px); line-height: 1.18;
  color: var(--ink); letter-spacing: -.015em; margin-bottom: 20px;
}
.splits--process .split__title { font-size: clamp(30px, 2.9vw, 36px); line-height: 1.2; }
.split__text { font-size: 17px; line-height: 1.75; color: var(--body); max-width: 480px; }
.figure { width: 100%; height: auto; }

/* Browser mockup */
.browser { position: relative; perspective: 1400px; }
.browser__window {
  transform: rotateY(-11deg) rotateX(4deg); transform-style: preserve-3d;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 28px 60px rgba(20, 38, 31, .12); overflow: hidden;
}
.browser__bar { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
.browser__bar .dot { width: 8px; height: 8px; }
.browser__url { flex: 1; height: 20px; border-radius: 999px; background: #f6f2ec; margin-left: 8px; }
.browser__body { padding: 26px 24px 30px; display: flex; flex-direction: column; gap: 22px; }
.browser__lines { display: flex; flex-direction: column; gap: 9px; }
.browser__lines div { height: 9px; border-radius: 5px; background: #f2eee7; }
.browser__lines div:first-child { background: #ece7de; }
.browser__strike { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.browser__pill {
  position: absolute; right: -14px; bottom: -18px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: 12.5px; color: var(--rust);
  box-shadow: 0 12px 28px rgba(20, 38, 31, .10); white-space: nowrap;
}

/* Cited sources */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip { padding: 9px 16px; border: 1px solid var(--green); border-radius: 999px; font-size: 14px; color: var(--green); }
.chip--you { border: 1px dashed #d8c4bc; color: #b09186; }
.chips__you {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-top: 22px; border-top: 1px solid var(--line-soft);
}
.chips__zero { font-family: var(--serif); font-size: 30px; color: var(--rust); font-variant-numeric: tabular-nums; }

/* Visibility scan */
.scan { padding: 30px 32px 32px; }
.scan .card__label--panel { margin-bottom: 24px; }
.scan__rows { display: flex; flex-direction: column; gap: 20px; }
.scan__row { display: grid; grid-template-columns: 96px 1fr 44px; gap: 16px; align-items: center; }
.scan__name { font-size: 14px; color: var(--body); }
.scan__bar { height: 7px; border-radius: 4px; background: #f0ebe3; position: relative; overflow: hidden; }
.scan__bar span { position: absolute; top: 0; bottom: 0; left: 0; background: var(--rust); border-radius: 4px; }
.scan__pct { font-size: 13px; color: var(--rust); text-align: right; font-variant-numeric: tabular-nums; }

/* Growth chart */
.growth { padding: 28px 30px 24px; }
.growth__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.growth__head .card__label--panel { margin-bottom: 0; }
.growth__arrow { font-family: var(--serif); font-size: 26px; color: var(--green); }

/* ---------- Path Forward ---------- */
.path { position: relative; padding-top: 104px; padding-bottom: 96px; text-align: center; }
.path__lede { max-width: 820px; margin-bottom: 76px; }
.path__box {
  max-width: 880px; margin: 0 auto; text-align: left;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px; padding: 48px 52px 50px;
}
.path__title {
  font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); line-height: 1.24;
  color: #fff; letter-spacing: -.015em; margin-bottom: 26px;
}
.path__box p { font-size: 17px; line-height: 1.75; color: var(--on-dark); }
.path__box p + p { margin-top: 20px; }

/* ---------- Future Pacing ---------- */
.duo--future { padding-top: 64px; align-items: stretch; }
.duo--future .card { align-self: start; }
.future { padding: 38px 38px 36px; }
.future__title {
  font-family: var(--serif); font-size: clamp(26px, 2.5vw, 30px); line-height: 1.24;
  color: var(--ink); letter-spacing: -.01em; margin-bottom: 18px;
}
.future__text { font-size: 16.5px; line-height: 1.75; color: var(--body); }

/* ---------- Fit Filter ---------- */
.fit { position: relative; padding-top: 104px; padding-bottom: 100px; text-align: center; }
.fit__lede { max-width: 640px; line-height: 1.6; margin-top: 26px; margin-bottom: 66px; }
.fit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; text-align: left; }
.fit__card { border-radius: 18px; padding: 34px 34px 32px; }
.fit__card--yes { background: rgba(255, 255, 255, .04); border: 1px solid rgba(127, 187, 156, .32); }
.fit__card--no { background: rgba(255, 255, 255, .02); border: 1px solid rgba(255, 255, 255, .10); }
.fit__label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.fit__card--yes .fit__label { color: var(--mint); }
.fit__card--no .fit__label { color: #8b9992; }
.fit__list li { font-size: 16px; line-height: 1.7; padding: 17px 0; }
.fit__card--yes .fit__list li { color: #dbe5e0; border-top: 1px solid rgba(255, 255, 255, .12); }
.fit__card--no .fit__list li { color: #94a29b; border-top: 1px solid rgba(255, 255, 255, .09); }

/* ---------- FAQ ---------- */
.faqs { max-width: 900px; padding-top: 56px; }
.faq {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  display: block; list-style: none; cursor: pointer;
  padding: 24px 28px; color: var(--ink); transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 14px; }
.faq__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.faq__q { font-family: var(--serif); font-size: clamp(19px, 1.9vw, 22px); line-height: 1.35; color: inherit; }
.faq__sign { flex: none; font-size: 20px; line-height: 1.5; color: var(--rust); }
.faq__sign::before { content: "+"; }
.faq[open] .faq__sign::before { content: "\2212"; }
.faq__a { padding: 0 28px 28px; }
.faq__a p { font-size: 16.5px; line-height: 1.75; color: var(--body); }
.faq__table { margin: 22px 0 0; border-top: 1px solid var(--line-soft); }
.faq__table div {
  display: grid; grid-template-columns: 110px 1fr; gap: 22px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.faq__table dt { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); padding-top: 3px; }
.faq__table dd { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--body); }

/* ---------- The Close ---------- */
.close { position: relative; }
.close__hero { text-align: center; padding: 112px 0 72px; }
.close__title {
  font-family: var(--serif); font-size: clamp(44px, 5.8vw, 70px); line-height: 1.06;
  color: #fff; letter-spacing: -.025em; margin-bottom: 32px; text-wrap: pretty;
}
.close__text { font-size: 18px; line-height: 1.7; color: var(--on-dark); margin: 0 auto 18px; max-width: 680px; }
.close__text--last { margin-bottom: 40px; }

.ps {
  display: grid; grid-template-columns: 120px 1fr; gap: 48px;
  padding: 48px 0; border-top: 1px solid rgba(255, 255, 255, .14);
  max-width: 1000px; margin: 0 auto;
}
.ps--last { padding-bottom: 104px; }
.ps__label { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--coral); }
.ps__body p { font-size: 16.5px; line-height: 1.75; color: var(--on-dark); margin-bottom: 18px; }
.ps__body p:last-child { margin-bottom: 0; }
.ps__body .ps__big { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.45; color: #fff; }
.ps__body .ps__lead-in { margin-bottom: 14px; }
.ps__body .ps__closing { margin-bottom: 32px; }
.ps__choices { margin-bottom: 22px; }
.ps__choices li {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 16.5px; line-height: 1.7; color: var(--on-dark);
}
.ps__choices li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.ps__n { color: var(--coral); font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); --accent: var(--rust); }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px;
  padding: 72px 0 52px;
}
.footer__about { max-width: 400px; }
.brand__name--footer { font-size: 24px; color: var(--ink); margin-bottom: 16px; }
.footer__text { font-size: 15px; line-height: 1.75; color: var(--body); }
.footer__text--gap { margin-bottom: 14px; }
.footer__heading {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rust); margin-bottom: 20px;
}
.footer__heading--flush { margin-bottom: 0; }
.footer__legal { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__pill {
  display: inline-block; padding: 9px 18px; border: 1px solid #e0d8cc; border-radius: 8px;
  font-size: 14px; color: var(--body); transition: border-color .2s, color .2s;
}
.footer__pill:hover { border-color: var(--rust); color: var(--rust); }
.footer__link {
  font-size: 15px; color: var(--green);
  border-bottom: 1px solid rgba(47, 107, 79, .35); padding-bottom: 2px;
}
.footer__link:hover { color: var(--green-dark); }
.footer__cites {
  display: grid; grid-template-columns: 220px 1fr; gap: 56px;
  padding: 44px 0; border-top: 1px solid #e9e2d8;
}
.footer__cite-list { max-width: 780px; display: flex; flex-direction: column; gap: 12px; }
.footer__cite-list p { font-size: 14px; line-height: 1.7; color: var(--body); }
.footer__bottom { padding: 30px 0 56px; border-top: 1px solid #e9e2d8; font-size: 13.5px; color: var(--muted); }

/* ---------- Chat widget ---------- */
.chat {
  position: fixed; right: 32px; bottom: 32px; z-index: 100;
  display: none; flex-direction: column; align-items: flex-end; gap: 14px;
}
.js .chat { display: flex; }
.chat__panel {
  width: 380px; max-width: calc(100vw - 64px);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 26px 60px rgba(20, 38, 31, .16);
}
.chat__panel[hidden] { display: none; }
.chat__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; background: var(--forest);
}
.chat__title { font-family: var(--serif); font-size: 19px; color: #fff; }
.chat__status { font-size: 12px; color: var(--on-dark-muted); margin-top: 2px; }
.chat__close {
  background: none; border: 0; cursor: pointer; font-size: 17px; line-height: 1;
  color: var(--on-dark-muted); padding: 4px; transition: color .2s;
}
.chat__close:hover { color: #fff; }
.chat__close:focus-visible { outline-color: var(--coral); }
.chat__log {
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
  max-height: 340px; overflow-y: auto; overscroll-behavior: contain;
}
.msg { font-size: 14.5px; padding: 12px 15px; overflow-wrap: anywhere; }
.msg--user {
  align-self: flex-end; max-width: 84%; background: var(--green); color: #fff;
  line-height: 1.6; border-radius: 14px 14px 4px 14px;
}
.msg--bot {
  align-self: flex-start; max-width: 90%; background: #f6f2ec; color: var(--body);
  line-height: 1.65; border-radius: 14px 14px 14px 4px;
}
.msg a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.chat__form { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line-soft); padding: 12px 14px; }
.chat__input {
  flex: 1; min-width: 0; border: 0; outline: none; font-size: 14.5px;
  color: var(--text); background: transparent; padding: 8px 4px;
}
.chat__send {
  background: var(--green); color: #fff; border: 0; border-radius: 8px;
  padding: 10px 17px; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .2s;
}
.chat__send:hover { background: var(--green-dark); }
.chat__foot { padding: 10px 22px 14px; font-size: 11.5px; color: var(--faint); border-top: 1px solid var(--line-soft); }
.chat__toggle {
  position: relative; background: var(--green); color: #fff; border: 0;
  border-radius: 22px 22px 6px 22px; padding: 16px 26px;
  font-size: 14.5px; font-weight: 500; cursor: pointer;
  box-shadow: 0 14px 32px rgba(20, 38, 31, .18);
  transition: background .2s, transform .2s;
}
.chat__toggle::after {
  content: ""; position: absolute; right: 0; bottom: -9px; width: 0; height: 0;
  border-left: 14px solid var(--green); border-bottom: 10px solid transparent;
  transition: border-color .2s;
}
.chat__toggle:hover { background: var(--green-dark); transform: translateY(-2px); }
.chat__toggle:hover::after { border-left-color: var(--green-dark); }

/* ---------- Scroll animations (only when JS is running) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-draw] path, .js [data-draw] polyline { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.js [data-draw].is-in path, .js [data-draw].is-in polyline { animation: draw 1.8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js [data-draw] path, .js [data-draw] polyline { stroke-dashoffset: 0 !important; animation: none !important; }
  .caret { animation: none; }
  .btn, .chat__toggle, .nav { transition: none; }
  .btn:hover, .chat__toggle:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .split { gap: 48px; }
}

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; gap: 20px; }
  .duo, .fit__grid { grid-template-columns: 1fr; gap: 20px; }
  .offset, .offset-lg { margin-top: 0; }
  .split { grid-template-columns: 1fr; gap: 40px; padding-bottom: 72px; }
  .splits--process .split { padding-bottom: 72px; }
  .split__text { max-width: 620px; }
  .browser { max-width: 560px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__about { grid-column: 1 / -1; }
  .footer__cites { grid-template-columns: 1fr; gap: 16px; }
  .ps { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --nav-h: 66px; }
  .nav__inner { gap: 16px; }
  .nav__link, .brand__tag { display: none; }
  .brand__name { font-size: 20px; }
  .btn--sm { padding: 11px 16px; font-size: 13px; }

  .hero__copy { padding-top: 116px; }
  .hero__sub { margin-bottom: 52px; }
  .answer { padding-bottom: 72px; }
  .answer__bar { padding: 14px 16px; }
  .answer__icons, .answer__spacer { display: none; }
  .answer__body { padding: 24px 18px 24px; }
  .bubble { font-size: 15px; padding: 12px 16px; }
  .answer__a { gap: 10px; }
  .answer__intro { font-size: 18px; }
  .rank li { grid-template-columns: 20px 1fr auto; gap: 10px; }
  .rank__name { font-size: 15px; }

  .section-head, .enemy, .path, .fit { padding-top: 80px; }
  .enemy, .path { padding-bottom: 80px; }
  .fit { padding-bottom: 80px; }
  .enemy__head { margin-bottom: 48px; }
  .section-lede { font-size: 16.5px; }
  .path__lede { margin-bottom: 48px; }
  .fit__lede { margin-bottom: 44px; }

  .realities, .future { padding: 28px 24px; }
  .stat { padding: 30px 24px; }
  .card--panel, .scan, .growth { padding: 24px 20px; }
  .path__box { padding: 32px 24px; }
  .fit__card { padding: 28px 22px 24px; }

  .splits, .splits--process { padding-top: 56px; }
  .split:last-child, .splits--process .split:last-child { padding-bottom: 80px; }
  .browser__window { transform: rotateY(-6deg) rotateX(3deg); }
  .browser__pill { right: 8px; }
  .scan__row { grid-template-columns: 80px 1fr 36px; gap: 12px; }

  .cta-block { padding: 64px 0 80px; }
  .cta-block--future { padding: 56px 0 80px; }
  .cta-block--faq { padding: 40px 0 80px; }
  .btn { padding: 16px 26px; }
  .btn--lg { padding: 18px 28px; font-size: 16px; }

  .faqs { padding-top: 40px; }
  .faq summary { padding: 20px 20px; }
  .faq__row { gap: 16px; }
  .faq__a { padding: 0 20px 22px; }
  .faq__a p { font-size: 16px; }
  .faq__table div { grid-template-columns: 1fr; gap: 4px; }

  .close__hero { padding: 88px 0 56px; }
  .close__text { font-size: 17px; }
  .ps { padding: 36px 0; }
  .ps--last { padding-bottom: 88px; }

  .footer__top { grid-template-columns: 1fr; padding: 56px 0 40px; }

  .chat { right: 16px; bottom: 16px; }
  .chat__panel { max-width: calc(100vw - 32px); }
  .chat__input { font-size: 16px; }
  .chat__toggle { padding: 14px 22px; }
}

@media (max-width: 400px) {
  .brand__name { font-size: 18px; }
  .btn--sm { padding: 10px 13px; font-size: 12.5px; }
}
