/* ===================================================================
   Sortfully — landing page styles
   Matches the app: warm cream canvas, forest-green accent,
   Hanken Grotesk + JetBrains Mono.
   =================================================================== */

:root {
  --bg:         #faf8f3;
  --bg-2:       #f4f1e9;
  --surface:    #ffffff;
  --surface-2:  #f7f4ee;
  --surface-3:  #efebe2;
  --border:     #e7e2d7;
  --border-2:   #d8d2c4;
  --ink:        #1b1d1a;
  --ink-2:      #51544e;
  --ink-3:      #8a8c84;
  --accent:     #1f8a55;
  --accent-2:   #19794a;
  --accent-ink: #ffffff;
  --accent-bg:  #e4f3ea;
  --accent-soft:#f0f8f3;
  --amber:      #c9851f;
  --amber-bg:   #f9efdc;
  --danger:     #c0492f;

  /* category palette — mirrors the app's deterministic colours */
  --c-blue:   #4f74c9;
  --c-violet: #8a63c4;
  --c-pink:   #c45b8f;
  --c-red:    #cb5340;
  --c-orange: #d2843f;
  --c-amber:  #c9a23f;
  --c-green:  #4a9a6a;
  --c-teal:   #3f93a6;
  --c-slate:  #6b7280;

  --shadow-sm: 0 1px 2px rgba(30,30,25,.05), 0 1px 1px rgba(30,30,25,.04);
  --shadow-md: 0 6px 22px rgba(30,30,25,.08), 0 2px 6px rgba(30,30,25,.05);
  --shadow-lg: 0 30px 70px rgba(28,30,22,.16), 0 10px 24px rgba(28,30,22,.10);
  --shadow-xl: 0 50px 120px rgba(24,28,20,.22), 0 16px 40px rgba(24,28,20,.12);

  --radius:    14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --maxw:      1180px;

  --sans: "Hanken Grotesk", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

[data-theme="dark"] {
  --bg:         #16181a;
  --bg-2:       #1b1e20;
  --surface:    #1f2225;
  --surface-2:  #25282b;
  --surface-3:  #2c3033;
  --border:     #32363a;
  --border-2:   #3f4448;
  --ink:        #f1f2ef;
  --ink-2:      #b9bcb6;
  --ink-3:      #82867f;
  --accent:     #43b87e;
  --accent-2:   #5ac994;
  --accent-ink: #0f1311;
  --accent-bg:  #1c3a2b;
  --accent-soft:#1a2d23;
  --amber:      #e0a64a;
  --amber-bg:   #3a2f1a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 6px 22px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.3);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.55), 0 10px 24px rgba(0,0,0,.4);
  --shadow-xl: 0 50px 120px rgba(0,0,0,.6), 0 16px 40px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s ease, color .4s ease;
  overflow-x: hidden;
}
::selection { background: var(--accent-bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: "ss01"; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; width: 100%; }
section { position: relative; }

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2);
}
[data-theme="dark"] .eyebrow { color: var(--accent-2); }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; margin: 0; font-weight: 800; }
.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 16px 0 0; }
.section-head p { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); margin: 18px 0 0; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15.5px;
  border: 1.5px solid transparent; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s; white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--surface); border-color: var(--border-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand b { color: var(--accent); font-weight: 800; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 13px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background .14s, color .14s; }
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.beta-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 100px;
  background: var(--accent-bg); color: var(--accent-2); font-family: var(--mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
}
.beta-pill .dot { width: 6px; height: 6px; border-radius: 100px; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.theme-toggle { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--ink-2); background: var(--surface); transition: all .15s; }
.theme-toggle:hover { color: var(--ink); border-color: var(--border-2); }
.theme-toggle svg { width: 19px; height: 19px; }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); place-items: center; color: var(--ink); background: var(--surface); }
.nav-burger svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero { padding: 150px 0 90px; position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 460px at 78% -8%, var(--accent-soft), transparent 60%),
    radial-gradient(700px 420px at 5% 8%, color-mix(in srgb, var(--accent-bg) 55%, transparent), transparent 62%);
  opacity: .9;
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(900px 520px at 70% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(900px 520px at 70% 20%, #000 0%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); margin: 22px 0 0; }
.hero h1 .grad { color: var(--accent); }
.hero-sub { font-size: clamp(17px, 1.8vw, 21px); color: var(--ink-2); margin: 24px 0 0; max-width: 540px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin: 34px 0 0; }
.hero-note { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 15px; height: 15px; color: var(--accent); }

/* hero visual — messy → sorted */
.hero-visual { position: relative; }

/* ---------- the sort diagram (cluttered inbox -> filed by sender) ---------- */
.sortviz {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); padding: 20px 20px 16px;
}
.smhead {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; padding: 0 2px 13px; border-bottom: 1px solid var(--border); margin-bottom: 13px;
}
.smhead .cl { color: var(--danger); }
.smhead .by { color: var(--accent); }

.smrows { display: flex; flex-direction: column; gap: 8px; }
.smrow { display: flex; align-items: center; gap: 10px; }
.smrow .av { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; }
.smrow .who { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.smrow .who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smrow .dotnew { width: 6px; height: 6px; border-radius: 100px; background: var(--accent); flex-shrink: 0; }
.smrow .arr { width: 17px; height: 17px; color: var(--ink-3); opacity: .65; flex-shrink: 0; }
.smchip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 9px; padding: 7px 11px; font-size: 13px; font-weight: 700; flex-shrink: 0; min-width: 118px;
}
.smchip .fico { width: 16px; height: 16px; flex-shrink: 0; }
.smchip .swatch { width: 13px; height: 13px; border-radius: 4px; flex-shrink: 0; }
.smchip .ctype { margin-left: auto; font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }

.smfoot { display: flex; align-items: center; gap: 8px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--border); font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.smfoot svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

/* rows file into place on scroll — visible by default, animate FROM hidden */
.sortviz.in-view .smrow { animation: smRowIn .5s cubic-bezier(.2,.8,.3,1) backwards; }
.sortviz.in-view .smrow:nth-child(1) { animation-delay: .06s; }
.sortviz.in-view .smrow:nth-child(2) { animation-delay: .13s; }
.sortviz.in-view .smrow:nth-child(3) { animation-delay: .20s; }
.sortviz.in-view .smrow:nth-child(4) { animation-delay: .27s; }
.sortviz.in-view .smrow:nth-child(5) { animation-delay: .34s; }
.sortviz.in-view .smrow:nth-child(6) { animation-delay: .41s; }
@keyframes smRowIn { from { opacity: 0; transform: translateX(10px); } }
@media (prefers-reduced-motion: reduce) { .smrow { animation: none !important; } }

/* ---------- domain grouping: convergence visual (replaces a screenshot) ---------- */
.grouping-viz { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: 22px 22px 18px; }
.grouping-viz .gv-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 0 2px 14px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.grouping-viz .gv-head .hl { color: var(--accent); }
.grouping-viz svg .pill-t { font-family: var(--mono); font-size: 12px; fill: var(--ink-2); }
.grouping-viz svg .fold-t { font-family: var(--sans); font-size: 15px; font-weight: 800; fill: var(--ink); letter-spacing: -.01em; }
.grouping-viz svg .small  { font-family: var(--mono); font-size: 9.5px; fill: var(--ink-3); letter-spacing: .04em; }
.grouping-viz .gv-psl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.grouping-viz .gv-psl .tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-bg); border-radius: 5px; padding: 4px 8px; font-weight: 700; }
.grouping-viz .gv-psl .pair { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.grouping-viz .gv-psl .pair b { color: var(--ink); font-weight: 700; font-family: var(--sans); }
.grouping-viz .gv-psl .pair svg { width: 13px; height: 13px; color: var(--ink-3); opacity: .7; }
.grouping-viz .gv-psl .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* ---------- trust strip ---------- */
.truststrip { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.truststrip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.trust-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ---------- generic section spacing ---------- */
.band { padding: 100px 0; }
.band.tint { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band.dark-band { background: var(--ink); color: var(--bg); }

/* ---------- "No AI" statement band ---------- */
.ai-band { padding: 64px 0; background: var(--accent-soft); border-top: 1px solid var(--accent-bg); border-bottom: 1px solid var(--accent-bg); }
.ai-band-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.ai-band .eyebrow { justify-content: center; }
.ai-band .eyebrow svg { width: 15px; height: 15px; }
.ai-band h2 { font-size: clamp(26px, 3.2vw, 40px); margin: 14px 0 0; text-wrap: balance; }
.ai-band p { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); margin: 16px auto 0; max-width: 56ch; line-height: 1.6; text-wrap: pretty; }
.rulechips { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; font-family: var(--mono); font-size: 13px; flex-wrap: wrap; justify-content: center; }
.rulechips .chip { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; color: var(--ink); }
.rulechips .chip.acc { background: var(--accent-bg); border-color: transparent; color: var(--accent-2); }
.rulechips .arrow { color: var(--ink-3); }

/* "…or both." line under the filing-modes headline */
.modes-orboth { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--accent-2); margin: 8px 0 0; }
[data-theme="dark"] .band.dark-band { background: #0f1112; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); position: relative; }
.step-num { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent-2); letter-spacing: .04em; }
.step-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-bg); color: var(--accent-2); display: grid; place-items: center; margin: 16px 0 16px; }
.step-ico svg { width: 23px; height: 23px; }
.step h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.step p { font-size: 14.5px; color: var(--ink-2); margin: 8px 0 0; }

