/* Landing + thank-you styles. Mobile first; all values come from tokens.css. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
img, svg { display: block; max-width: 100%; }
strong { font-weight: var(--fw-semibold); }
:target, section[id] { scroll-margin-top: 72px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--mint); color: var(--ink); padding: var(--space-2) var(--space-4); font-weight: var(--fw-semibold);
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Color contexts ----------
   Each section sets its local palette; components read --fg/--fg-muted/--line/--focus. */
body, .section--ink, .section--raised, .section--gradient, .hero, .site-header, .site-footer {
  --fg: var(--paper);
  --fg-muted: var(--grey-300);
  --fg-subtle: var(--slate);
  --line: var(--ink-border);
  --line-strong: #3a3f3d;
  --panel: var(--ink-raised);
  --key: var(--mint);         /* key numbers */
  --focus: var(--mint);
}
.section--mint, .section--paper, .section--grey, .on-light {
  --fg: var(--ink);
  --line: var(--mint-border);
  --line-strong: var(--ink);
  --panel: rgba(255, 255, 255, 0.5);
  --key: var(--ink);
  --focus: var(--ink);
}
.section--mint  { --fg-muted: var(--mint-muted); --fg-subtle: var(--mint-muted); }
.section--paper { --fg-muted: #5a5c5c; --fg-subtle: #5a5c5c; --line: var(--paper-grey); --panel: #f4f6f4; }
.section--grey  { --fg-muted: var(--paper-grey-muted); --fg-subtle: var(--paper-grey-muted); --line: #c2c2c2; --panel: rgba(255, 255, 255, 0.45); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--fg);
  margin-bottom: var(--space-5);
}
.eyebrow strong { font-weight: var(--fw-bold); }

.section__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--fg);
  max-width: 24ch;
  margin-bottom: var(--space-6);
  text-wrap: balance;
}
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--fg); }
.subhead {
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  margin: var(--space-8) 0 var(--space-5);
}
.label-caps {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-chip);
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--space-4);
}
.fine-print, .source-line { font-size: var(--fs-sm); color: var(--fg-muted); margin-top: var(--space-5); }
.source-line { font-size: var(--fs-xs); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-0);
  font: inherit;
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn--accent { background: var(--mint); color: var(--ink); }
.btn--accent:hover { background: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #26302e; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--sm { min-height: 40px; padding: 0.55rem 1rem; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.section__cta { margin-top: var(--space-7); }
.cta-block { margin-top: var(--space-6); }
.microcopy { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--fg-muted); max-width: 46ch; }

/* ---------- Placeholders (visible TODOs) ---------- */
.todo {
  background: rgba(200, 149, 74, 0.22);
  color: inherit;
  outline: 1px dashed var(--risk-amber);
  outline-offset: 1px;
  padding: 0 0.25em;
  font-weight: var(--fw-medium);
}
.todo--tag {
  position: absolute; top: var(--space-3); left: var(--space-3); z-index: 2;
  font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: #f3d9a8; color: var(--ink); outline: none; padding: 0.2em 0.5em;
}
.todo--inline-note { margin-left: 0.35em; font-size: 0.8em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 6, 5, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.wordmark { font-size: 1.25rem; font-weight: var(--fw-semibold); letter-spacing: -0.02em; text-decoration: none; }
.site-header__cta { display: none; }
@media (min-width: 768px) { .site-header__cta { display: inline-flex; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); color: var(--fg); }
.section--ink { background: var(--ink); }
.section--raised { background: var(--ink-raised); --panel: var(--ink); --line: #2c302e; }
.section--gradient { background: var(--gradient-section); }
.section--mint { background: var(--mint); }
.section--paper { background: var(--paper); }
.section--grey { background: var(--paper-grey); }

/* ---------- 1. Hero ---------- */
.hero {
  background: var(--gradient-hero);
  padding-block: clamp(3rem, 2rem + 5vw, 7rem) clamp(4rem, 3rem + 5vw, 8rem);
  position: relative;
  overflow: hidden;
}
.hero__grid { display: grid; gap: var(--space-8); align-items: center; position: relative; }
.hero__title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-medium);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 12ch;
  text-wrap: balance;
}
.hero__sub { margin-top: var(--space-5); font-size: var(--fs-lead); line-height: 1.5; color: var(--fg); opacity: 0.92; max-width: 58ch; }
.proof-row {
  margin-top: var(--space-7);
  display: grid; gap: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: var(--space-5);
}
.proof-row li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-sm); line-height: 1.45; color: var(--fg-muted); }
.icon { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--mint); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 768px) {
  .proof-row { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
  .proof-row li { flex-direction: column; }
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); }
}

