/* ==========================================================================
   Buzzin — landing design system
   Scoped to index.html and pricing.html. The other pages (docs, terms,
   privacy, download, my-account, 404) still use base/layout/components.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — warm off-white paper */
  --paper: #FAFAF7;
  --paper-sunk: #F4F3EE;
  --surface: #FFFFFF;

  /* Ink */
  --ink: #15202B;
  --ink-muted: #4A5866;
  --ink-faint: #6E7D8C;

  /* Action — deep teal. The amber below is the bee, kept for accents only. */
  --accent: #0B5B6B;
  --accent-deep: #073E4A;
  --accent-tint: #E6F0F2;
  --honey: #F9B70C;
  --honey-tint: #FEF6E0;

  --positive: #2F7D4F;
  --positive-tint: #EAF4ED;

  --line: #E4E2DA;
  --line-strong: #D2CFC4;

  /* Dark chrome. The logo PNG has a white wordmark, so the header and footer
     that carry it must stay dark — do not lighten these without shipping a
     dark-wordmark logo variant first. */
  --chrome: #12222B;
  --chrome-line: rgba(255, 255, 255, .12);
  --chrome-text: #C4D2DB;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  --shadow-sm: 0 1px 2px rgba(21, 32, 43, .05);
  --shadow-md: 0 4px 16px -4px rgba(21, 32, 43, .08), 0 1px 3px rgba(21, 32, 43, .04);
  --shadow-lg: 0 24px 60px -20px rgba(21, 32, 43, .18), 0 8px 20px -12px rgba(21, 32, 43, .1);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shell: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 68px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -.022em;
  font-weight: 640;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-underline-offset: .18em; }

button { font: inherit; color: inherit; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; top: .5rem; left: .5rem; z-index: 100;
  padding: .625rem 1rem; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; font-weight: 600;
  text-decoration: none; transform: translateY(-160%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 760px; }

.band { padding-block: clamp(4rem, 9vw, 7.5rem); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band--sunk { background: var(--paper-sunk); }
.band--ink { background: var(--chrome); color: #F3F5F7; }
.band--ink h2, .band--ink h3 { color: #fff; }

.rule { height: 1px; border: 0; margin: 0; background: var(--line); }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ''; width: 18px; height: 1px; background: currentColor;
}
.band--ink .eyebrow { color: var(--honey); }

.display {
  font-size: clamp(2.5rem, 5.4vw, 4.125rem);
  font-weight: 660;
  letter-spacing: -.032em;
}
.display em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.01em;
}

.h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-muted);
}

.section-head { max-width: 46rem; }
.section-head > * + * { margin-top: 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

.fine { font-size: .875rem; line-height: 1.55; color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8125rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .9375rem; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .18s var(--ease); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }
.btn--primary:hover svg { transform: translateX(3px); }

.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--honey-tint); transform: translateY(-1px); }

.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; }

.textlink {
  display: inline-flex; align-items: center; gap: .375rem;
  font-weight: 600; font-size: .9375rem; text-decoration: none;
}
.textlink::after { content: '→'; transition: transform .18s var(--ease); }
.textlink:hover { text-decoration: underline; }
.textlink:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 34, 43, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease),
              box-shadow .2s var(--ease);
}
.nav.is-stuck {
  background: var(--chrome);
  border-bottom-color: var(--chrome-line);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .55);
}

.nav__bar {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--nav-h);
}
.nav__brand { margin-right: auto; display: flex; align-items: center; }
.nav__brand img { height: 26px; width: auto; }

