/* Vexit site. DESIGN.md ("The Last Second") is the visual authority; the extension's dark
   countdown card is the page's visual base. Every colour, size and timing lives in a token below. */

/* Brand faces, self-hosted (the CSP is self-only). Latin subsets, variable; licenses in /fonts.
   A changed font file must get a new name: /fonts/* is cached for a year as immutable. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-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: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-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;
}

:root {
  color-scheme: dark;

  /* Brand tokens: a mirror of docs/brand/tokens.css (:root, the dark scene). site/test/brand.test.js
     fails if they drift. */
  --brand-bg: #0b0c0e;
  --brand-surface: #131418;
  --brand-text: #ededee;
  --brand-muted: #a6a8ad;
  --brand-amber: #f5c451;
  --brand-on-amber: #1a1405;
  --brand-mark: var(--brand-amber);
  --brand-font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --brand-font-body: "Atkinson Hyperlegible Next", system-ui, sans-serif;

  /* Site roles, each on a brand value (DESIGN.md colour names in brackets).
     Contrast on --bg: --fg 16.7:1, --muted 8.2:1, --subtle 5.3:1, --amber 12.0:1, --focus 16.7:1
     (15.7:1 on --surface, 16.3:1 on --card). */
  --bg: var(--brand-bg);              /* Night */
  --surface: var(--brand-surface);    /* Night Surface */
  --card: #0f1011;                    /* Dock Surface */
  --fg: var(--brand-text);            /* Signal White */
  --fg-strong: #ffffff;               /* Pure White */
  --muted: var(--brand-muted);        /* Quiet Grey */
  --subtle: #85878d;                  /* Dock Grey */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.22);
  --amber: var(--brand-amber);        /* Countdown Amber: "about to act" only */
  /* Focus: the extension's own focus colour, not amber (the Last-Second Rule keeps amber off
     borders and decoration) and not a second hue. */
  --focus: var(--brand-text);
  --danger: #ff9a9a;                  /* Soft Red */
  --ok: #9be7a8;                      /* Done Green */

  /* Spacing scale (DESIGN.md spacing). */
  --space-hair: 4px;
  --space-tight: 8px;
  --space-row: 12px;
  --space-edge: 16px;
  --space-card: 18px;
  --target: 44px;
  --target-lg: 56px;

  /* The mock Vevox screen in the previews (our own generic mock, not Vevox's UI). */
  --mock-bg: #f4f5f7;
  --mock-bar: #e3e5e9;
  --mock-dot: #c4c7cd;
  --mock-card: #ffffff;
  --mock-fg: #1d1f23;
  --mock-muted: #5d6169;
  --mock-line: #dfe2e7;
  --mock-ok-bg: #e7f6ea;
  --mock-ok-line: #5cb86c;

  --font: var(--brand-font-body);
  --font-display: var(--brand-font-display);
  /* The product previews stay in the system face, as the extension does (no web fonts in Vevox). */
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem);
  --text-h1: clamp(2.375rem, 1.5rem + 3.9vw, 4.25rem);

  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --wrap: 72rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --section-pad: clamp(4rem, 2.5rem + 6vw, 7.5rem);

  --poll-loop: 9s;
  --chat-loop: 6s;

  font-family: var(--font);
  font-size: 100%;
  line-height: 1.55;
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
}

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

/* Nothing may override the hidden attribute (applyCta relies on it for the CTA blocks). */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--fg-strong);
  font-family: var(--font-display);
  font-weight: 650;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

html {
  accent-color: var(--fg);
  caret-color: var(--fg);
}

p {
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}

a {
  color: var(--fg-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a,
button,
input,
select,
textarea,
summary {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

/* ---- Forms and buttons (also used by /confirm, /me, /unsubscribe) ---- */

label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg);
}

input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
}

input[aria-invalid="true"] {
  border-color: var(--danger);
}

textarea {
  min-height: 8rem;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--fg);
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--fg-strong);
  text-decoration: none;
}

button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
}

/* A store link with no URL yet is never shown as a dead button. */
a[data-store]:not([href]) {
  display: none;
}

[role="status"] p {
  margin-top: 0.75rem;
}

.hint,
.cta-note {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  color: var(--subtle);
}

