/* Theme: dark by default. Light follows the visitor's system unless they pick one with the toggle,
   which sets data-theme on <html>. */
:root {
  color-scheme: dark;
  --bg: #060a14;
  --surface: #0e1424;
  --raised: #172038;
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f5ff;
  --muted: #9aa6c7;
  --faint: #6a74a0;
  --accent: #6c7bff;
  --accent-text: #8fa0ff;
  --accent-2: #b16cff;
  --mint: #3be09a;
  --mint-text: #3be09a;
  --gold: #ffc15a;
  --em-a: #8fa0ff; --em-b: #b16cff; --em-c: #ffb3e6;
  --glow-a: rgba(108, 123, 255, 0.28);
  --glow-b: rgba(177, 108, 255, 0.18);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --bezel: #222a44;
  --radius: 24px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --raised: #efeeea;
  --stroke: rgba(18, 22, 43, 0.09);
  --stroke-strong: rgba(18, 22, 43, 0.18);
  --text: #12162b;
  --muted: #565f7e;
  --faint: #6b7390;
  --accent-text: #4050d6;
  --mint-text: #08865a;
  --em-a: #4658e6; --em-b: #9248e6; --em-c: #e0489f;
  --glow-a: rgba(108, 123, 255, 0.2);
  --glow-b: rgba(177, 108, 255, 0.13);
  --shadow: 0 30px 70px rgba(30, 36, 80, 0.2);
  --bezel: #1b2038;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f5f1;
    --surface: #ffffff;
    --raised: #efeeea;
    --stroke: rgba(18, 22, 43, 0.09);
    --stroke-strong: rgba(18, 22, 43, 0.18);
    --text: #12162b;
    --muted: #565f7e;
    --faint: #6b7390;
    --accent-text: #4050d6;
    --mint-text: #08865a;
    --em-a: #4658e6; --em-b: #9248e6; --em-c: #e0489f;
    --glow-a: rgba(108, 123, 255, 0.2);
    --glow-b: rgba(177, 108, 255, 0.13);
    --shadow: 0 30px 70px rgba(30, 36, 80, 0.2);
    --bezel: #1b2038;
  }
}

/* Screenshots come in a dark and a light version; only the one for the current theme is shown. */
.theme-light { display: none; }
:root[data-theme="light"] .theme-dark { display: none; }
:root[data-theme="light"] .theme-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-dark { display: none; }
  :root:not([data-theme="dark"]) .theme-light { display: block; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

/* ambient glow behind the page */
.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 10% -5%, var(--glow-a), transparent 70%),
    radial-gradient(800px 560px at 95% 0%, var(--glow-b), transparent 70%); }

/* navigation */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom: 1px solid var(--stroke); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav nav a:not(.btn):hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .2s; font-family: inherit; }
.btn:active { transform: scale(.97); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 30px rgba(108, 123, 255, 0.45); }
.btn-primary:hover { box-shadow: 0 14px 38px rgba(108, 123, 255, 0.6); transform: translateY(-1px); }
.btn-ghost { color: var(--text); background: var(--raised); border-color: var(--stroke); }
.btn-ghost:hover { border-color: var(--stroke-strong); }
.nav .btn { padding: 9px 18px; font-size: 14px; }

/* theme toggle */
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--muted);
  background: var(--raised); border: 1px solid var(--stroke); transition: color .2s, border-color .2s, transform .18s; padding: 0; }
.theme-toggle:hover { color: var(--text); border-color: var(--stroke-strong); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* show the icon for the theme you would switch to */
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: block; }
}

/* hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 40px; text-align: center; }
.pill { display: inline-flex; gap: 10px; align-items: center; padding: 7px 16px; border-radius: 999px; background: var(--raised); border: 1px solid var(--stroke);
  font-size: 14px; font-weight: 700; color: var(--muted); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
h1 { font-size: clamp(40px, 7vw, 80px); line-height: 1.04; letter-spacing: -0.035em; margin: 22px auto 20px; font-weight: 800; max-width: 15ch; }
h1 em { font-style: normal; background: linear-gradient(120deg, var(--em-a), var(--em-b) 55%, var(--em-c)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 40em; margin: 0 auto 32px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fine { color: var(--faint); font-size: 14px; margin-top: 18px; }

.stage { position: relative; margin: 64px auto clamp(24px, 8vw, 110px); width: min(1080px, 100%); }
.window { border-radius: 22px; overflow: hidden; border: 1px solid var(--stroke-strong); box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,.2); background: var(--surface); }
.stage .phones { position: absolute; right: -2%; bottom: -9%; display: flex; gap: 14px; width: 34%; }
.phone { border-radius: 9% / 4.3%; overflow: hidden; border: 3px solid var(--bezel); box-shadow: var(--shadow); background: #000; flex: 1; }

/* interactive hero: the sidebar and the phone's tab bar switch screens */
.screens { display: grid; }
.screens > .screen { grid-area: 1 / 1; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.screens > .screen.on { opacity: 1; pointer-events: auto; }
.screens img { width: 100%; height: auto; display: block; }
.screens .theme-light { display: none; }
.window, .phone { position: relative; }
.hotspots { position: absolute; inset: 0; }
.hs, .pt { position: absolute; border-radius: 10px; cursor: pointer; background: transparent; border: 0; padding: 0; }
.hs:hover, .pt:hover { background: rgba(124,140,248,.16); }
.hs:focus-visible, .pt:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }
.hs { left: .8%; width: 16.6%; height: 3.8%; }
.hs1 { top: 6.3%; } .hs2 { top: 10%; } .hs3 { top: 13.8%; } .hs4 { top: 17.6%; }
.hs5 { top: 21.5%; } .hs6 { top: 25.3%; } .hs7 { top: 29%; }
.pt { top: 91%; height: 7%; width: 17%; border-radius: 18px; }
.pt1 { left: 8%; } .pt2 { left: 26.5%; } .pt3 { left: 44.5%; } .pt4 { left: 60.5%; } .pt5 { left: 76.5%; }
.chips { display: none; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px auto 0; max-width: 560px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--stroke); color: var(--muted);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.chip.on { color: var(--text); border-color: var(--accent-text); background: var(--raised); }
.demo-hint { margin-top: 28px; }
.stage .phones { width: 19%; right: -1%; }

