/* ============================================================
   WhisperJot — marketing site
   Dark, modern, gradient aesthetic (superwhisper × wisprflow)
   ============================================================ */

/* Paper & Ink is the brand default: the page is the parchment. The original
   night palette lives on behind the nav's sun/moon toggle ([data-theme=night],
   persisted in localStorage; ?theme=night for QA) — same components, two
   worlds. Polarity-dependent overlays go through the --veil-* tokens
   (ink-alpha on paper, white-alpha at night). */
:root {
  color-scheme: light;
  --bg: #f5efe3;
  --bg-2: #ece3d0;
  --surface: rgba(46, 34, 16, 0.045);
  --surface-2: rgba(46, 34, 16, 0.075);
  --border: rgba(46, 34, 16, 0.14);
  --border-strong: rgba(46, 34, 16, 0.24);
  --text: #211f33;
  --text-dim: #565370;
  --text-faint: #615d76; /* WCAG AA on --bg (5.5:1) AND --bg-2 (4.9:1) */

  --brand: #2c3a6e;       /* ink navy  */
  --brand-2: #175e91;     /* deep azure — AA on paper for links/rings */
  --brand-3: #0e7d61;     /* deep mint  */
  --accent-warm: #b05e22;
  --ink: #a3641a;
  --ink-strong: #8a4f0e;

  --grad: linear-gradient(110deg, #33406f 0%, #26335e 48%, #16264a 100%);
  --grad-soft: linear-gradient(110deg, #2c3a6e, #1f4c78);
  --btn-primary-fg: #f7edd6;

  --veil-015: rgba(46, 34, 16, 0.015);
  --veil-02: rgba(46, 34, 16, 0.02);
  --veil-03: rgba(46, 34, 16, 0.03);
  --veil-035: rgba(46, 34, 16, 0.035);
  --veil-04: rgba(46, 34, 16, 0.04);
  --veil-05: rgba(46, 34, 16, 0.05);
  --veil-06: rgba(46, 34, 16, 0.06);
  --veil-09: rgba(46, 34, 16, 0.09);
  --veil-10: rgba(46, 34, 16, 0.1);
  --veil-16: rgba(46, 34, 16, 0.16);
  --veil-22: rgba(46, 34, 16, 0.22);
  --veil-28: rgba(46, 34, 16, 0.28);
  --veil-35: rgba(46, 34, 16, 0.35);
  --glass: rgba(255, 252, 245, 0.86);
  --orb-1: #e4c684;
  --orb-2: #b9cfeb;
  --orb-3: #d9c1a8;
  --orb-opacity: 0.35;
  --brand-glow: rgba(44, 58, 110, 0.4);
  --brand-glow-strong: rgba(44, 58, 110, 0.5);
  --brand-glow-soft: rgba(44, 58, 110, 0.3);
  --brand-border-strong: rgba(44, 58, 110, 0.55);
  --brand-tint: rgba(44, 58, 110, 0.07);
  --nav-glass: rgba(245, 239, 227, 0.8);
  --cta-tint-1: rgba(44, 58, 110, 0.09);
  --cta-tint-2: rgba(23, 94, 145, 0.05);
  --mic-bg: rgba(163, 100, 26, 0.08);
  --mic-border: rgba(163, 100, 26, 0.45);
  --mic-fg: #8a4f0e;
  --glow-tint: rgba(163, 100, 26, 0.1);
  --error-fg: #9c2f36;
  --error-border: rgba(213, 72, 79, 0.4);
  --error-bg: rgba(213, 72, 79, 0.08);
  --danger-fg: #b2323c;
  --danger-fg-strong: #8f232c;
  --info-fg: #1f5f91;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 320ms;

  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1140px;
  --shadow: 0 24px 60px -22px rgba(74, 52, 20, 0.35);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --display: "Fraunces", Georgia, serif;
}

:root[data-theme="night"] {
    color-scheme: dark;
    --bg: #07070b;
    --bg-2: #0c0c14;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f4f4f8;
    --text-dim: #a6a6b6;
    --text-faint: #7d7d90;

    --brand: #7c5cff;
    --brand-2: #4ea8ff;
    --brand-3: #34e6c0;
    --accent-warm: #ff8a5c;
    --ink: #ffc07a;
    --ink-strong: #ffaa54;

    --grad: linear-gradient(110deg, #9b7bff 0%, #5aa9ff 48%, #46e8c4 100%);
    --grad-soft: linear-gradient(110deg, #7c5cff, #4ea8ff);
    --btn-primary-fg: #0b0612;

    --veil-015: rgba(255, 255, 255, 0.015);
    --veil-02: rgba(255, 255, 255, 0.02);
    --veil-03: rgba(255, 255, 255, 0.03);
    --veil-035: rgba(255, 255, 255, 0.035);
    --veil-04: rgba(255, 255, 255, 0.04);
    --veil-05: rgba(255, 255, 255, 0.05);
    --veil-06: rgba(255, 255, 255, 0.06);
    --veil-09: rgba(255, 255, 255, 0.09);
    --veil-10: rgba(255, 255, 255, 0.1);
    --veil-16: rgba(255, 255, 255, 0.16);
    --veil-22: rgba(255, 255, 255, 0.22);
    --veil-28: rgba(255, 255, 255, 0.28);
    --veil-35: rgba(255, 255, 255, 0.35);
    --glass: rgba(14, 15, 26, 0.82);
    --orb-1: #6d4dff;
    --orb-2: #2f7bff;
    --orb-3: #1fd6b0;
    --orb-opacity: 0.4;
    --brand-glow: rgba(124, 92, 255, 0.6);
    --brand-glow-strong: rgba(124, 92, 255, 0.75);
    --brand-glow-soft: rgba(124, 92, 255, 0.35);
    --brand-border-strong: rgba(124, 92, 255, 0.55);
    --brand-tint: rgba(124, 92, 255, 0.07);
    --nav-glass: rgba(8, 8, 14, 0.72);
    --cta-tint-1: rgba(124, 92, 255, 0.1);
    --cta-tint-2: rgba(78, 168, 255, 0.05);
    --mic-bg: rgba(255, 178, 92, 0.09);
    --mic-border: rgba(255, 178, 92, 0.35);
    --mic-fg: #ffd9a8;
    --glow-tint: rgba(124, 92, 255, 0.13);
    --error-fg: #ffadbd;
    --error-border: rgba(255, 92, 122, 0.35);
    --error-bg: rgba(255, 92, 122, 0.08);
    --danger-fg: #ff8098;
    --danger-fg-strong: #ffadbd;
    --info-fg: #b9dcff;

    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; color: var(--text); }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--orb-opacity); will-change: transform; }
.orb-1 { width: 620px; height: 620px; top: -180px; left: -140px;
  background: radial-gradient(circle, var(--orb-1), transparent 70%);
  animation: orb-drift-a 26s ease-in-out infinite alternate; }
.orb-2 { width: 560px; height: 560px; top: 240px; right: -160px;
  background: radial-gradient(circle, var(--orb-2), transparent 70%); opacity: 0.32;
  animation: orb-drift-b 34s ease-in-out -13s infinite alternate; }
.orb-3 { width: 520px; height: 520px; top: 1100px; left: 30%;
  background: radial-gradient(circle, var(--orb-3), transparent 70%); opacity: 0.18;
  animation: orb-drift-a 34s ease-in-out -22s infinite alternate; }
/* Slow ambient drift; negative delays keep the three orbs out of sync. */
@keyframes orb-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3.5%, -3%, 0) scale(1.05); }
}
@keyframes orb-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.04); }
  to   { transform: translate3d(-4%, 3.5%, 0) scale(0.97); }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  /* <button> doesn't inherit the body font — without this the Stripe checkout
     CTAs render in the UA default face next to Inter-set <a class="btn"> twins. */
  font-family: inherit;
  font-weight: 600; font-size: 0.96rem; letter-spacing: -0.01em;
  border-radius: 999px; padding: 12px 22px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

.btn-primary {
  color: var(--btn-primary-fg); background: var(--grad);
  box-shadow: 0 10px 30px -8px var(--brand-glow), inset 0 1px 0 var(--veil-35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--brand-glow-strong); }

.btn-ghost {
  color: var(--text); background: var(--surface-2);
  border-color: var(--border-strong); backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-2px); background: var(--veil-10); border-color: var(--veil-28); }

/* Keyboard focus: purchase-critical controls must be at least as visible as
   the decorative ones that already had custom rings. */
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 8px;
}
.btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }

/* Loading state — setLoading() (js/main.js) wraps the label in .btn-label and
   toggles .is-loading around every awaited/navigating submit. */