/* ---- Page frame ---- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Reading-width content that keeps the same left edge as every other section. */
.narrow > * {
  max-width: 44rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

/* The logo lockup (docs/brand/logo/logo-dark.svg: amber mark, Signal White wordmark). Its height
   sets its size; 28px keeps it above the 20px minimum with the mark near its 24px hand-tuned size.
   The link's padding is the lockup's clear space. */
.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  min-width: var(--target);
  padding: 0 var(--space-tight);
  margin-left: calc(-1 * var(--space-tight));
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.brand img,
.footer-logo {
  display: block;
  width: auto;
  height: 28px;
}

.footer-logo {
  height: 24px;
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  min-width: var(--target);
}

.header-link {
  padding: 0 0.25rem;
  color: var(--muted);
  font-size: var(--text-sm);
  text-decoration: none;
}

.header-link:hover {
  color: var(--fg-strong);
}

/* Token pages (/confirm, /me, /unsubscribe) and 404: one narrow column. */
main:not(.landing) {
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter) 2rem;
}

main:not(.landing) h1 {
  font-size: var(--text-h2);
  margin-bottom: 1rem;
}

main:not(.landing) p {
  margin-top: 1rem;
  color: var(--muted);
}

main:not(.landing) button {
  margin-top: 1.5rem;
}

main:not(.landing) [role="status"] {
  margin-top: 1rem;
  color: var(--fg);
}

footer,
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: var(--text-sm);
  color: var(--subtle);
}

body > footer:not(.site-footer) {
  max-width: 40rem;
  margin: 3rem auto 0;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

/* ---- Landing sections ---- */

.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
}

.section-tight {
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0;
}

.section h2 {
  font-size: var(--text-h2);
  line-height: 1.12;
}

.lede {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 34rem;
}

/* Hero */

.hero {
  padding: clamp(2.5rem, 1.5rem + 5vw, 6rem) 0 var(--section-pad);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  align-items: center;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: var(--text-h1);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

.hero .lede {
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Each store link is followed by a "<Store>: get notified" link to the signup form. It shows only
   while that store link has no URL (it is hidden then), so a store that isn't live yet never
   leaves a dead button or a dead end, with or without JS. */
.store-soon {
  display: none;
}

a[data-store]:not([href]) + .store-soon {
  display: inline-flex;
}

.button-primary,
.button-quiet {
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  font-size: var(--text-md);
}

.button-quiet {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--fg-strong);
}

.button-quiet:hover {
  border-color: var(--fg);
  background: var(--surface);
}

.signup-row {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.signup-row button {
  min-height: 52px;
}

.beta-note {
  margin-top: 1rem;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Steps */

.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  font-size: var(--text-lg);
  color: var(--fg);
}

.step-n {
  font-variant-numeric: tabular-nums;
  color: var(--subtle);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.2;
}

/* Split layouts (chat preview, pricing) */

.split,
.pricing-grid {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
}

.split-copy .lede {
  margin-top: 1rem;
}

/* Coming-soon feature: the one lit panel on the page */

.section-feature {
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.section-feature h2 {
  font-size: clamp(2.125rem, 1.4rem + 3vw, 3.5rem);
  line-height: 1.08;
  color: var(--fg-strong);
  text-wrap: balance;
}

/* "Coming soon." opens the lede in prose, so the status reads as part of the sentence. */
.soon {
  color: var(--fg-strong);
  font-weight: 650;
}

.vx-ai {
  color: var(--fg-strong);
  font-weight: 600;
}

/* Trust strip */

.trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.trust li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  font-size: var(--text-lg);
  font-weight: 560;
  color: var(--fg-strong);
}

.trust li:first-child {
  border-top: 0;
}

/* Accessibility */

#access p {
  margin-top: 1.25rem;
  font-size: var(--text-lg);
  color: var(--muted);
}

.ticks {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.ticks li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  border-top: 1px solid var(--line);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 1.2rem;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

/* Pricing */

.pricing-grid {
  align-items: start;
}

.pricing-grid > div > p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 32rem;
}

.ladder {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.ladder li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.ladder li:last-child {
  border-bottom: 1px solid var(--line);
}

.ladder-name {
  font-weight: 600;
}

.ladder-price {
  font-size: 1.375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fg-strong);
}

.ladder small {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--subtle);
}

.ladder-name small {
  display: block;
}

