/* ============================================================
   Rapifile — landing page styles
   Built on Minovaweb tokens, pushed toward Linear/Raycast energy:
   tighter type, mono accents, restrained blue use.
   ============================================================ */

/* Geist + Geist Mono via Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap");

:root {
  /* Brand (from Minovaweb, kept as accent only) */
  --brand:        #0035C5;
  --brand-hover:  #002BA0;
  --brand-light:  #4C7CFF;
  --brand-tint:   rgba(0, 53, 197, 0.08);

  /* Light surfaces */
  --bg:           #FCFCFC;
  --bg-soft:      #F5F6F7;
  --bg-card:      #FFFFFF;
  --fg:           #0B1220;
  --fg-2:         #4B5563;
  --fg-3:         #8A93A0;
  --border:       #ECEDEF;
  --border-2:     #E1E3E6;

  /* Dark surfaces */
  --dark-bg:      #0A0D14;
  --dark-bg-2:    #11151E;
  --dark-card:    #161B26;
  --dark-fg:      #ECEDF0;
  --dark-fg-2:    #99A0AD;
  --dark-fg-3:    #5F6675;
  --dark-border:  #1F2530;
  --dark-border-2:#2A313D;

  /* Type */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Layout */
  --max: 1200px;
  --gutter: 32px;
}

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

body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv01", "cv11";
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Layout ---------- */

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

section { padding: 96px 0; }

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  section { padding: 64px 0; }
}

/* ---------- Top nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(252, 252, 252, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  display: block;
  height: 52px;
  width: auto;
}
.brand-logo-dark { display: none; }
body.theme-dark .brand-logo-light { display: none; }
body.theme-dark .brand-logo-dark { display: block; }
/* Legacy placeholder mark — kept only in case any old markup still uses it. */
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--fg);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--fg-2);
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background 180ms var(--ease);
}
.nav-cta:hover { background: #1c2331; }
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 72px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 12px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--fg-2);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.eyebrow .pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: 999px;
  font-size: 11px;
}

h1.headline {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 22px 0 20px;
  color: var(--fg);
  text-wrap: balance;
}
h1.headline .accent {
  color: var(--brand);
  font-style: italic;
  font-family: "Geist", serif;
}

.subcopy {
  font-size: 18px;
  color: var(--fg-2);
  max-width: 480px;
  line-height: 1.5;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 180ms var(--ease), color 180ms var(--ease),
              border-color 180ms var(--ease), box-shadow 180ms var(--ease),
              transform 120ms var(--ease);
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover { background: #1c2331; }
.btn-secondary {
  background: var(--bg-card);
  color: var(--fg);
  border-color: var(--border-2);
}
.btn-secondary:hover { border-color: var(--fg-3); }
.btn-brand {
  background: var(--brand);
  color: #fff;
}
.btn-brand:hover { background: var(--brand-hover); box-shadow: 0 8px 24px rgba(0, 53, 197, 0.24); }

.cta-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--fg-3);
  font-family: var(--font-mono);
}
.cta-meta .dot { width: 3px; height: 3px; background: var(--fg-3); border-radius: 50%; }

/* Animated demo container is sized + styled in demo.jsx via inline styles
   and the .demo-* helper classes below. */

/* ---------- Section header pattern ---------- */

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand);
  letter-spacing: 0;
  font-weight: 500;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.section-head p {
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.5;
  margin: 0;
  max-width: 560px;
}
.section-head.dark .kicker { color: var(--brand-light); }
.section-head.dark h2 { color: var(--dark-fg); }
.section-head.dark p  { color: var(--dark-fg-2); }

/* (Platforms strip removed — Rapifile no longer leads on ATS coverage.) */

/* ---------- How it works (3 steps) ---------- */

.how {
  padding: 120px 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  overflow: hidden;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}