.btn .btn-label { display: inline-flex; align-items: center; gap: inherit; transition: opacity var(--dur-fast) var(--ease); }
.btn.is-loading { pointer-events: none; }
.btn.is-loading,
.btn.is-loading[disabled] { opacity: 1; cursor: wait; transform: none; }
.btn.is-loading .btn-label { opacity: 0.4; }
.btn.is-loading::after {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Live star tally inside "Star on GitHub" buttons; hidden until fetched. */
.star-count {
  margin-left: 10px; padding: 2px 9px; font-size: 0.78rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-glass); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border); padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-name { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-logo { display: block; width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 2px 10px var(--brand-glow-soft); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-mobile-only { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 76px 0 40px; text-align: center; }
.hero-short { padding-bottom: 60px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 15px; border-radius: 999px; backdrop-filter: blur(10px);
  transition: border-color .2s, color .2s;
}
.pill:hover { color: var(--text); border-color: var(--border-strong); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-3); box-shadow: 0 0 10px var(--brand-3); }
.pill-arrow { color: var(--text-faint); transition: transform .2s; }
.pill:hover .pill-arrow { transform: translateX(3px); }

.hero-title {
  font-size: clamp(2.9rem, 8vw, 5.4rem); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 800; margin: 26px 0 0;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-sub {
  max-width: 620px; margin: 22px auto 0; font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--text-dim); line-height: 1.55;
}
.hero-sub em { font-family: var(--serif); font-style: italic; font-size: 1.08em; color: var(--text); }

.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.hero-meta { margin-top: 18px; font-size: 0.88rem; color: var(--text-faint); }

/* ---- Hero stage / HUD mock ---- */
.hero-stage { position: relative; margin-top: 64px; width: 100%; max-width: 720px; }
.stage-glow {
  position: absolute; inset: -10% 5% auto; height: 320px; z-index: -1;
  background: var(--grad); filter: blur(110px); opacity: 0.28; border-radius: 50%;
}
.hud {
  background: linear-gradient(180deg, rgba(20,20,30,.9), rgba(12,12,20,.92));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 22px 24px 20px; box-shadow: var(--shadow); backdrop-filter: blur(20px);
  text-align: left;
}
.hud-top { display: flex; align-items: center; gap: 10px; }
.hud-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff5c7a; box-shadow: 0 0 0 0 rgba(255,92,122,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,92,122,.55); } 70% { box-shadow: 0 0 0 9px rgba(255,92,122,0); } 100% { box-shadow: 0 0 0 0 rgba(255,92,122,0); } }
.hud-label { font-weight: 600; font-size: 0.95rem; }
.hud-key { margin-left: auto; font-size: 0.78rem; color: var(--text-dim); background: var(--surface-2);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 8px;
  transition: background .2s, color .2s, transform .2s, border-color .2s; }
/* Flashed by the ⌥Space Easter egg — the on-page keycap "presses". */
.hud-key-hit { background: var(--grad-soft); color: #fff; border-color: transparent; transform: translateY(1px); }

/* Real demo recording (swaps in for the HUD mock when static/video/demo.mp4 ships) */
.hero-video {
  display: block; width: 100%; border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}

.waveform { display: flex; align-items: center; gap: 4px; height: 56px; margin: 18px 2px; }
.waveform span { flex: 1; min-width: 2px; border-radius: 4px; background: var(--grad-soft); opacity: .85; }

.hud-text { font-size: 1.18rem; line-height: 1.5; min-height: 2.6em; color: var(--text); letter-spacing: -0.01em; }
.hud-typed { color: var(--text); }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--brand-2); margin-left: 2px; vertical-align: text-bottom; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hud-foot { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.chip { font-size: 0.76rem; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 8px; }
.chip-on { color: var(--brand-3); border-color: rgba(52,230,192,.3); background: rgba(52,230,192,.08); }

/* ============================================================
   Trust strip
   ============================================================ */
.trust { padding: 46px 0 10px; }
.trust-label { text-align: center; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; margin-top: 22px; }
.trust-row span { font-size: 1.18rem; font-weight: 600; color: var(--text-faint); opacity: .75; transition: opacity .2s, color .2s; }
.trust-row span:hover { opacity: 1; color: var(--text-dim); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, var(--veil-015), transparent); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: 16px; }
.section-title { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.section-lead { margin-top: 18px; font-size: 1.12rem; color: var(--text-dim); }

/* ---- Feature grid ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.card-lg { grid-column: span 2; }
.card-icon { font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 18px; }
.card h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 9px; }
.card p { color: var(--text-dim); font-size: 0.98rem; }
.card-art-shield {
  position: absolute; right: -40px; bottom: -50px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.35), transparent 65%);
}

/* ---- Steps ---- */
.steps { display: flex; align-items: stretch; justify-content: center; gap: 14px; flex-wrap: wrap; }
.step { flex: 1; min-width: 240px; max-width: 320px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; }
.step-num { font-size: 0.9rem; font-weight: 700; letter-spacing: .1em; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 12px 0 8px; font-size: 1.3rem; letter-spacing: -0.02em; }
.step p { color: var(--text-dim); font-size: 0.98rem; }
.step-arrow { display: flex; align-items: center; color: var(--text-faint); font-size: 1.5rem; }
kbd { background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom-width: 2px;
  border-radius: 7px; padding: 2px 8px; font-size: 0.85em; color: var(--text); }

/* ---- Privacy ---- */
.privacy { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.check-list { list-style: none; margin: 26px 0; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text-dim); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 800; color: var(--btn-primary-fg); background: var(--grad); border-radius: 50%;
}
.check-list code { color: var(--brand-3); background: rgba(52,230,192,.08); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }

.privacy-visual { display: grid; place-items: center; }
.shield-card {
  position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20,20,32,.7), rgba(12,12,20,.9));
  border: 1px solid var(--border-strong); display: grid; place-content: center; text-align: center;
  box-shadow: var(--shadow); overflow: hidden;
}
.shield-glow { position: absolute; inset: 0; background: var(--grad); filter: blur(70px); opacity: .2; }
.shield-icon { font-size: 2.6rem; position: relative; }
.shield-stat { font-size: 4.6rem; font-weight: 800; line-height: 1; margin-top: 8px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }
.shield-cap { color: var(--text-dim); font-size: 0.95rem; max-width: 200px; margin: 6px auto 0; position: relative; }

/* ---- CTA band ---- */
.cta-band {
  position: relative; text-align: center; padding: 64px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--cta-tint-1), var(--cta-tint-2));
  border: 1px solid var(--border-strong); overflow: hidden;
}
.cta-glow { position: absolute; inset: auto 0 -60% 0; height: 360px; background: var(--grad); filter: blur(120px); opacity: .25; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.03em; font-weight: 800; position: relative; }
.cta-band p { color: var(--text-dim); max-width: 560px; margin: 16px auto 0; font-size: 1.1rem; position: relative; }
.cta-band .hero-cta { position: relative; }

/* ============================================================
   Pricing page
   ============================================================ */
.pricing-hero { padding-top: 48px; padding-bottom: 40px; }
.pricing-hero .hero-sub { max-width: 620px; }
.pricing-layout {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 20px; align-items: stretch; margin-top: 36px; text-align: left;
}
.price-panel {
  position: relative; overflow: hidden; border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 34px; background:
    radial-gradient(circle at 78% 8%, rgba(163, 100, 26, 0.12), transparent 40%),
    linear-gradient(180deg, var(--veil-06), var(--veil-035));
  box-shadow: var(--shadow);
}
.price-panel::after {
  content: ""; position: absolute; inset: auto -18% -42% 18%; height: 280px;
  background: var(--grad); filter: blur(110px); opacity: .22; pointer-events: none;
}
.price-panel > * { position: relative; }
/* All plan cards live INSIDE .pricing-layout (DOM order: annual, lifetime,
   quarterly, aside — mobile's single column and screen readers follow it).
   With one plan, desktop pins annual + the aside notes to row 1. With two or
   three plans the template adds .plans-2/.plans-3 and desktop switches to
   side-by-side columns so the plans can be compared without scrolling; the
   aside notes then span a row below the cards. */