.nav__links { display: none; align-items: center; gap: 1.5rem; }
.nav__link {
  position: relative;
  font-size: .9375rem; font-weight: 500; color: var(--chrome-text);
  text-decoration: none; padding-block: .25rem;
  transition: color .16s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--honey); transform: scaleX(0); transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current='page']::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { color: #fff; }

.nav__actions { display: flex; align-items: center; gap: .875rem; }
.nav__signin { display: none; font-size: .9375rem; font-weight: 500; color: var(--chrome-text); text-decoration: none; }
.nav__signin:hover { color: #fff; }

/* Teal fails contrast on the dark bar, so the nav CTA takes the brand amber.
   Deep teal remains the action colour everywhere on the light page. */
.nav .btn--primary { background: var(--honey); color: #15202B; }
.nav .btn--primary:hover { background: #FFC931; }
.nav .btn { padding: .625rem 1.125rem; font-size: .875rem; }

.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--chrome-line);
  border-radius: var(--radius-sm); cursor: pointer; color: var(--chrome-text);
}
.nav__toggle svg { width: 20px; height: 20px; }

.nav__drawer {
  display: none; flex-direction: column; gap: .25rem;
  padding: .5rem var(--gutter) 1.5rem;
  border-top: 1px solid var(--chrome-line);
  background: var(--chrome);
}
.nav__drawer.is-open { display: flex; }
.nav__drawer a:not(.btn) {
  padding: .75rem 0; font-weight: 500; color: var(--chrome-text);
  text-decoration: none; border-bottom: 1px solid var(--chrome-line);
}
.nav__drawer a:not(.btn):hover { color: #fff; }
.nav__drawer .btn { margin-top: 1rem; }

@media (min-width: 980px) {
  .nav__links, .nav__signin { display: flex; }
  .nav__toggle { display: none; }
  .nav__drawer { display: none !important; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }

.hero__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
}

.hero__copy > * + * { margin-top: 1.5rem; }
.hero__copy .display { margin-top: 1.25rem; }
.hero__lede { max-width: 34rem; }

.hero__meta {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; color: var(--ink-faint);
}
.hero__meta svg { width: 15px; height: 15px; color: var(--positive); flex: none; }

/* Credibility strip */
.creds {
  display: grid; gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .creds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.creds__item {
  display: flex; align-items: center; gap: .625rem;
  padding: 1.25rem clamp(.75rem, 2vw, 1.5rem);
  background: var(--paper);
  font-size: .875rem; font-weight: 550; color: var(--ink-muted);
}
.creds__item svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* --------------------------------------------------------------------------
   Product UI frame (screenshots + mockups)
   -------------------------------------------------------------------------- */
.frame {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.frame__chrome {
  display: flex; align-items: center; gap: .5rem;
  padding: .625rem .875rem;
  background: #F0EFEA;
  border-bottom: 1px solid var(--line);
}
.frame__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.frame__label {
  margin-left: .5rem;
  font-family: var(--font-mono); font-size: .6875rem;
  letter-spacing: .02em; color: var(--ink-faint);
}
.frame__body { padding: 0; }
.frame img { width: 100%; }

.frame__caption {
  display: flex; align-items: center; gap: .5rem;
  margin-top: .875rem;
  font-size: .8125rem; color: var(--ink-faint);
}
.frame__caption::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-strong); flex: none;
}

/* Screenshot crops: show one valuable region, not a whole dashboard. */
.crop { overflow: hidden; }
.crop img { width: 100%; object-fit: cover; object-position: top left; }
.crop--sidebar img { object-position: top right; aspect-ratio: 16 / 11; }
.crop--topics img { object-position: 22% top; aspect-ratio: 16 / 10; }
.crop--settings img { object-position: top left; aspect-ratio: 16 / 10; }

/* Annotation pins */
.pin {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4375rem .75rem;
  background: var(--ink); color: #fff;
  font-size: .75rem; font-weight: 600; letter-spacing: -.005em;
  border-radius: 99px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.pin__num {
  display: grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--honey); color: var(--ink);
  font-size: .625rem; font-weight: 700;
}

/* --------------------------------------------------------------------------
   Post Review mockup — a CSS rendering of the real Gutenberg panel.
   Labelled in the markup as an illustration, never as a screenshot.
   -------------------------------------------------------------------------- */
.review {
  padding: 1.125rem;
  font-size: .8125rem;
  background: var(--surface);
}
.review__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: .875rem; border-bottom: 1px solid var(--line);
}
.review__title { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .875rem; }
.review__title svg { width: 16px; height: 16px; color: var(--accent); }
.review__meta { font-size: .6875rem; color: var(--ink-faint); }

.review__grade {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 0;
}
.grade-badge {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--positive); color: #fff;
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em;
  flex: none;
}
.grade-badge[data-grade^='C'] { background: var(--honey); color: var(--ink); }
.review__grade-copy { font-size: .75rem; color: var(--ink-muted); line-height: 1.45; }
.review__grade-copy strong { display: block; font-size: .8125rem; color: var(--ink); }

.review__delta {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .125rem .4375rem; border-radius: 99px;
  background: var(--positive-tint); color: var(--positive);
  font-size: .6875rem; font-weight: 700;
}

.score { margin-top: .75rem; }
.score__row {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: .6875rem; color: var(--ink-muted); margin-bottom: .3125rem;
}
.score__row b { font-size: .8125rem; color: var(--ink); }
.score__track { height: 6px; border-radius: 99px; background: var(--paper-sunk); overflow: hidden; }
.score__fill {
  height: 100%; border-radius: 99px; background: var(--accent);
  width: var(--to, 0%);
  transition: width 1.1s var(--ease);
}
.is-revealed .score__fill { width: var(--to); }

.wins {
  margin-top: 1rem; padding: .875rem;
  border-radius: var(--radius-sm);
  background: var(--positive-tint);
  border-left: 3px solid var(--positive);
}
.wins__head {
  font-size: .6875rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #1B5E20; margin-bottom: .5rem;
}
.wins li {
  display: flex; gap: .5rem;
  font-size: .75rem; line-height: 1.45; color: #2E5C3A;
}
.wins li + li { margin-top: .4375rem; }
.wins li span { font-weight: 700; flex: none; }

.review__foot {
  margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .6875rem; color: var(--ink-faint);
}
.review__btn {
  padding: .4375rem .75rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: .6875rem; font-weight: 600; color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Workflow narrative
   -------------------------------------------------------------------------- */
.flow {
  display: grid; gap: 1px;
  margin-top: 3rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 860px) { .flow { grid-template-columns: repeat(4, 1fr); } }

.flow__step {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper);
  transition: background-color .25s var(--ease);
}
.flow__step:hover { background: var(--surface); }

.flow__num {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: .6875rem; color: var(--ink-faint);
  background: var(--surface);
}
.flow__step.is-visible .flow__num {
  border-color: var(--accent); color: var(--accent);
}
.flow__name { margin-top: 1rem; font-size: 1.0625rem; font-weight: 640; }
.flow__text { margin-top: .5rem; font-size: .9375rem; color: var(--ink-muted); }

.flow__track {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
}
.flow__step.is-visible .flow__track { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   Job sections — alternating large storytelling blocks
   -------------------------------------------------------------------------- */
.job { padding-block: clamp(3.5rem, 7vw, 6rem); }
.job + .job { border-top: 1px solid var(--line); }

.job__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .job__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job--flip .job__visual { order: -1; }
}

.job__copy > * + * { margin-top: 1.25rem; }
.job__claim {
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  font-weight: 600; line-height: 1.4; letter-spacing: -.015em;
}
.job__body { color: var(--ink-muted); }

.job__list { margin-top: 1.5rem; }
.job__list li {
  display: flex; gap: .75rem;
  padding: .625rem 0;
  font-size: .9375rem; color: var(--ink-muted);
  border-top: 1px solid var(--line);
}
.job__list li svg { width: 16px; height: 16px; margin-top: .3125rem; color: var(--accent); flex: none; }
.job__list strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   AEO / GEO education
   -------------------------------------------------------------------------- */
.defs { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 860px) { .defs { grid-template-columns: repeat(3, 1fr); } }

.def {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.def:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.def__tag {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 600;
  letter-spacing: .06em; color: var(--accent);
}
.def__name { margin-top: .625rem; font-size: 1.125rem; font-weight: 640; }
.def__text { margin-top: .75rem; font-size: .9375rem; color: var(--ink-muted); }

.caveat {
  display: flex; gap: .875rem;
  margin-top: 2.5rem; padding: 1.25rem 1.5rem;
  background: var(--honey-tint);
  border: 1px solid #F0DFAF;
  border-radius: var(--radius);
  font-size: .9375rem; line-height: 1.55; color: #5C4708;
}
.caveat svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; }

/* --------------------------------------------------------------------------
   Proof — before / after
   -------------------------------------------------------------------------- */
.proof { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 880px) { .proof { grid-template-columns: repeat(2, 1fr); } }

.proof__card {
  display: flex; flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.proof__card--after { border-color: var(--accent); box-shadow: var(--shadow-md); }

.proof__label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint);
}
.proof__card--after .proof__label { color: var(--accent); }

