/* CSMax site design system. Tokens first, then base, layout, components.
   Class list and copy-paste snippets: assets/COMPONENTS.md */

/* Same fonts as tikscale.net (read from its page, 2026-10-16): Archivo Black for display, DM Sans for everything else.
   Self-hosted since 2026-10-17 (both SIL OFL 1.1, license in fonts/OFL.txt), so no visitor IP goes to Google and the site
   makes zero outside requests. Latin subset only: other characters fall back to the system font.
   Preload only the hero font, in each page <head>:
   <link rel="preload" href="assets/fonts/archivo-black-latin.woff2" as="font" type="font/woff2" crossorigin> */
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/archivo-black-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 800;          /* one variable file covers 400, 500, 600, 700 and 800 */
  font-display: swap;
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;

  /* palette (2026-10-17): five greens, dark to light. Page surfaces stay beige/cream; the old orange palette is gone.
     --forest #12362C   --pine #1A4A3A   --moss #3D6F61   --sage #93A8A1   --mist #E6ECEA */
  --forest: #12362C;
  --pine: #1A4A3A;
  --moss: #3D6F61;
  --sage: #93A8A1;
  --mist: #E6ECEA;
  --cream: #FFF7EC;
  --beige: #F5EFE6;
  --beige-2: #EDE4D6;
  --paper: #FBF7F1;            /* card surface, a touch lighter than the page */
  --ink: #12362C;              /* darkest green (--forest): all body and heading text, 11.6:1 on beige */
  --charcoal: #2B2724;         /* surfaces only (dark bands, dark buttons, borders, shadows). Never text colour: text is --ink */
  --ink-2: #2F5E50;            /* muted text: a shade between --pine and --moss, 5.9:1 on beige-2 */
  --line: #DCD1C1;             /* hairlines and card borders */
  --accent-text: #1A4A3A;      /* green links and eyebrows on beige (--pine), 8.0:1 or better */
  --on-ink: #E9DFD2;           /* light text on charcoal (footer, dark video slot) */
  --on-ink-2: #CFC3B3;         /* muted text on charcoal */
  --placeholder: #5A7A70;      /* form placeholder text on white, 4.7:1 */
  --field-border: #6B8A80;     /* form field border on white and paper, 3.5:1 or better (WCAG 1.4.11) */

  --grain: url("grain.svg");

  /* type */
  --font-display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.35rem, 1.1rem + 5.2vw, 4.75rem);
  --fs-h2: clamp(1.85rem, 1.05rem + 3.2vw, 3.25rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.78rem;
  --lh-tight: 1.04;
  --lh-snug: 1.2;
  --lh-body: 1.6;

  /* spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --gutter: 16px;
  --max: 1200px;
  --max-narrow: 860px;

  /* radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(43, 39, 36, 0.06), 0 2px 8px rgba(43, 39, 36, 0.05);
  --shadow-md: 0 2px 6px rgba(43, 39, 36, 0.06), 0 12px 32px rgba(43, 39, 36, 0.08);
  --shadow-glow: 0 10px 26px rgba(18, 54, 44, 0.22), 0 2px 6px rgba(18, 54, 44, 0.14);   /* soft green drop shadow under pills */
  /* a clean subtle edge on the green surfaces: one 1px hairline in --moss at 55%, nothing else. Static. */
  --rim: inset 0 0 0 1px rgba(61, 111, 97, 0.55);

  --focus: var(--charcoal);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 720px) {
  :root { --gutter: 24px; }
}