/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature.flip .feat-text { order: 2; }
.feat-text h2 { font-size: clamp(27px, 3vw, 38px); margin: 16px 0 0; }
.feat-text > p { font-size: 18px; color: var(--ink-2); margin: 18px 0 0; text-wrap: pretty; }
.feat-list { margin: 26px 0 0; display: grid; gap: 14px; }
.feat-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.feat-list .ck { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-bg); color: var(--accent-2); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.feat-list .ck svg { width: 14px; height: 14px; }
.feat-list b { font-weight: 700; }

/* browser frame for screenshots */
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-2); box-shadow: var(--shadow-lg); background: var(--surface); }
.frame-bar { height: 38px; background: var(--surface-2); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.frame-bar .tl { width: 11px; height: 11px; border-radius: 100px; background: var(--border-2); }
.frame-bar .url { margin-left: 12px; flex: 1; max-width: 320px; height: 22px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; padding: 0 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); gap: 6px; }
.frame-bar .url svg { width: 11px; height: 11px; color: var(--accent); }
.frame img { width: 100%; height: auto; display: block; }
.frame-fade { position: relative; }

/* ---------- filing modes ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; min-width: 0; display: flex; flex-direction: column; }
.mode-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mode-head { display: flex; align-items: center; gap: 13px; min-width: 0; }
.mode-head > div { min-width: 0; }
.mode-head .mico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.mode-head .mico svg { width: 24px; height: 24px; }
.mode-move .mico { background: var(--surface-3); color: var(--ink); }
.mode-tag .mico { background: var(--accent-bg); color: var(--accent-2); }
.mode-head h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.mode-head .sub { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.mode-card > p { font-size: 15.5px; color: var(--ink-2); margin: 18px 0 22px; }
.mode-demo { margin-top: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.mini-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; }
.mini-row .av { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 10px; font-family: var(--mono); flex-shrink: 0; }
.mini-row .who { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row .lab { font-family: var(--mono); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 100px; }
.lab.cat { background: var(--accent-bg); color: var(--accent-2); }
.lab.fold { background: var(--surface-3); color: var(--ink-2); }
.lab .sw { width: 9px; height: 9px; border-radius: 3px; }

/* ---------- privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.priv-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.priv-card .pc-head { padding: 22px 24px; display: flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--border); }
.priv-card .shield { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-bg); color: var(--accent-2); display: grid; place-items: center; flex-shrink: 0; }
.priv-card .shield svg { width: 24px; height: 24px; }
.priv-list { padding: 8px 24px 22px; }
.priv-row { display: flex; gap: 13px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.priv-row:last-child { border-bottom: none; }
.priv-row .pr-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.priv-row .pr-ico svg { width: 16px; height: 16px; }
.priv-row.yes .pr-ico { background: var(--accent-bg); color: var(--accent-2); }
.priv-row.no .pr-ico { background: var(--surface-3); color: var(--ink-3); }
.priv-row .pr-txt b { font-weight: 700; display: block; font-size: 15px; }
.priv-row .pr-txt span { font-size: 13.5px; color: var(--ink-2); }
.priv-row.no .pr-txt b { color: var(--ink-2); }

/* privacy card — live detailed-audit preview */
.priv-toggle { display: flex; gap: 14px; align-items: center; padding: 15px 24px; border-top: 1px solid var(--border); background: var(--surface-2); }
.priv-toggle .pt-txt { flex: 1; }
.priv-toggle .pt-txt b { display: block; font-weight: 700; font-size: 14px; }
.priv-toggle .pt-txt span { font-size: 12.5px; color: var(--ink-2); }
.switch { width: 44px; height: 25px; border-radius: 100px; background: var(--border-2); position: relative; transition: background .2s; flex-shrink: 0; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 100px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .22s cubic-bezier(.3,1.4,.6,1); }
.switch.on { background: var(--amber); }
.switch.on .knob { transform: translateX(19px); }
/* stacked subtitles — container holds the taller variant, no reflow */
.pc-subs { display: grid; }
.pc-subs > div { grid-area: 1 / 1; transition: opacity .2s; }
.pc-sub-detailed { opacity: 0; visibility: hidden; color: var(--amber); }
.priv-card.detailed .pc-sub-default { opacity: 0; visibility: hidden; }
.priv-card.detailed .pc-sub-detailed { opacity: 1; visibility: visible; }
.priv-card.detailed .shield { background: var(--amber-bg); color: var(--amber); transition: background .25s, color .25s; }
/* stacked row-lists — container is always as tall as the detailed variant */
.priv-lists { display: grid; }
.priv-lists > .priv-list { grid-area: 1 / 1; transition: opacity .2s; }
.priv-list[data-list="on"] { opacity: 0; visibility: hidden; }
.priv-card.detailed .priv-list[data-list="off"] { opacity: 0; visibility: hidden; }
.priv-card.detailed .priv-list[data-list="on"] { opacity: 1; visibility: visible; }
.priv-row.extra .pr-ico { background: var(--amber-bg); color: var(--amber); }
.priv-row.transient .pr-ico { background: var(--surface-3); color: var(--ink-2); }

