/* Burner website — one stylesheet for every page. No external fonts. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf9;
  --bg-2: #f3f0ed;
  --surface: #ffffff;
  --surface-2: #f7f5f3;
  --text: #17151b;
  --muted: #56525f;
  --border: rgba(23, 21, 27, 0.1);
  --border-strong: rgba(23, 21, 27, 0.18);
  --brand: #ff2800;          /* kButtonColor in the app */
  --brand-2: #fe9901;        /* kSecondaryColor */
  --brand-ink: #c81f00;      /* brand colour for text on light backgrounds (AA) */
  --btn: #d92300;            /* white text on it passes AA */
  --btn-hover: #bb1e00;
  --on-btn: #ffffff;
  --soft: rgba(255, 40, 0, 0.08);
  --soft-2: rgba(254, 153, 1, 0.12);
  --shadow: 0 1px 2px rgba(20, 10, 10, 0.06), 0 12px 32px -12px rgba(40, 10, 0, 0.18);
  --shadow-lg: 0 30px 80px -30px rgba(80, 20, 0, 0.35);
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0b0f;
    --bg-2: #121117;
    --surface: #18171e;
    --surface-2: #1f1d26;
    --text: #f4f3f6;
    --muted: #aba8b5;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --brand-ink: #ff7658;
    --btn: #e62600;
    --btn-hover: #ff3a12;
    --soft: rgba(255, 60, 20, 0.12);
    --soft-2: rgba(254, 153, 1, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 80px -30px rgba(255, 40, 0, 0.35);
  }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 6px; }

:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--btn); color: var(--on-btn); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed mobile menu inside the header box. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header .container { display: flex; align-items: center; gap: 16px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { color: var(--brand-ink); }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 1px solid var(--border-strong); color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
    box-shadow: var(--shadow);
  }
  .nav a { padding: 12px 14px; font-size: 17px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--btn); color: var(--on-btn); box-shadow: 0 10px 24px -10px rgba(255, 40, 0, 0.6); }
.btn-primary:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.nav .btn-small { color: var(--on-btn); }
.nav .btn-small:hover { background: var(--btn-hover); }
.btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.75; transform: none; }
.btn .btn-sub { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; line-height: 1.1; }
.btn .btn-main { display: block; font-size: 17px; line-height: 1.15; }
.btn-store { border-radius: 14px; padding: 10px 20px 10px 16px; text-align: left; min-width: 200px; justify-content: flex-start; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Background motion ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55;
  will-change: transform;
}
.aurora .a1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(255, 40, 0, 0.55), transparent 65%); top: -140px; right: -120px; animation: drift1 18s ease-in-out infinite alternate; }
.aurora .a2 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(254, 153, 1, 0.5), transparent 65%); top: 260px; right: 18%; animation: drift2 22s ease-in-out infinite alternate; }
.aurora .a3 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(236, 30, 54, 0.4), transparent 65%); top: 40%; left: -160px; animation: drift1 26s ease-in-out infinite alternate-reverse; }
@media (prefers-color-scheme: light) { .aurora span { opacity: 0.35; } }
@keyframes drift1 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 50px, 0) scale(1.12); } }
@keyframes drift2 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(70px, -40px, 0) scale(0.9); } }

.grid-bg {
  position: absolute; inset: 0; z-index: 0; 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(ellipse at 50% 20%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%);
  opacity: 0.6;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 72px; }
.hero .container { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
@media (min-width: 940px) {
  .hero { padding: 72px 0 110px; }
  .hero .container { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--brand-ink);
  background: var(--soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); padding: 6px 12px 6px 8px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(255, 40, 0, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 40, 0, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(255, 40, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 40, 0, 0); } }

.hero h1 { font-size: clamp(40px, 9vw, 76px); font-weight: 850; letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 20px; }
.gradient-text {
  background: linear-gradient(100deg, var(--brand) 0%, #ff5a1f 40%, var(--brand-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: shine 8s ease-in-out infinite alternate;
}
@keyframes shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 36em; margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--brand-ink); }