.ladder .ladder-main {
  padding: 1.25rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.ladder .ladder-main + li {
  border-top: 0;
}

.founding {
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.founding h3 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.founding > p {
  margin-top: 0.875rem;
  color: var(--muted);
}

.founding .signup {
  margin-top: 1.5rem;
}

.counter {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--fg-strong);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* FAQ */

#faq h2 {
  margin-bottom: 1.5rem;
}

details {
  border-top: 1px solid var(--line);
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0.75rem 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--fg-strong);
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+" / "";
  flex: none;
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--subtle);
}

details[open] summary::after {
  content: "\2212" / "";
}

details p {
  padding: 0 0 1.25rem;
  color: var(--muted);
}

/* ---- The previews (decorative; each has a text description next to it) ---- */

.loop {
  position: relative;
}

.screen {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--mock-bg);
  color: var(--mock-fg);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  background: var(--mock-bar);
}

.screen-bar i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mock-dot);
}

/* Poll loop: the base styles are the reduced-motion still (countdown showing). The frame is tall
   enough at every width that the countdown card sits below option C instead of covering it. */

.loop-poll .screen {
  height: 380px;
}

.poll {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 42px;
  padding: 14px;
  border-radius: 10px;
  background: var(--mock-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: poll-in var(--poll-loop) infinite;
}

.poll-q {
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
}

.poll-o {
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--mock-line);
  border-radius: 7px;
  background: var(--mock-card);
}

.poll-pick {
  animation: poll-pick var(--poll-loop) infinite;
}

.vx {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 214px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  animation: vx-in var(--poll-loop) infinite;
}

.vx-meter {
  height: 2px;
  transform: scaleX(0.6);
  transform-origin: left;
  background: var(--fg);
  animation: vx-drain var(--poll-loop) infinite linear;
}

.vx-head {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px 0;
  font-size: 12px;
  color: var(--subtle);
}

