/* CIRCUIT BENT — marketing site. Tokens from the brand system (verbatim values), composition from the
   dealt direction sheet ("The product performs"), content from SPEC.md / MANUAL.md / Marketing /
   QA-REPORT.md. See .taste-skill/direction.json for the sheet this was built against. */

@font-face { font-family: "Archivo"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("Archivo"); }

:root {
  /* ---- brand colour tokens, verbatim ---- */
  --surface-900: #111111;
  --surface-800: #1A1A1A;
  --surface-700: #262626;
  --hairline: #303030;
  --ink: #F1F1F1;
  --ink-muted: #989898;
  --accent: #858585;
  --on-accent: #111111;
  --accent-strong: #787878;
  --on-accent-strong: #111111;
  --signal: #A8A8A8;
  --signal-deep: #505050;

  /* ---- base.css roles, mapped ---- */
  --bg: var(--surface-900);
  --surface: var(--surface-800);
  --muted: var(--ink-muted);
  --accent-ink: var(--on-accent);

  /* ---- brand type tokens, verbatim ---- */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-text: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --size-hero: clamp(2.6rem, 2rem + 5vw, 4.75rem);
  --size-hero-h1: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem);
  --size-h1: clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --size-h2: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --size-h3: 1.0625rem;
  --size-body: 1rem;
  --size-small: 0.875rem;
  --size-label: 0.75rem;
  --size-mono: 0.875rem;

  /* ---- brand spacing/radius, verbatim ---- */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px; --radius-full: 9999px;
  --radius: var(--radius-md);

  --margin: clamp(1.25rem, 1rem + 1.6vw, 2.75rem);
  --gutter: var(--space-6);
  --section: clamp(4.5rem, 10vw, 8rem);
}

body { background: var(--bg); text-transform: uppercase; }
video[hidden] { display: none; } /* base.css's `video{display:block}` reset otherwise wins over the UA's [hidden] rule */
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; text-transform: uppercase; }