/* ---------- Phone mockup ---------- */
.phone-stage { position: relative; display: flex; justify-content: center; padding: 10px 0 30px; }
.phone {
  position: relative; width: clamp(230px, 62vw, 310px); aspect-ratio: 1080 / 2400;
  border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #2a2830, #0d0c10);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.phone::before { /* camera */
  content: ""; position: absolute; top: 22px; left: 50%; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%;
  background: #050507; box-shadow: inset 0 0 0 2px #1a1920; z-index: 3;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #141318; }
.phone-sm { width: clamp(200px, 52vw, 260px); border-radius: 40px; padding: 9px; }
.phone-sm .phone-screen { border-radius: 32px; }

.shot { position: absolute; inset: 0; margin: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-fallback {
  display: none; position: absolute; inset: 0; align-items: center; justify-content: center; flex-direction: column; gap: 10px; text-align: center; padding: 24px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 40, 0, 0.45), transparent 55%), radial-gradient(circle at 80% 90%, rgba(254, 153, 1, 0.35), transparent 50%), #141318;
  color: #fff; font-weight: 700; font-size: 18px;
}
.shot-fallback img { width: 56px; height: 56px; object-fit: contain; }
.shot.is-missing > img { display: none; }
.shot.is-missing .shot-fallback { display: flex; }

.carousel .shot { opacity: 0; transform: scale(1.04); transition: opacity 0.8s var(--ease), transform 1.2s var(--ease); }
.carousel .shot.is-active { opacity: 1; transform: none; }

.carousel-controls { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 8px; box-shadow: var(--shadow); z-index: 4; }
.carousel-dot { width: 24px; height: 24px; border: 0; background: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.carousel-dot::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--border-strong); transition: width 0.3s var(--ease), background 0.3s; }
.carousel-dot[aria-current="true"]::before { width: 18px; background: var(--brand); }
.carousel-pause { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center; margin-left: 2px; }
.carousel-pause svg { width: 12px; height: 12px; }
.carousel-pause .i-play { display: none; }
.carousel-pause[aria-pressed="true"] .i-play { display: block; }
.carousel-pause[aria-pressed="true"] .i-pause { display: none; }
.carousel-caption { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4; font-size: 13px; font-weight: 650; color: var(--muted); white-space: nowrap; }

