/* Pulse — "Dark Pulse" tokens mirror the iOS app's DesignSystem/Tokens/Palette.swift */
:root {
  --canvas: #0b0d10;
  --surface: #15181d;
  --raised: #1d2128;
  --hairline: #2a2f37;
  --text: #f2f4f7;
  --text-2: #8a93a3;
  --text-3: #7a8393;
  --lime: #c6ff3d;
  --ink: #0b0d10;
  --rose: #ff5c7a;
  --amber: #ffb547;
  --sky: #5cc8ff;
  --violet: #a58bff;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.micro {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.num { font-family: var(--font-round); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 13, 16, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(42, 47, 55, 0.6);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text-2); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .btn { color: var(--ink); }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--lime); color: var(--ink);
  font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 0 0 rgba(198, 255, 61, 0);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 32px rgba(198, 255, 61, 0.28); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--text-3); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px;
  background: radial-gradient(closest-side, rgba(198, 255, 61, 0.13), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--font-round); font-size: clamp(40px, 6.2vw, 72px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lede { margin-top: 20px; font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 34em; }
.hero .cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.trust { margin-top: 24px; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
.trust svg { flex: none; color: var(--lime); }

/* ── Phone mock ───────────────────────────────────────── */
.stage { position: relative; display: grid; place-items: center; min-height: 620px; }
.rings { position: absolute; width: 560px; height: 560px; pointer-events: none; }
.rings i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--lime); opacity: 0;
  animation: ring 4.5s cubic-bezier(.2, .6, .3, 1) infinite;
}
.rings i:nth-child(2) { animation-delay: 1.5s; }
.rings i:nth-child(3) { animation-delay: 3s; }
@keyframes ring {
  0% { transform: scale(.45); opacity: 0; }
  20% { opacity: .5; }
  100% { transform: scale(1); opacity: 0; }
}

.phone {
  position: relative; width: 300px; border-radius: 46px; padding: 10px;
  background: linear-gradient(160deg, #2b3038, #121418);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.screen { border-radius: 37px; background: var(--canvas); padding: 44px 14px 16px; position: relative; overflow: hidden; }
.screen::before {
  content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 14px; background: #000;
}
.ph-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--sky)); flex: none; }
.ph-head b { font-size: 14px; display: block; line-height: 1.2; }
.ph-head small { font-size: 11px; color: var(--text-2); }
.ph-hero { text-align: center; padding: 18px 0 14px; }
.ph-hero .big { font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.ph-hero .sub { margin-top: 8px; font-size: 11px; color: var(--text-2); display: flex; justify-content: center; gap: 14px; }
.ph-hero .sub b { color: var(--text); font-weight: 600; }
.card { background: var(--surface); border-radius: 16px; padding: 12px; }
.since { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.since div { background: var(--raised); border-radius: 12px; padding: 10px; }
.since .num { font-size: 22px; line-height: 1.1; }
.since small, .tile small { font-size: 10.5px; color: var(--text-2); display: block; margin-top: 2px; }
.rose { color: var(--rose); } .lime { color: var(--lime); } .amber { color: var(--amber); } .violet { color: var(--violet); } .sky { color: var(--sky); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.tile { background: var(--surface); border-radius: 14px; padding: 11px 12px; }
.tile .num { font-size: 20px; line-height: 1.1; }
.tabbar {
  margin: 12px auto 0; width: 78%; display: flex; justify-content: space-between; align-items: center;
  background: var(--raised); border-radius: 999px; padding: 5px; font-size: 10.5px; font-weight: 600; color: var(--text-2);
}
.tabbar span { padding: 7px 12px; border-radius: 999px; }
.tabbar .on { background: var(--lime); color: var(--ink); }
.stage figcaption { position: absolute; bottom: -4px; font-size: 12px; color: var(--text-3); }
figure { margin: 0; }

/* ── Sections ─────────────────────────────────────────── */
section { padding: 88px 0; }
.band { background: linear-gradient(180deg, rgba(21, 24, 29, 0.55), rgba(21, 24, 29, 0)); border-top: 1px solid rgba(42, 47, 55, 0.6); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-top: 12px; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid rgba(42, 47, 55, 0.7);
  border-radius: var(--radius); padding: 24px;
}
.feature .ico {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, currentColor 14%, transparent); margin-bottom: 16px;
}
.feature h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-top: 12px; }
.split p { margin-top: 14px; color: var(--text-2); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 16px; }
.checks svg { flex: none; margin-top: 3px; color: var(--lime); }

.chart { background: var(--surface); border: 1px solid rgba(42, 47, 55, 0.7); border-radius: var(--radius); padding: 22px; }
.chart-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.chart-top .num { font-size: 34px; line-height: 1; }
.chart-top .delta { font-size: 13px; font-weight: 600; color: var(--lime); margin-left: 8px; }
.pills { display: flex; gap: 4px; background: var(--raised); border-radius: 999px; padding: 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.pills span { padding: 5px 11px; border-radius: 999px; }
.pills .on { background: var(--hairline); color: var(--text); }
.chart svg { width: 100%; height: auto; display: block; }
.note { margin-top: 10px; font-size: 12px; color: var(--text-3); text-align: center; }

.lookup { background: var(--surface); border: 1px solid rgba(42, 47, 55, 0.7); border-radius: var(--radius); padding: 22px; }
.field { display: flex; align-items: center; gap: 10px; background: var(--raised); border-radius: 14px; padding: 13px 14px; color: var(--text-2); font-size: 15px; }
.field b { color: var(--text); font-weight: 500; }
.quota { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin: 16px 0 8px; }
.bar { height: 6px; border-radius: 6px; background: var(--raised); overflow: hidden; }
.bar i { display: block; height: 100%; width: 40%; background: var(--lime); border-radius: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span { font-size: 13px; background: var(--raised); color: var(--text-2); border-radius: 999px; padding: 6px 12px; }

.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-size: 24px; line-height: 1; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--text-2); }

.final { text-align: center; }
.final img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 80px rgba(198, 255, 61, 0.22); }
.final h2 { font-family: var(--font-round); font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin-top: 28px; }
.final p { color: var(--text-2); margin: 14px auto 28px; max-width: 30em; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0 48px; color: var(--text-2); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 20px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--text-2); }
.foot-links a:hover { color: var(--text); }
.disclaimer { color: var(--text-3); font-size: 13px; max-width: 760px; }