/* ---------- 1b. Approved colour pairs (checked by tests/contrast.mjs, WCAG 2.2 AA) ----------
   Use only these. A new pair gets added to the test first. Light surfaces = beige, beige-2, cream, paper, white.
   Normal text, 4.5:1 or more:
     --ink, --ink-2, --accent-text      on any light surface
     --cream, --on-ink, --on-ink-2, --sage   on --charcoal (#2B2724: footer, dark video slot, dark bands, dark buttons)
     --ink   on solid --sage (5.26:1): pills, .btn--primary, panel CTA, numbered circles
     --placeholder   on white (form fields)
   Large text only (24px+, or 18.66px+ bold), 3:1 or more:
     .text-accent (solid --moss)   on any light surface
     .text-accent on a dark band (solid --sage)   on --charcoal
   UI parts and focus rings, 3:1 or more:
     --focus: var(--charcoal)  on light surfaces and on the solid sage surfaces (the default); --charcoal is also for borders, shadows, glyphs
     --focus: var(--cream)  on charcoal surfaces: every dark block sets it, as .footer does
     --field-border         on white and paper
   There are no gradients on the site (John 2026-10-18); every surface is a solid palette colour.
   Not for text: --line (decoration only). --pine and --moss are fine as text on light
   surfaces (see --accent-text), never on --sage or on --charcoal. --charcoal is for surfaces, borders and shadows only, never text.
   Not measured by the test: the grain soft-light layer. It is faint; check by eye when it changes. */

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;   /* Archivo Black has one weight; never fake-bold it */
}
h1, .h1 { letter-spacing: -0.04em; }   /* tikscale sets its display type tight */
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-snug);
  margin: 0 0 var(--s-4);
  overflow-wrap: break-word;
  letter-spacing: -0.01em;
}
p { margin: 0 0 var(--s-4); }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
ul, ol { padding-left: 1.2em; }
::selection { background: var(--sage); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  background: var(--charcoal);
  color: var(--cream);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--s-4); color: var(--cream); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--max-narrow); }
.section { padding-block: var(--s-8); }
.section--alt { background: var(--beige-2); }
@media (min-width: 960px) { .section { padding-block: var(--s-9); } }
.section--tight { padding-block: var(--s-7); }   /* after the 960px .section rule, so the modifier wins at every width */

.section__head { max-width: 820px; margin: 0 auto var(--s-7); text-align: center; }
.section__head .lead, .hero .lead { margin-inline: auto; }   /* before the --left fix below, so --left wins */
.section__head--left { margin-inline: 0; text-align: left; }
.section__head--left .lead { margin-inline: 0; text-align: left; }
.section__head--split {
  max-width: none; text-align: left;
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--s-3);
}
.display {
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1.12;            /* Archivo Black is tall; tighter lines let the accent box cover the line above */
  letter-spacing: -0.035em;
}
.h2 { font-size: var(--fs-h2); font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; }
.h3 { font-size: var(--fs-h3); font-weight: 800; }
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 680px; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.text-accent {
  color: var(--moss);            /* solid moss, 5.0:1 on beige */
}
/* one accent phrase inside a headline; large text only */
/* on a dark green band the moss would be too dim, so the accent words switch to sage */
:is(.footer, .picker-foot, .video-slot--empty, .sec-cta-band) .text-accent { color: var(--sage); }
.center { text-align: center; }

.grid { display: grid; gap: var(--s-5); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) and (max-width: 959px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

.stack > * + * { margin-top: var(--s-4); }

/* ---------- 4. Accent box (hero phrase in a solid box) ---------- */
.accent-box {
  display: inline;
  background: var(--sage);
  color: var(--ink);
  box-shadow: var(--rim);
  padding: 0 0.2em 0.04em;
  border-radius: 0.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--charcoal);
  --btn-fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  --btn-fg: var(--ink);
  background: var(--sage);   /* grain and edge come from 17b */
  box-shadow: var(--rim), var(--shadow-glow);
}
.btn--dark { --btn-bg: var(--charcoal); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--charcoal); }
.btn--ghost:hover { --btn-bg: var(--charcoal); --btn-fg: var(--cream); }
.btn--cream { --btn-bg: var(--cream); --btn-fg: var(--ink); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* big tikscale-style pill CTA: the guillemets are drawn by CSS and hidden from screen readers */
.cta-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.9em;
  width: min(100%, 520px);
  min-height: 64px;
  padding: 18px 28px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--sage);   /* grain and edge come from 17b */
  color: var(--ink);
  font: 900 clamp(1.17rem, 1.1rem + 0.3vw, 1.3rem)/1.2 var(--font-display);   /* 18.7px+ bold: large text; solid sage passes 4.5:1 anyway */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--rim), var(--shadow-glow);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.cta-pill::before { content: "\00BB"; content: "\00BB" / ""; }