/* glitch: a frequent, staccato scanline tear on one word — stays grayscale, on brand (no RGB split) */
.glitch { position: relative; white-space: nowrap; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.glitch::before { color: var(--signal); }
.glitch::after { color: var(--accent-strong); }
@media (prefers-reduced-motion: no-preference) {
  .glitch { animation: glitch-jitter 2.6s steps(1, end) infinite; }
  .glitch::before { animation: glitch-a 2.6s steps(1, end) infinite; }
  .glitch::after { animation: glitch-b 2.6s steps(1, end) infinite 0.12s; }
}
@keyframes glitch-jitter {
  0%, 78%, 100% { transform: translate(0, 0) skewX(0deg); }
  79% { transform: translate(-2px, 1px) skewX(-4deg); }
  81% { transform: translate(2px, -1px) skewX(3deg); }
  83% { transform: translate(-1px, 0) skewX(0deg); }
  86% { transform: translate(0, 0) skewX(0deg); }
  88% { transform: translate(3px, 1px) skewX(-3deg); }
  90% { transform: translate(-2px, -1px) skewX(2deg); }
  92% { transform: translate(0, 0) skewX(0deg); }
}
@keyframes glitch-a {
  0%, 78%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
  79% { opacity: 1; clip-path: inset(10% 0 60% 0); transform: translate(-6px, 2px); }
  80.5% { opacity: 1; clip-path: inset(55% 0 15% 0); transform: translate(5px, -2px); }
  82% { opacity: 1; clip-path: inset(5% 0 75% 0); transform: translate(-4px, 1px); }
  83.5% { opacity: 0; }
  87% { opacity: 1; clip-path: inset(65% 0 5% 0); transform: translate(6px, -1px); }
  88.5% { opacity: 1; clip-path: inset(20% 0 50% 0); transform: translate(-5px, 2px); }
  90% { opacity: 1; clip-path: inset(0 0 85% 0); transform: translate(3px, 0); }
  91.5% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 77%, 100% { opacity: 0; clip-path: inset(100% 0 0 0); transform: translate(0, 0); }
  78% { opacity: 1; clip-path: inset(70% 0 10% 0); transform: translate(6px, -2px); }
  79.5% { opacity: 1; clip-path: inset(15% 0 55% 0); transform: translate(-5px, 1px); }
  81% { opacity: 1; clip-path: inset(80% 0 0 0); transform: translate(4px, -1px); }
  82.5% { opacity: 0; }
  86.5% { opacity: 1; clip-path: inset(30% 0 45% 0); transform: translate(-6px, 2px); }
  88% { opacity: 1; clip-path: inset(60% 0 15% 0); transform: translate(5px, -1px); }
  89.5% { opacity: 1; clip-path: inset(0 0 70% 0); transform: translate(-3px, 0); }
  91% { opacity: 0; }
}
.eyebrow-none { display: none; } /* no eyebrow labels on this page, per house rule */

.label-token { font-family: var(--font-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
/* Monospace is reserved for literal data the plugin itself displays: parameter values, preset names, timecodes. */
code { font-family: var(--font-mono); font-size: 0.8125rem; font-variant-numeric: tabular-nums; background: none; }

.section-head { font-family: var(--font-display); font-weight: 700; font-size: var(--size-h2); color: var(--ink); margin-bottom: var(--space-8); }

a.textlink { font-family: var(--font-text); font-size: 0.95rem; text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 0.2em; transition: text-decoration-color 180ms ease, color 180ms ease; }
a.textlink:hover { text-decoration-color: var(--accent); color: var(--accent); }

.btn { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 22px; border-radius: var(--radius-md); font-family: var(--font-text); font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: transform 140ms var(--ease-out), opacity 180ms ease; }
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { opacity: 0.88; }
.btn-strong { background: var(--accent-strong); color: var(--on-accent-strong); font-weight: 700; }
.btn-strong:hover { opacity: 0.88; }

/* ================= HERO ================= */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.hero-left, .hero-right { position: relative; padding: var(--space-12) var(--margin); display: flex; flex-direction: column; }
.hero-left { background: var(--surface-900); justify-content: space-between; }
.hero-right { background: var(--surface-800); align-items: center; justify-content: center; }
.hero-mark { display: flex; align-items: center; gap: var(--space-2); }
.hero-mark img { width: 28px; height: 28px; }
.hero-mark span { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); text-transform: uppercase; }
.hero-toplink { position: absolute; top: var(--space-12); right: var(--margin); }
.hero-copy { margin-top: auto; max-width: 34rem; }
.hero-copy h1 { font-size: var(--size-hero-h1); font-weight: 700; color: var(--ink); line-height: 1.14; }
.hero-copy h1 .line { display: block; overflow: hidden; }
.hero-copy p { font-family: var(--font-text); font-size: 1rem; color: var(--ink-muted); max-width: 40ch; margin-top: var(--space-4); line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-6); }
/* Entrance motion lives only here: the reduced-motion / no-js page is simply the finished page at rest. */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-copy h1 .line > span { display: block; animation: cb-rise-line 900ms cubic-bezier(.22,1,.36,1) both; }
  html.js .hero-copy h1 .line:nth-of-type(2) > span { animation-delay: 110ms; }
  html.js .hero-copy p, html.js .hero-actions { animation: cb-rise-up 700ms cubic-bezier(.22,1,.36,1) both; animation-delay: 650ms; }
}
@keyframes cb-rise-line { from { transform: translateY(112%); } to { transform: none; } }
@keyframes cb-rise-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-actions .textlink { color: var(--ink-muted); }