/* trust row */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin: 96px auto 0; }
.trust span { padding: 10px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--stroke); font-weight: 700; font-size: 15px; color: var(--muted); }
.trust span b { color: var(--text); }

/* sections */
section { padding: clamp(64px, 9vw, 120px) 0 0; }
.eyebrow { color: var(--accent-text); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -0.03em; margin: 12px 0 16px; font-weight: 800; }
h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 19px; max-width: 38em; margin: 0; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

.grid { display: grid; gap: 18px; margin-top: 48px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 28px; transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--stroke-strong); transform: translateY(-3px); }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent-2) 22%, transparent)); border: 1px solid var(--stroke); }

.row { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.row.flip { grid-template-columns: 1.25fr 1fr; }
.row.flip .copy { order: 2; }
.row .shot { border-radius: 20px; overflow: hidden; border: 1px solid var(--stroke-strong); box-shadow: var(--shadow); }
.row ul { padding: 0; margin: 22px 0 0; list-style: none; display: grid; gap: 12px; }
.row li { display: flex; gap: 12px; color: var(--muted); font-size: 17px; }
.row li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: color-mix(in srgb, var(--mint) 22%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233be09a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.stack > * + * { margin-top: clamp(72px, 10vw, 128px); }

.phonestrip { display: flex; gap: clamp(16px, 3vw, 36px); justify-content: center; margin-top: 48px; }
.phonestrip .phone { flex: none; width: min(280px, 42vw); }
.phonestrip .phone:nth-child(2) { margin-top: 48px; }

/* privacy flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; counter-reset: s; }
.flow div { background: var(--surface); border: 1px solid var(--stroke); border-radius: 20px; padding: 22px; position: relative; }
.flow div::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin-bottom: 14px; font-weight: 800; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.flow b { display: block; margin-bottom: 4px; }
.flow span { color: var(--muted); font-size: 15px; }
.note { margin-top: 24px; padding: 20px 24px; border-radius: 18px; background: color-mix(in srgb, var(--mint) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--mint) 25%, transparent); color: var(--muted); font-size: 16px; }
.note b { color: var(--text); }

/* cost table */
table { width: 100%; border-collapse: collapse; margin-top: 40px; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke); }
th, td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--stroke); vertical-align: top; font-size: 16px; }
th { color: var(--faint); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; background: var(--raised); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; white-space: nowrap; }
td span { color: var(--muted); }
.free { color: var(--mint-text); font-weight: 800; }

/* faq */
.faq { margin-top: 40px; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--stroke); border-radius: 20px; padding: 0 24px; transition: border-color .2s; }
details[open] { border-color: var(--stroke-strong); }
summary { cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; font-weight: 500; color: var(--accent); transition: transform .25s; flex: none; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 22px; color: var(--muted); }

.final { text-align: center; }
.final .sub { margin-inline: auto; margin-bottom: 28px; }
.final .box { padding: clamp(40px, 7vw, 72px) 24px; border-radius: 36px; border: 1px solid var(--stroke-strong);
  background: radial-gradient(600px 300px at 50% 0%, var(--glow-a), transparent 70%), var(--surface); }

footer { margin-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--stroke); padding: 40px 0 56px; color: var(--faint); font-size: 14px; }
footer .wrap { display: grid; gap: 22px; }
.links { display: flex; gap: 22px; flex-wrap: wrap; }
.links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.links a:hover { color: var(--text); }
footer p { margin: 0; max-width: 62em; }

/* legal pages */
.doc { padding: 56px 0 0; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); max-width: none; margin: 8px 0 8px; text-align: left; }
.doc h2 { font-size: 26px; margin: 44px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.doc .meta { color: var(--faint); font-size: 15px; }
.doc table td:first-child { white-space: normal; }
.doc a { color: var(--accent-text); }

/* motion: content stays visible without JavaScript */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

@media (max-width: 920px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .row, .row.flip { grid-template-columns: 1fr; }
  .row.flip .copy { order: 0; }
  .flow { grid-template-columns: 1fr 1fr; }
  .stage .phones { display: none; }
  .hotspots .hs { display: none; }
  .chips { display: flex; }
  .demo-hint { display: none; }
  .nav nav a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid, .flow { grid-template-columns: 1fr; }
  .phonestrip .phone:nth-child(2) { margin-top: 28px; }
  td:first-child { white-space: normal; }
  th, td { padding: 14px 14px; }
  .nav .wrap { gap: 12px; }
}

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.lost-icon { margin: 0 auto 20px; border-radius: 18px; }
.lost h1 { margin: 0 auto 12px; font-size: 44px; }
.lost .lede { margin-bottom: 24px; }