.pricing-layout > .price-panel:not(.price-panel-lifetime):not(.price-panel-quarterly) { grid-column: 1; grid-row: 1; }
.pricing-layout > .price-side { grid-column: 2; grid-row: 1; }
.price-panel-quarterly { grid-column: 1 / -1; text-align: left; }
.price-panel-lifetime {
  grid-column: 1 / -1; grid-row: 2; text-align: left;
  border-color: var(--brand-border-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(52, 230, 192, .12);
}
.price-panel-lifetime::after { opacity: .34; }
@media (min-width: 901px) {
  .pricing-layout.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing-layout.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-layout.plans-3 > .price-panel,
  .pricing-layout.plans-2 > .price-panel { grid-column: auto; grid-row: auto; }
  .pricing-layout.plans-3 > .price-side,
  .pricing-layout.plans-2 > .price-side {
    grid-column: 1 / -1; grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Card content heights differ — pin actions + microcopy to the bottom edge
     so the CTAs line up across columns. */
  .pricing-layout.plans-3 > .price-panel,
  .pricing-layout.plans-2 > .price-panel { display: flex; flex-direction: column; }
  .pricing-layout.plans-3 > .price-panel .price-actions,
  .pricing-layout.plans-2 > .price-panel .price-actions { margin-top: auto; padding-top: 34px; }
  .pricing-layout.plans-3 .price-panel { padding: 28px 24px; }
  .pricing-layout.plans-3 .price-amount { font-size: clamp(3.2rem, 4.2vw, 4.4rem); }
  .pricing-layout.plans-3 .price-panel-top { justify-content: flex-start; gap: 8px; }
}
/* Deal-hero line: the BOGO in one sentence, directly under the headline. */
.hero-deal-line { margin-top: 14px; font-size: 1.08rem; color: var(--text-dim); max-width: 620px; }
.hero-deal-line strong { color: var(--brand-3); font-weight: 700; }
.price-panel-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-badge, .price-save, .price-rate, .price-ends {
  display: inline-flex; align-items: center; min-height: 30px; border-radius: 999px;
  padding: 6px 12px; font-size: 0.77rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.price-badge { color: var(--btn-primary-fg); background: var(--grad); }
/* Chip semantics: mint .price-save only for a genuine best rate; neutral
   .price-rate for a plain per-month restatement; warm .price-ends for the
   deal deadline. Savings-green on the priciest rate misleads. */
.price-save { color: var(--brand-3); background: rgba(52,230,192,.08); border: 1px solid rgba(52,230,192,.25); }
.price-rate { color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border-strong); }
.price-ends { color: var(--accent-warm); background: rgba(255,138,92,.08); border: 1px solid rgba(255,138,92,.3); }
/* Post-signup resume: the returning visitor's chosen card pulses once. */
.price-panel-resume { animation: panel-resume 1.6s var(--ease) 2; }
@keyframes panel-resume {
  0%, 100% { box-shadow: var(--shadow); }
  50% { box-shadow: var(--shadow), 0 0 0 3px rgba(52, 230, 192, .45); }
}
@media (prefers-reduced-motion: reduce) {
  .price-panel-resume { animation: none; box-shadow: var(--shadow), 0 0 0 2px rgba(52, 230, 192, .45); }
}
.price-panel h2 { font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.025em; margin-top: 28px; }
.price-copy { max-width: 560px; color: var(--text-dim); margin-top: 10px; }
.price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 28px; }
.price-currency { font-size: 2.2rem; font-weight: 800; color: var(--text); }
.price-amount { font-size: clamp(4.2rem, 10vw, 6.2rem); line-height: .9; font-weight: 800; letter-spacing: -0.06em; }
.price-period { color: var(--text-dim); font-weight: 600; }
.price-list { list-style: none; display: grid; gap: 12px; margin: 30px 0 0; max-width: 620px; }
.price-list li { position: relative; padding-left: 32px; color: var(--text-dim); }
/* Same check-bullet as .check-list li::before (privacy section) — keep the
   two in lockstep. */
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px;
  display: grid; place-items: center; color: var(--btn-primary-fg); background: var(--grad);
  border-radius: 50%; font-size: 0.78rem; font-weight: 800;
}
.price-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; align-items: center; }
.price-actions form { display: flex; margin: 0; }
/* The requirements link is information, not an action: as a second ghost
   button it read as a twin of the plan CTA whenever the deal demotes the
   annual button to ghost. min-height keeps the 44px touch target. */
.price-alt-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  color: var(--text-dim); font-weight: 600; font-size: 0.96rem;
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--border-strong);
}
.price-alt-link:hover { color: var(--text); text-decoration-color: var(--text-dim); }
.price-side { display: grid; gap: 16px; align-content: start; }
.price-note {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.price-note h3 { margin-top: 0; font-size: 1.24rem; line-height: 1.15; letter-spacing: -0.025em; }
.price-note p { color: var(--text-dim); font-size: 0.96rem; margin-top: 10px; }
.pricing-faq { padding-top: 76px; }
.section-tight { padding-top: 0; padding-bottom: 0; }
.compare-wrap .req-note { margin-top: 16px; }

/* ============================================================
   Pricing v2 — honest-conversion layout
   ============================================================ */
.price-list strong { color: var(--text); font-weight: 600; }
/* --text-dim, not --text-faint: the panel's violet/mint tint lifts the
   surface enough that faint 13px text dips below AA in the radial hotspot. */
.price-microcopy { margin-top: 16px; font-size: 0.82rem; color: var(--text-dim); }
.price-note-link { color: var(--brand-2); font-weight: 600; }
.price-note-link:hover { color: var(--brand-3); }

/* ---- Comparison table ---- */
.compare-wrap { max-width: 860px; margin: 0 auto; overflow-x: auto; }
.compare-wrap:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.98rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; vertical-align: top; }
.compare-table thead th {
  font-size: 0.78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint);
  border-bottom: 1px solid var(--border);
}
.compare-table tbody th { font-weight: 600; color: var(--text-dim); width: 34%; }
.compare-table tbody tr + tr th, .compare-table tbody tr + tr td { border-top: 1px solid var(--border); }
.compare-table td { color: var(--text-dim); }
.compare-table .compare-us { color: var(--text); background: var(--brand-tint); }
.compare-table thead .compare-us {
  color: transparent; background-image: var(--grad); -webkit-background-clip: text; background-clip: text;
  background-color: var(--brand-tint); font-weight: 800;
}
@media (max-width: 620px) {
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 0.9rem; }
}

/* ---- FAQ accordions ---- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; overflow: hidden; transition: border-color .25s ease, background .25s ease;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { background: var(--surface-2); border-color: var(--border-strong); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 22px; font-weight: 600; font-size: 1.04rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  color: var(--brand-2); border: 1px solid var(--border-strong); border-radius: 50%;
  font-weight: 500; transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--text-dim); max-width: 64ch; }
.faq-item code { color: var(--brand-3); background: rgba(52,230,192,.08); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }

.faq-cta { text-align: center; margin-top: 48px; display: grid; justify-items: center; gap: 14px; }
.faq-cta p { color: var(--text-dim); font-size: 1.05rem; }
.faq-cta form { margin: 0; }
.faq-cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   Account page v2 — plan card + profile shell
   ============================================================ */
.checkout-banner {
  position: relative; overflow: hidden;
  padding: 20px 24px; border-radius: var(--radius); text-align: left;
}
.checkout-banner > * { position: relative; }
/* One-time bloom on success banners: a soft mint pulse that swells and
   settles, then stays gone (forwards). Invisible under reduced motion. */
.success-bloom {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 150% at 16% 0%, rgba(52, 230, 192, 0.3), transparent 62%);
  opacity: 0; transform: scale(0.7); transform-origin: 16% 0%;
  animation: success-bloom 1.9s var(--ease) 0.15s forwards;
}
@keyframes success-bloom {
  0%   { opacity: 0; transform: scale(0.7); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.5); }
}
.checkout-banner strong,
.checkout-banner h1 { display: block; font-size: 1.1rem; margin-bottom: 6px; font-weight: 700; }
.checkout-banner p { color: var(--text-dim); font-size: 0.94rem; margin-bottom: 12px; }
.checkout-banner .btn { margin-top: 2px; }
.checkout-banner-ok {
  background: rgba(52,230,192,.08); border: 1px solid rgba(52,230,192,.3);
}
.checkout-banner-ok strong { color: var(--brand-3); }
.checkout-banner-pending {
  background: rgba(78,168,255,.08); border: 1px solid rgba(78,168,255,.3);
}
.checkout-banner-pending strong { color: var(--brand-2); }
.checkout-banner-cancel {
  background: var(--veil-04); border: 1px solid var(--border-strong);
}
.checkout-banner-cancel strong,
.checkout-banner-cancel h1 { color: var(--text); }