.float-chip {
  position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 650; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-chip svg { width: 18px; height: 18px; color: var(--brand-ink); flex: none; }
.float-chip.c1 { top: 12%; left: max(-10px, calc(50% - 250px)); }
.float-chip.c2 { top: 46%; right: max(-10px, calc(50% - 255px)); animation-delay: -2s; }
.float-chip.c3 { bottom: 16%; left: max(-6px, calc(50% - 240px)); animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 520px) {
  .float-chip { font-size: 12px; padding: 8px 10px; }
  .float-chip.c1 { left: 0; }
  .float-chip.c2 { right: 0; }
  .float-chip.c3 { left: 2px; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 80px 0; }
@media (min-width: 940px) { .section { padding: 120px 0; } }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2, .feature-copy h2 { font-size: clamp(32px, 5.4vw, 52px); font-weight: 820; letter-spacing: -0.035em; }
.section-head p { color: var(--muted); font-size: 19px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-ink); margin-bottom: 14px; }

/* stats */
.stats { padding: 36px 0; border-block: 1px solid var(--border); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
@media (min-width: 820px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-num { font-size: clamp(36px, 6vw, 52px); font-weight: 850; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 0.5em; font-weight: 750; margin-left: 2px; }
.stat-label { color: var(--muted); font-size: 14.5px; margin-top: 8px; line-height: 1.4; }

/* privacy diagram */
.flow {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 28px 18px; box-shadow: var(--shadow);
  display: grid; gap: 0; grid-template-columns: 1fr; justify-items: center; max-width: 1000px; margin: 0 auto;
}
@media (min-width: 820px) {
  .flow { grid-template-columns: 1fr minmax(80px, 1.1fr) 1.2fr minmax(80px, 1.1fr) 1fr; align-items: center; padding: 48px 32px; }
}
.node { width: 100%; max-width: 250px; text-align: center; }
.node-box {
  border-radius: 20px; border: 1px solid var(--border-strong); background: var(--surface-2); padding: 16px 14px; min-height: 120px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px; transition: border-color 0.4s, box-shadow 0.4s;
}
.node-title { font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 10px; }
.node.is-hot .node-box { border-color: var(--brand); box-shadow: 0 0 0 4px var(--soft); }
.bubble-demo {
  align-self: center; max-width: 100%; padding: 8px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.35;
  background: var(--btn); color: #fff; font-weight: 550; transition: opacity 0.4s, filter 0.4s;
}
.bubble-demo.in { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.bubble-demo.cipher { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; background: #2a2730; color: #ffb49f; word-break: break-all; }
.node-empty { color: var(--muted); font-size: 14px; }
.server-store { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); }
.server-store strong { font-variant-numeric: tabular-nums; color: var(--text); }
.server-slot { min-height: 44px; display: flex; align-items: center; justify-content: center; }
.server-slot .bubble-demo { transition: opacity 0.6s, transform 0.6s, filter 0.6s; }
.server-slot.is-burning .bubble-demo { opacity: 0; transform: scale(0.85) translateY(-6px); filter: blur(4px); }
.lock-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--brand-ink); }
.lock-badge svg { width: 14px; height: 14px; }

.track { position: relative; width: 4px; height: 64px; margin: 10px 0; }
.track::before { content: ""; position: absolute; inset: 0; border-radius: 4px; background-image: linear-gradient(var(--border-strong) 50%, transparent 0); background-size: 4px 10px; }
@media (min-width: 820px) {
  .track { width: 100%; height: 4px; margin: 0; }
  .track::before { background-image: linear-gradient(90deg, var(--border-strong) 50%, transparent 0); background-size: 10px 4px; }
}
.packet {
  position: absolute; left: 50%; top: 0; width: 34px; height: 34px; margin: -15px 0 0 -17px; border-radius: 11px; opacity: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(255, 40, 0, 0.7);
}
.packet svg { width: 16px; height: 16px; }
.track.is-moving .packet { animation: travel-y 1.3s var(--ease) forwards; }
@keyframes travel-y { 0% { opacity: 0; top: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; top: 100%; } }
@media (min-width: 820px) {
  .packet { top: 50%; left: 0; margin: -17px 0 0 -17px; }
  .track.is-moving .packet { animation-name: travel-x; }
  @keyframes travel-x { 0% { opacity: 0; left: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; left: 100%; } }
}

.flow-steps { list-style: none; padding: 0; margin: 36px auto 0; max-width: 1000px; display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 820px) { .flow-steps { grid-template-columns: repeat(4, 1fr); } }
.flow-steps li {
  counter-increment: step; position: relative; padding: 16px 16px 16px 52px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font-size: 15px; line-height: 1.45; transition: border-color 0.4s, color 0.4s, transform 0.4s var(--ease);
}
.flow-steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; background: var(--surface-2); color: var(--text); transition: background 0.4s, color 0.4s;
}
.flow-steps li strong { color: var(--text); display: block; margin-bottom: 2px; }
.flow-steps li.is-current { border-color: var(--brand); color: var(--text); transform: translateY(-2px); }
.flow-steps li.is-current::before { background: var(--btn); color: #fff; }
.flow-note { text-align: center; color: var(--muted); font-size: 15px; max-width: 760px; margin: 28px auto 0; }

/* feature rows */
.feature { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature.flip .feature-media { order: 2; }
}
.feature + .feature { margin-top: 110px; }
.feature-media { position: relative; display: flex; justify-content: center; }
.feature-media .glow {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 40, 0, 0.35), transparent 65%); filter: blur(30px); z-index: 0;
}
.feature-media .phone { z-index: 1; }
.phone-pair { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.phone-pair .phone:nth-child(2) { margin-left: -70px; transform: translateY(40px) rotate(4deg); z-index: 2; }
.phone-pair .phone:nth-child(1) { transform: rotate(-4deg); }
@media (max-width: 520px) {
  .phone-pair .phone { width: 46vw; border-radius: 30px; padding: 7px; }
  .phone-pair .phone .phone-screen { border-radius: 24px; }
  .phone-pair .phone::before { top: 14px; width: 8px; height: 8px; margin-left: -4px; }
  .phone-pair .phone:nth-child(2) { margin-left: -40px; }
}
.feature-copy h2 { margin-bottom: 16px; }
.feature-copy > p { color: var(--muted); font-size: 18.5px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checks .ic { width: 28px; height: 28px; border-radius: 9px; background: var(--soft); color: var(--brand-ink); display: grid; place-items: center; }
.checks .ic svg { width: 16px; height: 16px; }
.checks strong { display: block; }
.checks span.t { color: var(--muted); font-size: 15.5px; }

/* cards */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: 24px; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--soft), transparent 45%);
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }
.card-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* languages marquee */
.marquee { position: relative; overflow: hidden; margin-top: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 12px; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.lang { flex: none; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 16px; white-space: nowrap; }
.lang span { color: var(--muted); font-weight: 500; margin-left: 6px; font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* AI panel */
.ai-demo { border-radius: 24px; border: 1px solid var(--border); background: var(--surface); padding: 20px; box-shadow: var(--shadow); max-width: 440px; width: 100%; }
.ai-demo-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.ai-demo-head img { width: 36px; height: 36px; }
.ai-demo-head strong { display: block; line-height: 1.2; }
.ai-demo-head small { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.ai-demo-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; }
.ai-msg { padding: 10px 14px; border-radius: 16px; font-size: 15px; margin-bottom: 10px; max-width: 88%; line-height: 1.45; }
.ai-msg.me { margin-left: auto; background: var(--btn); color: #fff; border-bottom-right-radius: 6px; }
.ai-msg.bot { background: var(--surface-2); border-bottom-left-radius: 6px; min-height: 42px; }
.ai-msg.bot .cursor { display: inline-block; width: 7px; height: 1em; background: var(--brand); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.offline-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted); border: 1px dashed var(--border-strong); padding: 6px 10px; border-radius: 999px; }
.offline-pill svg { width: 14px; height: 14px; }

.ai-layout { display: grid; gap: 28px; justify-items: center; }
@media (min-width: 640px) { .ai-layout { grid-template-columns: auto; } }

/* mail card */
.mail-address {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: clamp(16px, 3.6vw, 20px); font-weight: 600;
  padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); margin: 4px 0 8px; max-width: 100%; overflow-wrap: anywhere;
}
.mail-address .user { color: var(--brand-ink); }
.typed::after { content: "|"; animation: blink 1s steps(1) infinite; color: var(--brand); margin-left: 1px; }

.blocked-types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.blocked-types span { font-family: var(--mono); font-size: 13px; padding: 4px 9px; border-radius: 8px; background: var(--soft); color: var(--brand-ink); text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 0 20px; transition: border-color 0.3s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; font-weight: 680; font-size: 17.5px; padding: 18px 32px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 32px; padding: 56px 24px; text-align: center; color: #fff;
  background: radial-gradient(circle at 20% 0%, #ff5a1f, transparent 55%), radial-gradient(circle at 90% 100%, #fe9901, transparent 50%), #c41d00;
}
.cta h2 { font-size: clamp(32px, 6vw, 56px); font-weight: 850; letter-spacing: -0.04em; }
.cta p { font-size: 19px; opacity: 0.92; max-width: 34em; margin: 0 auto 28px; }
.cta .store-row { justify-content: center; }
.cta .btn-light { background: #fff; color: #17151b; }
.cta .btn-light:hover { transform: translateY(-1px); background: #fff4f0; }
.cta .btn-outline-light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta-logo { width: 72px; height: 72px; margin: 0 auto 20px; background: #fff; border-radius: 50%; padding: 6px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 36px; margin-top: 0; font-size: 15px; background: var(--bg); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 820px) { .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--muted); max-width: 26em; margin-top: 12px; }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--brand-ink); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 14px; }

/* ---------- Legal pages ---------- */
.doc-hero { position: relative; overflow: hidden; padding: 56px 0 36px; border-bottom: 1px solid var(--border); }
.doc-hero .container { position: relative; z-index: 1; }
.doc-hero h1 { font-size: clamp(36px, 7vw, 60px); font-weight: 850; letter-spacing: -0.04em; margin-bottom: 12px; }
.doc-hero p { color: var(--muted); font-size: 18px; max-width: 42em; }
.updated { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.updated svg { width: 16px; height: 16px; }

.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.doc-layout > * { min-width: 0; }
@media (min-width: 980px) { .doc-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; } }

.toc { font-size: 14.5px; }
.toc details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 4px 16px; }
.toc summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.toc ol { list-style: none; margin: 0; padding: 0 0 12px; display: grid; gap: 2px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; line-height: 1.35; }
.toc a:hover { color: var(--text); background: var(--surface-2); }
.toc a.is-active { color: var(--brand-ink); border-left-color: var(--brand); background: var(--soft); }
@media (min-width: 980px) {
  .toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
  .toc details { border: 0; background: none; padding: 0; }
  .toc summary { pointer-events: none; list-style: none; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
  .toc summary::-webkit-details-marker { display: none; }
}

.prose { max-width: 760px; font-size: 17px; }
.prose h2 { font-size: clamp(24px, 3.4vw, 30px); margin: 2.2em 0 0.6em; padding-top: 0.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--brand-ink); }
.prose strong { font-weight: 700; }
.callout {
  border-radius: 18px; border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border)); background: var(--soft); padding: 20px 22px; margin: 0 0 1.6em;
}
.callout > :last-child { margin-bottom: 0; }
.callout h2, .callout h3 { margin-top: 0 !important; font-size: 18px; }
.callout-plain { border-color: var(--border); background: var(--surface); }
.placeholder { background: #fff2b3; color: #4a3a00; padding: 0.05em 0.35em; border-radius: 5px; font-weight: 650; }
@media (prefers-color-scheme: dark) { .placeholder { background: #5a4700; color: #fff3bf; } }
.caps { text-transform: none; font-weight: 700; }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--border); border-radius: 14px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

.back-top { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; margin-top: 32px; }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; position: relative; overflow: hidden; }
.nf .container { position: relative; z-index: 1; }
.nf .nf-code { font-size: clamp(96px, 24vw, 200px); font-weight: 900; letter-spacing: -0.06em; line-height: 1; margin-bottom: 10px; }
.nf .ember { display: inline-block; animation: flicker 3s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: 0.75; transform: translateY(-6px); } }
.nf p { color: var(--muted); font-size: 19px; max-width: 30em; margin: 0 auto 28px; }
.nf .store-row { justify-content: center; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .reveal-scale.is-visible { opacity: 1; transform: none; }

[data-parallax] { will-change: transform; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal, .js .reveal-scale { opacity: 1; transform: none; }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee .dup { display: none; }
  [data-parallax] { transform: none !important; }
  .float-chip { animation: none; }
}

@media print {
  .site-header, .site-footer, .toc, .aurora, .grid-bg, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .doc-layout { display: block; }
}

/* ---------- Utilities (no inline styles, so a strict CSP works) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.d1 { --d: 0.06s; } .d2 { --d: 0.1s; } .d3 { --d: 0.15s; } .d4 { --d: 0.22s; }
.mt-48 { margin-top: 48px; }
.pt-0 { padding-top: 0 !important; }
.marquee .dup { display: contents; }

#download { padding-bottom: 72px; }