.proof__grade {
  display: flex; align-items: baseline; gap: .625rem;
  margin-top: 1rem;
}
.proof__grade b { font-size: 2.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.proof__card--before .proof__grade b { color: var(--honey); }
.proof__card--after .proof__grade b { color: var(--positive); }
.proof__scores { font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-faint); }

.proof__list { margin-top: 1.25rem; }
.proof__list li {
  display: flex; gap: .625rem;
  padding: .5rem 0;
  font-size: .9375rem; color: var(--ink-muted);
  border-top: 1px solid var(--line);
}
.proof__list svg { width: 15px; height: 15px; margin-top: .3125rem; flex: none; }
.proof__card--before svg { color: var(--ink-faint); }
.proof__card--after svg { color: var(--positive); }

/* --------------------------------------------------------------------------
   Personas
   -------------------------------------------------------------------------- */
.tabs__list {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 2.5rem;
  padding: .3125rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-sunk);
  width: fit-content;
}
.tabs__tab {
  padding: .625rem 1.125rem;
  border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-muted);
  font-size: .9375rem; font-weight: 600; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected='true'] {
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm);
}

.tabs__panel {
  margin-top: 2rem;
  display: grid; gap: 2rem;
  animation: fade-up .35s var(--ease);
}
.tabs__panel[hidden] { display: none; }
@media (min-width: 900px) { .tabs__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }

.tabs__panel h3 { font-size: 1.375rem; }
.tabs__panel p { margin-top: .875rem; color: var(--ink-muted); }

.persona-steps li {
  display: flex; gap: .875rem;
  padding: .875rem 0;
  border-top: 1px solid var(--line);
  font-size: .9375rem; color: var(--ink-muted);
}
.persona-steps b {
  font-family: var(--font-mono); font-size: .75rem;
  color: var(--accent); flex: none; padding-top: .2rem;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.billing {
  display: inline-flex; align-items: center; gap: .875rem;
  margin-top: 2rem;
  font-size: .9375rem; font-weight: 550; color: var(--ink-faint);
}
.billing__opt { transition: color .18s var(--ease); }
.billing__opt.is-on { color: var(--ink); }

.billing__switch {
  position: relative;
  width: 48px; height: 27px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 99px;
  background: var(--surface); cursor: pointer;
  transition: background-color .22s var(--ease), border-color .22s var(--ease);
}
.billing__switch[aria-checked='true'] { background: var(--accent); border-color: var(--accent); }
.billing__switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--ink-faint);
  transition: transform .22s var(--ease), background-color .22s var(--ease);
}
.billing__switch[aria-checked='true']::after { transform: translateX(21px); background: #fff; }

.billing__save {
  padding: .1875rem .5rem; border-radius: 99px;
  background: var(--honey-tint); color: #7A5C05;
  font-size: .75rem; font-weight: 700;
}

.plan-card {
  position: relative;
  max-width: 560px; margin: 2.5rem auto 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.plan-card__name { font-size: 1.25rem; font-weight: 640; }
.plan-card__pitch { margin-top: .375rem; color: var(--ink-muted); font-size: .9375rem; }

.plan-card__price {
  display: flex; align-items: baseline; gap: .375rem;
  margin-top: 1.5rem;
}
.plan-card__amount {
  font-size: clamp(3rem, 6vw, 3.75rem); font-weight: 680;
  letter-spacing: -.035em; line-height: 1;
}
.plan-card__cur { font-size: 1.5rem; font-weight: 600; align-self: flex-start; padding-top: .35rem; }
.plan-card__per { font-size: 1rem; color: var(--ink-faint); }

.plan-card__note {
  margin-top: .625rem; min-height: 1.4rem;
  font-size: .9375rem; color: var(--ink-muted);
}
.plan-card__note b { color: var(--positive); }

.plan-card .btn { margin-top: 1.75rem; }

.plan-card__reassure {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  margin-top: 1rem;
}
.plan-card__reassure li {
  display: flex; align-items: center; gap: .375rem;
  font-size: .8125rem; color: var(--ink-faint);
}
.plan-card__reassure svg { width: 14px; height: 14px; color: var(--positive); }

.plan-card__divider {
  margin: 1.75rem 0 1.25rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-faint);
}

.plan-features { columns: 1; }
@media (min-width: 560px) { .plan-features { columns: 2; column-gap: 1.75rem; } }
.plan-features li {
  display: flex; gap: .5rem;
  break-inside: avoid;
  padding: .3125rem 0;
  font-size: .875rem; color: var(--ink-muted);
}
.plan-features svg { width: 14px; height: 14px; margin-top: .3125rem; color: var(--accent); flex: none; }
.plan-features strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: 100%; padding: 1.375rem 0;
  background: none; border: 0; cursor: pointer;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -.012em;
  text-align: left; color: var(--ink);
}
.faq__sign {
  position: relative; flex: none; width: 15px; height: 15px;
}
.faq__sign::before, .faq__sign::after {
  content: ''; position: absolute; inset: 50% 0 auto 0;
  height: 1.5px; background: var(--ink-faint);
  transition: transform .22s var(--ease);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__q[aria-expanded='true'] .faq__sign::after { transform: rotate(0); }

.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .28s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding-bottom: 1.375rem;
  max-width: 58rem; color: var(--ink-muted); font-size: .9375rem;
}
.faq__a p + p { padding-top: .875rem; margin-top: -.5rem; }

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */
.closer { text-align: center; }
.closer .display { max-width: 20ch; margin-inline: auto; }
.closer .lede { max-width: 46ch; margin: 1.5rem auto 0; color: #B9C6D1; }
.closer .btn-row { justify-content: center; margin-top: 2.25rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
/* Dark, so the white-wordmark logo stays legible — and so the ink closing CTA
   flows straight into the footer as one base rather than two stacked bands. */
.foot { background: var(--chrome); color: var(--chrome-text); padding-block: 3.5rem 2.5rem; }
.foot__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) { .foot__grid { grid-template-columns: 2fr repeat(3, 1fr); } }

.foot__brand img { height: 26px; width: auto; }
.foot__tagline { margin-top: 1rem; max-width: 28ch; font-size: .9375rem; color: var(--chrome-text); }

.foot h4 {
  font-size: .75rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: #8B9BA8;
}
.foot__links { margin-top: 1rem; display: grid; gap: .625rem; }
.foot__links a { font-size: .9375rem; color: var(--chrome-text); text-decoration: none; }
.foot__links a:hover { color: #fff; text-decoration: underline; }

.foot__base {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--chrome-line);
  font-size: .8125rem; color: #8B9BA8;
}
.foot__base nav { display: flex; gap: 1.25rem; }
.foot__base a { color: inherit; text-decoration: none; }
.foot__base a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .score__fill { width: var(--to); }
}