.cta-pill::after { content: "\00AB"; content: "\00AB" / ""; }
.cta-pill:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--rim), 0 14px 32px rgba(18, 54, 44, 0.28), 0 3px 8px rgba(18, 54, 44, 0.16); }
@media (max-width: 479px) {
  .cta-pill { gap: 0.6em; padding-inline: 18px; letter-spacing: 0.07em; }
}
.cta-pill__sub { display: block; margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--ink-2); text-align: center; }

/* ---------- 6. Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 230, 0.92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
}
.nav--scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: var(--s-5); min-height: 72px; }
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 900 1.45rem/1 var(--font-display); letter-spacing: -0.02em;
}
.nav__brand:hover { color: var(--ink); }
.nav__brand img { width: 68px; height: auto; image-rendering: pixelated; }   /* Max, the 8-bit eye logo (34 x 16 grid, 2px a cell, about 2.1 to 1) */
.nav__links { display: flex; align-items: center; gap: var(--s-1); margin: 0 auto; padding: 0; list-style: none; }
.nav__link {
  display: block; padding: 10px 14px; border-radius: var(--r-pill);
  color: var(--ink); font-weight: 500; text-decoration: none;
}
.nav__link:hover, .nav__link[aria-current="page"] { background: var(--beige-2); color: var(--ink); }
.nav__cta { margin-left: auto; }
.nav__links + .nav__cta { margin-left: 0; }
.nav__toggle {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border: 2px solid var(--charcoal); border-radius: var(--r-pill);
  background: transparent; color: var(--ink); cursor: pointer;
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 859px) {
  /* phone menu: only collapses when site.js is running (it adds .js to <html>) */
  .js .nav__toggle { display: inline-flex; }
  .js .nav__cta { display: none; }
  .js .nav__links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: var(--s-3) var(--gutter) var(--s-5);
    background: var(--beige); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .js .nav--open .nav__links { display: flex; }
  .nav__link { padding: 14px 12px; font-size: 1.05rem; }
  .nav__mobile-cta { margin-top: var(--s-3); }   /* the phone menu carries its own CTA item */
  html:not(.js) .nav__inner { flex-wrap: wrap; padding-block: var(--s-2); }
  html:not(.js) .nav__links { flex-wrap: wrap; margin: 0; }
}
@media (min-width: 860px) { .nav__mobile-cta { display: none; } }

/* ---------- 7. Hero + video slot ---------- */
.hero { padding-block: var(--s-8) var(--s-7); text-align: center; }
@media (min-width: 960px) { .hero { padding-block: var(--s-9) var(--s-8); } }
.hero__title { max-width: 1050px; margin-inline: auto; margin-bottom: var(--s-5); }
.hero__sub { margin-bottom: var(--s-6); }
.hero__actions { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); margin-top: var(--s-6); }
.hero__note { font-size: var(--fs-sm); color: var(--ink-2); }

.video-slot {
  position: relative;
  max-width: 780px; margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--charcoal);
  box-shadow: var(--shadow-md);
}
.video-slot video, .video-slot iframe, .video-slot img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-slot--empty {
  display: grid; place-items: center; align-content: center; gap: var(--s-3);
  background: var(--charcoal);
  color: var(--cream);
}
.video-slot__play {
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage);
  box-shadow: var(--rim), var(--shadow-glow);
}
.video-slot__play::after {
  content: ""; margin-left: 5px;
  border-left: 22px solid var(--charcoal); border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.video-slot__label { font-size: var(--fs-sm); color: var(--on-ink); padding-inline: var(--s-4); text-align: center; }

/* ---------- 8. Stepper (numbered, joined by a line) ---------- */
.stepper {
  --dot: 56px;
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s-6);
  counter-reset: step;
}
.stepper__item { position: relative; padding-left: calc(var(--dot) + var(--s-4)); }
.stepper__dot {
  position: absolute; left: 0; top: 0;
  width: var(--dot); height: var(--dot); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage);
  color: var(--ink);
  font: 900 1.15rem/1 var(--font-display);
  box-shadow: var(--rim), 0 8px 20px rgba(18, 54, 44, 0.2);
  z-index: 1;
}
/* the joining line: vertical on phone */
.stepper__item:not(:last-child)::before {
  content: ""; position: absolute;
  left: calc(var(--dot) / 2 - 1.5px); top: var(--dot);
  width: 3px; height: calc(100% - var(--dot) + var(--s-6));
  background: var(--moss);
  border-radius: 3px;
}
.stepper__title { font-size: var(--fs-h3); font-weight: 800; margin: 12px 0 var(--s-2); }
.stepper__text { color: var(--ink-2); margin: 0; }