/* Countdown seconds: the one amber on the page, as in the extension. */
.vx-secs {
  display: inline-grid;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.vx-secs > span {
  grid-area: 1 / 1;
  opacity: 0;
  animation: vx-tick var(--poll-loop) infinite both;
}

.vx-secs > span:nth-child(2) { animation-delay: 1s; }
.vx-secs > span:nth-child(3) { animation-delay: 2s; }
.vx-secs > span:nth-child(4) { animation-delay: 3s; }
.vx-secs > span:nth-child(5) { animation-delay: 4s; }

.vx-secs > .vx-still {
  opacity: 1;
}

.vx-msg {
  padding: 4px 12px 12px;
  font-size: 16px;
  color: var(--fg-strong);
}

.vx-act {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.vx-primary {
  background: var(--fg);
  color: var(--card);
  font-weight: 560;
}

.vx-danger {
  color: var(--danger);
}

.vx-sent {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--card);
  color: var(--ok);
  font-size: 14px;
  opacity: 0;
  animation: vx-sent var(--poll-loop) infinite;
}

@keyframes poll-in {
  0%, 2% { opacity: 0; transform: translateY(8px); }
  7%, 94% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

@keyframes vx-in {
  0%, 10% { opacity: 0; transform: translateY(12px); }
  14%, 69% { opacity: 1; transform: none; }
  73%, 100% { opacity: 0; transform: none; }
}

@keyframes vx-drain {
  0%, 14% { transform: scaleX(1); }
  69%, 100% { transform: scaleX(0); }
}

/* Each second shows for 1s (11.1% of 9s); the spans are offset by animation-delay. */
@keyframes vx-tick {
  0%, 13.9% { opacity: 0; }
  14%, 25% { opacity: 1; }
  25.1%, 100% { opacity: 0; }
}

@keyframes poll-pick {
  0%, 70% { background: var(--mock-card); border-color: var(--mock-line); }
  73%, 94% { background: var(--mock-ok-bg); border-color: var(--mock-ok-line); }
  100% { background: var(--mock-card); border-color: var(--mock-line); }
}

@keyframes vx-sent {
  0%, 71% { opacity: 0; }
  74%, 92% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

/* Chat loop: the base styles are the reduced-motion still (phrase already sent). */

/* The chat fills the space above the dock and keeps its newest message at the bottom, so a dock
   that wraps onto two rows on a phone never covers the message it just sent. */
.screen-chat {
  display: flex;
  flex-direction: column;
}

.chat {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
  mask-image: linear-gradient(to bottom, transparent, #000 28px);
}

.chat-msg {
  flex: none;
}

.chat-msg {
  max-width: 85%;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--mock-card);
  border: 1px solid var(--mock-line);
}

.chat-who {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--mock-muted);
}

.chat-mine {
  align-self: flex-end;
  border-color: var(--mock-ok-line);
  background: var(--mock-ok-bg);
  animation: chat-mine var(--chat-loop) infinite;
}

.dock {
  flex: none;
  margin: 0 14px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.dock-name {
  padding: 0 8px;
  font-size: 12px;
  color: var(--subtle);
}

.dock-phrase {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
}

.dock-press {
  animation: dock-press var(--chat-loop) infinite;
}

@keyframes dock-press {
  0%, 28% { background: rgba(255, 255, 255, 0.06); transform: none; }
  31% { background: rgba(255, 255, 255, 0.24); transform: scale(0.96); }
  36%, 100% { background: rgba(255, 255, 255, 0.06); transform: none; }
}

@keyframes chat-mine {
  0%, 33% { opacity: 0; transform: translateY(10px); }
  38%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

/* ---- Wider screens ---- */

@media (min-width: 40rem) {
  .signup-row {
    flex-direction: row;
  }

  .signup-row input {
    flex: 1 1 14rem;
    min-height: 52px;
  }

  .signup-row button {
    flex: none;
  }

  .trust {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .trust li,
  .trust li:first-child {
    padding: 0 0 0 1rem;
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }

  .screen {
    height: 340px;
    font-size: 14px;
  }

  .vx {
    width: 240px;
  }
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .steps li {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 1rem;
    padding-top: 1.5rem;
  }

  .split {
    grid-template-columns: 1fr 1.1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .screen {
    height: 380px;
  }
}

/* Reduced motion: every .loop holds its still frame (the poll countdown, the chat phrase sent). */
@media (prefers-reduced-motion: reduce) {
  .loop,
  .loop *,
  .loop *::before,
  .loop *::after {
    animation: none !important;
  }

  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Cookie settings link and consent banner (js/consent.js; marketing pages only) ----
   Accept and Decline share one class on purpose: same size, border, fill and weight. The banner
   is not modal, so the page stays usable. While it is open the page gets bottom padding the size
   of the banner (--consent-h, set by consent.js) so it never covers content or a focused control. */
.link-button {
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font-weight: inherit;
  text-decoration: underline;
}

.link-button:hover {
  background: transparent;
  color: var(--fg-strong);
  text-decoration-thickness: 2px;
}

html.consent-open {
  padding-bottom: var(--consent-h, 0);
  scroll-padding-bottom: var(--consent-h, 0);
}

.consent-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  padding: 1rem var(--gutter);
  border-top: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.consent-banner:focus {
  outline: none;
}

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

.consent-banner > * {
  max-width: 48rem;
  margin-inline: auto;
}

.consent-title {
  font-size: var(--text-md);
}

.consent-text {
  margin: 0.375rem auto 0;
  font-size: var(--text-sm);
  color: var(--fg);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.875rem;
}

.consent-btn {
  flex: 1 1 8rem;
  min-height: 48px;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg-strong);
}

.consent-btn:hover {
  background: var(--surface);
  border-color: var(--fg-strong);
  box-shadow: inset 0 0 0 1px var(--fg-strong);
}

/* ---- Footer legal links and the legal pages (/privacy, /terms) ---- */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin-top: 0.5rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--fg-strong);
  text-decoration: underline;
}

/* The Cookie settings button sits in the same nav and reads like its sibling links. */
.footer-links .link-button {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: var(--muted);
  text-decoration: none;
}

.footer-links .link-button:hover {
  color: var(--fg-strong);
  text-decoration: underline;
}

.site-footer .footer-links {
  margin-top: 0;
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: var(--text-lg);
}

.legal h3 {
  margin-top: 1.75rem;
  font-size: var(--text-md);
}

.legal ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  max-width: 56ch;
  color: var(--muted);
}

.legal li + li {
  margin-top: 0.5rem;
}

.legal .toc {
  margin-top: 1.5rem;
}

.legal .toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.legal .toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--fg);
}

/* Owner-fill markers: visible until replaced. */
.placeholder {
  padding: 0 0.25em;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--fg-strong);
}