.account-page .auth-wrap { display: grid; gap: 18px; text-align: left; }
.plan-card {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap; overflow: hidden;
  padding: 24px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border-strong);
}
.plan-card-upsell {
  background: linear-gradient(120deg, rgba(124,92,255,.14), rgba(78,168,255,.06) 55%, rgba(52,230,192,.08));
}
.plan-glow {
  position: absolute; inset: auto -10% -120% 30%; height: 260px;
  background: var(--grad); filter: blur(100px); opacity: .22; pointer-events: none;
}
.plan-main { position: relative; min-width: 240px; flex: 1; }
.plan-kicker {
  display: block; color: var(--text-faint); font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 7px;
}
.plan-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-title { color: var(--text); font-size: 1.22rem; letter-spacing: -0.015em; }
.plan-badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.plan-badge-ok { color: var(--brand-3); background: rgba(52,230,192,.1); border: 1px solid rgba(52,230,192,.32); }
.plan-badge-warn { color: var(--accent-warm); background: rgba(255,138,92,.1); border: 1px solid rgba(255,138,92,.34); }
.plan-note { color: var(--text-dim); font-size: 0.94rem; margin-top: 7px; max-width: 52ch; }
.plan-card-warn { border-color: rgba(255,138,92,.35); }
.plan-actions { position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.plan-actions form { margin: 0; }
.plan-link { font-size: 0.92rem; }

.profile-shell {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 26px 30px;
}
.profile-shell-head { margin-bottom: 20px; }
.profile-shell-head h2 { font-size: 1.3rem; letter-spacing: -0.02em; }
.profile-shell-head p { color: var(--text-dim); font-size: 0.94rem; margin-top: 4px; }

/* Profile & security — our own UI (no mounted Clerk components) */
.account-section { border-top: 1px solid var(--border); padding: 22px 0; }
.account-section:last-of-type { padding-bottom: 4px; }
.account-section-title {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-faint); margin-bottom: 14px;
}
.account-muted { color: var(--text-dim); font-size: 0.92rem; }

.account-profile-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.account-avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none;
  border: 1px solid var(--border-strong); background: var(--surface-2);
}
.account-avatar-fallback {
  display: grid; place-items: center; font-weight: 700; font-size: 1.15rem;
  color: var(--btn-primary-fg); background: var(--grad); border: none;
}
.account-avatar[hidden], .account-avatar-fallback[hidden] { display: none; }
.account-profile-name { display: grid; gap: 2px; min-width: 160px; flex: 1; }
.account-profile-name strong { color: var(--text); font-size: 1.08rem; }
.account-profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.account-upload-btn { cursor: pointer; }

.account-list { list-style: none; display: grid; gap: 4px; }
.account-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 10px 0;
}
.account-item + .account-item { border-top: 1px solid var(--border); }
.account-item-empty { color: var(--text-faint); font-size: 0.92rem; }
.account-item-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.account-item-label { color: var(--text); font-size: 0.98rem; overflow-wrap: anywhere; }
.account-item-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.account-item-btn { font-size: 0.88rem; }
.account-item-btn.is-danger { color: var(--danger-fg); }
.account-item-btn.is-danger:hover { color: var(--danger-fg-strong); }

.account-badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; flex: none;
}
.account-badge-ok { color: var(--brand-3); background: rgba(52,230,192,.1); border: 1px solid rgba(52,230,192,.32); }
.account-badge-warn { color: var(--accent-warm); background: rgba(255,138,92,.1); border: 1px solid rgba(255,138,92,.34); }

.account-add-btn { display: inline-block; margin-top: 12px; font-size: 0.92rem; color: var(--brand-2); }
.account-add-btn:hover { color: var(--text); }

.account-inline-form {
  margin-top: 16px; padding: 18px; max-width: 460px;
  background: var(--veil-03); border: 1px solid var(--border); border-radius: 12px;
}
.account-inline-form[hidden] { display: none; }
.account-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.account-inline-actions { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.account-section .field[hidden] { display: none; }
.danger-zone .account-muted { margin-bottom: 14px; max-width: 60ch; }

@media (max-width: 620px) {
  .plan-card { flex-direction: column; align-items: stretch; }
  .plan-actions { justify-content: flex-start; }
  .plan-actions .btn { flex: 1; }
  .profile-shell { padding: 18px 14px 22px; }
  .account-field-pair { grid-template-columns: 1fr; }
  .account-item-actions { width: 100%; }
}

/* ============================================================
   Download page
   ============================================================ */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; margin-top: 48px; text-align: center; }
.dl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 26px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform .25s, border-color .25s; }
.dl-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.dl-card-primary { background: linear-gradient(180deg, rgba(163, 100, 26, 0.12), var(--surface)); border-color: var(--border-strong); }
.dl-os { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px;
  background: var(--grad); color: var(--btn-primary-fg); margin-bottom: 6px; }
.dl-os-muted { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }
.dl-card h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.dl-card p { color: var(--text-dim); font-size: 0.96rem; min-height: 2.8em; }
.dl-card .btn { margin-top: 6px; }
.dl-note { font-size: 0.82rem; color: var(--text-faint); }
.dl-chip { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-3); background: rgba(52,230,192,.08); border: 1px solid rgba(52,230,192,.3);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 4px; }

/* Phone/tablet visitors: expectation-setting before they burn a signup on a
   device the app can't run on. */
.platform-banner { position: relative; z-index: 60; text-align: center; font-size: 0.88rem;
  padding: 10px 16px; color: var(--text-dim); background: rgba(124,92,255,.10);
  border-bottom: 1px solid var(--border); }
.platform-banner strong { color: var(--text); }
.platform-banner a { color: var(--brand-2); font-weight: 600; margin-left: 6px; }

.mobile-notice { width: 100%; max-width: 640px; margin-top: 40px; padding: 26px 24px;
  text-align: left; background: linear-gradient(180deg, rgba(124,92,255,.12), var(--surface));
  border: 1px solid var(--border-strong); border-radius: var(--radius); }
.mobile-notice h2 { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.mobile-notice p { color: var(--text-dim); font-size: 0.96rem; }
.mobile-notice-action { margin-top: 16px; }
.mobile-notice-action .btn { width: 100%; }
.mobile-notice-hint { margin-top: 12px; font-size: 0.85rem; color: var(--text-faint); }
.mobile-notice-hint strong { color: var(--text); }
.mobile-notice > .btn { margin-top: 16px; width: 100%; }

.install-steps { width: 100%; max-width: 720px; margin: 72px auto 0; text-align: center; }
.dl-steps-platform { margin-top: 28px; font-size: 1.1rem; text-align: left; }
.num-steps { list-style: none; counter-reset: s; margin-top: 28px; text-align: left; display: grid; gap: 14px; }
.num-steps li { counter-increment: s; position: relative; padding: 20px 22px 20px 64px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-dim); }
.num-steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 30px; height: 30px;
  display: grid; place-items: center; font-weight: 700; color: var(--btn-primary-fg); background: var(--grad); border-radius: 50%; font-size: 0.9rem; }
.num-steps strong { color: var(--text); }

/* ============================================================
   Requirements page
   ============================================================ */
.req-platform {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 12px 12px 16px; margin-bottom: 26px; overflow: hidden;
}
.req-platform-head { display: flex; align-items: center; gap: 16px; padding: 18px 18px 16px; }
.req-os-badge { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px;
  background: var(--grad); color: var(--btn-primary-fg); }
