:root {
  --bg: #FFFBEB; --fg: #1C1917; --muted: #78716C; --line: #E7E5E4;
  --code-bg: #1C1917; --code-fg: #FFFBEB; --red: #DC2626;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0C0A09; --fg: #FFFBEB; --muted: #A8A29E; --line: #292524; --code-bg: #1C1917; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
header, main, footer { max-width: 720px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
header { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.logo { color: var(--fg); }
.logo svg { height: 28px; width: auto; display: block; }
nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav a:hover { color: var(--fg); }
h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 48px 0 20px; }
h2 { font-size: 22px; letter-spacing: -0.01em; margin: 56px 0 12px; }
h3 { font-size: 17px; margin: 32px 0 8px; }
a { color: inherit; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.doc h1 + p { font-size: 20px; color: var(--muted); max-width: 34em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 8px 0; }
.doc em { color: var(--muted); }
.muted { color: var(--muted); }
pre {
  background: var(--code-bg); color: var(--code-fg); padding: 16px 18px; border-radius: 12px;
  overflow-x: auto; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
p code, li code, td code { background: color-mix(in srgb, var(--fg) 8%, transparent); padding: 1px 5px; border-radius: 5px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px; }
.btn.alt { background: transparent; color: var(--fg); border: 1px solid var(--line); }
ol.steps { padding-left: 1.2em; }
ol.steps li { margin: 8px 0; }
ul.facts { list-style: none; padding: 0; }
ul.facts li { padding: 14px 0; border-top: 1px solid var(--line); }
ul.facts strong { display: block; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
footer { padding-top: 64px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin-right: 16px; text-decoration: none; }
footer a:hover { color: var(--fg); }

/* ---------- landing ---------- */
body { overflow-x: clip; }
main:has(.landing), body:has(.landing) header, body:has(.landing) footer { max-width: 1120px; }
.landing { position: relative; }
.accent { color: var(--red); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.blobs { position: absolute; z-index: -1; top: -100px; left: calc(50% - 50vw); right: calc(50% - 50vw); height: 900px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .2; pointer-events: none; }
.b1 { width: 520px; height: 520px; background: #DC2626; top: 60px; right: 4%; animation: drift1 24s ease-in-out infinite alternate; }
.b2 { width: 460px; height: 460px; background: #F59E0B; top: 480px; left: 2%; opacity: .22; animation: drift2 28s ease-in-out infinite alternate; }
.b3 { width: 400px; height: 400px; background: #FB7185; top: 300px; left: 40%; opacity: .2; animation: drift3 21s ease-in-out infinite alternate; }
@media (prefers-color-scheme: dark) { .blob { opacity: .36; } .b2 { opacity: .34; } .b3 { opacity: .3; } }
@keyframes drift1 { to { transform: translate(-120px, 70px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(140px, -60px) scale(.9); } }
@keyframes drift3 { to { transform: translate(-90px, -110px) scale(1.2); } }

.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 24px 0; align-items: center; }
.hero > * { min-width: 0; }
.landing h1 { font-size: clamp(44px, 8vw, 76px); line-height: 1; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 20px; }
.sub { font-size: 21px; line-height: 1.4; color: color-mix(in srgb, var(--fg) 72%, transparent); margin: 0 0 32px; max-width: 24em; }
@media (prefers-color-scheme: dark) { .sub { color: var(--muted); } }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.landing .stores { margin: 0; }
.btn.primary { background: var(--red); color: #FFFBEB; box-shadow: 0 6px 20px -6px rgba(220,38,38,.6); }
.btn { padding: 14px 24px; font-size: 16px; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.alt { border-color: color-mix(in srgb, var(--fg) 25%, transparent); }
.textlink { font-weight: 600; text-decoration: none; }
.textlink:hover { color: var(--red); }
.caption { color: var(--muted); font-size: 14px; margin: 10px 0 32px; }
.term { max-width: 100%; }
.term-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.term pre { margin: 0; max-width: 100%; font-size: 13px; }
:root { --code-border: transparent; }
@media (prefers-color-scheme: dark) { :root { --code-bg: #000; --code-border: color-mix(in srgb, #FFFBEB 14%, transparent); } }
.term pre, .mini { border: 1px solid var(--code-border); }

/* phone */
.hero-phone { display: flex; justify-content: center; }
.device { position: relative; width: min(300px, 100%); aspect-ratio: 300 / 620; border-radius: 54px; padding: 2px;
  background: linear-gradient(145deg, #b9b3ac, #47413d 28%, #1a1715 55%, #6d6761 80%, #a39d96);
  box-shadow: 0 40px 80px -24px rgba(28,25,23,.55), 0 0 110px -10px rgba(220,38,38,.35); }
.device i { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #58524d, #2a2624); }
.device .s1 { left: -3px; top: 96px; height: 28px; } .device .s2 { left: -3px; top: 150px; height: 52px; }
.device .s3 { left: -3px; top: 214px; height: 52px; } .device .s4 { right: -3px; top: 170px; height: 84px; }
.screen { --glass: rgba(255,255,255,.18); --hl: rgba(255,255,255,.35); --tx: #fff; --tx2: rgba(255,255,255,.7);
  position: relative; height: 100%; border-radius: 52px; border: 8px solid #050505; overflow: hidden; color: var(--tx);
  background:
    radial-gradient(90% 55% at 15% 8%, #FFD3A1 0%, transparent 65%),
    radial-gradient(80% 55% at 95% 30%, #FF8FA3 0%, transparent 62%),
    radial-gradient(90% 60% at 30% 100%, #F59E0B 0%, transparent 60%),
    linear-gradient(170deg, #FFB48A, #F0708A 60%, #DC2626); }
@media (prefers-color-scheme: dark) {
  .screen { --glass: rgba(40,40,40,.45); --hl: rgba(255,255,255,.14);
    background:
      radial-gradient(85% 50% at 12% 6%, #B4441F 0%, transparent 65%),
      radial-gradient(75% 50% at 100% 34%, #DC2626 0%, transparent 62%),
      radial-gradient(90% 55% at 25% 105%, #F59E0B 0%, transparent 58%),
      linear-gradient(170deg, #2a1410, #160c0a 60%, #0C0A09); }
}
.island { position: absolute; top: 12px; left: 50%; width: 92px; height: 27px; margin-left: -46px; border-radius: 99px; background: #000; z-index: 3; }
.status { position: absolute; top: 15px; right: 22px; display: flex; gap: 5px; align-items: center; z-index: 2; }
.status svg { display: block; fill: currentColor; }
.lock { position: absolute; top: 68px; left: 0; right: 0; text-align: center; }
.date { font-size: 17px; font-weight: 600; opacity: .85; }
.time { font-size: 88px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; margin-top: 2px; opacity: .9; }
.stack { position: absolute; left: 12px; right: 12px; top: 226px; display: flex; flex-direction: column; gap: 8px; }
.notif { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 22px; background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--hl); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); overflow: hidden; }
.notif { max-height: 110px; transition: max-height .5s ease, opacity .4s ease, transform .5s ease, padding .5s ease, margin .5s ease; }
.notif.enter, .notif.leave { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -8px; transform: translateY(-6px) scale(.98); }
.notif-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-icon { width: 38px; height: 38px; border-radius: 9px; flex: none; background: #FFFBEB; }
.notif-text { min-width: 0; flex: 1; }
.notif-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; }
.notif-row strong { font-weight: 600; }
.notif-row span { font-size: 13px; color: var(--tx2); }
.notif-body { font-size: 15px; line-height: 1.25; }
.sliver { height: 14px; margin: -10px 14px 0; border-radius: 0 0 18px 18px; background: var(--glass); opacity: .6; box-shadow: inset 0 0 0 1px var(--hl); }
.lk { position: absolute; bottom: 44px; width: 48px; height: 48px; border-radius: 50%; background: var(--glass); box-shadow: inset 0 0 0 1px var(--hl);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: grid; place-items: center; }
.lk svg { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lk.l { left: 30px; } .lk.r { right: 30px; }
.home-bar { position: absolute; bottom: 10px; left: 50%; width: 110px; margin-left: -55px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.75); }

/* sections */
.block { margin-top: 112px; }
.eyebrow-h { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1.1; font-weight: 800; margin: 0 0 20px; }
.cards { display: grid; gap: 16px; }
.card { background: color-mix(in srgb, var(--fg) 5%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: 20px; padding: 24px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); min-width: 0; }
.step .num { display: block; font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--red); margin-bottom: 12px; }
.step p { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 6px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); }
.chip:hover { border-color: var(--red); color: var(--red); }
.mini { display: block; margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--code-bg); color: var(--code-fg); font-size: 13px; overflow-x: auto; white-space: nowrap; }

.values { display: grid; }
.values > div { padding: 24px 0; border-top: 1px solid var(--line); }
.values > div::before { content: ""; display: block; width: 20px; height: 3px; border-radius: 2px; background: var(--red); margin-bottom: 16px; }
.values h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.values p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.good .facts { display: grid; gap: 0 48px; max-width: none; }
.good .facts li { color: var(--muted); }
.good .facts strong { color: var(--fg); display: inline; }

@media (min-width: 720px) {
  .cards.two { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .values > div { padding-right: 32px; }
  .values > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
  .good .facts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .notif { transition: none; }
  .btn { transition: none; }
}