@media (min-width: 860px) {
  .stepper { grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--s-5); }
  .stepper__item { padding-left: 0; padding-top: calc(var(--dot) + var(--s-5)); text-align: center; }
  .stepper__dot { left: 50%; transform: translateX(-50%); }
  .stepper__item:not(:last-child)::before {
    left: calc(50% + var(--dot) / 2); top: calc(var(--dot) / 2 - 1.5px);
    width: calc(100% - var(--dot) + var(--s-5)); height: 3px;
  }
  .stepper__title { margin-top: 0; }
}

/* ---------- 9. Cards (shared shell) ---------- */
.card, .workflow-card, .feature-card, .proof-card, .voice-card, .price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card { padding: var(--s-6); }

/* workflow card: picture area on top, numbered title below */
.workflow-card { overflow: hidden; display: flex; flex-direction: column; }
.workflow-card__media {
  aspect-ratio: 16 / 10;
  background: var(--beige-2);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-2); font-size: var(--fs-sm);
}
.workflow-card__media img { width: 100%; height: 100%; object-fit: cover; }
.workflow-card__body { padding: var(--s-5); }
.workflow-card__title { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-h3); font-weight: 800; margin-bottom: var(--s-2); }
.workflow-card__num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage); color: var(--ink);
  box-shadow: var(--rim);
  font: 800 0.9rem/1 var(--font-body);
}
.workflow-card__text { margin: 0; color: var(--ink-2); }

/* feature card */
.feature-card { padding: var(--s-5) var(--s-5) var(--s-6); }
.feature-card__icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--beige-2); color: var(--accent-text);
  margin-bottom: var(--s-4);
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card__title { font-size: 1.15rem; font-weight: 800; margin-bottom: var(--s-2); }
.feature-card__text { margin: 0; color: var(--ink-2); }

/* proof card: white card with check-mark lines */
.proof-card { max-width: 900px; margin-inline: auto; padding: var(--s-6) var(--s-5); background: #FFFFFF; box-shadow: var(--shadow-md); }
@media (min-width: 720px) { .proof-card { padding: var(--s-7) var(--s-7) var(--s-6); } }
.proof-card__title { font-size: var(--fs-h3); font-weight: 800; }
.check-list { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: var(--s-4); }
.check-list li { position: relative; padding-left: 40px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.1em;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--sage);
  box-shadow: var(--rim);
}
.check-list li::after {
  content: ""; position: absolute; left: 9px; top: calc(0.1em + 6px);
  width: 6px; height: 11px;
  border: solid var(--charcoal); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.check-list strong { font-weight: 700; }
.proof-card__foot { font-size: var(--fs-sm); color: var(--ink-2); border-top: 1px solid var(--line); padding-top: var(--s-4); margin: 0 0 var(--s-5); }
.proof-card__cta { text-align: center; }

/* voice (testimonial) card. Placeholders only until real ones exist */
.voice-card { padding: var(--s-5); }
.voice-card__who { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); font-weight: 700; font-size: var(--fs-sm); }
.voice-card__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--beige-2); border: 1px solid var(--line); flex: none; object-fit: cover; }
.voice-card__text { margin: 0; color: var(--ink-2); }
.voice-card--placeholder { background: transparent; border-style: dashed; box-shadow: none; }

/* ---------- 10. Product screenshot frame ---------- */
.frame {
  border-radius: var(--r-xl);
  padding: 10px;
  background: var(--beige-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 6px 10px 12px; }
.frame__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.frame__bar span:first-child { background: var(--sage); }
.frame__title { margin-left: var(--s-3); font-size: var(--fs-xs); color: var(--ink-2); }
.frame__body {
  border-radius: calc(var(--r-xl) - 10px);
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--line);
  min-height: 240px;
}
.frame__body img { width: 100%; }
.frame__caption { text-align: center; font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s-4); }

