/* AlwaysUp marketing site V0 — hand-built, no framework.
   Identity: "the lifeline". A line that keeps going when the host's line breaks.
   Ink + warm paper, one live accent (signal), coral for failure, amber for the saved copy. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --card: #fbfaf6;
  --ink: #0f1214;
  --ink-2: #33393e;
  --muted: #5a6067;
  --line: #d9d3c6;
  --night: #0b0e10;
  --night-2: #13181b;
  --night-3: #1c2327;
  --night-line: #2a3237;
  --night-text: #e9ece6;
  --night-muted: #a3aba7;
  --signal: #cdf54b;
  --signal-2: #b3e02a;
  --signal-ink: #2d5a07; /* signal as text on paper, AA */
  --alarm: #ff5b3a;
  --alarm-ink: #b3290f;
  --amber: #ffbf3c;
  --amber-ink: #8a5a00;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(15, 18, 20, 0.04), 0 18px 50px -24px rgba(15, 18, 20, 0.35);
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; font-variation-settings: "opsz" 96; }
h3 { letter-spacing: -0.015em; line-height: 1.15; }

:focus-visible { outline: 3px solid var(--signal-2); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--signal); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(780px + var(--gutter) * 2); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow { color: var(--night-muted); }
.display-xl { font-size: clamp(46px, 8.4vw, 124px); line-height: 0.93; letter-spacing: -0.04em; font-weight: 750; }
.display-l { font-size: clamp(38px, 5.6vw, 80px); line-height: 0.98; letter-spacing: -0.035em; }
.display-m { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -0.03em; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.on-dark .lede { color: var(--night-muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.hl { color: var(--signal-ink); }
.on-dark .hl { color: var(--signal); }
.strike { text-decoration: line-through; text-decoration-thickness: 0.08em; text-decoration-color: var(--alarm); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 16.5px; text-decoration: none;
  cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-signal { --bg: var(--signal); --fg: var(--ink); }
.btn-signal:hover { --bg: #d9ff63; box-shadow: 0 10px 40px -10px rgba(205, 245, 75, 0.55); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.on-dark .btn-ghost { --fg: var(--night-text); box-shadow: inset 0 0 0 1.5px var(--night-line); }
.on-dark .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--night-text); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 14.5px; color: var(--muted); margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cta-note span { display: inline-flex; align-items: center; gap: 7px; }
.cta-note span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal-2); }
.on-dark .cta-note { color: var(--night-muted); }
.on-dark .cta-note span::before { background: var(--signal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--night-text);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .wp { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; padding: 2px 5px; border-radius: 5px; background: var(--signal); color: var(--ink); transform: translateY(-1px); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 15.5px; color: var(--night-muted); transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--night-text); background: rgba(255, 255, 255, 0.06); }
.nav .btn { margin-left: 10px; color: var(--ink); }
.nav .btn:hover { background: #d9ff63; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--night-line); color: var(--night-text); border-radius: 999px; height: 42px; padding: 0 16px; font-size: 15px; cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 22px; background: var(--night); border-bottom: 1px solid var(--night-line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--night-line); }
  .nav .btn { margin: 14px 0 0; border-bottom: 0; border-radius: 999px; justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-tight { padding: clamp(60px, 8vw, 100px) 0; }
.on-dark { background: var(--night); color: var(--night-text); }
.paper-2 { background: var(--paper-2); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 76px); max-width: 860px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 92px) 0 clamp(64px, 8vw, 110px); overflow: hidden; position: relative; }
.hero::before {
  /* faint grid, like an instrument panel */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 64px); position: relative; }
.hero-copy { display: grid; gap: 26px; max-width: 980px; }
.hero h1 .line2 { color: var(--signal); display: block; }
.badge-live {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--night-line); color: var(--night-muted); text-decoration: none;
}
.badge-live b { color: var(--night-text); font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(205, 245, 75, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(205, 245, 75, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(205, 245, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(205, 245, 75, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.hero .lede { font-size: clamp(18px, 1.6vw, 22px); max-width: 36em; }
.hero .lede strong { color: var(--night-text); font-weight: 600; }
@media (min-width: 1100px) {
  .hero-home .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 52px; }
  .hero-home h1 { font-size: clamp(52px, 4.5vw, 70px); }
  .hero-home .lede { font-size: 19px; }
  .hero-home .hero-copy { gap: 24px; }
}
.demo::before { content: ""; position: absolute; inset: 8% -6% 20% -6%; background: radial-gradient(closest-side, rgba(205, 245, 75, 0.13), transparent); filter: blur(20px); pointer-events: none; z-index: -1; }
.hero-home .demo { isolation: isolate; }

/* ---------- Demo ---------- */
.demo { position: relative; display: grid; gap: 18px; }
.demo-frame { position: relative;
  border-radius: 16px; background: var(--night-2); border: 1px solid var(--night-line);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}
.demo-chrome { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--night-line); }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2f383d; }
.urlbar {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 8px;
  background: var(--night-3); font-family: var(--font-mono); font-size: 12.5px; color: var(--night-muted); overflow: hidden; white-space: nowrap;
}
.urlbar svg { width: 12px; height: 12px; flex: none; }
.sim-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-muted); flex: none; }

.stage-view { position: relative; aspect-ratio: 16 / 9.4; container-type: inline-size; background: #fff; user-select: none; touch-action: pan-y; }
.layer { position: absolute; inset: 0; overflow: hidden; }
.layer-without { clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); z-index: 2; }
.split-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%); z-index: 5; width: 44px; margin-left: -22px;
  display: flex; justify-content: center; cursor: ew-resize; background: none; border: 0; padding: 0;
}
.split-handle::before { content: ""; width: 2px; height: 100%; background: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6); }
.split-handle .knob {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--paper); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.split-handle .knob svg { width: 20px; height: 20px; }
.split-handle:focus-visible { outline: none; }
.split-handle:focus-visible .knob { box-shadow: 0 0 0 3px var(--signal), 0 6px 20px rgba(0, 0, 0, 0.35); }