@media print {
  .nav, .closer, .foot { display: none; }
}

/* --------------------------------------------------------------------------
   Honeycomb texture on the dark chrome.
   Decorative only: applied to ::before so it never sits above content, and
   kept faint so nav links and footer text keep their contrast ratios.
   -------------------------------------------------------------------------- */
.nav, .foot, .band--ink { position: relative; }

.nav::before, .foot::before, .band--ink::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/patterns/honeycomb-bg.svg');
  background-repeat: no-repeat;
  opacity: .07;
  pointer-events: none;
}

.nav::before {
  background-position: right -60px center;
  background-size: auto 220%;
}
.foot::before {
  background-position: left -40px bottom -80px;
  background-size: auto 150%;
  opacity: .08;
}
.band--ink::before {
  background-position: right -80px top -60px;
  background-size: auto 170%;
  opacity: .06;
}

/* Keep content above the texture. */
.nav__bar, .foot .shell, .band--ink .shell { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Long-form pages (docs, legal, download, 404, account)
   -------------------------------------------------------------------------- */
.page-head {
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.03em;
}
.page-head p { margin-top: 1rem; max-width: 46rem; }

.prose {
  max-width: 46rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-muted);
}
.prose > * + * { margin-top: 1.25rem; }

.prose h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -.03em;
  color: var(--ink);
}
.prose h2 {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  color: var(--ink);
}
.prose h1 + h2, .prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
  margin-top: 2rem;
  font-size: 1.1875rem;
  color: var(--ink);
}
.prose h4 { margin-top: 1.5rem; font-size: 1rem; color: var(--ink); }

