/* Tokens follow the product UI (ui/web/src/styles.css). */
:root {
  --bg: #0b0c10; --panel: #13151b; --panel2: #1a1d25; --line: #262a34; --line2: #333845;
  --text: #e8eaf0; --muted: #8a90a0; --dim: #5b6070;
  --ok: #34d399; --warn: #f5b041; --bad: #f87171; --blue: #60a5fa;
  --radius: 12px; color-scheme: dark;
  font-family: ui-sans-serif, -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 78% -8%, #34d3991a, transparent 70%),
    radial-gradient(700px 500px at -10% 30%, #60a5fa0f, transparent 70%),
    var(--bg);
  background-repeat: no-repeat; }
a { color: var(--text); }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.12; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.logo { width: 11px; height: 19px; border-radius: 3px; background: var(--ok); display: inline-block; box-shadow: 0 0 14px #34d39977; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; }
.brand-sub { color: var(--muted); font-weight: 500; }

.btn { border: 1px solid var(--line2); background: var(--panel2); border-radius: 10px; padding: 12px 18px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-weight: 550; transition: border-color .15s, transform .15s, background .15s; }
.btn:hover { border-color: #4a5060; }
.btn.primary { background: var(--ok); border-color: var(--ok); color: #05140e; font-weight: 650; }
.btn.primary:hover { background: #4be3ab; transform: translateY(-1px); }
.btn.primary:disabled { opacity: .6; cursor: default; transform: none; }
.btn.sm { padding: 8px 13px; font-size: 14px; }
.btn.lg { padding: 14px 24px; font-size: 17px; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 14px max(16px, calc((100vw - 1160px) / 2)); background: #0b0c10cc; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #262a3488; }

main, .foot { width: min(1160px, 100%); margin: 0 auto; padding: 0 16px; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 88px 0 72px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid #34d39944; background: #34d39912; color: var(--ok); margin: 0 0 22px; }
.pill i, .live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; box-shadow: 0 0 0 0 currentColor; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #34d39988; } 70% { box-shadow: 0 0 0 7px #34d39900; } 100% { box-shadow: 0 0 0 0 #34d39900; } }
h1 { font-size: clamp(38px, 5.6vw, 62px); font-weight: 720; }
.accent { color: var(--ok); }
.lede { color: var(--muted); font-size: 18px; margin: 22px 0 30px; max-width: 560px; }

.join { max-width: 520px; }
.join-row { display: flex; gap: 8px; padding: 6px; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.join-row:focus-within { border-color: #34d39988; box-shadow: 0 0 0 4px #34d3991a; }
.join input[type=email] { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; padding: 10px 12px; font-size: 16px; }
.join input::placeholder { color: var(--dim); }
.form-msg { min-height: 1.4em; margin: 8px 2px 0; font-size: 14px; color: var(--bad); }
.form-msg:empty { min-height: 0; margin: 0; }
.fine { margin: 10px 2px 0; font-size: 13px; color: var(--dim); }
.thanks { display: flex; gap: 14px; align-items: center; max-width: 520px; padding: 18px 20px; border-radius: 14px; background: #34d39912; border: 1px solid #34d39955; }
.thanks[hidden] { display: none; }
.thanks b { font-size: 17px; } .thanks p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.tick { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ok); position: relative; }
.tick::after { content: ""; position: absolute; left: 12px; top: 7px; width: 8px; height: 15px; border: solid #05140e; border-width: 0 3px 3px 0; transform: rotate(45deg); }

.facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 28px; flex-wrap: wrap; }
.facts li { display: flex; flex-direction: column; }
.facts b { font-size: 20px; } .facts span { color: var(--muted); font-size: 13px; }

/* Product mock (pure CSS, no real devices) */
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 8% -4% -6% 6%; background: radial-gradient(closest-side, #34d39922, transparent); filter: blur(30px); z-index: -1; }
.window { background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px #0009, 0 0 0 1px #ffffff06 inset; transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #0e1015; font-size: 12.5px; color: var(--muted); }
.win-bar > i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.win-bar span { margin-left: 10px; color: var(--text); font-weight: 600; }
.live { margin-left: auto; font-style: normal; display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 11.5px; }
.win-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.win-stats div { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.win-stats small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.win-stats b { font-size: 20px; } .win-stats .ok { color: var(--ok); } .win-stats .warn { color: var(--warn); }
.phones { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 0 12px 14px; }
.ph { aspect-ratio: 9 / 19; border-radius: 9px; padding: 3px; background: #050608; border: 1px solid var(--line2); position: relative; }
.ph span { display: block; height: 100%; border-radius: 6px; }
.ph::after { content: ""; position: absolute; left: 50%; top: 5px; width: 30%; height: 3px; border-radius: 3px; background: #000; transform: translateX(-50%); }
.ph.busy { border-color: #f5b04188; } .ph.mine { border-color: #60a5fa; box-shadow: 0 0 14px #60a5fa44; } .ph.off { opacity: .35; }
.g1 span { background: linear-gradient(160deg, #1f3b5a, #0e1726 60%, #34d39933); }
.g2 span { background: linear-gradient(200deg, #3a2a4f, #121322 65%); }
.g3 span { background: linear-gradient(170deg, #12352d, #0b1512 55%, #1f2a44); }
.g4 span { background: linear-gradient(150deg, #4a3320, #17120d 60%); }
.g5 span { background: linear-gradient(190deg, #1c2e4a, #0d1220 50%, #3a2a4f); }
.g6 span { background: linear-gradient(165deg, #1d2a27, #0f1314 60%, #60a5fa33); }
.phones .ph:nth-child(n+7) { display: block; }

.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section h2, .cta h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.features article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s, transform .15s; }
.features article:hover { border-color: #3f4553; transform: translateY(-2px); }
.features h3 { font-size: 17px; margin-bottom: 8px; }
.features h3::before { content: ""; display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--ok); margin-bottom: 14px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }

.why { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.why p { color: var(--muted); font-size: 17px; margin: 16px 0 0; max-width: 560px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding: 14px 16px 14px 46px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.checks li::before { content: ""; position: absolute; left: 17px; top: 50%; width: 6px; height: 11px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: translateY(-65%) rotate(45deg); }

.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); max-width: 780px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.cta { text-align: center; padding: 80px 24px; margin: 24px 0 72px; border-radius: 20px; border: 1px solid var(--line2); background: radial-gradient(600px 260px at 50% 0%, #34d39922, transparent 70%), var(--panel); }
.cta p { color: var(--muted); margin: 12px 0 26px; }

.foot { padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { color: var(--muted); text-decoration: none; } .foot nav a:hover { color: var(--text); }
.foot p { flex-basis: 100%; margin: 0; color: var(--dim); font-size: 13px; }

/* Legal / plain pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 16px 80px; }
.doc h1 { font-size: clamp(30px, 4.5vw, 42px); margin-bottom: 18px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc p, .doc li { color: #c6cad4; }
.doc blockquote { margin: 0 0 28px; padding: 14px 18px; border-left: 3px solid var(--warn); background: #f5b04112; border-radius: 0 10px 10px 0; color: var(--warn); }
.doc blockquote p { color: var(--warn); margin: 0; }
.doc a { color: var(--ok); }
.back { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--text); }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 56px; }
  .window { transform: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .hero { padding-top: 40px; }
  .lede { font-size: 16.5px; }
  .join-row { flex-direction: column; padding: 6px; }
  .join .btn { width: 100%; padding: 13px; }
  .features { grid-template-columns: 1fr; }
  .phones { grid-template-columns: repeat(4, 1fr); }
  .phones .ph:nth-child(n+9) { display: none; }
  .facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; }
  .facts b { font-size: 17px; } .facts span { font-size: 12px; }
  .section { padding: 56px 0; }
  .cta { padding: 56px 18px; }
  .nav .btn { padding: 7px 11px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