/* ── Legal / document pages ───────────────────────────── */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-family: var(--font-round); font-size: clamp(34px, 5vw, 48px); font-weight: 800; margin-top: 12px; }
.doc .meta { color: var(--text-2); margin-top: 12px; font-size: 15px; }
.doc h2 { font-size: 23px; font-weight: 700; margin-top: 48px; padding-top: 4px; letter-spacing: -0.01em; }
.doc h3 { font-size: 18px; font-weight: 700; margin-top: 28px; letter-spacing: 0; }
.doc p, .doc ul, .doc ol { margin-top: 14px; color: #c9ced8; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-top: 8px; }
.doc strong { color: var(--text); }
.doc .summary { background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid var(--lime); border-radius: 14px; padding: 20px 22px; margin-top: 28px; }
.doc .summary p:first-child, .doc .summary ul:first-child { margin-top: 0; }
.doc .caps { font-size: 14.5px; }
.table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--hairline); border-radius: 14px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 600px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--hairline); color: #c9ced8; }
.doc th { background: var(--surface); color: var(--text); font-weight: 600; font-size: 13px; }
.doc tr:last-child td { border-bottom: 0; }
.toc { margin-top: 28px; columns: 2; column-gap: 32px; padding-left: 22px; font-size: 15px; }
.toc li { margin-top: 6px; break-inside: avoid; }

.support-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.support-cards .feature p { margin-top: 8px; }
.center { text-align: center; padding: 120px 0; }
.center h1 { font-family: var(--font-round); font-size: 96px; color: var(--lime); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .stage { min-height: 600px; }
  .rings { width: 440px; height: 440px; }
  .grid, .privacy-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  .grid, .privacy-grid, .support-cards { grid-template-columns: 1fr; }
  .rings { width: 340px; height: 340px; }
  .toc { columns: 1; }
  .hero .cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rings i { animation: none; opacity: .18; }
  .rings i:nth-child(2) { transform: scale(.78); }
  .rings i:nth-child(3) { transform: scale(.56); }
  .btn { transition: none; }
}