.engine-frag { width: min(450px, 86vw); aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-900); position: relative; border: 1px solid var(--hairline); }
.engine-frag canvas { width: 100%; height: 100%; display: block; }
.engine-ui { position: absolute; inset: auto 0 0 0; padding: var(--space-3) var(--space-4); background: linear-gradient(to top, rgba(17,17,17,0.92), rgba(17,17,17,0)); display: flex; flex-direction: column; gap: var(--space-2); }
.engine-readout { display: flex; justify-content: space-between; color: var(--ink); font-size: 0.8125rem; }
.engine-readout code { color: var(--ink-muted); font-family: var(--font-mono); font-size: 0.8125rem; }
.engine-row { display: flex; align-items: center; gap: var(--space-3); }
.engine-row label { font-family: var(--font-text); font-size: 0.8125rem; color: var(--ink-muted); min-width: 5.5rem; }
.engine-row code { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink); }
.engine-row input[type="range"] { flex: 1; -webkit-appearance: none; height: 2px; background: var(--hairline); border-radius: var(--radius-full); }
.engine-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); cursor: pointer; }
.tone-set { display: flex; gap: 6px; flex-wrap: wrap; }
.tone-set button { font-family: var(--font-text); font-weight: 600; letter-spacing: 0.03em; font-size: 0.8125rem; padding: 4px 7px; border-radius: var(--radius-sm); background: var(--surface-700); color: var(--ink-muted); border: 1px solid transparent; }
.tone-set button[aria-pressed="true"] { background: var(--ink); color: var(--surface-900); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { order: -1; min-height: 58svh; padding-block: var(--space-8); }
  .hero-left { padding-top: var(--space-16); }
  .hero-copy { margin-top: var(--space-16); }
  .hero-mark { position: absolute; top: var(--space-6); left: var(--margin); }
  .hero-toplink { display: none; }
  .engine-frag { width: 78vw; }
}

/* ================= SECTION SCAFFOLD ================= */
.section { padding-block: var(--section); }
.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--margin); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--gutter); }

/* ================= ABOUT (founder's letter) ================= */
.about { background: var(--surface-900); }
.letter { position: relative; max-width: 560px; margin: 0 auto; padding: var(--space-16) var(--margin); }
.letter-photo { position: absolute; top: var(--space-8); left: 100%; margin-left: var(--space-8); width: 220px; height: 220px; object-fit: cover; border: 1px solid var(--hairline); border-radius: var(--radius-sm); transform: rotate(-2deg); }
@media (max-width: 1280px) { .letter-photo { display: none; } }
.letter-mark { width: 44px; height: 44px; border-radius: var(--radius-sm); overflow: hidden; }
.letter-mark img { width: 100%; height: 100%; }
.letter p { font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); margin-top: var(--space-6); max-width: none; }
.letter mark { background: var(--accent); color: var(--on-accent); padding: 0 .2em; border-radius: 2px; }
.letter .sign { margin-top: var(--space-8); }
.letter .sign .name { font-family: var(--font-display); font-weight: 700; font-size: var(--size-h2); color: var(--ink); text-transform: uppercase; }
.letter .sign .role { font-family: var(--font-text); font-size: var(--size-small); color: var(--ink-muted); margin-top: var(--space-1); }

/* ================= SHOWCASE (live preset switcher) ================= */
.showcase { background: var(--surface-900); }
.showcase-grid { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: var(--space-8); align-items: start; }
.preset-list { display: flex; flex-direction: column; gap: 2px; }
.preset-list button { text-align: left; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1rem + 2.6vw, 2.6rem); line-height: 1.12; color: var(--ink-muted); padding-block: 4px; transition: color 160ms ease; text-transform: uppercase; }
.preset-list button[aria-pressed="true"] { color: var(--ink); }
.preset-list button .desc { display: block; font-family: var(--font-text); font-size: 0.8125rem; font-weight: 400; color: var(--ink-muted); }
.preset-stage { background: var(--surface-800); border-radius: var(--radius-lg); min-height: 88svh; max-height: 720px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; min-width: 0; }
.preset-sheet { width: min(560px, 80%); aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; position: relative; }
.preset-sheet canvas { width: 100%; height: 100%; display: block; }
.preset-tag { position: absolute; left: var(--space-4); bottom: var(--space-4); background: rgba(17,17,17,0.82); border-radius: var(--radius-sm); padding: 6px 10px; color: var(--ink); }

@media (max-width: 860px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .preset-list { flex-direction: row; flex-wrap: wrap; gap: 4px var(--space-6); }
  .preset-list button { font-size: 1.35rem; }
  .preset-list button .desc { display: none; }
  .preset-stage { min-height: 70svh; }
}