.step:last-child { border-right: none; }
@media (max-width: 860px) {
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  font-weight: 500;
}
.step h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
}
.step p {
  font-size: 15px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.55;
}
.step-art {
  margin-top: auto;
  height: 64px;
  display: flex;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
}
.step-art .kbd {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  background: var(--bg-soft);
  border: 1px solid var(--border-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 0 4px;
}

/* ============================================================
   Features (light) — three big alternating slabs.
   On the same white surface as the hero so the form, the
   captures card, the deny-list card, and the profile card all
   read as one product.
   ============================================================ */

.features {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
}
.features .section-head {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.feature-row:first-of-type { border-top: 0; padding-top: 32px; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
@media (max-width: 880px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-visual { order: initial; }
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
}
.feature-pro {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-sans, inherit);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 999px;
  vertical-align: middle;
}
.feature-text h3 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--fg);
  text-wrap: balance;
}
.feature-text p {
  font-size: 16.5px;
  color: var(--fg-2);
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 480px;
}
.feature-text .feature-meta {
  margin-top: 22px;
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-3);
}
.feature-text .feature-meta b {
  color: var(--fg);
  font-weight: 500;
}

/* Visual frame shared by all feature mockups — same white card as the hero form */
.feature-visual { display: flex; justify-content: center; }
.feature-card-mock {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  font-family: var(--font-sans);
  box-shadow:
    0 1px 2px rgba(11, 28, 48, 0.04),
    0 12px 32px rgba(11, 28, 48, 0.08);
}
.feature-card-mock .mock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.feature-card-mock .mock-head .mock-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

/* — Visual 1: captures (it learns) — */
.mock-capture-q {
  font-size: 12px;
  color: var(--fg-3);
  margin-bottom: 4px;
  font-family: var(--font-mono);
}
.mock-capture-a {
  font-size: 15px;
  color: var(--fg);
  font-weight: 500;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.mock-capture-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.mock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font-sans);
}
.mock-btn.primary { background: var(--brand); color: #fff; }
.mock-btn.ghost {
  background: transparent;
  color: var(--fg-2);
  border: 1px solid var(--border-2);
}
.mock-saved-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-saved-list li {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--fg-2);
  font-family: var(--font-mono);
  line-height: 1.4;
}
.mock-saved-list li .check-mini {
  flex-shrink: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(31, 138, 91, 0.14);
  color: #1F8A5B;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.mock-saved-list li .check-mini svg { width: 9px; height: 9px; }
.mock-saved-list li .mock-q { color: var(--fg-3); }
.mock-saved-list li .mock-arrow { color: var(--fg-3); margin: 0 6px; }
.mock-saved-list li .mock-a { color: var(--fg); }

/* — Visual 2: sensitive deny list — */
.mock-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  margin-bottom: 8px;
  font-size: 14px;
}
.mock-field-row .mock-label {
  flex: 1;
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
}
.mock-field-row .mock-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
}
.mock-field-row.filled .mock-tag {
  background: rgba(31, 138, 91, 0.12);
  color: #1F8A5B;
}
.mock-field-row.skipped {
  border-style: dashed;
  background: var(--bg-soft);
}
.mock-field-row.skipped .mock-label {
  color: var(--fg-3);
  text-decoration: line-through;
  text-decoration-color: var(--border-2);
}
.mock-field-row.skipped .mock-tag {
  background: var(--bg-card);
  color: var(--fg-3);
  border: 1px solid var(--border);
}

/* — Visual 3: multi-profile — */
.mock-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--bg-card);
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}
.mock-profile.active {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.mock-profile .mock-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--fg-2);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.mock-profile.active .mock-avatar {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  border-color: transparent;
}
.mock-profile-body { flex: 1; min-width: 0; }
.mock-profile .mock-name {
  font-size: 14px;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mock-profile .mock-sub {
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  margin-top: 1px;
}
.mock-profile .mock-active-mark {
  width: 6px; height: 6px; border-radius: 50%;
  background: #1F8A5B;
  box-shadow: 0 0 0 3px rgba(31, 138, 91, 0.16);
}
.mock-profile-add {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 4px;
  font-size: 12.5px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  border-top: 1px dashed var(--border-2);
  margin-top: 8px;
}
.mock-profile-add .plus {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px dashed var(--border-2);
  display: grid;
  place-items: center;
  color: var(--fg-3);
}

/* — Visual 4: cheat sheet — */
.cheat-sheet-mock .cheat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cheat-sheet-mock .cheat-row:last-of-type { border-bottom: none; }
.cheat-sheet-mock .cheat-key {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0;
  margin-bottom: 2px;
}
.cheat-sheet-mock .cheat-val {
  grid-column: 1;
  grid-row: 2;
  font-size: 13.5px;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.cheat-sheet-mock .cheat-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--fg-3);
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
  font: 500 11.5px/1 var(--font-mono);
}
.cheat-sheet-mock .cheat-copy svg { width: 13px; height: 13px; flex-shrink: 0; }
.cheat-sheet-mock .cheat-copy:hover {
  background: var(--brand-tint);
  color: var(--brand);
  border-color: var(--brand-tint);
}
.cheat-sheet-mock .cheat-copy.is-copied {
  background: rgba(31, 138, 91, 0.10);
  border-color: rgba(31, 138, 91, 0.18);
  color: #1F8A5B;
  padding-right: 11px;
}
.cheat-sheet-mock .cheat-copy.is-copied svg { width: 12px; height: 12px; }
.cheat-sheet-mock .cheat-row.copied .cheat-val {
  color: #1F8A5B;
}