.prose a { font-weight: 500; text-decoration: underline; }
.prose strong { color: var(--ink); font-weight: 600; }

.prose ul, .prose ol { padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: .5rem; }
.prose li::marker { color: var(--ink-faint); }

.prose code {
  padding: .125em .375em;
  border-radius: 4px;
  background: var(--paper-sunk);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .875em;
  color: var(--ink);
}
.prose pre {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #E6EDF3;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .875rem;
  line-height: 1.6;
}
.prose pre code { padding: 0; border: 0; background: none; color: inherit; }

.prose blockquote {
  margin-inline: 0;
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}
.prose th, .prose td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.prose th { color: var(--ink); font-weight: 600; }

.prose hr { height: 1px; border: 0; background: var(--line); margin-block: 2.5rem; }

/* Table of contents / jump links */
.toc {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc h2, .toc h3 {
  margin: 0 0 .75rem;
  padding: 0;
  border: 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.toc ul { padding-left: 0; list-style: none; }
.toc li { margin-top: .375rem; }

/* --------------------------------------------------------------------------
   Compatibility shims for markup carried over from the previous design.
   These let the docs and legal pages adopt the new system without rewriting
   their body content.
   -------------------------------------------------------------------------- */
.legal-content { }

.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card h3 { margin-top: 0; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.alert {
  display: flex;
  gap: .875rem;
  padding: 1.125rem 1.25rem;
  border-radius: var(--radius);
  background: var(--accent-tint);
  border: 1px solid #C9DDE1;
  color: var(--ink-muted);
  font-size: .9375rem;
  line-height: 1.6;
}
.alert svg { width: 18px; height: 18px; flex: none; margin-top: .25rem; color: var(--accent); }
.alert__title { font-weight: 600; color: var(--ink); }
.alert__text { margin-top: .25rem; }
.alert--warning { background: var(--honey-tint); border-color: #F0DFAF; }
.alert--warning svg { color: #B8870A; }
.alert--success { background: var(--positive-tint); border-color: #BFDCC9; }
.alert--success svg { color: var(--positive); }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