/* ---------- 11. Founder block ---------- */
.founder {
  display: grid; gap: var(--s-6); align-items: center;
  padding: var(--s-6) var(--s-5);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
}
@media (min-width: 860px) { .founder { grid-template-columns: 300px 1fr; padding: var(--s-7); gap: var(--s-7); } }
.founder__photo {
  aspect-ratio: 4 / 5; width: 100%; max-width: min(300px, 70vw); margin-inline: auto;
  border-radius: var(--r-lg); object-fit: cover;
  background-color: var(--moss); background-image: var(--grain); background-size: 180px; background-blend-mode: soft-light;   /* photo slot, no text: solid moss */
}
.founder__quote { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); line-height: 1.5; font-style: italic; color: var(--ink); margin: 0 0 var(--s-5); }
.founder__name { font: 800 1.35rem/1.2 var(--font-display); margin: 0; }
.founder__role { color: var(--ink-2); margin: 4px 0 0; }

/* ---------- 12. Pricing ---------- */
.pricing { display: grid; gap: var(--s-5); align-items: stretch; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.price-card { position: relative; display: flex; flex-direction: column; padding: var(--s-6) var(--s-5); }
.price-card--featured {
  border: 2px solid transparent;
  border-color: var(--moss); background: #FFFFFF;   /* solid moss border, no text on it */
  box-shadow: var(--shadow-md), 0 18px 40px rgba(18, 54, 44, 0.14);
}
.price-card__badge {
  position: absolute; top: -14px; left: var(--s-5);
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--sage); color: var(--ink);
  box-shadow: var(--rim);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.price-card__name { font: 800 1.35rem/1.2 var(--font-display); margin: 0 0 var(--s-2); }
.price-card__price { font: 900 clamp(2.4rem, 2rem + 1.5vw, 3rem)/1 var(--font-display); letter-spacing: -0.03em; margin: var(--s-3) 0 var(--s-1); }
.price-card__per { font: 500 1rem var(--font-body); color: var(--ink-2); letter-spacing: 0; }
.price-card__desc { color: var(--ink-2); margin-bottom: var(--s-5); }
.price-card__list { margin-bottom: var(--s-6); flex: 1; }
.price-card__cta { margin-top: auto; }

.tag {
  display: inline-block; vertical-align: middle;
  padding: 2px 9px; border-radius: var(--r-pill);
  border: 1px solid var(--charcoal); color: var(--ink);
  font: 700 var(--fs-xs)/1.5 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
}
.tag--draft { border-style: dashed; color: var(--accent-text); border-color: var(--accent-text); }

/* ---------- 13. FAQ accordion ---------- */
.faq { display: grid; gap: var(--s-3); max-width: 860px; margin-inline: auto; }
.faq__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq__q { margin: 0; font: inherit; }
.faq__btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: 18px var(--s-5);
  border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--ink);
  font: 700 1.02rem/1.4 var(--font-body); text-align: left; cursor: pointer;
}
.faq__icon {
  flex: none; position: relative; width: 26px; height: 26px; border-radius: 50%;
  background: var(--charcoal);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 2px; margin: -1px 0 0 -5.5px; background: var(--cream);
  transition: transform 0.2s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 var(--s-5) var(--s-5); color: var(--ink-2); }
.faq__a > :last-child { margin-bottom: 0; }

