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

:root {
  --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; /* WCAG AA 4.5:1 on --bg (was #6f6f80 at 4.08:1) */

  --brand: #7c5cff;       /* violet */
  --brand-2: #4ea8ff;     /* azure  */
  --brand-3: #34e6c0;     /* mint   */
  --accent-warm: #ff8a5c;

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

  --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 -20px rgba(0, 0, 0, 0.7);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { 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: 0.4; will-change: transform; }
.orb-1 { width: 620px; height: 620px; top: -180px; left: -140px;
  background: radial-gradient(circle, #6d4dff, 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, #2f7bff, 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, #1fd6b0, 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;
  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: #0b0612; background: var(--grad);
  box-shadow: 0 10px 30px -8px rgba(124, 92, 255, 0.6), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(124, 92, 255, 0.75); }

.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: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); }

/* 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: rgba(8, 8, 14, 0.72); 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 rgba(124, 92, 255, .35); }

.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-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 9px;
  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, rgba(255,255,255,.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: #0b0612; 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, rgba(124,92,255,.1), rgba(78,168,255,.05));
  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 .hero-sub { max-width: 680px; }
.pricing-layout {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 20px; align-items: stretch; margin-top: 52px; 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(52,230,192,.15), transparent 34%),
    linear-gradient(180deg, rgba(124,92,255,.13), rgba(255,255,255,.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; }
.price-panel-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-badge, .price-save {
  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: #0b0612; background: var(--grad); }
.price-save { color: var(--brand-3); background: rgba(52,230,192,.08); border: 1px solid rgba(52,230,192,.25); }
.price-panel h2, .price-note 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); }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px;
  display: grid; place-items: center; color: #0b0612; background: var(--grad);
  border-radius: 50%; font-size: 0.72rem; font-weight: 800;
}
.price-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.price-actions form { display: flex; margin: 0; }
.price-side { display: grid; gap: 16px; align-content: start; }
.price-note, .monthly-details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.price-note h2 { margin-top: 0; font-size: 1.24rem; }
.price-note p { color: var(--text-dim); font-size: 0.96rem; margin-top: 10px; }
.monthly-details { color: var(--text-dim); }
.monthly-details summary {
  cursor: pointer; color: var(--text); font-weight: 700; list-style-position: outside;
}
.monthly-details summary::marker { color: var(--brand-2); }
.monthly-inner { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.monthly-inner p { font-size: 0.95rem; }
.monthly-inner strong { color: var(--text); }
.monthly-inner a { display: inline-block; margin-top: 12px; color: var(--brand-2); font-weight: 600; }
.monthly-inner a:hover { color: var(--brand-3); }
.pricing-faq { padding-top: 76px; }

/* ============================================================
   Pricing v2 — honest-conversion layout
   ============================================================ */
.price-list strong { color: var(--text); font-weight: 600; }
.price-microcopy { margin-top: 16px; font-size: 0.82rem; color: var(--text-faint); }
.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: rgba(124, 92, 255, .07); }
.compare-table thead .compare-us {
  color: transparent; background-image: var(--grad); -webkit-background-clip: text; background-clip: text;
  background-color: rgba(124, 92, 255, .07); 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; }

/* ============================================================
   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: rgba(255,255,255,.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: #0b0612; 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: #ff8098; }
.account-item-btn.is-danger:hover { color: #ffadbd; }

.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: rgba(255,255,255,.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(124,92,255,.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: #0b0612; 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; }
.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: #0b0612; 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: #0b0612; }
.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, rgba(255,255,255,.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, rgba(255,255,255,.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: rgba(255,255,255,.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; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .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 a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .pricing-layout { grid-template-columns: 1fr; }
  .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; }
  .hero { padding-top: 52px; }
  .feature-grid { grid-template-columns: 1fr; }
  .card-lg { grid-column: span 1; }
  .price-panel { padding: 28px 22px; }
  .price-actions .btn { width: 100%; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hud-text { font-size: 1.05rem; }
}

@media (max-width: 360px) {
  .nav-inner { flex-wrap: wrap; }
  .nav-cta { width: 100%; justify-content: space-between; }
  .nav-cta .btn-sm { flex: 1; }
}

@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: #ff8098; 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: rgba(13, 13, 22, .78); 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: #b9dcff; font-size: 0.9rem;
}
.auth-alert.is-error { color: #ffadbd; border-color: rgba(255,92,122,.35); background: rgba(255,92,122,.08); }
.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: #ff8098; 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: #ff8098; 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: #e2777d; }
.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; }