.req-os-badge-muted { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }
.req-platform-head h2 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; }
.req-platform-head > div p { color: var(--text-dim); font-size: 0.94rem; }
.req-status { margin-left: auto; font-size: 0.76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; }
.req-status-ok { color: var(--brand-3); background: rgba(52,230,192,.1); border: 1px solid rgba(52,230,192,.3); }
.req-status-beta { color: var(--accent-warm); background: rgba(255,138,92,.1); border: 1px solid rgba(255,138,92,.32); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.spec-table thead th { text-align: left; font-size: 0.76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.spec-table thead th:first-child { width: 26%; }
.spec-table tbody th { text-align: left; font-weight: 600; color: var(--text); padding: 15px 18px; vertical-align: top; width: 26%; }
.spec-table tbody td { color: var(--text-dim); padding: 15px 18px; vertical-align: top; }
.spec-table tbody tr { border-bottom: 1px solid var(--border); }
.spec-table tbody tr:last-child { border-bottom: none; }
.spec-table tbody td:nth-child(3) { color: var(--text); }
.req-note { display: block; font-size: 0.82rem; color: var(--text-faint); margin-top: 3px; }

.req-cta { text-align: center; margin-top: 48px; }
.req-cta p { color: var(--text-dim); margin-bottom: 16px; font-size: 1.05rem; }

@media (max-width: 620px) {
  .spec-table thead { display: none; }
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table tbody th, .spec-table tbody td { display: block; width: 100%; }
  .spec-table tbody tr { padding: 6px 0 10px; }
  .spec-table tbody th { padding-bottom: 4px; }
  .spec-table tbody td { padding-top: 2px; padding-bottom: 2px; }
  .spec-table tbody td::before { content: attr(data-label); display: block; font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); }
}

/* ============================================================
   Legal pages
   ============================================================ */
.legal-page { padding: 86px 0 80px; position: relative; }
.legal-layout { max-width: 980px; }
.legal-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px;
  padding-bottom: 30px; margin-bottom: 38px; border-bottom: 1px solid var(--border);
}
.legal-kicker {
  color: var(--brand-3); font-size: 0.78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 12px;
}
.legal-hero h1 { font-size: 4rem; line-height: 1.02; font-weight: 800; max-width: 12ch; }
.legal-updated {
  align-self: center; color: var(--text); font-size: 0.94rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; white-space: nowrap;
}
.legal-updated span { color: var(--text-faint); margin-right: 4px; }
.legal-doc {
  max-width: 760px; color: var(--text-dim); font-size: 1rem; line-height: 1.75;
  overflow-wrap: break-word;
}
.legal-doc > * + * { margin-top: 16px; }
.legal-doc h2 {
  color: var(--text); font-size: 1.38rem; line-height: 1.25; font-weight: 700;
  padding-top: 28px; margin-top: 36px; border-top: 1px solid var(--border);
}
.legal-doc h3 {
  color: var(--text); font-size: 1.04rem; line-height: 1.35; font-weight: 700;
  margin-top: 22px;
}
.legal-doc strong { color: var(--text); font-weight: 700; }
.legal-doc em { color: var(--text-dim); }
.legal-doc a {
  color: var(--brand-2); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-doc a:hover { color: var(--brand-3); }
.legal-doc ul {
  display: grid; gap: 10px; padding-left: 24px; margin-top: 14px;
}
.legal-doc li { padding-left: 4px; }
.legal-doc li::marker { color: var(--brand-3); }
.legal-doc code {
  color: var(--brand-3); background: rgba(52,230,192,.08); border: 1px solid rgba(52,230,192,.16);
  border-radius: 6px; padding: 1px 5px; font-size: 0.92em;
}
.legal-notice {
  color: var(--text); background: rgba(255,138,92,.08); border: 1px solid rgba(255,138,92,.22);
  border-left: 3px solid var(--accent-warm); border-radius: 10px; padding: 16px 18px;
}

@media (max-width: 760px) {
  .legal-page { padding: 62px 0 64px; }
  .legal-hero { grid-template-columns: 1fr; align-items: start; gap: 18px; margin-bottom: 30px; }
  .legal-hero h1 { font-size: 3rem; max-width: none; }
  .legal-updated { justify-self: start; }
  .legal-doc { font-size: 0.98rem; line-height: 1.7; }
  .legal-doc h2 { font-size: 1.22rem; margin-top: 30px; padding-top: 24px; }
}

@media (max-width: 480px) {
  .legal-page { padding-top: 48px; }
  .legal-hero h1 { font-size: 2.35rem; }
  .legal-updated { white-space: normal; border-radius: 12px; }
  .legal-doc ul { padding-left: 20px; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 64px 0 36px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; }
.footer-tag { color: var(--text-dim); margin-top: 16px; font-size: 0.96rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 0.95rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-faint); flex-wrap: wrap; }
.footer-made { color: var(--brand-3); }

/* ============================================================
   Home v2 — 2026 refresh (aurora hero, marquee, bento grid)
   ============================================================ */

/* Film-grain overlay — barely-there texture that kills flat gradients */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.022;
}

/* Serif-italic accent — editorial contrast against the geometric sans */
.hero-accent {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.05em; letter-spacing: -0.01em; padding-right: 0.06em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* The 130vw aurora bleeds past the viewport; clip (not hidden) keeps sticky nav working */
html { overflow-x: clip; }

/* ---- Aurora hero backdrop ---- */
.hero-v2 { position: relative; }
.hero-v2 .hero-meta { color: var(--text-dim); text-shadow: 0 1px 12px rgba(5, 5, 8, .9); }
.hero-aurora {
  position: absolute; left: 50%; bottom: -8%; transform: translateX(-50%);
  width: min(1500px, 130vw); z-index: -1; pointer-events: none; opacity: 0.5;
}
.hero-aurora img {
  width: 100%; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 58% 52% at 50% 50%, #000 50%, transparent 76%);
  mask-image: radial-gradient(ellipse 58% 52% at 50% 50%, #000 50%, transparent 76%);
}

/* ---- Trust marquee ---- */
.trust-v2 { padding-bottom: 24px; }
.marquee {
  overflow: hidden; margin-top: 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 32px; width: max-content; padding: 10px 0;
  animation: marquee 38s linear infinite;
}
.marquee-track span { font-size: 1.14rem; font-weight: 600; color: var(--text-faint); white-space: nowrap; }
.marquee-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); flex: none; }
/* Track holds two identical runs; shifting by half-width + half-gap loops seamlessly */
@keyframes marquee { to { transform: translateX(calc(-50% - 16px)); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---- Bento feature grid ---- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento-card {
  position: relative; grid-column: span 2; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; overflow: hidden; min-height: 230px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.bento-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.bento-wide { grid-column: span 4; }
.bento-half { grid-column: span 3; }

/* top light-line + pointer-tracked glow */
.bento-card::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--veil-22), transparent);
}
.bento-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(124,92,255,.13), transparent 65%);
  transition: opacity .3s ease;
}
.bento-card:hover::after { opacity: 1; }

.bento-icon {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  color: var(--brand-2); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 13px; margin-bottom: 16px;
}
.bento-card h3 { font-size: 1.22rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.bento-card p { color: var(--text-dim); font-size: 0.97rem; max-width: 46ch; }
.bento-body { position: relative; z-index: 1; }

/* artwork inside cards — near-black renders blended via screen */
.bento-art { pointer-events: none; mix-blend-mode: screen; }
.bento-privacy { flex-direction: row; align-items: center; gap: 10px; }
.bento-art-shield {
  width: 42%; max-width: 300px; margin: -12px -16px -12px auto; flex: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 52%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 52%, transparent 78%);
}
.bento-img-card { min-height: 330px; }
.bento-img-card .bento-art-bottom {
  width: 108%; margin: auto -4% -14% ; align-self: center;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 32%);
  mask-image: linear-gradient(180deg, transparent, #000 32%);
  opacity: .92;
}

.bento-keys { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; color: var(--text-faint); }
.bento-keys kbd { font-size: 1rem; padding: 6px 14px; border-radius: 10px; }
.bento-demo {
  margin-top: auto; padding-top: 18px; font-size: 0.95rem; color: var(--text-faint);
}
.bento-demo s { opacity: .55; }
.bento-demo-arrow { color: var(--brand-3); margin: 0 4px; }
.bento-demo strong { color: var(--text); }

/* ---- Steps v2: gradient hairline + floating numerals ---- */
.steps-v2 { position: relative; gap: 16px; }
.steps-v2 .step {
  position: relative; background: linear-gradient(180deg, var(--veil-05), var(--surface));
  overflow: hidden;
}
.steps-v2 .step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: .55;
}
.steps-v2 .step-num { font-size: 2.2rem; line-height: 1; opacity: .9; }