/* ---------- 14. Forms ---------- */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 600; font-size: var(--fs-sm); }
.field__input {
  width: 100%; min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--field-border); border-radius: var(--r-sm);
  background: #FFFFFF; color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
}
textarea.field__input { min-height: 120px; resize: vertical; }
select.field__input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--charcoal) 50%), linear-gradient(135deg, var(--charcoal) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field__input::placeholder { color: var(--placeholder); }
.field__input:focus-visible { outline-offset: 1px; border-color: var(--charcoal); }
.field__input[aria-invalid="true"] { border-color: var(--accent-text); }
.field__hint { font-size: var(--fs-sm); color: var(--ink-2); }
.field__error { font-size: var(--fs-sm); color: var(--accent-text); font-weight: 600; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: var(--s-3); }
.field--check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: #1A4A3A; }
.field--check .field__label { font-weight: 400; font-size: var(--fs-body); }

/* plan picker: radio cards */
.plan-picker { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
@media (min-width: 720px) { .plan-picker { grid-template-columns: repeat(3, 1fr); } }
.plan-picker legend { font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--s-2); padding: 0; }
.plan-option { position: relative; display: block; cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.plan-option__box {
  display: block; height: 100%;
  padding: var(--s-4); border: 1.5px solid var(--line); border-radius: var(--r-md); background: #FFFFFF;
}
.plan-option__name { display: block; font-weight: 800; }
.plan-option__price { display: block; color: var(--ink-2); font-size: var(--fs-sm); }
.plan-option input:checked + .plan-option__box { border: 2px solid var(--moss); background: #FFFFFF; box-shadow: 0 8px 20px rgba(18, 54, 44, 0.12); }
.plan-option input:focus-visible + .plan-option__box { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- 15. Notice banner ---------- */
.notice {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  border-left: 5px solid var(--charcoal);
  background: #FFFFFF;
  color: var(--ink);
}
.notice[hidden] { display: none; }
.notice > :last-child, .notice p:last-child { margin-bottom: 0; }
.notice__title { font-weight: 700; margin: 0 0 2px; }
.notice--info { border-left-color: var(--ink-2); }
.notice--warn { border-left-color: var(--moss); background: #EEF3F1; }
.notice--success { border-left-color: #3F6B3A; background: #F2F5EC; }

/* ---------- 16. Final CTA panel (full-width solid sage with grain) ---------- */
.panel-cta {
  --focus: var(--charcoal);
  position: relative;
  border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-5);
  text-align: center;
  color: var(--ink);
  background-color: var(--sage); background-image: var(--grain);
  background-size: 200px;
  background-blend-mode: soft-light;
  box-shadow: var(--rim);
  overflow: hidden;
}
@media (max-width: 479px) { .panel-cta { padding-inline: var(--s-4); } }
@media (min-width: 860px) { .panel-cta { padding: var(--s-9) var(--s-8); } }
.panel-cta__title { font-size: var(--fs-h2); font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; max-width: 820px; margin: 0 auto var(--s-4); }
.panel-cta__text { max-width: 620px; margin: 0 auto var(--s-6); font-size: var(--fs-lead); color: var(--ink); }
.panel-cta .cta-pill { background: var(--charcoal); color: var(--cream); box-shadow: 0 16px 40px rgba(43, 39, 36, 0.32); }
.panel-cta .cta-pill:hover { color: var(--cream); }
.panel-cta a:not(.btn):not(.cta-pill) { color: var(--ink); }
.panel-cta--full { border-radius: 0; }

/* "still have questions" bar */
.help-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4);
  max-width: 860px; margin: var(--s-6) auto 0;
  padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper);
}
.help-bar__title { font: 800 1.2rem/1.3 var(--font-display); margin: 0 0 2px; }
.help-bar p { margin: 0; color: var(--ink-2); }
.help-bar .help-bar__title { color: var(--ink); }

/* ---------- 17. Footer ---------- */
/* John: the footer is a dark green box (--ink) at the very end of every page */
.footer { background: var(--charcoal); color: var(--on-ink); padding-block: var(--s-8) var(--s-6); margin: var(--s-8) var(--s-3) var(--s-3); border-radius: var(--r-xl); }
@media (min-width: 720px) { .footer { margin-inline: var(--s-5); margin-bottom: var(--s-5); } }
.footer { --focus: var(--cream); }
.footer__top { display: grid; gap: var(--s-7); }
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.3fr 3fr; } }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font: 900 1.45rem/1 var(--font-display); }
.footer__brand:hover { color: var(--cream); }
.footer__brand img { width: 68px; height: auto; image-rendering: pixelated; padding: 6px 8px; border-radius: var(--r-md); background: var(--cream); box-sizing: content-box; }   /* John: Max is always charcoal, so in the dark footer it sits on a cream badge */
.footer__about { margin-top: var(--s-4); max-width: 320px; font-size: var(--fs-sm); color: var(--on-ink-2); }
.footer__grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer__title { font: 700 var(--fs-sm)/1.3 var(--font-body); color: var(--cream); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 var(--s-4); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__link { display: inline-block; padding-block: 2px; color: var(--on-ink); text-decoration: none; font-size: var(--fs-sm); }   /* padding: 24px+ tap target */
.footer__link:hover { color: var(--sage); text-decoration: underline; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3);
  margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid #2F5A4D;
  font-size: var(--fs-xs); color: var(--on-ink-2);
}