/* ================= GALLERY ================= */
.gallery { background: var(--surface-900); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { display: block; text-decoration: none; min-width: 0; }
.tile .shot { aspect-ratio: 1; background: var(--surface-800); overflow: hidden; }
.tile .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .strip { min-height: 100px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.tile .strip .vals { display: flex; justify-content: space-between; font-size: 0.8125rem; gap: 6px; }
.tile .strip .vals code { font-size: 0.8125rem; }
.tile .strip .meta { display: flex; justify-content: space-between; font-family: var(--font-text); font-size: 0.8125rem; }
.tile .strip .name { font-family: var(--font-text); font-weight: 600; font-size: 0.875rem; }
.strip-a { background: var(--ink); color: var(--surface-900); }
.strip-a code { color: var(--surface-900); }
.strip-b { background: var(--surface-700); color: var(--ink); }
.strip-c { background: var(--accent); color: var(--on-accent); }
.strip-c code { color: var(--on-accent); }
.strip-d { background: var(--surface-700); color: var(--ink-muted); }

@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .tile .strip { min-height: 78px; padding: 10px; gap: 5px; } }

/* ================= FEATURES (panel with margin notes) ================= */
.features { background: var(--surface-900); }
.features-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--gutter); align-items: start; }
.features-grid > * { min-width: 0; }
.features-head { grid-column: 1 / 5; text-align: right; }
.notes-left { grid-column: 1 / 5; display: flex; flex-direction: column; gap: var(--space-8); text-align: right; align-items: flex-end; }
.panel-col { grid-column: 5 / 9; }
.notes-right { grid-column: 9 / 13; display: flex; flex-direction: column; gap: var(--space-8); }
.note { max-width: 24ch; min-width: 0; transition: opacity 200ms ease; cursor: default; }
.note .nname { font-family: var(--font-text); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.note .ndesc { font-family: var(--font-text); font-size: 0.9375rem; color: var(--ink-muted); margin-top: 4px; line-height: 1.5; }
.panel-ui.dim-all [data-grp] { opacity: 0.3; }

/* real FCP-style inspector fragment, marked data-ui: its own borders are the house-rule exception */
.panel-ui { background: var(--surface-800); border: 1px solid var(--hairline); border-radius: var(--radius-md); width: 100%; max-width: 400px; min-height: 640px; margin-inline: auto; font-family: var(--font-text); }
.panel-ui .ptitle { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--hairline); font-size: 0.8125rem; color: var(--ink); font-weight: 600; }
.panel-ui .pgroup { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--hairline); transition: opacity 220ms ease; }
.panel-ui .pgroup.dim { opacity: 0.3; }
.panel-ui .pgroup h4 { font-family: var(--font-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-2); }
.panel-ui .prow { display: flex; justify-content: space-between; align-items: center; padding-block: 3px; font-size: 0.8125rem; color: var(--ink); }
.panel-ui .prow code { color: var(--ink-muted); }

@media (max-width: 960px) {
  .features-grid { grid-template-columns: 1fr; }
  .features-head, .notes-left, .panel-col, .notes-right { grid-column: 1 / -1; text-align: left; align-items: flex-start; }
  .notes-left, .notes-right { flex-direction: row; flex-wrap: wrap; gap: var(--space-4) var(--space-6); }
  .note { max-width: 44ch; flex: 1 1 240px; }
}

/* ================= HOW IT WORKS (call and response) ================= */
.how { background: var(--surface-900); }
.how-col { max-width: 640px; margin: 0 auto; }
.exchange { margin-top: var(--space-16); }
.exchange:first-child { margin-top: 0; }
.exchange .lede { font-family: var(--font-text); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.exchange .call { margin-top: var(--space-4); background: var(--surface-800); border-radius: var(--radius-md); padding: var(--space-4); }
.exchange .call .thumbs { display: flex; gap: var(--space-4); }
.exchange .call .thumbs figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; }
.exchange .call .thumbs img { width: 140px; display: block; }
.exchange .call .thumbs figcaption { font-family: var(--font-text); font-size: 0.75rem; color: var(--ink-muted); background: var(--surface-700); padding: 6px 8px; }
.exchange .call .popup { display: flex; flex-direction: column; gap: 6px; }
.exchange .call .popup .opt { display: flex; justify-content: space-between; font-family: var(--font-text); font-size: 0.875rem; color: var(--ink-muted); padding: 4px 8px; border-radius: var(--radius-sm); }
.exchange .call .popup .opt code { font-size: 0.8125rem; }
.exchange .call .popup .opt.sel { background: var(--surface-700); color: var(--ink); }
.exchange .call .scrub { display: flex; align-items: center; gap: var(--space-3); }
.exchange .call .scrub .track { flex: 1; height: 28px; background: var(--surface-700); border-radius: var(--radius-sm); position: relative; overflow: hidden; }
.exchange .call .scrub .track .head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.exchange .response { margin-top: var(--space-4); margin-left: 56px; }
.exchange .response img, .exchange .response canvas { width: 100%; border-radius: var(--radius-md); }
.exchange.final .response { margin-left: 0; max-width: 760px; }