/* ============================================================
   Pricing
   ============================================================ */

.pricing {
  padding: 120px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.pricing .section-head {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}
.pricing .section-head p { max-width: 580px; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}
@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 0 rgba(11, 28, 48, 0.02);
  transition: box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.pricing-card.featured {
  border-color: var(--brand);
  box-shadow:
    0 1px 0 rgba(11, 28, 48, 0.02),
    0 16px 36px rgba(0, 53, 197, 0.12);
}
.pricing-card .plan-badge {
  position: absolute;
  top: -11px;
  left: 32px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0;
}
.pricing-card .plan-head { margin-bottom: 20px; }
.pricing-card .plan-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  font-weight: 500;
}
.pricing-card .plan-blurb {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0;
  max-width: 280px;
}
.pricing-card .plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.pricing-card .plan-price .amount {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--fg);
  line-height: 1;
  font-feature-settings: "tnum";
}
.pricing-card .plan-price .period {
  font-size: 13.5px;
  color: var(--fg-3);
  font-family: var(--font-mono);
}
.pricing-card .plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.pricing-card .plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.45;
}
.pricing-card .plan-features li b { font-weight: 600; }
.pricing-card .plan-features .chk {
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.pricing-card .plan-features .chk svg { width: 9px; height: 9px; }
.pricing-card .plan-cta {
  justify-content: center;
  width: 100%;
  padding: 13px 18px;
  font-size: 14.5px;
}
.pricing-note {
  text-align: center;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ---------- Privacy ---------- */

.privacy {
  padding: 120px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.privacy-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.3fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) { .privacy-grid { grid-template-columns: 1fr; gap: 32px; } }

.privacy-lead .lead-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-bottom: 18px;
}
.privacy-lead h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 22px;
  text-wrap: balance;
  color: var(--fg);
}
.privacy-lead p {
  font-size: 16.5px;
  color: var(--fg-2);
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 460px;
}
.privacy-stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 22px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
}
.privacy-stat .stat-num {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--brand);
  font-feature-settings: "tnum";
  line-height: 1;
}
.privacy-stat .stat-label {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.45;
  max-width: 240px;
}

.privacy-spec {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(11, 28, 48, 0.02),
    0 4px 16px rgba(11, 28, 48, 0.04);
}
.privacy-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.privacy-row:last-child { border-bottom: none; }
.privacy-row .pkey {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-3);
  font-weight: 500;
}
.privacy-row .pval {
  font-size: 14.5px;
  color: var(--fg);
  line-height: 1.55;
}
.privacy-row .pval code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--fg);
}
.privacy-row .pval .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--brand-tint);
  color: var(--brand);
  margin-right: 6px;
}
@media (max-width: 600px) {
  .privacy-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- FAQ ---------- */

.faq {
  padding: 120px 0;
}
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 26px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg);
  cursor: pointer;
  text-align: left;
}
.faq-q .chev {
  width: 18px;
  height: 18px;
  color: var(--fg-3);
  transition: transform 200ms var(--ease);
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 0 26px;
  max-width: 720px;
  color: var(--fg-2);
  font-size: 15.5px;
  line-height: 1.6;
}
.faq-item.open .faq-a { display: block; }
.faq-a a { color: var(--brand); border-bottom: 1px solid var(--brand-tint); }