/* Policy template mock-up: 3 fanned pages, pure HTML/CSS. Sizes in cqw so it scales as one unit. */
.policy-stack {
  container-type: inline-size;
  width: min(100%, 440px);
  margin-inline: auto;
  padding: 33% 12% 33% 10%;   /* room for the back pages peeking out (top-left and bottom-right) */
}
.policy-stack__inner { position: relative; aspect-ratio: 8.5 / 11; }
.policy-page {
  position: absolute; inset: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 9cqw 8cqw;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(3, 6, 5, 0.12), 0 18px 40px -12px rgba(3, 6, 5, 0.45);
}
.policy-page p { margin: 0; }
.policy-page--back { padding: 6cqw 7cqw; }
.policy-page--risk { transform: translate(-12%, -31%) rotate(-3deg); background: #fbfcfb; }
.policy-page--data { transform: translate(13%, 31%) rotate(4deg); background: #f6f8f6; justify-content: flex-end; }

.policy-page__section { font-size: 3.3cqw; font-weight: var(--fw-semibold); letter-spacing: -0.005em; padding-bottom: 1.6cqw; border-bottom: 1px solid var(--ink); }
.policy-page__rows { margin: 0; padding: 0; list-style: none; }
.policy-page__rows li {
  display: flex; align-items: center; gap: 2cqw;
  font-size: 2.9cqw; line-height: 1.3;
  padding: 1.25cqw 0; border-bottom: 1px solid var(--paper-grey);
}
.policy-page__marker { flex: none; width: 2.4cqw; height: 2.4cqw; border-radius: var(--radius-full); }
.policy-page__key { flex: none; width: 40%; font-weight: var(--fw-medium); }
.policy-page__bar { flex: 1; height: 1.2cqw; background: var(--paper-grey); }
.policy-page__filler { display: grid; gap: 2.2cqw; margin: 4cqw 0; }
.policy-page__filler span { height: 1.2cqw; background: var(--paper-grey); }
.policy-page__filler span:nth-child(3n) { width: 64%; }
.policy-page__filler span:nth-child(3n+2) { width: 88%; }

.policy-page--front { z-index: 1; border-top: 1.4cqw solid var(--ink); }
.policy-page__label { font-size: 2.5cqw; font-weight: var(--fw-semibold); letter-spacing: var(--ls-eyebrow); }
.policy-page__title { margin-top: auto !important; font-size: 7.4cqw; font-weight: var(--fw-medium); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.policy-page__org { margin-top: 3.5cqw !important; font-size: 3.4cqw; color: #5a5c5c; }
.policy-page__footer {
  margin-top: auto; padding-top: 3cqw;
  border-top: 1px solid var(--ink);
  display: flex; justify-content: space-between; gap: 2cqw;
  font-size: 2.4cqw; color: #5a5c5c;
}

/* Section 7 variant: smaller; on white it needs edges */
.policy-stack--section { width: min(100%, 360px); margin: var(--space-7) 0 0; }
.section--paper .policy-page { outline: 1px solid var(--paper-grey); box-shadow: 0 1px 2px rgba(3, 6, 5, 0.06), 0 14px 32px -14px rgba(3, 6, 5, 0.28); }
@media (max-width: 767.98px) {
  /* Mobile, Section 7: front page only */
  .policy-stack--section { width: min(100%, 260px); padding: 0; }
  .policy-stack--section .policy-page--back { display: none; }
}

/* ---------- Cards (hairline columns, like the deck's "tips" slides) ---------- */
.cards { display: grid; border-top: 1px solid var(--line-strong); }
.card { padding: var(--space-5) 0 var(--space-6); border-bottom: 1px solid var(--line); }
.card p { color: var(--fg-muted); }
.card__title { font-size: var(--fs-h3); font-weight: var(--fw-medium); line-height: var(--lh-snug); margin-bottom: var(--space-3); color: var(--fg); }
.card .label-caps { margin-bottom: var(--space-3); }
@media (min-width: 768px) {
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards .card { padding: var(--space-5) var(--space-5) var(--space-6); border-bottom: 0; border-left: 1px solid var(--line); }
  .cards .card:first-child { border-left: 0; padding-left: 0; }
}

/* Risk lanes (only where copy talks about lanes) */
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) and (max-width: 899.98px) {
  .cards--3 .card { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); }
}

.lanes { display: flex; gap: 6px; margin-bottom: var(--space-4); }
.lane { width: 28px; height: 6px; }
.lane--green { background: var(--risk-green); }
.lane--amber { background: var(--risk-amber); }
.lane--red { background: var(--risk-red); }
.lanes--inline { display: inline-flex; vertical-align: middle; margin: 0 0 0 0.4em; gap: 4px; }
.lanes--inline .lane { width: 14px; height: 6px; }

/* ---------- 3. Problem ---------- */
.cases { display: grid; gap: var(--space-5); margin-top: var(--space-7); }
.case { background: var(--panel); border-top: 2px solid var(--fg); padding: var(--space-5); }
.case__label { font-size: 1.0625rem; font-weight: var(--fw-semibold); margin-bottom: var(--space-4); }
.case dl > div { padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.case dt { font-size: 0.75rem; letter-spacing: var(--ls-chip); text-transform: uppercase; color: var(--fg-subtle); margin-bottom: var(--space-1); }
.case dd { font-size: 1rem; line-height: 1.45; color: var(--fg-muted); }
.case dd.case__penalty { color: var(--key); font-size: 1.375rem; font-weight: var(--fw-medium); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.case .case__ai dd { color: var(--fg); }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, 1fr); } }

.rule-list { border-top: 1px solid var(--line-strong); max-width: 860px; }
.rule-list li { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); color: var(--fg-muted); }
.rule-list strong { color: var(--fg); }