@media (max-width: 860px) {
  .exchange .response { margin-left: 0; }
  .exchange .call .thumbs img { width: 100px; }
}

/* ================= PROOF ================= */
.proof { background: var(--surface-900); }
.section-head.tight { margin-bottom: var(--space-3); }
.section-sub { font-family: var(--font-text); font-size: 1rem; color: var(--ink-muted); max-width: 48ch; line-height: 1.5; margin-bottom: var(--space-8); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.proof-grid > * { min-width: 0; }
.proof-tile { aspect-ratio: 3/2; border-radius: var(--radius-md); padding: var(--space-4); display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; background: var(--surface-800); }
.proof-tile .num { font-weight: 700; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); color: var(--ink); }
.proof-tile .num code { font-size: inherit; font-weight: inherit; color: inherit; background: none; }
.proof-tile .cap { font-family: var(--font-text); font-size: 0.9375rem; color: var(--ink-muted); margin-top: var(--space-2); overflow-wrap: break-word; }

@media (max-width: 860px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

/* ================= PRICING ================= */
.pricing { background: var(--surface-900); }
.pricing-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--gutter); align-items: center; }
.pricing-left { grid-column: 1 / 5; }
.pricing-left h2 { font-size: var(--size-h1); font-weight: 700; color: var(--ink); }
.pricing-left p { font-family: var(--font-text); color: var(--ink-muted); margin-top: var(--space-4); max-width: 34ch; line-height: 1.5; }
.pricing-right { grid-column: 6 / 13; position: relative; }
.price-figure { display: flex; align-items: flex-end; position: relative; }
.price-figure .cur { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.4rem, 2rem + 6vw, 7rem); color: var(--ink); align-self: flex-start; margin-top: 0.4em; }
.price-figure .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(7.5rem, 4rem + 16vw, 15rem); line-height: 0.85; letter-spacing: -0.02em; color: var(--ink); }
.price-figure .period { font-family: var(--font-text); font-size: 1.1rem; color: var(--ink-muted); margin-left: 8px; align-self: flex-end; margin-bottom: 0.3em; }
.price-overlap { position: absolute; top: -8%; right: 6%; width: 86px; height: 86px; opacity: 0.95; }
.price-intro { font-family: var(--font-text); font-size: 0.9rem; color: var(--ink-muted); margin-top: var(--space-2); }
.price-included { margin-top: var(--space-8); display: flex; flex-direction: column; gap: 10px; }
.price-included div { font-family: var(--font-text); font-size: 1.05rem; color: var(--ink); }
.pricing-right .btn { margin-top: var(--space-8); }

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; min-height: auto; gap: var(--space-8); }
  .pricing-left, .pricing-right { grid-column: 1 / -1; }
  .price-figure .num { font-size: 34vw; }
  .price-overlap { width: 64px; height: 64px; }
}