/* ---------- Final CTA ---------- */

.final-cta {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--brand) 0%, #002BA0 100%);
  color: #fff;
  border-top: 1px solid var(--brand);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(255,255,255,0.08), transparent 55%);
  pointer-events: none;
}
.final-cta .container { position: relative; }
.final-cta h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 14px;
  text-wrap: balance;
  color: #fff;
}
.final-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  margin: 0 auto 28px;
  max-width: 520px;
}
/* Invert CTAs inside the blue panel so they're readable */
.final-cta .btn-primary {
  background: #fff;
  color: var(--brand);
}
.final-cta .btn-primary:hover { background: #F0F2F8; }
.final-cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.final-cta .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* Re-tone install-badge and install-card so they read on the blue panel */
.final-cta .install-badge {
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.final-cta .install-pulse {
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.55);
}
@keyframes final-cta-install-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.final-cta .install-pulse { animation-name: final-cta-install-pulse; }
.final-cta .install-card {
  background: #fff;
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 24px 64px rgba(0,18,80,0.18);
  color: var(--fg);
}

/* Web-Store-coming badge under the CTA */
.install-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px auto 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand-tint, rgba(0, 53, 197, 0.08));
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.install-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(0, 53, 197, 0.45);
  animation: install-pulse 1.6s ease-out infinite;
}
@keyframes install-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 53, 197, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 53, 197, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 53, 197, 0); }
}

/* Beta install card */
.install-card {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 36px 36px 32px;
  background: var(--bg-2, #F5F7FA);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: left;
}
.install-card-head {
  margin-bottom: 24px;
  text-align: center;
}
.install-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.install-card-head h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}
.install-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.install-steps > li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
}
.install-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono, ui-monospace, monospace);
}
.install-step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}
.install-steps p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}
.install-steps code,
.install-note code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12.5px;
  background: rgba(11, 28, 48, 0.06);
  padding: 1px 6px;
  border-radius: 5px;
}
.install-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-3, #6B7280);
  line-height: 1.55;
}
@media (max-width: 640px) {
  .install-card { padding: 26px 22px; }
  .install-steps > li { grid-template-columns: 30px 1fr; gap: 12px; }
  .install-num { width: 28px; height: 28px; font-size: 12px; }
}

/* ---------- Legal / Privacy page ---------- */

.legal {
  padding: 64px 0 96px;
  background: var(--bg);
}
.legal-container {
  max-width: 720px;
}
.legal .kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.legal h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--fg);
  text-wrap: balance;
}
.legal .lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 18px;
}
.legal .legal-meta {
  font-size: 13px;
  color: var(--fg-3, #6B7280);
  margin: 0 0 40px;
  font-family: var(--font-mono, ui-monospace, monospace);
}
.legal h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  color: var(--fg);
}
.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg);
}
.legal ul {
  padding-left: 22px;
  margin: 0 0 18px;
}
.legal li { margin-bottom: 8px; }
.legal code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 13px;
  background: rgba(11, 28, 48, 0.06);
  padding: 1px 6px;
  border-radius: 5px;
}
.legal a:not(.btn) { color: var(--brand); }
.legal-footer-link {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* ---------- Footer ---------- */

footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg-2);
  font-size: 13.5px;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot-col h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--fg-3);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 14px;
  font-weight: 500;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 9px; }
.foot-col a:hover { color: var(--fg); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-3);
}
.foot-bottom .mono { font-family: var(--font-mono); }

/* Email capture inline */
.subscribe {
  display: flex;
  gap: 8px;
  max-width: 340px;
}
.subscribe input {
  flex: 1;
  padding: 10px 12px;
  font: 500 13.5px/1 var(--font-sans);
  color: var(--fg);
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  outline: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.subscribe input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.subscribe button {
  padding: 10px 14px;
  background: var(--fg);
  color: var(--bg);
  border: 0;
  border-radius: 8px;
  font: 500 13.5px/1 var(--font-sans);
  cursor: pointer;
}

/* ---------- Demo box (the centerpiece) ---------- */

.demo-shell {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow:
    0 1px 0 rgba(11, 28, 48, 0.03),
    0 12px 40px rgba(11, 28, 48, 0.08);
  overflow: hidden;
}
.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
}
.demo-titlebar .traffic {
  display: flex;
  gap: 6px;
}
.demo-titlebar .traffic span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #E1E3E6;
}
.demo-titlebar .url {
  flex: 1;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
}
.demo-titlebar .ext-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg-2);
  font-size: 11px;
}
.demo-titlebar .ext-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #20C997;
  box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.16);
}