.pull-quote { margin-top: var(--space-9); }
.pull-quote p {
  max-width: 30ch;
  font-size: var(--fs-quote);
  font-weight: var(--fw-regular);
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.pull-quote::before { content: ""; display: block; width: 48px; height: 2px; background: var(--mint); margin-bottom: var(--space-5); }

/* ---------- 4. Peers ---------- */
.stats { display: grid; gap: var(--space-6); margin-top: var(--space-7); align-items: end; }
.big-stat__num {
  font-size: var(--fs-stat);
  font-weight: var(--fw-medium);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--key);
  font-variant-numeric: tabular-nums;
  container-type: inline-size;
}
.big-stat__label { margin-top: var(--space-3); font-size: var(--fs-lead); max-width: 22ch; }
.stat-cards { display: grid; border-top: 1px solid var(--line-strong); }
.stat-card { display: flex; gap: var(--space-4); align-items: baseline; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.stat-card__num { flex: none; min-width: 3.2ch; font-size: var(--fs-h2); font-weight: var(--fw-medium); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-card__label { color: var(--fg-muted); line-height: 1.4; }
@media (min-width: 900px) {
  .stats { grid-template-columns: 5fr 7fr; gap: var(--space-8); }
  .stat-cards { grid-template-columns: repeat(3, 1fr); }
  .stat-card { flex-direction: column; gap: var(--space-3); padding: var(--space-4) var(--space-4) 0; border-bottom: 0; border-left: 1px solid var(--line); }
  .stat-card:first-child { border-left: 0; padding-left: 0; }
}

.section--mint .label-caps { margin-top: var(--space-9); }
.quote-wall { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.quote-wall li { padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.quote-wall blockquote { font-size: var(--fs-h3); line-height: 1.35; letter-spacing: -0.01em; }
@media (min-width: 768px) {
  .quote-wall { grid-template-columns: repeat(2, 1fr); column-gap: var(--space-7); }
}
.closing-line { margin-top: var(--space-7); font-size: var(--fs-lead); line-height: 1.5; }

/* ---------- 5. Timeline ---------- */
.timeline { border-top: 1px solid var(--line-strong); max-width: 920px; }
.timeline li {
  display: grid; grid-template-columns: 4rem 1fr; gap: var(--space-4);
  padding: var(--space-5) 0; border-bottom: 1px solid var(--line);
}
.timeline__time { color: var(--key); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; padding-top: 0.15em; }
.timeline h3 { font-size: var(--fs-h3); font-weight: var(--fw-medium); line-height: var(--lh-snug); margin-bottom: var(--space-2); }
.timeline p { color: var(--fg-muted); }
@media (min-width: 768px) { .timeline li { grid-template-columns: 7rem 1fr; } }

.check-list li { position: relative; padding: 0 0 0 2rem; margin-bottom: var(--space-4); color: var(--fg-muted); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1em; height: 1.1em;
  background: var(--key);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 768px) { .check-list--2col { columns: 2; column-gap: var(--space-7); } .check-list--2col li { break-inside: avoid; } }

/* ---------- 6. Demo stepper (arrow chain) ---------- */
.stepper { display: grid; gap: var(--space-8); margin-top: var(--space-7); counter-reset: step; }
.step { position: relative; min-width: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: calc(-1 * var(--space-8) + 0.6rem);
  width: 22px; height: 22px; transform: translateX(-50%);
  background: var(--fg-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 4v16M6 14l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 4v16M6 14l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Illustrated UI cards (generic admin UI, fictional data). Min type 12px; overflow truncates. */
.demo-visual { margin: 0 0 var(--space-5); }
.ui {
  height: var(--visual-h, 15rem);
  overflow: hidden;
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(3, 6, 5, 0.2), 0 16px 36px -14px rgba(0, 0, 0, 0.55);
  font-size: 0.75rem; line-height: 1.35;
  font-variant-numeric: tabular-nums;
  container-type: inline-size;
}
.ui__head { padding: 0.8rem 0.9rem 0.6rem; border-bottom: 1px solid var(--paper-grey); }
.ui__title { font-size: 0.875rem; font-weight: var(--fw-semibold); letter-spacing: -0.005em; }
.ui-table { width: 100%; border-collapse: collapse; }
.ui-table th, .ui-table td {
  padding: 0.55rem 0.25rem; text-align: left; vertical-align: middle;
  white-space: nowrap;
  border-bottom: 1px solid #eceeec;
}
.ui-table th:first-child, .ui-table td:first-child { padding-left: 0.75rem; }
.ui-table th:last-child, .ui-table td:last-child { padding-right: 0.75rem; }
.ui-table th { font-weight: var(--fw-medium); color: #5a5c5c; background: #f6f8f6; }
.ui-table .num { text-align: right; padding-right: 0.6rem; }
/* The flexible column absorbs leftover width; short values keep their natural width */
.ui-table .flex { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ui-table--log { table-layout: fixed; }
.ui-table--log th:nth-child(1) { width: 23%; }
.ui-table--log th:nth-child(2) { width: 16%; }
.ui-table--log th:nth-child(3) { width: 18%; }
.ui-table--log th:nth-child(4) { width: 19%; }
.ui-table--log th:nth-child(5) { width: 24%; }
.ui-table--log .ui-tag { padding-inline: 0.35rem; }
.ui-table--log td { vertical-align: top; overflow: hidden; text-overflow: ellipsis; }
.ui-table--log .ui-wrap { white-space: normal; }
.ui-table .clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ui-table--log .ui-tag { white-space: normal; }
/* Narrow card (mobile): each log row stacks onto two lines instead of squeezing five columns */
@container (max-width: 359px) {
  .ui-table--log, .ui-table--log tbody { display: block; }
  .ui-table--log thead { display: none; }
  .ui-table--log tr {
    display: grid; grid-template-columns: max-content max-content minmax(0, 1fr) auto;
    column-gap: 0.6rem; row-gap: 0.35rem; align-items: start;
    padding: 0.65rem 0.75rem; border-bottom: 1px solid #eceeec;
  }
  .ui-table--log td { padding: 0 !important; border: 0; width: auto; }
  .ui-table--log td:nth-child(1) { font-weight: var(--fw-medium); }
  .ui-table--log td:nth-child(2), .ui-table--log td:nth-child(3) { color: #5a5c5c; }
  .ui-table--log td:nth-child(3) { grid-column: 3 / 5; }
  .ui-table--log td.rule { grid-column: 1 / 4; grid-row: 2; justify-self: stretch; }
  .ui-table--log td:last-child { grid-column: 4; grid-row: 2; justify-self: end; }
}
.ui-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: var(--radius-full); margin-right: 0.35rem; vertical-align: 0.05em; }
.ui-dot--red { background: var(--risk-red); }
.ui-dot--amber { background: var(--risk-amber); }
.ui-dot--green { background: var(--risk-green); }
.ui-tag {
  display: inline-block; max-width: 100%;
  padding: 0.15rem 0.45rem; border-radius: var(--radius-sm);
  font-weight: var(--fw-medium); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
}
.ui-tag--red { background: #f6e4e2; color: #8e3a33; }
.ui-tag--green { background: #e6eee1; color: #3e5f30; }

/* Card 2: generic browser window + chat input + block banner */
.ui--browser { display: flex; flex-direction: column; background: #f6f8f6; }
.ui-chrome { display: flex; align-items: center; gap: 0.35rem; padding: 0.6rem 0.75rem; background: var(--paper-grey); }
.ui-chrome > span { width: 0.55rem; height: 0.55rem; border-radius: var(--radius-full); background: #b9bcba; }
.ui-chrome__address { flex: 1; height: 1.15rem; margin-left: 0.5rem; border-radius: var(--radius-full); background: var(--paper); }
.ui-chat { position: relative; flex: 1; padding: 0.85rem 0.9rem; display: flex; flex-direction: column; gap: 0.7rem; }
.ui-chat__lines { display: grid; gap: 0.4rem; }
.ui-chat__lines span { height: 0.45rem; border-radius: 3px; background: var(--paper-grey); width: 70%; }
.ui-chat__lines span + span { display: none; }
.ui-chat { gap: 0.6rem; }
.ui-chat__input {
  margin-top: auto;
  background: var(--paper); border: 1px solid #c9ccca; border-radius: var(--radius-md);
  padding: 0.6rem 0.7rem 1.1rem;
  color: #3a3d3c;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.ui-banner {
  position: relative; z-index: 1; margin: -1.35rem 0.6rem 0;
  display: flex; gap: 0.55rem; align-items: flex-start;
  background: #fbf1ef; color: #6f2a24;
  border: 1px solid #e3c2bd; border-left: 3px solid var(--risk-red); border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
  box-shadow: 0 10px 24px -10px rgba(3, 6, 5, 0.45);
  font-weight: var(--fw-medium);
}
.ui-banner p { margin: 0; }
.ui-banner__icon { flex: none; width: 1rem; height: 1rem; margin-top: 0.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.demo-caption { margin-top: var(--space-2); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--fg-muted); }
.step__num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--radius-full);
  background: var(--paper); color: var(--ink); font-size: 0.9375rem; font-weight: var(--fw-semibold);
  margin-bottom: var(--space-3);
}
.step__title { font-size: var(--fs-h3); font-weight: var(--fw-medium); margin-bottom: var(--space-2); }
.step > p:last-child { color: var(--fg-muted); }
@media (min-width: 900px) {
  .stepper { grid-template-columns: repeat(3, 1fr); gap: var(--space-7); }
  /* → arrow in the gutter, centred on the illustration */
  .step:not(:last-child)::after {
    left: auto; right: calc(-1 * var(--space-7) / 2 - 11px); bottom: auto;
    top: calc(var(--visual-h, 15rem) / 2 - 11px); transform: none;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E");
  }
}

/* ---------- 7. Template ---------- */
.template-grid { display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .template-grid { grid-template-columns: 5fr 7fr; gap: var(--space-8); align-items: start; } }
.policy-groups { border-top: 1px solid var(--line-strong); }
.policy-groups details { border-bottom: 1px solid var(--line); }
.policy-groups summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-4) 0;
  font-size: var(--fs-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--ls-chip); text-transform: uppercase;
  min-height: 48px;
}
.policy-groups summary::-webkit-details-marker { display: none; }
.policy-groups summary::after { content: "+"; font-size: 1.25rem; font-weight: var(--fw-regular); letter-spacing: 0; line-height: 1; }
.policy-groups details[open] summary::after { content: "−"; }
.policy-groups ul { padding: 0 0 var(--space-4); }
.policy-groups li { padding: 0.35rem 0; color: var(--fg); }
@media (min-width: 768px) {
  .policy-groups details { display: grid; grid-template-columns: 11rem 1fr; gap: var(--space-5); padding: var(--space-4) 0; }
  .policy-groups summary { cursor: default; pointer-events: none; padding: 0.4rem 0 0; min-height: 0; align-items: flex-start; }
  .policy-groups summary::after { display: none; }
  .policy-groups ul { padding: 0; }
}

/* ---------- 8. Two-step offer ---------- */
.two-step { display: grid; gap: var(--space-4); margin-top: var(--space-7); align-items: stretch; }
.offer { padding: var(--space-6) var(--space-5); }
.offer--primary { background: var(--mint); color: var(--ink); --fg: var(--ink); --fg-muted: var(--mint-muted); --key: var(--ink); --focus: var(--ink); }
.offer--primary p, .offer--primary li { color: var(--ink); }
.offer--secondary { border: 1px solid var(--line-strong); color: var(--fg); }
.offer--secondary p:last-child { color: var(--fg-muted); }
.offer__step {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius-full);
  font-weight: var(--fw-semibold); margin-bottom: var(--space-5);
}
.offer--primary .offer__step { background: var(--ink); color: var(--paper); }
.offer--secondary .offer__step { border: 1px solid var(--fg-muted); }
.offer__title { font-size: var(--fs-h3); font-weight: var(--fw-medium); line-height: var(--lh-snug); }
.offer--primary .offer__title { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); letter-spacing: -0.015em; }
.offer__sub { margin: var(--space-2) 0 var(--space-5); font-size: var(--fs-sm); letter-spacing: 0.02em; color: var(--fg-muted) !important; }
.offer .label-caps { margin-top: var(--space-6); color: var(--ink); }
.offer .check-list li { margin-bottom: var(--space-3); }
.two-step__arrow { display: grid; place-items: center; color: var(--fg-muted); }
.two-step__arrow svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }
@media (min-width: 1024px) {
  .two-step { grid-template-columns: minmax(0, 7fr) auto minmax(0, 5fr); gap: var(--space-5); align-items: center; }
  .offer--primary { padding: var(--space-7) var(--space-6); }
  .two-step__arrow svg { transform: none; }
}
.trust-line { margin-top: var(--space-6); font-size: var(--fs-sm); color: var(--fg-muted); padding-left: var(--space-4); border-left: 2px solid var(--line-strong); max-width: var(--measure); }
.bridge-line { margin-top: var(--space-6); font-size: var(--fs-lead); }

/* ---------- 9. Who ---------- */
.who-grid { display: grid; gap: var(--space-7); }
@media (min-width: 768px) { .who-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.who__head { font-size: var(--fs-h3); font-weight: var(--fw-medium); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line-strong); margin-bottom: var(--space-4); }
.dot-list li { padding: var(--space-3) 0 var(--space-3) 1.1rem; position: relative; color: var(--fg-muted); }
.dot-list li::before { content: "·"; position: absolute; left: 0.1rem; color: var(--fg); font-weight: var(--fw-bold); }
.thought-list li { padding: var(--space-3) 0; font-size: var(--fs-lead); line-height: 1.4; }
.note-box { margin-top: var(--space-7); padding: var(--space-5); border: 1px solid var(--line-strong); max-width: 760px; }

/* ---------- 10. Speaker ---------- */
.speaker { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .speaker { grid-template-columns: 200px 1fr; gap: var(--space-8); } }
.speaker__photo {
  width: 160px; height: auto; aspect-ratio: 1; border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--slate-chip);
}
@media (min-width: 768px) { .speaker__photo { width: 200px; } }
.speaker__name { font-size: var(--fs-h3); font-weight: var(--fw-semibold); }
.speaker__title { color: var(--fg-muted); }
.speaker__link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; margin: var(--space-1) 0 var(--space-4);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--mint);
  text-decoration: underline;
}
.speaker__link:hover { color: var(--paper); }
.speaker__link svg { width: 18px; height: 18px; fill: currentColor; }
.speaker__body > p { max-width: var(--measure); }
.speaker__cred { margin-top: var(--space-4); color: var(--fg-muted); }
.stat-row { display: flex; flex-wrap: wrap; margin-top: var(--space-6); border-top: 1px solid var(--line-strong); }
.stat-row li { flex: 1 1 9rem; padding: var(--space-4) var(--space-4) 0 0; color: var(--fg-muted); font-size: var(--fs-sm); line-height: 1.4; }
.stat-row strong { display: block; font-size: var(--fs-h2); font-weight: var(--fw-medium); color: var(--key); letter-spacing: -0.03em; line-height: 1.1; }

/* Video testimonials: thumbnail + play button; the YouTube player loads only on click (js/ui.js) */
.testimonials { display: grid; gap: var(--space-7); }
@media (min-width: 768px) { .testimonials { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
.testimonial .label-caps { margin: var(--space-5) 0 var(--space-2); }
.testimonial p:last-child { color: var(--fg-muted); max-width: 52ch; }
.video {
  position: relative; display: block;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--ink-raised);
  border: 1px solid var(--line);
}
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video img { object-fit: cover; transition: transform 400ms var(--ease); }
.video__play {
  /* bottom-right, so it never covers the thumbnail headline (left) */
  position: absolute; right: 4%; bottom: 6%;
  display: grid; place-items: center;
  width: 3.75rem; height: 3.75rem; border-radius: var(--radius-full);
  background: var(--mint); color: var(--ink);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
  transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}
.video__play svg { width: 1.45rem; height: 1.45rem; margin-left: 0.18rem; fill: currentColor; }
.video:hover img { transform: scale(1.02); }
.video:hover .video__play { background: var(--paper); transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .video img, .video__play { transition: none; } }
.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; }

/* ---------- 11. FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: var(--space-5); align-items: center;
  padding: var(--space-5) 0;
  font-size: var(--fs-h3); font-weight: var(--fw-medium); line-height: var(--lh-snug);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: var(--fw-regular); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: var(--space-5); max-width: var(--measure); color: var(--fg-muted); }

/* ---------- 12. Register ---------- */
.register__grid { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .register__grid { grid-template-columns: 5fr 6fr; gap: var(--space-9); align-items: start; } }
.event-line { font-size: var(--fs-sm); letter-spacing: 0.02em; color: var(--mint); margin-bottom: var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }

.reg-form {
  background: var(--paper); color: var(--ink);
  --fg: var(--ink); --fg-muted: #5a5c5c; --focus: var(--ink);
  padding: var(--space-6) var(--space-5);
  display: grid; gap: var(--space-4);
}
@media (min-width: 768px) { .reg-form { padding: var(--space-7); } }
.form-row { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: 0.9375rem; font-weight: var(--fw-medium); }
.req { color: var(--risk-red); }
.field input:not([type=radio]), .field select {
  width: 100%; min-height: 48px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid #8f9491;
  border-radius: var(--radius-0);
  padding: 0.7rem 0.85rem;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23030605' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 18px;
  padding-right: 2.5rem;
}
.field input:not([type=radio]):focus-visible, .field select:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field input:not([type=radio])[aria-invalid="true"] { border-color: var(--risk-red); border-width: 2px; }
.field__error { font-size: 0.875rem; color: #9b3d36; font-weight: var(--fw-medium); }
.field__hint { font-size: 0.875rem; color: var(--ink); background: #f6ecdb; border-left: 3px solid var(--risk-amber); padding: var(--space-2) var(--space-3); }
.field--choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.field--choice legend { font-size: 0.9375rem; font-weight: var(--fw-medium); line-height: 1.4; padding: 0; margin-bottom: var(--space-2); }
.choice {
  display: flex; gap: var(--space-3); align-items: center;
  min-height: 48px; padding: 0.6rem 0.85rem;
  border: 1px solid #8f9491; cursor: pointer;
  font-size: 1rem; line-height: 1.35;
}
.choice + .choice { margin-top: -1px; }
.choice input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); background: #f2f6f2; position: relative; }
.choice:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 0; position: relative; z-index: 1; }
.field--choice.is-invalid .choice { border-color: var(--risk-red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.reg-form .btn { margin-top: var(--space-3); }
.reg-form .btn--accent { background: var(--ink); color: var(--paper); }
.reg-form .btn--accent:hover { background: #26302e; }
.form-status { font-size: 0.9375rem; color: #9b3d36; background: #f8e9e7; border-left: 3px solid var(--risk-red); padding: var(--space-3) var(--space-4); }
.privacy { font-size: 0.8125rem; color: #5a5c5c; line-height: 1.5; }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--space-7); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--fg-muted); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; color: var(--fg); }
.site-footer__disclaimer { margin-top: var(--space-4); font-size: var(--fs-xs); max-width: 80ch; }

/* ---------- Sticky mobile bar ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) var(--gutter);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  background: var(--ink-raised); border-top: 1px solid #2c302e;
  transform: translateY(110%); visibility: hidden;
  transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.sticky-bar.is-visible { transform: none; visibility: visible; transition: transform var(--dur) var(--ease), visibility 0s; }
.sticky-bar__text { font-size: 0.9375rem; font-weight: var(--fw-medium); letter-spacing: 0.01em; }
@media (max-width: 767.98px) { .site-footer { padding-bottom: calc(var(--space-7) + 72px); } }
@media (min-width: 768px) { .sticky-bar { display: none; } }

/* ---------- Scroll fade-ups (added by JS only when motion is allowed) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Thank-you page ---------- */
.ty-hero { background: var(--gradient-hero); padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.ty-hero .hero__title { max-width: 18ch; font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem); }
.ty-body { margin-top: var(--space-5); font-size: var(--fs-lead); max-width: 60ch; color: var(--fg); opacity: 0.92; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.btn-row .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .btn-row .btn { flex: 0 0 auto; } }
.ty-block .section__title { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); margin-bottom: var(--space-4); }
.ty-block p { max-width: var(--measure); }
.copy-feedback { margin-left: var(--space-2); font-size: var(--fs-sm); align-self: center; }