/* ---- Privacy shield figure ---- */
.shield-figure {
  position: relative; width: 100%; max-width: 380px; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  background: #050508;
}
.shield-figure img { width: 100%; display: block; }
.shield-figure figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  background: rgba(10, 10, 18, 0.55); border: 1px solid var(--border);
  border-radius: 16px; backdrop-filter: blur(14px) saturate(150%);
}
.shield-figure .shield-stat {
  font-size: 2.4rem; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shield-figure .shield-cap { color: var(--text-dim); font-size: 0.92rem; line-height: 1.35; }

/* ---- CTA v2 with aurora wash ---- */
.cta-v2 { background: var(--veil-02); }
.cta-aurora {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: screen; opacity: .55; pointer-events: none;
}
.cta-v2 h2, .cta-v2 p, .cta-v2 .hero-cta, .cta-v2 .hero-meta { position: relative; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card, .bento-half { grid-column: span 1; }
  .bento-wide { grid-column: span 2; }
  .bento-privacy { flex-direction: column; align-items: stretch; }
  .bento-art-shield { width: 70%; max-width: 260px; margin: -6px auto -30px; }
  .privacy-visual { order: -1; }
  .privacy-visual .shield-figure { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card, .bento-wide, .bento-half { grid-column: span 1; }
  .hero-aurora { width: 180vw; opacity: .5; }
  .marquee-track span { font-size: 1rem; }
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { opacity: 1; transform: none; animation: rise .7s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .brand { order: 1; }
  .nav-cta { order: 2; margin-left: auto; }
  .nav-toggle { display: flex; order: 3; flex: none; }
  .nav-cta .nav-login-link { display: none; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(8, 8, 14, 0.96);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border);
    padding: 4px 24px 12px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links .nav-mobile-only { display: block; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .pricing-layout { grid-template-columns: 1fr; }
  /* Single column: fall back to DOM order (annual → lifetime deal → aside). */
  .pricing-layout > .price-panel:not(.price-panel-lifetime),
  .pricing-layout > .price-side,
  .price-panel-lifetime { grid-column: auto; grid-row: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .card-lg { grid-column: span 2; }
  .privacy { grid-template-columns: 1fr; gap: 36px; }
  .download-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .step-arrow { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-inner { gap: 12px; }
  .brand { gap: 8px; font-size: 1.02rem; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn-sm { padding: 8px 13px; font-size: 0.84rem; min-height: 44px; }
  .hero { padding-top: 52px; }
  .pricing-hero { padding-top: 40px; padding-bottom: 32px; }
  .pricing-layout { margin-top: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .card-lg { grid-column: span 1; }
  .price-panel { padding: 28px 22px; }
  /* Checkout buttons sit inside <form>s — stretch the form too, and let long
     labels ("Get WhisperJot — $30 / 3 months") wrap instead of clipping. */
  .price-actions form, .faq-cta form { width: 100%; }
  .price-actions .btn, .faq-cta .btn, .faq-cta-row { width: 100%; white-space: normal; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hud-text { font-size: 1.05rem; }
}

@media (max-width: 360px) {
  .nav-inner { flex-wrap: nowrap; }
  .brand-name { display: none; }
  .nav-cta { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  /* Static stand-in for the .btn spinner: an ellipsis instead of a frozen ring. */
  .btn.is-loading::after { content: "…"; width: auto; height: auto; border: none; border-radius: 0; line-height: 1; }
}

/* ============================================================
   Forms & auth (accounts app)
   ============================================================ */
.nav-cta { display: inline-flex; align-items: center; gap: 18px; }
.nav-plain-link {
  color: var(--text-dim); font-size: 0.95rem; font-weight: 500; transition: color .2s;
  white-space: nowrap;
}
.nav-plain-link:hover { color: var(--text); }
.nav-inline-form { display: inline-flex; }
.nav-link-btn {
  background: none; border: none; cursor: pointer; font-family: var(--font);
  color: var(--text-dim); font-size: 0.95rem; font-weight: 500; transition: color .2s; padding: 0;
  white-space: nowrap;
}
.nav-link-btn:hover { color: var(--text); }

.flash-stack { display: grid; gap: 10px; padding-top: 18px; }
.flash {
  padding: 12px 18px; border-radius: 12px; font-size: 0.95rem;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
}
.flash-success { color: var(--brand-3); background: rgba(52,230,192,.08); border-color: rgba(52,230,192,.3); }
.flash-error { color: var(--danger-fg); background: rgba(255,92,122,.08); border-color: rgba(255,92,122,.3); }

.auth-wrap { max-width: 480px; }
.auth-hero { min-height: calc(100vh - 330px); }
.auth-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 48px; align-items: center;
}
.auth-copy { max-width: 560px; text-align: left; }
.auth-copy h1 {
  font-size: clamp(2.35rem, 5vw, 4.7rem); line-height: .96;
  letter-spacing: -0.055em; margin: 14px 0 18px;
}
.auth-copy p { max-width: 520px; color: var(--text-dim); font-size: 1.05rem; }
.auth-card {
  text-align: left; cursor: auto; padding: 30px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--glass); box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%);
}
.auth-card:hover { transform: none; }
.auth-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.auth-title { font-size: 1.7rem; letter-spacing: -0.025em; font-weight: 800; margin-bottom: 8px; }
.auth-sub { color: var(--text-dim); font-size: 0.97rem; margin-bottom: 22px; }
.auth-form { display: grid; gap: 0; }
.auth-alt { margin-top: 18px; font-size: 0.92rem; color: var(--text-dim); }
.auth-alt a { color: var(--brand-2); }
.auth-note { margin-top: 10px; color: var(--text-faint); font-size: 0.84rem; line-height: 1.5; }
.auth-note a { color: var(--brand-2); }
.auth-hint { color: var(--text-faint); font-size: 0.84rem; margin-bottom: 14px; }
.auth-alert {
  margin: 0 0 16px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid rgba(78,168,255,.3); background: rgba(78,168,255,.08);
  color: var(--info-fg); font-size: 0.9rem;
}
.auth-alert.is-error { color: var(--error-fg); border-color: var(--error-border); background: var(--error-bg); }
.auth-alert.is-success { color: var(--brand-3); border-color: rgba(52,230,192,.3); background: rgba(52,230,192,.08); }
.auth-oauth-btn { min-height: 48px; border-radius: 12px; }
.auth-provider-mark { display: block; width: 20px; height: 20px; flex: none; }
.auth-verify { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 20px; }
.auth-reset { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 20px; }
.auth-reset h3 { font-size: 1.18rem; margin-bottom: 6px; }
.auth-verify[hidden], .auth-reset[hidden], .auth-form[hidden], .auth-alert[hidden], [data-auth-primary][hidden] { display: none; }
/* Step-level swaps (WJ.swapStep in js/main.js): the leaving step fades up and
   out, the entering step settles in from below. Alerts stay instant. */
.step-leave {
  opacity: 0; transform: translateY(-4px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.step-enter { opacity: 0; transform: translateY(6px); }
.step-enter-active {
  opacity: 1; transform: translateY(0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.auth-step-icon {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px;
  border-radius: 50%; color: #07110f; background: var(--brand-3); font-weight: 800;
}
.auth-verify h3 { font-size: 1.18rem; margin-bottom: 6px; }
.auth-resend { justify-self: center; margin-top: 14px; }
@keyframes auth-nudge-pulse {
  0%   { background: transparent; }
  30%  { background: rgba(78,168,255,.12); }
  100% { background: transparent; }
}
.auth-alt-nudge {
  animation: auth-nudge-pulse .8s ease-out;
  border-radius: 8px; padding: 2px 6px; margin: -2px -6px;
}
.auth-captcha { margin: 4px 0 16px; min-height: 1px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(78,168,255,.18); }
.field input[aria-invalid="true"] { border-color: rgba(255,92,122,.65); }
.field-help { font-size: 0.82rem; color: var(--text-faint); margin-top: 6px; }
.field-help ul { margin-left: 18px; }

.errorlist { list-style: none; margin: 8px 0 14px; display: grid; gap: 6px; }
.errorlist li {
  font-size: 0.88rem; color: var(--danger-fg); background: rgba(255,92,122,.08);
  border: 1px solid rgba(255,92,122,.3); border-radius: 10px; padding: 8px 12px;
}

.check-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; cursor: pointer;
  font-size: 0.92rem; color: var(--text-dim); }
.check-row input { margin-top: 4px; accent-color: var(--brand); }
.check-row a { color: var(--brand-2); }

.form-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0;
  color: var(--text-faint); font-size: 0.85rem; }
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.form-divider span { display: inline-block; min-width: 20px; text-align: center; }

.btn-block { width: 100%; }
.btn[disabled] { opacity: .58; cursor: wait; transform: none; box-shadow: none; }
.btn-danger { color: var(--danger-fg); background: rgba(255,92,122,.08); border-color: rgba(255,92,122,.35); }
.btn-danger:hover { transform: translateY(-2px); background: rgba(255,92,122,.15); }

.danger-zone { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 22px; }
.danger-zone h2 { font-size: 1.1rem; margin-bottom: 8px; }

.auth-wrap-wide { max-width: 900px; }

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; gap: 28px; }
  .auth-copy { max-width: 680px; }
  .auth-copy h1 { font-size: 2.9rem; }
}

@media (max-width: 560px) {
  .nav-cta { gap: 10px; }
  .auth-layout { gap: 22px; }
  .auth-copy h1 { font-size: 2.35rem; letter-spacing: -0.04em; }
  .auth-card { padding: 22px; }
  .auth-oauth-btn, .auth-form .btn { white-space: normal; }
}

/* ============================================================
   Blog
   ============================================================ */

.blog-hero {
  padding: 100px 0 40px;
  text-align: center;
}
.blog-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.blog-hero-sub {
  color: var(--text-dim);
  font-size: 1.15rem;
  margin-top: 12px;
}

.blog-grid-section { padding: 20px 0 100px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  text-decoration: none;
}
.blog-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.blog-card-inner { padding: 28px; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.blog-card-tag {
  background: var(--surface-2);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.75rem;
  color: var(--brand-2);
}
.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--text);
}
.blog-card-excerpt {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 16px;
}
.blog-card-read {
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 600;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}
.blog-pagination-info { color: var(--text-faint); font-size: 0.9rem; }
.blog-empty { color: var(--text-dim); text-align: center; padding: 80px 0; }

/* Article detail */
.blog-article { padding: 80px 0 100px; }
.blog-article-container { max-width: 740px; }

.blog-back {
  display: inline-block;
  color: var(--text-faint);
  font-size: 0.88rem;
  margin-bottom: 24px;
  transition: color var(--dur-fast) var(--ease);
}
.blog-back:hover { color: var(--brand); }

.blog-article-header { margin-bottom: 40px; }
.blog-article-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-faint);
}
.blog-article-author { color: var(--text-dim); font-weight: 500; }

/* Prose styling for rendered markdown */
.prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  color: var(--text);
}
.prose p {
  margin: 0 0 1.35rem;
  line-height: 1.75;
  color: var(--text-dim);
}
.prose ul, .prose ol {
  margin: 0 0 1.35rem;
  padding-left: 1.5rem;
  color: var(--text-dim);
  line-height: 1.75;
}
.prose li { margin: 0.35rem 0; }
.prose blockquote {
  border-left: 3px solid var(--brand);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-faint);
  font-style: italic;
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}
.prose code {
  background: var(--surface-2);
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  font-size: 0.88em;
  color: var(--brand-2);
}
.prose pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--text);
}
.prose a {
  color: var(--brand-2);
  text-decoration: underline;
  text-decoration-color: rgba(78, 168, 255, 0.3);
  transition: text-decoration-color var(--dur-fast) var(--ease);
}
.prose a:hover { text-decoration-color: var(--brand-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose .table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.prose th, .prose td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.prose th {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--border-strong);
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Related posts */
.blog-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.blog-related h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.blog-related-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease);
}
.blog-related-card:hover { border-color: var(--brand); }
.blog-related-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.blog-related-card p {
  font-size: 0.85rem;
  color: var(--text-faint);
  line-height: 1.5;
}