.demo-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 480px;
}
.demo-side {
  background: #0A0D14;
  color: #ECEDF0;
  padding: 18px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  border-right: 1px solid var(--dark-border);
}
.demo-side .side-h {
  color: #5F6675;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  font-size: 10.5px;
  text-transform: uppercase;
}
.demo-side .side-row {
  display: flex; flex-direction: column; gap: 1px;
  padding: 7px 0;
  border-bottom: 1px solid var(--dark-border);
  font-size: 11.5px;
}
.demo-side .side-row:last-child { border-bottom: none; }
.demo-side .side-row .k { color: #5F6675; font-size: 10px; }
.demo-side .side-row .v { color: #ECEDF0; }

.demo-form {
  padding: 28px 32px 36px;
  background: #fff;
}
.demo-form h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  font-weight: 600;
}
.demo-form .form-sub {
  font-size: 13px;
  color: var(--fg-3);
  margin: 0 0 22px;
  font-family: var(--font-mono);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field label {
  font-size: 12px;
  color: var(--fg-2);
  font-weight: 500;
}
.field label .req { color: var(--brand); margin-left: 2px; }
.field .ctl {
  position: relative;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  font-size: 13.5px;
  color: var(--fg);
  min-height: 36px;
  font-family: var(--font-sans);
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
  overflow: hidden;
  white-space: nowrap;
}
.field .ctl.filling {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.field .ctl.filled {
  border-color: var(--border-2);
}
.field .ctl .caret {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--brand);
  vertical-align: -3px;
  animation: blink 700ms infinite;
  margin-left: 1px;
}
.field .ctl .ph {
  color: var(--fg-3);
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.cursor {
  position: absolute;
  width: 18px; height: 18px;
  pointer-events: none;
  z-index: 10;
  transition: transform 600ms var(--ease), opacity 200ms var(--ease);
  transform-origin: top left;
  filter: drop-shadow(0 4px 8px rgba(11, 28, 48, 0.2));
}

.demo-toast {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: #0A0D14;
  color: #fff;
  border: 1px solid var(--dark-border-2);
  border-radius: 10px;
  padding: 10px 14px 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-family: var(--font-sans);
  box-shadow: 0 8px 24px rgba(11, 28, 48, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
  z-index: 12;
}
.demo-toast.show { opacity: 1; transform: translateY(0); }
.demo-toast .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: #20C997;
  border-radius: 50%;
  color: #0A0D14;
}
.demo-toast .mono { font-family: var(--font-mono); font-size: 11.5px; color: var(--dark-fg-3); margin-left: 4px; }

@media (max-width: 760px) {
  .demo-body { grid-template-columns: 1fr; min-height: 0; }
  .demo-side { display: none; }
  .demo-form { padding: 22px 18px 26px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Dark-mode override ---------- */

body.theme-dark {
  --bg: #0A0D14;
  --bg-soft: #11151E;
  --bg-card: #161B26;
  --fg: #ECEDF0;
  --fg-2: #99A0AD;
  --fg-3: #5F6675;
  --border: #1F2530;
  --border-2: #2A313D;
}
body.theme-dark .nav { background: rgba(10, 13, 20, 0.78); }
body.theme-dark .how,
body.theme-dark .features,
body.theme-dark .faq,
body.theme-dark .final-cta,
body.theme-dark footer { background: var(--bg); }
body.theme-dark .privacy,
body.theme-dark .pricing { background: var(--bg-soft); }
body.theme-dark .nav-cta,
body.theme-dark .btn-primary,
body.theme-dark .subscribe button { background: var(--fg); color: var(--bg); }
body.theme-dark .btn-primary:hover, body.theme-dark .nav-cta:hover { background: #d4d6da; }

/* ---------- Reveal on scroll (very subtle) ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