/* ---------- 17b. One look for every green pill and circle ---------- */
/* John: all pills and circles share the "Get My Clips" pill look: solid sage, faint grain, hairline edge, soft shadow.
   Static: the old lava animation, sheen, silk and molten rim are gone. */
.btn--primary, .cta-pill, .video-slot__play, .stepper__dot, .workflow-card__num, .check-list li::before, .price-card__badge, .frame__bar span:first-child, .persona__bubble {
  background-color: var(--sage); background-image: var(--grain);
  background-size: 180px;
  background-blend-mode: soft-light;
}
.persona__bubble { box-shadow: var(--rim), 0 18px 46px rgba(18, 54, 44, 0.2), 0 3px 8px rgba(18, 54, 44, 0.14); }
.stepper__dot { box-shadow: var(--rim), 0 10px 26px rgba(18, 54, 44, 0.2), 0 2px 6px rgba(18, 54, 44, 0.12); }
.workflow-card__num, .check-list li::before, .price-card__badge { box-shadow: var(--rim), 0 6px 16px rgba(18, 54, 44, 0.2), 0 2px 4px rgba(18, 54, 44, 0.12); }

/* John 2026-10-16: highlight box off on the headers for now. Delete this rule to bring it back.
   !important because pages restyle .accent-box in their own <style> (index: cream inside the final panel). */
.accent-box { background: none !important; box-shadow: none !important; padding: 0 !important; }

/* ---------- 18. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .btn:hover, .cta-pill:hover { transform: none; }
}

/* ---------- 19. Motion (fades, scroll reveal, pause toggle) ---------- */
/* John 2026-10-17: fade animations. The rules that keep them safe:
   - Only opacity and transform move.
   - Every fade lives inside prefers-reduced-motion: no-preference, and the Pause toggle (html[data-motion="paused"])
     turns all of them off, so paused or reduced means a still page with everything visible.
   - Nothing is hidden before it reveals unless assets/motion.js has run and set html.motion-ok, so if the script
     fails or is blocked, all content simply shows.
   How pages use it:
     .fade-in            one block above the fold, fades up once on load (the hero).
     .fade-in-stagger    a parent above the fold; its children fade up one after another, 60 ms apart, done by 600 ms.
     .reveal             one block below the fold, fades up 14px as it scrolls into view.
     .reveal-stagger     a parent below the fold; its children reveal 70 ms apart (cards, steps, tiles).
   Put these on wrappers (sections, headings, cards, columns), never on a pill or circle itself (.cta-pill, .btn,
   .persona__bubble, .stepper__dot, .check-list li): those own their animation and transition lists, and the two rules
   would cancel each other. Wrap the pill in a div instead. Never on an element that holds a position: fixed child.
   Use .reveal below the fold only: above the fold use .fade-in, or the item flashes on browsers using the JS fallback. */

/* 19a. Page to page: a 250 ms cross-fade (Chrome and Edge 126+, Safari 18.2+; other browsers just change page). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 250ms; }
}

@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

/* 19b. On load, above the fold. Fill mode "backwards" (not "both") so no transform is left behind after the fade,
   which would trap fixed-position children and add stacking contexts. 180 ms last delay + 420 ms = 600 ms total. */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="paused"]) :is(.fade-in, .fade-in-stagger > *) { animation: fade-up 420ms var(--ease) backwards; }
  html:not([data-motion="paused"]) .fade-in-stagger > :nth-child(2) { animation-delay: 60ms; }
  html:not([data-motion="paused"]) .fade-in-stagger > :nth-child(3) { animation-delay: 120ms; }
  html:not([data-motion="paused"]) .fade-in-stagger > :nth-child(n+4) { animation-delay: 180ms; }
}