@media (max-width: 700px) {
  .blog-hero h1 { font-size: 2.2rem; }
  .blog-article-header h1 { font-size: 1.8rem; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ============ /demo/ — in-browser transcription demo ============ */
.demo-page .section-head { margin-bottom: 40px; }
.demo-widget {
  max-width: 640px; margin: 0 auto; padding: 32px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
}
.demo-controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.demo-countdown {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.2rem;
  color: var(--brand-3);
}
#demo-record.is-recording { background: #d5484f; border-color: #d5484f; }
.demo-alt { margin-top: 16px; text-align: center; color: var(--text-dim); font-size: 0.95rem; }
.demo-upload-label { color: var(--brand-2); cursor: pointer; text-decoration: underline; }
.demo-hint { color: var(--text-faint); font-size: 0.85rem; }
.demo-status { margin-top: 16px; text-align: center; color: var(--text-dim); min-height: 1.4em; }
.demo-result {
  margin-top: 18px; padding: 18px;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 14px;
  text-align: center;
}
.demo-transcript { font-size: 1.1rem; line-height: 1.55; margin-bottom: 12px; white-space: pre-wrap; }
.demo-error { margin-top: 16px; text-align: center; color: var(--danger-fg); }
.demo-disclosure {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border);
  color: var(--text-faint); font-size: 0.88rem; line-height: 1.6;
}
.demo-cta { text-align: center; margin-top: 64px; }
.demo-cta h2 { font-size: 1.6rem; letter-spacing: -0.02em; }
.demo-cta p { color: var(--text-dim); max-width: 520px; margin: 12px auto 24px; }
.demo-cta .hero-cta { justify-content: center; }
/* ---------- Account shell (sidebar settings layout) ---------- */
.account-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  text-align: left;
}
.account-sidenav { display: grid; gap: 4px; position: sticky; top: 96px; }
.account-sidenav-link {
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.account-sidenav-link:hover { color: var(--text); background: var(--surface-2); }
.account-sidenav-link.is-active { color: var(--text); background: rgba(124, 92, 255, 0.16); }
.account-content { display: grid; gap: 18px; min-width: 0; }
@media (max-width: 780px) {
  .account-shell { grid-template-columns: 1fr; gap: 16px; }
  .account-sidenav {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
}

/* Overview usage panel */
.usage-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.usage-tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px 16px;
  display: grid;
  gap: 2px;
}
.usage-tile strong { font-size: 1.35rem; letter-spacing: -0.02em; }
.usage-tile span { color: var(--text-dim); font-size: 0.85rem; }
.usage-chart { display: flex; align-items: flex-end; gap: 3px; height: 72px; margin-top: 14px; }
.usage-bar-slot { flex: 1; display: flex; align-items: flex-end; height: 100%; min-width: 0; }
.usage-bar {
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
}
.usage-caption { margin-top: 12px; }
@media (max-width: 560px) {
  .usage-tiles { grid-template-columns: 1fr; }
}

/* Library pages */
.library-search { display: flex; gap: 10px; margin-bottom: 14px; }
.library-search input[type="search"] {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--text);
  font: inherit;
}
.library-search input[type="search"]:focus {
  outline: none;
  border-color: var(--brand);
}
.library-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.library-chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.88rem;
}
.library-chip:hover { color: var(--text); border-color: var(--border-strong); }
.library-chip.is-active {
  color: var(--text);
  border-color: rgba(124, 92, 255, 0.5);
  background: rgba(124, 92, 255, 0.14);
}
.library-row .account-item-label { overflow-wrap: anywhere; }
.library-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.library-text { color: var(--text); line-height: 1.65; white-space: pre-line; }
.library-raw { margin-top: 14px; }
.library-raw summary { cursor: pointer; }
.library-segments { list-style: none; display: grid; gap: 10px; }
.library-segments li { display: flex; gap: 12px; align-items: baseline; }
.library-stamp {
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.library-speaker { color: var(--brand-2); font-size: 0.88rem; flex-shrink: 0; }
.library-segment-text { color: var(--text); line-height: 1.55; }

/* Cookie-consent banner: rendered only when GA is configured, shown only
   until the visitor makes a choice (static/js/analytics.js). */
.cookie-banner { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px;
  max-width: 520px; margin: 0 auto; padding: 18px 20px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.cookie-banner p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 12px; }
.cookie-banner a { color: var(--brand-2); font-weight: 600; }
.cookie-banner-actions { display: flex; gap: 10px; }

/* ============================================================
   Quill hero — full-bleed three.js night scene with the copy
   column on the left and the parchment framed right of it.
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hero-quill {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 90px 0 70px;
  text-align: left;
  overflow: hidden;
  background:
    radial-gradient(1100px 640px at 72% 6%, rgba(232, 195, 122, 0.4), transparent 62%),
    radial-gradient(900px 600px at 12% 92%, rgba(44, 58, 110, 0.07), transparent 60%),
    linear-gradient(180deg, #faf5ea 0%, #f3ecdc 55%, var(--bg) 100%);
}
:root[data-theme="night"] .hero-quill {
  background:
    radial-gradient(1200px 700px at 78% 18%, rgba(38, 52, 110, 0.55), transparent 65%),
    radial-gradient(900px 600px at 16% 90%, rgba(124, 92, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #05060d 0%, #090a16 55%, var(--bg) 100%);
}
.quill-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Aurora plate is hidden unless WebGL bails (hero-fallback). */
.quill-aurora-fallback { display: none; }
.hero-fallback .quill-aurora-fallback {
  display: block;
  position: absolute; inset: 0;
}
.hero-fallback .quill-aurora-fallback img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.5;
}

.quill-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 520px) 1fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}
.quill-copy .hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.quill-copy .hero-sub { max-width: 40ch; }
.quill-copy .hero-cta { justify-content: flex-start; }
.quill-status-line { min-height: 1.3em; margin-top: 14px; }
.quill-disclosure {
  max-width: 46ch;
  font-size: 0.78rem;
  line-height: 1.55;
  opacity: 0.85;
}

.btn-mic {
  background: var(--mic-bg);
  border: 1px solid var(--mic-border);
  color: var(--mic-fg);
  gap: 10px;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
  touch-action: none; /* hold-to-talk: keep the press from scrolling on touch */
}
.btn-mic:hover {
  transform: translateY(-2px);
  background: rgba(255, 178, 92, 0.16);
  box-shadow: 0 12px 34px -12px rgba(255, 160, 70, 0.55);
}
.btn-mic.is-live {
  background: rgba(255, 178, 92, 0.22);
  border-color: rgba(255, 200, 120, 0.8);
  box-shadow: 0 0 0 6px rgba(255, 178, 92, 0.12), 0 0 30px rgba(255, 170, 60, 0.35);
  animation: quill-pulse 1.6s ease-in-out infinite;
}
@keyframes quill-pulse {
  50% { box-shadow: 0 0 0 10px rgba(255, 178, 92, 0.07), 0 0 42px rgba(255, 170, 60, 0.5); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-mic.is-live { animation: none; }
}

/* The "voice → quill → your apps" landing card. */
.quill-appwin {
  position: absolute;
  right: 4%;
  bottom: 6%;
  z-index: 2;
  width: min(360px, 42vw);
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px) scale(0.97);
}
.quill-appwin.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 480ms var(--ease) 380ms, transform 480ms var(--ease) 380ms;
}
@media (prefers-reduced-motion: reduce) {
  .quill-appwin.is-in { transition: none; }
}
.quill-appwin-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.quill-appwin-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--veil-16);
}
.quill-appwin-title {
  margin-left: 8px;
  font-size: 0.76rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.quill-appwin-text {
  padding: 16px 18px 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

@media (max-width: 900px) {
  .hero-quill { min-height: 0; padding: 72px 0 340px; }
  /* minmax(0,…) kills the min-width:auto blowout the long pill causes */
  .quill-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-quill .pill { flex-wrap: wrap; justify-content: center; row-gap: 4px; }
  .quill-copy { text-align: center; min-width: 0; }
  .quill-copy .hero-cta { justify-content: center; }
  .quill-copy .hero-sub, .quill-disclosure { margin-left: auto; margin-right: auto; }
  .quill-appwin { right: 50%; transform: translate(50%, 14px) scale(0.97); width: min(360px, 88vw); }
  .quill-appwin.is-in { transform: translate(50%, 0); }
}

/* Self-hosted handwriting face for the quill's ink canvas. Only ever
   requested via document.fonts.load() in quill-hero.js — no DOM text uses
   it, so non-hero pages never download it. */
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/caveat-latin.ede85e45deb7.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2018-201D;
}

/* design-review FINDING-002: app names in the trust marquee were text-faint
   on near-black — invisible at a glance, which defeats the section. */
.marquee-track span { color: var(--text-dim); }
.marquee:hover .marquee-track span { color: var(--text); }

/* design-review FINDING-003: the hero's night scene ended in a hard edge.
   A tall fade hands the sky off to the page background, and the trust
   marquee tucks up into it so the world bleeds into the page. */
.hero-quill::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
  z-index: 0;
}
.trust-v2 { margin-top: -40px; position: relative; }