/* ================= FAQ ================= */
.faq { background: var(--surface-900); }
.faq-grid { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: var(--space-8); align-items: start; }
.faq-head { position: sticky; top: 96px; }
.faq-list { display: flex; flex-direction: column; gap: var(--space-2); }
.faq-list details { background: var(--surface-800); border-radius: var(--radius-md); overflow: hidden; }
.faq-list details[open] { background: var(--accent); color: var(--on-accent); }
.faq-list summary { list-style: none; cursor: pointer; min-height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font-family: var(--font-text); font-weight: 600; font-size: 1.1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; margin-left: 16px; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: currentColor; }
.faq-plus::before { width: 16px; height: 3px; top: 6.5px; left: 0; }
.faq-plus::after { width: 3px; height: 16px; left: 6.5px; top: 0; transition: transform 160ms ease; }
.faq-list details[open] .faq-plus::after { transform: rotate(90deg); }
.faq-list .answer { padding: 0 24px 24px; font-family: var(--font-text); font-size: 1.0625rem; max-width: 52ch; line-height: 1.5; }

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .faq-head { position: static; }
  .faq-list summary { font-size: 1rem; min-height: 64px; padding: 0 20px; }
  .faq-list .answer { padding: 0 20px 20px; font-size: 1rem; }
}

/* ================= CTA ================= */
.cta-band { display: block; background: var(--accent-strong); color: var(--on-accent-strong); min-height: 60svh; position: relative; text-decoration: none; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; transition: background 160ms ease, color 160ms ease; }
.cta-band:hover { background: var(--ink); color: var(--surface-900); }
.cta-band .corner-note { position: absolute; top: 20px; left: var(--margin); font-family: var(--font-text); font-size: 1rem; max-width: 26ch; }
.cta-band .corner-arrow { position: absolute; top: 20px; right: var(--margin); width: 48px; height: 48px; }
.cta-band .word { position: absolute; left: var(--margin); right: var(--margin); bottom: 24px; font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 3rem + 20vw, 13rem); line-height: 0.85; letter-spacing: -0.02em; white-space: nowrap; text-transform: uppercase; }

@media (max-width: 860px) {
  .cta-band { min-height: 46svh; }
  .cta-band .corner-note { font-size: 0.9rem; max-width: 60vw; }
  .cta-band .corner-arrow { width: 32px; height: 32px; }
}

/* ================= FOOTER ================= */
.footer { background: var(--surface-900); }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 8px; margin: 0 8px 8px; min-width: 0; }
.ftile { background: var(--surface-800); border-radius: var(--radius-md); padding: 20px; min-width: 0; }
.f-statement { grid-column: 1 / 5; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.f-statement p { font-family: var(--font-text); font-size: 1.1rem; color: var(--ink); max-width: 28ch; }
.f-statement .legal { font-family: var(--font-text); font-size: 0.75rem; color: var(--ink-muted); }
.f-nav { grid-column: 5 / 8; min-height: 220px; }
.f-nav ul { display: flex; flex-direction: column; gap: 10px; }
.f-nav a { font-family: var(--font-text); font-size: 1rem; text-decoration: none; }
.f-nav a:hover { color: var(--accent); }
.f-time { grid-column: 8 / 10; min-height: 220px; font-size: 0.9rem; color: var(--ink-muted); }
.f-time code { font-size: inherit; color: inherit; }
.f-email { grid-column: 10 / 13; min-height: 220px; display: flex; align-items: flex-end; }
.f-email a { font-family: var(--font-text); font-size: 1.15rem; text-decoration: underline; overflow-wrap: break-word; min-width: 0; }
.f-word { grid-column: 1 / 9; min-height: 320px; background: var(--surface-800); color: var(--ink); display: flex; align-items: center; justify-content: center; border: 1px solid var(--hairline); }
.f-word span { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 1.4rem + 5vw, 5.2rem); text-transform: uppercase; }
.f-invite { grid-column: 9 / 13; min-height: 320px; background: var(--accent); color: var(--on-accent); padding: 24px; position: relative; text-decoration: none; display: block; transition: opacity 160ms ease; }
.f-invite:hover { opacity: 0.88; }
.f-invite .t { font-family: var(--font-text); font-weight: 700; font-size: 1.4rem; max-width: 14ch; }
.f-invite svg { position: absolute; bottom: 20px; right: 20px; width: 40px; height: 40px; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
  .f-word { grid-column: 1 / -1; order: -2; min-height: 160px; }
  .f-invite { grid-column: 1 / -1; order: -1; min-height: 160px; }
  .f-nav, .f-email { grid-column: span 1; min-height: 180px; }
  .f-time, .f-statement { grid-column: span 1; min-height: 180px; }
}

/* ================= fullness / empty-stretch guard ================= */
.rest { min-height: 0; }