/* 19c. On scroll. Two engines, motion.js picks one:
   - browsers with scroll-driven animations (Chrome and Edge 115+, Safari 26): pure CSS, tied to the scroll position,
     so a fast scroll or a jump to an #anchor can never leave anything hidden. motion.js sets html.motion-ok.
   - the rest (Firefox today): motion.js sets html.motion-ok and html.motion-io and adds .is-in to each item as an
     IntersectionObserver sees it; items already on screen get .is-in before anything is hidden. */
@media (prefers-reduced-motion: no-preference) {
  html.motion-io:not([data-motion="paused"]) :is(.reveal, .reveal-stagger > *):not(.is-in) { opacity: 0; transform: translateY(14px); }
  html.motion-io :is(.reveal, .reveal-stagger > *) { transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
  html.motion-io .reveal-stagger > :nth-child(2) { transition-delay: 70ms; }
  html.motion-io .reveal-stagger > :nth-child(3) { transition-delay: 140ms; }
  html.motion-io .reveal-stagger > :nth-child(n+4) { transition-delay: 210ms; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* the range is a fixed 200px of scroll from the moment the item's top enters, so tall sections do not stay faded */
    html.motion-ok:not([data-motion="paused"]) :is(.reveal, .reveal-stagger > *) {
      animation: fade-up linear backwards;
      animation-timeline: view();
      animation-range: entry 0px entry 200px;
    }
    /* children of a stagger row enter together, so each starts a little later in the scroll */
    html.motion-ok:not([data-motion="paused"]) .reveal-stagger > :nth-child(2) { animation-range: entry 40px entry 240px; }
    html.motion-ok:not([data-motion="paused"]) .reveal-stagger > :nth-child(3) { animation-range: entry 80px entry 280px; }
    html.motion-ok:not([data-motion="paused"]) .reveal-stagger > :nth-child(n+4) { animation-range: entry 120px entry 320px; }
  }
}

/* 19d. Pause toggle (WCAG 2.2.2: kept after the lava loops were removed, so any future looping motion can be paused).
   motion.js adds one <button class="motion-toggle" aria-pressed> to every page. Pressed = html[data-motion="paused"],
   remembered on this device. It freezes every looping animation where it stands. */
html[data-motion="paused"] *, html[data-motion="paused"] *::before, html[data-motion="paused"] *::after { animation-play-state: paused !important; }

/* Phones (under 720px): a normal small button in the footer, because the sticky CTA bar owns the bottom edge.
   720px and wider: fixed in the bottom-left corner. Dark green with a cream rim so it shows on beige and on the footer. */
.motion-toggle {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; padding: 0;
  border: 2px solid var(--cream); border-radius: 50%;
  background: var(--charcoal); color: var(--cream);
  box-shadow: var(--shadow-sm);
  cursor: pointer; vertical-align: middle;
}
.motion-toggle::before {                                  /* pause icon: two bars drawn by the side borders */
  content: ""; box-sizing: border-box; width: 12px; height: 14px;
  border-inline: 4px solid currentColor;
}
.motion-toggle[aria-pressed="true"]::before {             /* play icon while paused */
  width: 0; height: 0; margin-left: 3px;
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor;
}
/* own two-tone ring: cream next to the button, charcoal outside it, so it passes 3:1 on beige, sage and charcoal */
.motion-toggle:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 2px; box-shadow: 0 0 0 2px var(--cream); border-radius: 50%; }
.motion-toggle:hover { transform: scale(1.08); }
@media (min-width: 720px) {
  .motion-toggle { position: fixed; left: var(--s-4); bottom: var(--s-4); z-index: 60; }
}
@media (max-width: 719px) {   /* in the dark green footer on phones: flip the ring so the outer part shows on the dark box */
  .footer .motion-toggle:focus-visible { outline-color: var(--cream); box-shadow: 0 0 0 2px var(--charcoal); }
}
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }   /* already still: nothing to pause */