/* design-review FINDING-004: the hero's golden-ink language stopped at the
   fold; the rest of the page was violet/azure only. Thread the ink accent
   through as a quiet secondary voice so it reads as one world. */
/* --ink/--ink-strong are theme tokens now (paper: dark amber; night: bright
   amber) — defining them again at this point in the cascade once leaked the
   night values into paper. Tokens live in the header blocks only. */
.step-num {
  background: linear-gradient(110deg, var(--ink) 0%, var(--ink-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.bento-demo strong { color: var(--ink); }
.faq-item summary:hover { color: var(--ink); }
.eyebrow { color: var(--ink-strong); font-weight: 700; font-size: 0.82rem; }

/* design-review FINDING-006: the closing CTA's headline fought the aurora
   art behind it. Dim the plate and scrim the center so the words win. */
.cta-v2 .cta-aurora { opacity: 0.45; }
:root[data-theme="night"] .cta-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 50% 45%, rgba(7, 7, 11, 0.55), transparent 75%);
  pointer-events: none;
}

/* design-review FINDING-007: bento art JPGs ended in hard rectangular edges
   inside the cards. Fade their tops so they melt into the card, the same
   edge-fade trick the hero scene uses on its plates. */
.bento-img-card .bento-art-bottom {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 38%);
}


/* ---------- Paper & Ink theme reconciliation ---------- */
/* Neon art plates were lit for the night theme; on paper they wash out. */
.bento-art, .cta-aurora { display: none; }
.shield-figure figcaption, .shield-figure .shield-cap { color: #e8e6f0; }
:root[data-theme="night"] .bento-art,
:root[data-theme="night"] .cta-aurora { display: block; }
/* The aurora fallback plate is night artwork; on paper the fallback is just
   the hero's own gradient. */
:root:not([data-theme="night"]) .hero-fallback .quill-aurora-fallback { display: none; }

/* Sun/moon theme toggle in the nav */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer; font-size: 1rem;
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.theme-toggle:hover { transform: rotate(15deg) scale(1.08); color: var(--text); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="night"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="night"] .theme-toggle .icon-moon { display: none; }

/* ============================================================
   Paper & Ink graphics + home micro-interactions
   ============================================================ */
/* Ink-on-paper illustrations are brand-native in BOTH themes — at night they
   read as parchment cards on the desk (like the hero sheet). */
.bento-art.art-ink {
  display: block;
  mix-blend-mode: normal;
  border-radius: 14px;
  opacity: 1;
  box-shadow: 0 10px 26px -14px rgba(74, 52, 20, 0.35);
}
:root[data-theme="night"] .bento-art.art-ink {
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  opacity: 0.96;
}
.bento-img-card .bento-art-bottom.art-ink {
  -webkit-mask-image: none;
  mask-image: none;
  width: 96%;
  margin: auto auto -8%;
}

/* Privacy visual: the sealed envelope replaces the neon shield — a paper
   object with a real shadow, not a dark screen. */
.shield-figure { background: transparent; }
.shield-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* CTA flourish (paper) vs aurora (night) */
.cta-flourish {
  position: absolute; left: 50%; bottom: -16%;
  width: min(720px, 86%); transform: translateX(-50%);
  opacity: 0.4; pointer-events: none;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 55%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 55%, transparent 85%);
}
:root[data-theme="night"] .cta-flourish { display: none; }

/* Bento tilt support + glow follows the ink accent, not violet-on-paper */
.bento-card { transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); will-change: transform; }
.bento-card::after {
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), var(--glow-tint), transparent 65%) !important;
}

/* The Three Steps ink line draws itself */
.steps-v2 { padding-top: 26px; }
.steps-ink {
  position: absolute; top: -6px; left: 4%; right: 4%; width: 92%; height: 46px;
  color: var(--ink);
  opacity: 0.75;
}
.steps-ink path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.steps-ink.play path {
  animation: ink-draw 1400ms var(--ease) 200ms forwards;
}
@keyframes ink-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 900px) { .steps-ink { display: none; } .steps-v2 { padding-top: 0; } }

/* Messy → clean dictation demo plays on scroll */
.bento-demo s { position: relative; text-decoration: none; }
.bento-demo s::after {
  content: ""; position: absolute; left: 0; right: 0; top: 55%; height: 2px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left center;
}
.bento-demo.play s::after { animation: ink-strike 500ms var(--ease) forwards; }
.bento-demo.play s:nth-of-type(2)::after { animation-delay: 350ms; }
.bento-demo strong { opacity: 0; transition: opacity 500ms var(--ease) 900ms; }
.bento-demo.play strong { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .bento-demo s::after { transform: scaleX(1); }
  .bento-demo strong { opacity: 1; transition: none; }
}
@keyframes ink-strike { to { transform: scaleX(1); } }

/* Section titles get a hand-drawn gold underline sweep */
.section-head .section-title { position: relative; }
.section-head .section-title::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: -14px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--ink), transparent);
  transform: scaleX(0);
  transition: transform 900ms var(--ease) 250ms;
}
.section-head .section-title.play::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .section-head .section-title::after { transform: scaleX(1); transition: none; }
}

/* FAQ height animation hooks (driven by home-interactions.js) */
.faq-item p { overflow: hidden; transition: max-height 320ms var(--ease), opacity 320ms var(--ease); }


/* ---------- Display typography: Fraunces ---------- */
.hero-title,
.section-title,
.cta-band h2 {
  font-family: var(--display);
  font-weight: 620;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 60;
}
.hero-title .hero-accent,
.section-title .hero-accent {
  font-weight: 480;
}


/* ---------- Utilities (replace inline styles; guardrail-tested) ---------- */
.link-accent { color: var(--brand-2); }
.section-tight { padding-top: 24px; }
.section-flush { padding-top: 0; }
.section-roomy { padding-top: 64px; }
.mt-16 { margin-top: 16px; }
.mb-32 { margin-bottom: 32px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.section-title-sm { font-size: clamp(1.6rem, 3vw, 2.2rem); }


/* CRO: monthly-equivalent price anchoring on the annual card. The felt price
   is $8.25/mo; the billing truth sits directly beneath it, same card. */
.price-billing { margin-top: 10px; font-size: 0.95rem; color: var(--text-dim); }
.price-billing strong { color: var(--text); }


/* IA pass: page-level titles wear the display face EVERYWHERE — the inside
   pages predate the Fraunces migration and were still shouting in Inter.
   Card titles stay Inter on purpose (UI, not editorial). */
.blog-hero h1,
.blog-article > .container > h1,
.blog-article h1,
.post-body h2,
.blog-related h2,
.demo-cta h2,
.auth-copy h1 {
  font-family: var(--display);
  font-weight: 620;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 60;
}

/* IA: you should always know where you are — ink dot under the active page */
.nav-links a { position: relative; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -8px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-strong); transform: translateX(-50%);
}

/* IA: jump links for long spec pages */
.jump-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 22px;
}
.jump-row a {
  font-size: 0.85rem; font-weight: 600; color: var(--text-dim);
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
}
.jump-row a:hover { color: var(--ink-strong); border-color: var(--border-strong); }


/* Artwork settles in on decode instead of popping as a bare box: containers
   hold a paper tint while loading, the image rises into place when ready
   (js/main.js flips .is-loaded; no-JS users see images immediately). */
.img-settle { background: var(--veil-04); }
html.js .img-settle { opacity: 0; transform: translateY(8px); }
html.js .img-settle.is-loaded {
  opacity: 1; transform: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  html.js .img-settle { opacity: 1; transform: none; transition: none; }
}