.compare-bar { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--night-2); border-bottom: 1px solid var(--night-line); }
.side-label {
  position: relative; z-index: 6; font-family: var(--font-mono); font-size: clamp(9.5px, 1.5cqi, 12px); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; pointer-events: none;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.side-label.l { background: rgba(255, 91, 58, 0.14); color: #ff9a84; }
.side-label.r { background: var(--signal); color: var(--ink); }
.side-label .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* --- the mock WordPress site ("Fern & Fig", fictional) --- */
.mock { position: absolute; inset: 0; font-family: var(--font-body); color: #1d1b17; background: #fffaf2; display: grid; grid-template-rows: auto 1fr; font-size: clamp(8px, 1.55cqi, 15px); line-height: 1.4; }
.mock-nav { display: flex; align-items: center; justify-content: space-between; padding: 2.4cqi 4cqi 1.6cqi; padding-top: 6cqi; }
.mock-logo { font-family: var(--font-display); font-weight: 700; font-size: 2.4cqi; letter-spacing: -0.02em; display: flex; gap: 0.8cqi; align-items: center; }
.mock-logo i { width: 2.4cqi; height: 2.4cqi; border-radius: 50% 50% 50% 0; background: #3f6b3a; display: inline-block; }
.mock-links { display: flex; gap: 2.6cqi; font-size: 1.45cqi; color: #6b6355; }
.mock-body { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.4cqi; padding: 1cqi 4cqi 4cqi; align-items: stretch; }
.mock-hero-text h4 { font-family: var(--font-display); font-size: 4.6cqi; line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 1.6cqi; color: #1d1b17; font-variation-settings: "opsz" 96; }
.mock-hero-text p { font-size: 1.5cqi; color: #6b6355; margin-bottom: 2cqi; max-width: 26em; }
.mock-art { border-radius: 1.6cqi; background: #e9dcc4; position: relative; overflow: hidden; min-height: 10cqi; margin-bottom: 0; }
.mock-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-left { display: grid; grid-template-rows: auto 1fr; gap: 1.6cqi; }
.mock-form { background: #fff; border: 1px solid #eadfcd; border-radius: 1.6cqi; padding: 2.4cqi; display: grid; gap: 1.3cqi; position: relative; box-shadow: 0 1cqi 3cqi -1.5cqi rgba(80, 60, 20, 0.25); align-content: start; }
.mock-form h5 { margin: 0; font-family: var(--font-display); font-size: 2cqi; letter-spacing: -0.02em; }
.mock-form .sub { font-size: 1.3cqi; color: #6b6355; margin-top: -0.6cqi; }
.mock-field { border: 1px solid #e3d7c3; border-radius: 0.9cqi; padding: 1.1cqi 1.4cqi; font-size: 1.4cqi; color: #9b927f; background: #fffdf8; display: flex; justify-content: space-between; min-height: 4.2cqi; align-items: center; }
.mock-field.filled { color: #1d1b17; }
.mock-field .caret { display: inline-block; width: 1px; height: 1.6cqi; background: #1d1b17; margin-left: 2px; vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqi; }
.mock-btn { border-radius: 0.9cqi; background: #3f6b3a; color: #fff; text-align: center; padding: 1.3cqi; font-weight: 600; font-size: 1.5cqi; transition: transform 0.15s, background 0.3s; }
.mock-btn.pressed { transform: scale(0.97); background: #2f5229; }
.mock-btn.disabled { background: #cfc6b5; color: #fff; }
.mock-note { font-size: 1.2cqi; color: #8a3d1d; display: none; }
.mock-success { position: absolute; inset: 0; border-radius: inherit; background: #fff; display: grid; place-items: center; text-align: center; padding: 2cqi; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.mock-success .tick { width: 6cqi; height: 6cqi; border-radius: 50%; background: #3f6b3a; color: #fff; display: grid; place-items: center; margin: 0 auto 1.2cqi; }
.mock-success .tick svg { width: 3.2cqi; height: 3.2cqi; }
.mock-success b { font-family: var(--font-display); font-size: 2.2cqi; display: block; letter-spacing: -0.02em; }
.mock-success span { font-size: 1.35cqi; color: #6b6355; }
.mock-banner { position: absolute; left: 0; right: 0; top: 0; height: 4.6cqi; background: #1d1b17; color: #fff; font-size: 1.3cqi; display: flex; align-items: center; justify-content: center; gap: 1cqi; transform: translateY(-100%); transition: transform 0.4s var(--ease); z-index: 3; }
.mock-banner i { width: 1cqi; height: 1cqi; border-radius: 50%; background: var(--amber); }
.mock-cursor { position: absolute; z-index: 4; width: 3cqi; height: 3cqi; left: 70%; top: 70%; opacity: 0; transition: left 0.9s var(--ease), top 0.9s var(--ease), opacity 0.3s; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }

/* error screens */
.err { position: absolute; inset: 0; background: #fff; display: grid; place-items: center; padding: 6cqi; opacity: 0; transition: opacity 0.35s; z-index: 2; }
.err-box { max-width: 62cqi; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; color: #3c434a; font-size: 1.6cqi; }
.err-box h6 { margin: 0 0 1.4cqi; font-size: 3.2cqi; font-weight: 400; color: #1d2327; border-bottom: 1px solid #dcdcde; padding-bottom: 1.2cqi; font-family: inherit; letter-spacing: 0; }
.err-box .code { margin-top: 2cqi; font-family: var(--font-mono); font-size: 1.25cqi; color: #a7aaad; }
.err-box .lost { margin-top: 2.4cqi; display: inline-flex; gap: 1cqi; align-items: center; font-family: var(--font-mono); font-size: 1.35cqi; color: var(--alarm-ink); background: #fff1ed; border: 1px solid #ffd2c6; padding: 0.8cqi 1.4cqi; border-radius: 99px; }

/* checking overlay on protected side (we confirm before acting) */
.confirming { position: absolute; z-index: 3; left: 50%; bottom: 4cqi; transform: translate(-50%, 20px); opacity: 0; transition: opacity 0.35s, transform 0.35s var(--ease); background: var(--ink); color: #fff; border-radius: 99px; padding: 1.1cqi 2cqi; font-family: var(--font-mono); font-size: 1.35cqi; display: flex; gap: 1.2cqi; align-items: center; white-space: nowrap; }
.confirming .spin { width: 1.8cqi; height: 1.8cqi; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: var(--signal); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.handback { position: absolute; z-index: 3; right: 3cqi; bottom: 3cqi; width: 40cqi; background: var(--ink); color: #fff; border-radius: 1.6cqi; padding: 2cqi; font-size: 1.35cqi; opacity: 0; transform: translateY(14px); transition: opacity 0.4s, transform 0.4s var(--ease); box-shadow: 0 2cqi 5cqi -2cqi rgba(0, 0, 0, 0.5); }
.handback .t { font-family: var(--font-mono); font-size: 1.15cqi; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); margin-bottom: 0.8cqi; display: block; }
.handback b { font-family: var(--font-display); font-size: 2cqi; letter-spacing: -0.02em; display: block; margin-bottom: 0.6cqi; font-weight: 650; line-height: 1.15; }
.handback .bar { height: 0.7cqi; border-radius: 99px; background: rgba(255, 255, 255, 0.15); overflow: hidden; margin-top: 1.2cqi; }
.handback .bar i { display: block; height: 100%; width: 0; background: var(--signal); transition: width 2.6s linear; }
.handback ul { margin: 0.8cqi 0 0; padding: 0; list-style: none; display: grid; gap: 0.4cqi; color: #c9d0cc; }
.handback li::before { content: "✓ "; color: var(--signal); }

/* demo states */
.demo[data-stage="1"] .layer-without .err-db,
.demo[data-stage="2"] .layer-without .err-db,
.demo[data-stage="3"] .layer-without .err-db { opacity: 1; }
.demo[data-stage="1"] .layer-with .err-db { opacity: 1; }
.demo[data-stage="1"] .layer-with .confirming { opacity: 1; transform: translate(-50%, 0); }
.demo[data-stage="2"] .layer-with .mock-banner { transform: none; }
.demo[data-stage="2"] .layer-with .mock-btn { background: #cfc6b5; }
.demo[data-stage="2"] .layer-with .mock-note { display: block; }
.demo[data-stage="4"] .layer-with .handback,
.demo[data-stage="5"] .layer-with .handback { opacity: 1; transform: none; }
.demo[data-stage="4"] .layer-with .handback .bar i { width: 82%; }
.demo[data-stage="5"] .layer-with .handback .bar i { width: 100%; transition-duration: 0.4s; }
.demo[data-stage="4"] .layer-without .lost-banner,
.demo[data-stage="5"] .layer-without .lost-banner { transform: none; }
.lost-banner { position: absolute; left: 0; right: 0; top: 0; height: 4.6cqi; background: var(--alarm); color: #fff; font-size: 1.3cqi; display: flex; align-items: center; justify-content: center; gap: 1cqi; transform: translateY(-100%); transition: transform 0.4s var(--ease); z-index: 3; font-family: var(--font-mono); padding: 0 2cqi; justify-content: flex-start; white-space: nowrap; }

/* status bar under the browser */
.demo-status { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--night-line); background: var(--night-2); }
.status-pill { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: rgba(205, 245, 75, 0.12); color: var(--signal); white-space: nowrap; transition: background 0.3s, color 0.3s; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill[data-tone="watch"] { background: rgba(255, 255, 255, 0.08); color: #e9ece6; }
.status-pill[data-tone="amber"] { background: rgba(255, 191, 60, 0.14); color: var(--amber); }
.status-pill[data-tone="alarm"] { background: rgba(255, 91, 58, 0.14); color: #ff8a70; }
.status-log { font-family: var(--font-mono); font-size: 13px; line-height: 1.45; color: var(--night-muted); min-width: 0; }
.status-log time { color: var(--night-text); margin-right: 10px; }
.demo-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--night-line); background: transparent; color: var(--night-text); font-size: 14px; cursor: pointer; }
.demo-btn:hover { border-color: var(--night-text); }
.demo-btn svg { width: 14px; height: 14px; }

/* the lifeline track = stage stepper */
.lifeline { position: relative; padding: 4px 0 0; }
.lifeline-tracks { display: grid; gap: 10px; margin-bottom: 8px; }
.track { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--night-muted); }
.track svg { width: 100%; height: 14px; overflow: visible; }
.track .seg { stroke-width: 4; stroke-linecap: round; transition: opacity 0.4s; }
.stages { list-style: none; margin: 0; padding: 0 0 0 164px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.stages button {
  width: 100%; text-align: left; background: none; border: 0; border-top: 2px solid var(--night-line); padding: 10px 2px 0; cursor: pointer;
  color: var(--night-muted); font-size: 13px; line-height: 1.3; transition: color 0.2s, border-color 0.3s;
}
.stages button .n { display: block; font-family: var(--font-mono); font-size: 11px; color: #7d8682; margin-bottom: 3px; }
.stages button:hover { color: var(--night-text); }
.stages button[aria-current="step"] { color: var(--night-text); border-top-color: var(--signal); }
.stages button[aria-current="step"] .n { color: var(--signal); }
.stages button.done { border-top-color: rgba(205, 245, 75, 0.35); }

.demo-caption { font-size: 13.5px; color: var(--night-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }

@media (max-width: 860px) {
  .track { grid-template-columns: 96px 1fr; font-size: 11px; }
  .stages { padding-left: 0; grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .demo-status { grid-template-columns: 1fr auto; }
  .status-log { grid-column: 1 / -1; grid-row: 2; white-space: normal; font-size: 12.5px; }
}
@media (max-width: 560px) {
  .stage-view { aspect-ratio: 4 / 4.6; }
  .lifeline-tracks { display: none; }
  .sim-tag { display: none; }
  .stages button { font-size: 12.5px; }
}

/* narrow mock layout (phones) */
@container (max-width: 560px) {
  .mock { font-size: 12px; }
  .mock-nav { padding: 14px 16px 10px; padding-top: 44px; }
  .mock-logo { font-size: 16px; gap: 6px; }
  .mock-logo i { width: 14px; height: 14px; }
  .mock-links { display: none; }
  .mock-body { grid-template-columns: 1fr; gap: 12px; padding: 4px 16px 16px; }
  .mock-hero-text h4 { font-size: 27px; margin-bottom: 6px; }
  .mock-hero-text p { font-size: 12.5px; margin-bottom: 0; }
  .mock-art { display: none; }
  .mock-left { display: block; }
  .mock-form { padding: 14px; gap: 8px; border-radius: 12px; }
  .mock-form h5 { font-size: 16px; }
  .mock-form .sub { font-size: 11.5px; margin-top: -4px; }
  .mock-field { font-size: 12px; padding: 8px 10px; border-radius: 8px; min-height: 34px; }
  .mock-field .caret { height: 13px; }
  .mock-btn { font-size: 13px; padding: 10px; border-radius: 8px; }
  .mock-note { font-size: 11px; }
  .mock-success { place-items: center end; text-align: right; padding: 14px; }
  .mock-success > div { max-width: 62%; }
  .mock-success .tick { width: 36px; height: 36px; margin: 0 0 8px auto; }
  .mock-success .tick svg { width: 18px; height: 18px; }
  .mock-success b { font-size: 17px; }
  .mock-success span { font-size: 12px; }
  .mock-banner, .lost-banner { height: 34px; font-size: 10.5px; gap: 6px; }
  .lost-banner { padding: 0 8px; justify-content: flex-start; }
  .mock-banner i { width: 7px; height: 7px; }
  .mock-cursor { width: 22px; height: 22px; }
  .err { padding: 24px 18px; }
  .err-box { max-width: 100%; font-size: 12.5px; }
  .err-box h6 { font-size: 19px; margin-bottom: 10px; padding-bottom: 10px; }
  .err-box .code { font-size: 10.5px; margin-top: 12px; }
  .err-box .lost { font-size: 11px; padding: 5px 10px; margin-top: 14px; }
  .confirming { font-size: 11px; padding: 8px 14px; bottom: 16px; gap: 8px; }
  .confirming .spin { width: 13px; height: 13px; }
  .handback { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 14px; font-size: 11.5px; border-radius: 12px; }
  .handback .t { font-size: 10px; margin-bottom: 4px; }
  .handback b { font-size: 15px; }
  .handback .bar { height: 5px; margin-top: 8px; }
}

/* ---------- Failure wall (problem) ---------- */
.problem-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.wall { position: relative; height: 520px; }
.wall .shot {
  position: absolute; width: 74%; border-radius: 12px; background: #fff; color: #3c434a; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  overflow: hidden; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; border: 1px solid rgba(0, 0, 0, 0.08);
}
.wall .shot .bar { height: 28px; background: #ececec; display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.wall .shot .bar i { width: 8px; height: 8px; border-radius: 50%; background: #cfcfcf; }
.wall .shot .bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 10.5px; color: #888; }
.wall .shot .body { padding: 22px 24px 26px; font-size: 13.5px; line-height: 1.5; }
.wall .shot h6 { font-family: inherit; font-size: 19px; font-weight: 400; color: #1d2327; margin: 0 0 8px; letter-spacing: 0; }
.wall .shot.s1 { top: 0; left: 0; transform: rotate(-2.5deg); }
.wall .shot.s2 { top: 120px; right: 0; transform: rotate(2deg); }
.wall .shot.s3 { top: 250px; left: 4%; transform: rotate(-1deg); }
.wall .shot.s4 { top: 372px; right: 6%; transform: rotate(1.5deg); }
.wall .shot.s4 .body { height: 92px; }
.wall .shot.s4 .body small { font-family: var(--font-mono); font-size: 10.5px; color: #b9b9b9; }
.wall .shot .ng { font-family: var(--font-mono); font-size: 34px; font-weight: 600; color: #1d2327; letter-spacing: -0.02em; }
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-up.in { opacity: 1; transform: none; }
.wall .shot.reveal-up.in.s1 { transform: rotate(-2.5deg); } .wall .shot.reveal-up.in.s2 { transform: rotate(2deg); }
.wall .shot.reveal-up.in.s3 { transform: rotate(-1deg); } .wall .shot.reveal-up.in.s4 { transform: rotate(1.5deg); }
@media (prefers-reduced-motion: reduce) { .reveal-up { opacity: 1; transform: none; transition: none; } }
.problem-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.problem-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); }
.problem-list li b { color: var(--ink); font-weight: 600; }
.problem-list .x { color: var(--alarm-ink); font-family: var(--font-mono); font-weight: 600; }
.kicker { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -0.02em; margin-top: 34px; font-weight: 600; }
@media (max-width: 960px) {
  .problem-grid { grid-template-columns: 1fr; }
  .wall { height: 440px; max-width: 560px; }
  .wall .shot { width: 84%; }
  .wall .shot.s2 { top: 104px; } .wall .shot.s3 { top: 212px; } .wall .shot.s4 { top: 318px; }
}
@media (max-width: 480px) {
  .wall { height: 400px; }
  .wall .shot .body { padding: 14px 16px 18px; font-size: 12px; }
  .wall .shot h6 { font-size: 15.5px; }
  .wall .shot .ng { font-size: 24px; }
  .wall .shot.s2 { top: 96px; } .wall .shot.s3 { top: 196px; } .wall .shot.s4 { top: 290px; }
}

/* ---------- Comparison ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.compare th, .compare td { padding: 18px 20px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-family: var(--font-display); font-size: 18px; font-weight: 650; letter-spacing: -0.01em; background: var(--paper); line-height: 1.2; }
.compare thead th small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.compare tbody td:first-child { font-weight: 500; }
.compare tbody td:first-child small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.compare .us { background: var(--ink); color: var(--paper); }
.compare thead .us { background: var(--ink); color: var(--paper); }
.compare thead .us small { color: var(--night-muted); }
.compare tbody .us { background: #171b1e; border-bottom-color: #262d31; }
.compare tr:last-child td { border-bottom: 0; }
.yes, .no, .part { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 15px; font-weight: 700; }
.yes { background: var(--signal); color: var(--ink); }
.no { background: transparent; color: #8d8a82; box-shadow: inset 0 0 0 1.5px #cfc9bc; font-weight: 400; }
.part { background: var(--paper-2); color: var(--ink-2); font-size: 12px; width: auto; padding: 0 10px; border-radius: 99px; font-weight: 600; }
.compare .us .word { font-family: var(--font-display); font-weight: 650; color: var(--signal); }
.compare .word { font-family: var(--font-display); font-weight: 600; }
@media (max-width: 760px) {
  .compare-wrap { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .compare th, .compare td { padding: 12px 8px; font-size: 14px; }
  .compare thead th { font-size: 13.5px; }
  .compare thead th small { display: none; }
  .compare tbody td:first-child small { display: none; }
  .compare th:first-child, .compare td:first-child { padding-left: 14px; }
  .yes, .no { width: 24px; height: 24px; font-size: 13px; }
}

/* ---------- Incident timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; max-width: 980px; }
.tl-item { display: grid; grid-template-columns: 130px 44px 1fr; gap: 0 18px; position: relative; padding-bottom: 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-time { font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); padding-top: 6px; text-align: right; }
.tl-time b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::after { content: ""; position: absolute; top: 34px; bottom: -42px; width: 3px; background: var(--signal-2); border-radius: 3px; }
.tl-item:last-child .tl-rail::after { display: none; }
.tl-item.amber .tl-rail::after { background: var(--amber); }
.tl-item.alarm .tl-rail::after { background: repeating-linear-gradient(var(--alarm) 0 6px, transparent 6px 12px); }
.tl-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--signal); position: relative; z-index: 1; font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.tl-item.alarm .tl-dot { background: var(--alarm); color: #fff; }
.tl-item.amber .tl-dot { background: var(--amber); color: var(--ink); }
.tl-body h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 8px; padding-top: 2px; }
.tl-body p { color: var(--ink-2); max-width: 40em; margin: 0; }
.tl-chip { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; font-family: var(--font-mono); font-size: 12.5px; padding: 5px 11px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.tl-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal-2); }
.tl-item.amber .tl-chip i { background: var(--amber); }
.tl-item.alarm .tl-chip i { background: var(--alarm); }
@media (max-width: 640px) {
  .tl-item { grid-template-columns: 34px 1fr; gap: 0 16px; }
  .tl-time { grid-column: 2; grid-row: 1; text-align: left; padding: 0 0 6px; }
  .tl-time b { display: inline; margin-right: 8px; }
  .tl-rail { grid-column: 1; grid-row: 1 / span 2; }
  .tl-body { grid-column: 2; }
}

/* ---------- Steps (simplicity) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--card); border-radius: var(--radius); padding: 30px 28px 32px; box-shadow: var(--shadow); display: grid; grid-template-rows: auto auto 1fr; gap: 14px; position: relative; }
.step .num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.step .num b { color: var(--ink); }
.step h3 { font-size: 26px; }
.step p { color: var(--ink-2); margin: 0; }
.step .ill { margin-top: 18px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); padding: 16px; font-size: 14px; align-self: end; }
.ill-plugin { display: flex; align-items: center; gap: 12px; }
.ill-plugin .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; flex: none; }
.ill-plugin .ico svg { width: 26px; height: 26px; }
.ill-plugin b { display: block; font-size: 14.5px; }
.ill-plugin small { color: var(--muted); font-size: 12.5px; }
.ill-plugin .pbtn { margin-left: auto; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 8px; background: var(--signal); color: var(--ink); white-space: nowrap; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-family: var(--font-mono); font-size: 12.5px; }
.checks li { display: flex; gap: 9px; align-items: center; color: var(--ink-2); }
.checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--signal); color: var(--ink); font-size: 11px; font-weight: 700; flex: none; }
.dnsrec { font-family: var(--font-mono); font-size: 12.5px; display: grid; gap: 10px; }
.dnsrec .row { display: grid; grid-template-columns: 56px 1fr; gap: 6px 10px; align-items: center; }
.dnsrec .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.dnsrec .v { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dnsrec .ok { display: flex; align-items: center; gap: 8px; color: var(--signal-ink); font-weight: 600; }
.dnsrec .ok i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal-2); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }

.nope { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: clamp(40px, 5vw, 60px); justify-content: center; }
.nope span { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); text-decoration: line-through; text-decoration-color: var(--alarm); text-decoration-thickness: 2.5px; }

/* ---------- Bento (always on) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; border-radius: var(--radius); padding: 28px; background: var(--night-2); border: 1px solid var(--night-line); display: grid; align-content: start; gap: 12px; position: relative; overflow: hidden; }
.tile.wide { grid-column: span 3; }
.tile.hero-tile { grid-column: span 4; grid-row: span 2; }
.tile h3 { font-size: 24px; color: var(--night-text); }
.tile p { color: var(--night-muted); margin: 0; font-size: 16px; }
.tile .tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); }
.tile .tag.free { color: var(--amber); }
.tile .big { font-family: var(--font-display); font-size: clamp(46px, 5vw, 72px); font-weight: 750; letter-spacing: -0.04em; line-height: 0.95; color: var(--night-text); }
.mini-log { margin-top: 10px; font-family: var(--font-mono); font-size: 12.5px; display: grid; gap: 8px; color: var(--night-muted); }
.mini-log div { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 9px 12px; border-radius: 8px; background: var(--night-3); }
.mini-log time { color: var(--night-text); }
.mini-log .g { color: var(--signal); }
.mini-log .a { color: var(--amber); }
.mini-log .r { color: #ff8a70; }
.report { margin-top: 8px; border-radius: 12px; background: var(--paper); color: var(--ink); padding: 18px 20px; font-size: 14.5px; line-height: 1.55; }
.report .h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.report p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
@media (max-width: 960px) { .tile, .tile.wide { grid-column: span 3; } .tile.hero-tile { grid-column: span 6; grid-row: auto; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide, .tile.hero-tile { grid-column: auto; } .tile { padding: 22px; } }

/* ---------- Never list ---------- */
.never { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; border-top: 2px solid var(--ink); }
.never li { list-style: none; display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.never ol, .never { padding: 0; margin: 0; }
.never .n { font-family: var(--font-mono); font-size: 13px; color: var(--alarm-ink); padding-top: 6px; }
.never h3 { font-size: 23px; margin-bottom: 6px; }
.never p { color: var(--ink-2); margin: 0; font-size: 16px; }
@media (max-width: 860px) { .never { grid-template-columns: 1fr; } }

/* ---------- Founder note ---------- */
.note { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.note blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 2.5vw, 34px); line-height: 1.28; letter-spacing: -0.02em; font-weight: 500; }
.note blockquote p { margin-bottom: 0.8em; }
.note .sig { font-family: var(--font-body); font-size: 16px; color: var(--muted); letter-spacing: 0; }
.note .sig b { color: var(--ink); }
@media (max-width: 860px) { .note { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--card); border-radius: 22px; padding: 32px 28px; box-shadow: var(--shadow); display: grid; grid-template-rows: auto auto auto auto 1fr auto; gap: 14px; position: relative; border: 1px solid transparent; }
.plan.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-10px); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.6); }
.plan .pill { position: absolute; top: -13px; left: 28px; background: var(--signal); color: var(--ink); font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 99px; }
.plan h3 { font-size: 26px; }
.plan .for { color: var(--muted); font-size: 15.5px; margin: 0; min-height: 3.1em; }
.plan.featured .for { color: var(--night-muted); }
.price { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); }
.price .amt { font-size: 58px; font-weight: 750; letter-spacing: -0.04em; line-height: 1; }
.price .amt sup { font-size: 0.42em; vertical-align: 0.95em; margin-right: 2px; letter-spacing: 0; }
.price .per { font-family: var(--font-body); font-size: 14.5px; color: var(--muted); }
.plan.featured .price .per { color: var(--night-muted); }
.plan ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; font-size: 15.5px; align-content: start; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.plan li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--paper-2); color: var(--ink); font-size: 11px; font-weight: 700; margin-top: 2px; }
.plan.featured li::before { background: var(--signal); }
.plan li.head { grid-template-columns: 1fr; font-weight: 600; margin-top: 4px; }
.plan li.head::before { display: none; }
.plan .btn { width: 100%; }
.plan.featured .btn { --bg: var(--signal); --fg: var(--ink); }
.plans-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: 14.5px; }
.free-strip { margin-top: 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--paper-2); border-radius: 22px; padding: 26px 30px; border: 1px dashed #c9c1b1; }
.free-strip .price .amt { font-size: 40px; }
.free-strip h3 { font-size: 22px; margin-bottom: 4px; }
.free-strip p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 26px; }
  .plan.featured { transform: none; }
  .plan .for { min-height: 0; }
  .free-strip { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}

.promise { margin-top: 26px; border-radius: 22px; padding: 26px 30px; border: 2px dashed var(--line); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; background: transparent; }
.promise .stamp { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; background: var(--amber); color: var(--ink); white-space: nowrap; }
.promise h3 { font-size: 22px; margin-bottom: 6px; }
.promise p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 640px) { .promise { grid-template-columns: 1fr; } .promise .stamp { justify-self: start; } }

/* matrix on pricing page */
.matrix { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.matrix th, .matrix td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix thead th { font-family: var(--font-display); font-size: 17px; position: sticky; top: 68px; background: var(--paper); z-index: 1; }
.matrix .grp td { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); padding-top: 28px; text-align: left; }
.matrix .c { color: var(--signal-ink); font-weight: 700; }
.matrix .d { color: #a39e92; }
.matrix-wrap { overflow-x: auto; }
@media (max-width: 640px) { .matrix { font-size: 13.5px; } .matrix th, .matrix td { padding: 11px 6px; } .matrix thead th { font-size: 14px; } }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 32px; gap: 20px; align-items: center; padding: 24px 0; font-family: var(--font-display); font-size: clamp(19px, 1.9vw, 23px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; transition: transform 0.3s var(--ease), background 0.2s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary .pm { background: var(--signal); border-color: var(--signal); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover .pm { border-color: var(--ink); }
.faq .a { padding: 0 52px 26px 0; color: var(--ink-2); max-width: 46em; }
.faq .a p:last-child { margin-bottom: 0; }
.faq .a ul { padding-left: 20px; margin: 0 0 1em; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.faq-cats a { text-decoration: none; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: 14.5px; }
.faq-cats a:hover { border-color: var(--ink); }
.faq-group h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 56px 0 18px; }
@media (max-width: 640px) { .faq .a { padding-right: 0; } }

/* ---------- Get started ---------- */
.final { text-align: left; overflow: hidden; }
.final-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.signup { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 22px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; position: relative; }
.signup label { display: grid; gap: 7px; font-size: 14.5px; color: var(--night-muted); }
.signup input, .signup select {
  height: 52px; border-radius: 12px; border: 1px solid var(--night-line); background: var(--night-3); color: var(--night-text);
  padding: 0 16px; font-size: 16.5px; width: 100%;
}
.signup input::placeholder { color: #808985; }
.signup input:focus, .signup select:focus { outline: 2px solid var(--signal); outline-offset: 1px; border-color: transparent; }
.signup .btn { width: 100%; margin-top: 6px; }
.signup .fine { font-size: 13px; color: var(--night-muted); margin: 0; }
.signup .thanks { display: none; text-align: center; padding: 30px 6px; }
.signup.sent .thanks { display: block; }
.signup.sent .fields { display: none; }
.thanks .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--signal); color: var(--ink); display: grid; place-items: center; margin: 0 auto 16px; }
.thanks h3 { font-size: 28px; margin-bottom: 10px; }
.thanks p { color: var(--night-muted); }
.fields { display: grid; gap: 16px; }
.preview-flag { position: absolute; top: -12px; right: 22px; background: var(--amber); color: var(--ink); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
@media (max-width: 900px) { .final-grid { grid-template-columns: 1fr; } }

/* ---------- Big line art separator ---------- */
.bridge-art { width: 100%; height: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-muted); padding: 70px 0 40px; font-size: 15px; border-top: 1px solid var(--night-line); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-text); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--night-text); }
.site-footer .brand { color: var(--night-text); margin-bottom: 14px; }
.foot-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Sub-page hero ---------- */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(50px, 7vw, 90px); position: relative; overflow: hidden; }
.page-hero .lede { margin-top: 24px; }
.page-hero h1 { max-width: 15ch; }

/* prose pages */
.prose { max-width: 720px; }
.prose h2 { font-size: 30px; margin: 48px 0 14px; }
.prose h3 { font-size: 22px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 22px; }
.callout { border-radius: 14px; padding: 18px 22px; background: #fff4d9; border: 1px solid #f1d58f; color: #4d3a06; font-size: 15.5px; margin: 0 0 30px; }
.callout b { color: #2f2300; }

/* two-column feature rows on how-it-works */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split + .split { margin-top: clamp(70px, 9vw, 120px); }
.split h2 { margin-bottom: 18px; }
.split p { color: var(--ink-2); }
.on-dark .split p { color: var(--night-muted); }
.panel { border-radius: 20px; background: var(--card); box-shadow: var(--shadow); padding: 26px; }
.on-dark .panel { background: var(--night-2); border: 1px solid var(--night-line); box-shadow: none; }
.bullets { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.bullets li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: var(--ink-2); }
.bullets li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 3px; background: var(--signal-2); }
.on-dark .bullets li { color: var(--night-muted); }
.on-dark .bullets li::before { background: var(--signal); }
.edge-list li::before { background: var(--amber); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 2; } }

.statuses { display: grid; gap: 10px; }
.statuses div { display: grid; grid-template-columns: 210px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--paper); font-size: 15px; color: var(--ink-2); }
.statuses .status-pill { justify-self: start; }
.statuses .status-pill { background: var(--ink); }
@media (max-width: 560px) { .statuses div { grid-template-columns: 1fr; } }

/* utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack-lg > * + * { margin-top: 28px; }

/* phones: get the demo closer to the fold */
@media (max-width: 560px) {
  .hero { padding-top: 28px; }
  .badge-live .long { display: none; }
  .hero-copy { gap: 18px; }
  .hero .lede { font-size: 17px; }
  .hero .lede .more { display: none; }
  .hero .cta-row .btn-ghost { display: none; }
  .hero .cta-note { margin-top: 12px; font-size: 13.5px; }
  .side-label { font-size: 10px; padding: 5px 9px; }
}
.on-dark .report p { color: var(--ink-2); }
.on-dark .report b { color: var(--ink); }
.mini-log.light div { background: var(--paper); color: var(--ink-2); }
.mini-log.light time { color: var(--ink); font-weight: 600; }
[id] { scroll-margin-top: 84px; }
.matrix thead th { background: var(--paper-2); }

/* ===== V0.1: cause ticker, AI section, setup v2 ===== */
.cause-line { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-mono); font-size: clamp(13px, 1.2vw, 15px); font-weight: 600; letter-spacing: 0.02em; justify-self: start; }
.cause-bad, .cause-ok { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; }
.cause-bad { background: rgba(255, 91, 58, 0.13); color: #ff9a84; min-width: 14.5ch; overflow: hidden; }
.cause-ok { background: rgba(205, 245, 75, 0.12); color: var(--signal); }
.cause-bad i, .cause-ok i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.cause-arrow { color: var(--night-muted); }
.rot { display: inline-block; white-space: nowrap; transition: transform 0.35s var(--ease), opacity 0.35s; }
.rot.out { transform: translateY(-110%); opacity: 0; }
.rot.in-start { transform: translateY(110%); opacity: 0; transition: none; }

.ai-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--signal), #8fe3c9); color: var(--ink); font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; flex: none; }
.ai-mark.sm { width: 20px; height: 20px; font-size: 9px; border-radius: 6px; vertical-align: -5px; margin-right: 4px; }
.ai-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: start; }
.ai-chat { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 22px; padding: 22px; display: grid; gap: 14px; position: sticky; top: 92px; }
.ai-chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--night-line); }
.ai-chat-head b { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; }
.muted-d { margin-left: auto; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--night-muted); }
.msg { border-radius: 16px; padding: 12px 16px; font-size: 15px; line-height: 1.55; max-width: 92%; }
.msg p { margin: 0 0 8px; } .msg p:last-child { margin: 0; }
.msg.me { justify-self: end; background: var(--signal); color: var(--ink); border-bottom-right-radius: 5px; font-weight: 500; }
.msg.ai { background: var(--night-3); color: var(--night-text); border-bottom-left-radius: 5px; }
.msg code { font-family: var(--font-mono); font-size: 13px; background: rgba(255, 255, 255, 0.08); padding: 1px 6px; border-radius: 5px; }
.msg .rec { color: var(--night-muted); font-size: 14px; }
.ai-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ai-card { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 18px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.ai-card:first-child { grid-column: 1 / -1; }
.ai-card .tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); }
.ai-card .free-t { color: var(--amber); }
.ai-card h3 { font-size: 21px; color: var(--night-text); }
.ai-card p { margin: 0; color: var(--night-muted); font-size: 15.5px; }
.diag { margin-top: 6px; background: var(--paper); color: var(--ink-2); border-radius: 14px; padding: 16px 18px; font-size: 15px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.diag b { color: var(--ink); }
.diag .fix { display: grid; gap: 2px; text-align: center; background: var(--ink); color: var(--signal); font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 10px; white-space: nowrap; }
.diag .fix small { color: var(--night-muted); font-weight: 400; font-size: 11.5px; }
@media (max-width: 960px) { .ai-grid { grid-template-columns: 1fr; } .ai-chat { position: static; } }
@media (max-width: 560px) { .ai-cards { grid-template-columns: 1fr; } .diag { grid-template-columns: 1fr; } .diag .fix { justify-self: start; } .msg { font-size: 14.5px; max-width: 100%; } }

.setup-perks { display: flex; flex-wrap: wrap; gap: 10px; margin: -24px 0 36px; }
.setup-perks span { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 10px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 15px; }
.setup-perks i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: var(--ink); font-style: normal; font-size: 12px; font-weight: 800; }
.steps-v2 { grid-template-columns: 1fr 1fr 1.45fr; align-items: stretch; }
.step-hero { background: var(--ink); color: var(--paper); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.55); grid-template-rows: auto auto auto auto auto; }
.step-hero .num, .step-hero .num b { color: var(--signal); }
.step-hero h3 { font-size: 30px; color: #fff; }
.ai-say { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; background: var(--night-3); border-radius: 14px; padding: 14px; }
.ai-say p { margin: 0; color: var(--night-text); font-size: 15px; line-height: 1.5; }
.ai-say b { color: var(--signal); font-weight: 600; }
.record { border-radius: 14px; border: 1px solid var(--night-line); overflow: hidden; }
.rec-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--night-line); font-size: 15px; }
.rec-row:last-child { border-bottom: 0; background: rgba(205, 245, 75, 0.07); }
.rec-row .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--night-muted); }
.rec-row .v { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.rec-row .v.mono { font-family: var(--font-mono); font-size: 15px; color: var(--signal); }
.copy { grid-column: 3; border: 0; background: var(--signal); color: var(--ink); font-weight: 700; font-size: 13.5px; padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.copy:hover { background: #d9ff63; }
.livecheck { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; background: var(--night-3); font-family: var(--font-mono); font-size: 14px; color: var(--night-muted); transition: background 0.4s, color 0.4s; }
.lc-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: var(--signal); animation: spin 0.9s linear infinite; flex: none; }
.lc-ok { display: none; }
.livecheck.ok { background: var(--signal); color: var(--ink); font-weight: 700; }
.livecheck.ok .lc-dot { animation: none; border: 0; background: var(--ink); box-shadow: 0 0 0 4px rgba(15, 18, 20, 0.15); }
.livecheck.ok .lc-wait { display: none; }
.livecheck.ok .lc-ok { display: inline; }
@media (prefers-reduced-motion: reduce) { .lc-dot { animation: none; } }
@media (max-width: 1100px) { .steps-v2 { grid-template-columns: 1fr 1fr; } .step-hero { grid-column: 1 / -1; } }
@media (max-width: 700px) { .steps-v2 { grid-template-columns: 1fr; } .setup-perks { margin-top: -16px; } .setup-perks span { font-size: 14px; } .rec-row { grid-template-columns: 52px 1fr auto; padding: 10px 12px; } }

.handback.ai { width: 46cqi; }
.handback.ai .t::before { content: "AI"; display: inline-grid; place-items: center; width: 2.2cqi; height: 2.2cqi; min-width: 18px; min-height: 18px; margin-right: 0.8cqi; border-radius: 5px; background: linear-gradient(135deg, var(--signal), #8fe3c9); color: var(--ink); font-size: 0.9em; vertical-align: middle; }
.ai-card:last-child { grid-column: 1 / -1; }
.diag p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 420px) { .rec-row .v.mono { font-size: 13px; } .rec-row { gap: 8px; } .copy { padding: 7px 10px; } }