.code-proof { font-family: var(--mono); font-size: 12.5px; background: var(--ink); color: #e6e8e4; border-radius: var(--radius); padding: 20px 22px; line-height: 1.65; overflow-x: hidden; box-shadow: var(--shadow-md); white-space: pre-wrap; overflow-wrap: break-word; }
[data-theme="dark"] .code-proof { background: #0e1011; border: 1px solid var(--border); }
.code-proof .cm { color: #7f9c86; }
.code-proof .kw { color: #6fb98c; }
.code-proof .ok { color: #6fcf9a; }
.code-proof .add { color: #e0a64a; }
.code-proof .no { color: #e0907f; }
/* stacked code blocks — container holds the taller variant, no reflow */
.code-stack { display: grid; }
.code-stack > .code-proof { grid-area: 1 / 1; transition: opacity .2s; }
.code-proof[data-when="on"] { opacity: 0; visibility: hidden; }
.privacy-grid.detailed .code-proof[data-when="on"] { opacity: 1; visibility: visible; }
.privacy-grid.detailed .code-proof[data-when="off"] { opacity: 0; visibility: hidden; }

/* ---------- reliability stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 12px; }
.stat-cell { background: var(--surface); padding: 28px 24px; }
.stat-cell .sv { font-size: 38px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat-cell .sv .u { font-size: 18px; color: var(--ink-3); font-weight: 700; }
.stat-cell .sk { font-size: 14px; color: var(--ink-2); margin-top: 6px; }

/* ---------- teams ---------- */
.teams-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.team-feats { display: grid; gap: 12px; margin-top: 26px; }
.team-feat { display: flex; gap: 13px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.team-feat .tf-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-bg); color: var(--accent-2); display: grid; place-items: center; flex-shrink: 0; }
.team-feat .tf-ico svg { width: 20px; height: 20px; }
.team-feat b { font-weight: 700; font-size: 15.5px; }
.team-feat p { font-size: 14px; color: var(--ink-2); margin: 3px 0 0; }

/* ---------- pricing ---------- */
.price-toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 100px; padding: 5px; gap: 4px; margin: 0 auto; }
.price-toggle button { padding: 9px 20px; border-radius: 100px; font-weight: 700; font-size: 14.5px; color: var(--ink-3); transition: all .16s; display: inline-flex; align-items: center; gap: 8px; }
.price-toggle button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.price-toggle .save { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--accent-2); background: var(--accent-bg); padding: 2px 7px; border-radius: 100px; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 48px auto 0; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); position: relative; transition: transform .2s, box-shadow .2s; }
.price-card.feat { border-color: var(--accent); box-shadow: var(--shadow-md); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card .ptag { position: absolute; top: -12px; right: 28px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 100px; }
.price-card .pname { font-size: 14px; font-family: var(--mono); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.price-card .pdesc { font-size: 14.5px; color: var(--ink-2); margin: 8px 0 22px; min-height: 42px; }
.price-amt { display: flex; align-items: baseline; gap: 4px; }
.price-amt .cur { font-size: 26px; font-weight: 800; }
.price-amt .num { font-size: 54px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-amt .per { font-size: 15px; color: var(--ink-3); font-weight: 600; }
.price-sub { font-size: 13px; color: var(--ink-3); margin: 10px 0 24px; min-height: 20px; }
.price-feats { display: grid; gap: 12px; margin: 24px 0 28px; }
.price-feats li { list-style: none; display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; }
.price-feats .ck { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.price-feats .ck svg { width: 17px; height: 17px; display: block; }
.price-card .btn { width: 100%; }
.price-foot { text-align: center; margin: 30px 0 0; font-size: 14px; color: var(--ink-3); }

/* ---------- security grid ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.sec-card .si { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-bg); color: var(--accent-2); display: grid; place-items: center; margin-bottom: 16px; }
.sec-card .si svg { width: 21px; height: 21px; }
.sec-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.sec-card p { font-size: 14px; color: var(--ink-2); margin: 7px 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; gap: 16px; padding: 24px 4px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.faq-q .fq-ico { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; transition: transform .25s, background .15s; color: var(--ink-2); }
.faq-q .fq-ico svg { width: 16px; height: 16px; }
.faq-item.open .fq-ico { transform: rotate(45deg); background: var(--accent-bg); color: var(--accent-2); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 4px 24px; font-size: 16px; color: var(--ink-2); line-height: 1.65; max-width: 680px; text-wrap: pretty; }

/* ---------- final CTA ---------- */
.cta-band { padding: 96px 0; text-align: center; position: relative; overflow: hidden; }
.cta-card {
  background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: 64px 40px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-xl);
}
[data-theme="dark"] .cta-card { background: #0f1112; border: 1px solid var(--border); color: var(--ink); }
.cta-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 320px at 50% -20%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%);
  pointer-events: none;
}
.cta-card h2 { font-size: clamp(30px, 4vw, 46px); position: relative; }
.cta-card p { font-size: 19px; opacity: .82; margin: 18px auto 0; max-width: 520px; position: relative; }
.waitlist { display: flex; gap: 10px; max-width: 460px; margin: 32px auto 0; position: relative; flex-wrap: wrap; justify-content: center; }
.waitlist input {
  flex: 1; min-width: 220px; padding: 16px 18px; border-radius: var(--radius-sm); font-size: 15.5px;
  border: 1.5px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #fff; outline: none; transition: border-color .15s;
}
.waitlist input::placeholder { color: rgba(255,255,255,.5); }
.waitlist input:focus { border-color: var(--accent); }
.waitlist .btn-primary { background: var(--accent); }
.cta-card .micro { font-size: 13px; opacity: .6; margin-top: 16px; position: relative; }
.waitlist-done { display: none; align-items: center; gap: 10px; justify-content: center; font-size: 16px; font-weight: 600; color: var(--accent-2); margin: 32px auto 0; position: relative; }
.waitlist-done svg { width: 22px; height: 22px; }
.cta-band.show-done .waitlist { display: none; }
.cta-band.show-done .waitlist-done { display: flex; }
/* visually-hidden honeypot — off-screen so it never affects the flex layout */
.wl-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.waitlist button[disabled] { opacity: .7; cursor: default; }
.waitlist-error { font-size: 13px; color: #ffb4a8; margin: 14px auto 0; max-width: 460px; }

/* ---------- footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 60px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 14px; color: var(--ink-2); margin: 16px 0 0; max-width: 280px; }
.footer-col h4 { font-size: 12px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; font-weight: 600; }
.footer-col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; transition: color .14s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--ink-3); }
.footer-bottom .priv-mini { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .priv-mini svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- mobile menu ---------- */
.mobile-menu { display: none; position: fixed; inset: 72px 0 0; z-index: 99; background: var(--bg); padding: 24px 28px; flex-direction: column; gap: 6px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 12px; border-radius: 10px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 130px 0 70px; }
  .hero-sub { max-width: 620px; }
  .feature, .privacy-grid, .teams-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feat-text { order: 0; }
  .feature + .feature { margin-top: 72px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .sec-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .beta-pill { display: none; }
  /* Declutter the mobile header — the hero and the hamburger menu both carry the CTA. */
  .nav-right .btn-primary { display: none; }
  .nav-right { gap: 8px; }
  .band { padding: 72px 0; }
  .modes, .price-grid, .stat-row, .steps, .sec-grid, .footer-top { grid-template-columns: 1fr; }
  .stat-row { gap: 1px; }
  .smchip { min-width: 0; padding: 7px 9px; }
  .smrow .who { font-size: 11px; }
  /* Stop the hero visual from forcing the page wider than the phone screen:
     let every hero/visual box shrink, clip the card, and shrink/truncate the
     wide uppercase header row that was setting the min width. */
  .hero-inner > *, .hero-text, .hero-visual, .sortviz, .smrow { min-width: 0; }
  .sortviz { overflow: hidden; }
  .smhead { font-size: 9px; letter-spacing: .03em; gap: 8px; }
  .smhead > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .smchip .ctype { display: none; }
  /* let long inline code tokens (emails/domains) wrap on very narrow screens */
  .mono { overflow-wrap: anywhere; }
  .footer-top { gap: 32px; }
  .cta-card { padding: 44px 24px; }
  .wrap { padding: 0 20px; }
}
