/* ============================================================
   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: #6f6f80;

  --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);

  --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; }
.orb-1 { width: 620px; height: 620px; top: -180px; left: -140px;
  background: radial-gradient(circle, #6d4dff, transparent 70%); }
.orb-2 { width: 560px; height: 560px; top: 240px; right: -160px;
  background: radial-gradient(circle, #2f7bff, transparent 70%); opacity: 0.32; }
.orb-3 { width: 520px; height: 520px; top: 1100px; left: 30%;
  background: radial-gradient(circle, #1fd6b0, transparent 70%); opacity: 0.18; }

/* ============================================================
   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); }

/* 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-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.brand-wave { width: 3.5px; border-radius: 3px; background: var(--grad); }
.brand-wave:nth-child(1) { height: 9px; animation: bw 1.1s ease-in-out infinite; }
.brand-wave:nth-child(2) { height: 20px; animation: bw 1.1s ease-in-out .2s infinite; }
.brand-wave:nth-child(3) { height: 13px; animation: bw 1.1s ease-in-out .4s infinite; }
@keyframes bw { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }

.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); }

/* ============================================================
   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; }

/* ============================================================
   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); }

.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); }

/* ============================================================
   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-links { display: 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; }
}

/* ============================================================
   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-card { text-align: left; cursor: auto; }
.auth-card:hover { transform: none; }
.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-alt { margin-top: 18px; font-size: 0.92rem; color: var(--text-dim); }
.auth-alt a { color: var(--brand-2); }

.account-billing {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: min(100%, 720px); margin: 0 auto 22px; padding: 18px 20px;
  border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.035);
}
.billing-kicker {
  display: block; color: var(--text-faint); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px;
}
.account-billing strong { display: block; color: var(--text); font-size: 1.15rem; }
.billing-note { display: block; color: var(--text-dim); font-size: 0.88rem; margin-top: 4px; }
.billing-actions { display: flex; align-items: center; justify-content: flex-end; }
.billing-actions form { margin: 0; }

.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-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); }

.btn-block { width: 100%; }
.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); }

.badge-verified {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--brand-3); background: rgba(52,230,192,.1);
  border: 1px solid rgba(52,230,192,.3); border-radius: 999px; padding: 3px 10px; margin-left: 8px;
}
.account-email { font-size: 1.05rem; }
.account-actions { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.danger-zone { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 22px; }
.danger-zone h2 { font-size: 1.1rem; margin-bottom: 8px; }

/* Clerk-mounted components */
.clerk-mount { display: grid; justify-content: center; }
.auth-wrap-wide { max-width: 900px; }

@media (max-width: 560px) {
  .nav-cta { gap: 10px; }
  .account-billing { align-items: flex-start; flex-direction: column; }
  .billing-actions, .billing-actions form, .billing-actions .btn { width: 100%; }
}
