/* The public site (docs/site): the portal's tokens (docs/ui-design/standards.md), then
   the motion layer and the story scenes. Built from the preview of D-0071. */
@font-face {
  font-family: "Vazirmatn";
  src: url(fonts/vazirmatn-arabic-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Vazirmatn";
  src: url(fonts/vazirmatn-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
}

:root {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --text: #182231;
  --muted: #5d6a80;
  --border: #e3e7ef;
  --accent: #f7931a;
  --accent-2: #ffb547;
  --accent-ink: #b45d00;
  --link: #2563eb;
  --ok: #059669;
  --ok-bg: #d1fae5;
  --bad: #dc2626;
  --bad-bg: #fee2e2;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --ink: #111827;
  --ink-2: #1b2433;
  --tone-blue-1: #60a5fa;
  --tone-blue-2: #2563eb;
  --tone-orange-1: #ffb547;
  --tone-orange-2: #f7931a;
  --tone-green-1: #34d399;
  --tone-green-2: #059669;
  --tone-red-1: #fb7185;
  --tone-red-2: #e11d48;
  --tone-violet-1: #a78bfa;
  --tone-violet-2: #7c3aed;
  --tone-teal-1: #2dd4bf;
  --tone-teal-2: #0d9488;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, 0.12);
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-md: 0.875rem;
  --fs-body: 0.9375rem;
  --fs-lg: 1rem;
  --fs-xl: 1.125rem;
  --fs-2xl: 1.25rem;
  --fs-3xl: 1.5rem;
  --fs-4xl: 2rem;
  --fs-5xl: 2.25rem;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --r-sm: 8px;
  --radius-sm: 10px;
  --r-md: 12px;
  --radius: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --page-wide: 1240px;
  --page-read: 760px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #0b0f15;
  --surface: #131a23;
  --surface-2: #18212c;
  --text: #e8edf4;
  --muted: #8f9bb0;
  --border: #232e3b;
  --accent-ink: #ffb547;
  --link: #7aa7ff;
  --ok: #34d399;
  --ok-bg: rgba(52, 211, 153, 0.14);
  --bad: #f87171;
  --bad-bg: rgba(248, 113, 113, 0.14);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.13);
  --ink: #080b10;
  --ink-2: #131a23;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
} }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f15;
  --surface: #131a23;
  --surface-2: #18212c;
  --text: #e8edf4;
  --muted: #8f9bb0;
  --border: #232e3b;
  --accent-ink: #ffb547;
  --link: #7aa7ff;
  --ok: #34d399;
  --ok-bg: rgba(52, 211, 153, 0.14);
  --bad: #f87171;
  --bad-bg: rgba(248, 113, 113, 0.14);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.13);
  --ink: #080b10;
  --ink-2: #131a23;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; font-weight: 600; }
a:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 12%, transparent); border-radius: var(--r-sm); }
h1, h2, h3 { line-height: 1.45; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--page-wide); margin: 0 auto; padding: 0 var(--sp-5); }
.muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; padding: 0 var(--sp-5); border-radius: var(--r-md);
  font: inherit; font-weight: 700; font-size: var(--fs-md); cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.btn:hover { box-shadow: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(247, 147, 26, 0.3); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text); }
.btn.lg { min-height: 52px; padding: 0 var(--sp-6); font-size: var(--fs-lg); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: var(--sp-5); height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); color: var(--text); font-weight: 800; font-size: var(--fs-2xl); }
.brand:hover { box-shadow: none; }
.brand .hash { color: var(--accent); }
.site-nav { display: flex; gap: var(--sp-2); flex: 1; }
.site-nav a { color: var(--muted); padding: var(--sp-2) var(--sp-3); font-size: var(--fs-md); }
.site-nav a.on { color: var(--text); }
.header-actions { display: flex; gap: var(--sp-2); align-items: center; }
.site-user { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, rgba(247, 147, 26, 0.18), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.hero h1 { font-size: 2.75rem; font-weight: 900; margin: var(--sp-4) 0; letter-spacing: -0.01em; }
.hero h1 .hl { background: linear-gradient(135deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: var(--fs-xl); color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-note { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--muted); display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.hero-note span { display: inline-flex; align-items: center; gap: var(--sp-1); }
.hero-note svg { width: 16px; height: 16px; color: var(--ok); }

/* Product mock in the hero */
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: var(--sp-4); }
.mock-bar { display: flex; gap: 6px; margin-bottom: var(--sp-3); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); }
.tile small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.tile b { font-size: var(--fs-2xl); font-weight: 800; }
.tile b small { display: inline; font-size: var(--fs-xs); font-weight: 600; }
.chart { margin-top: var(--sp-3); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); }
.chart-head { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--muted); }
.rows { margin-top: var(--sp-3); display: grid; gap: var(--sp-2); }
.row { display: grid; grid-template-columns: 1fr auto auto; gap: var(--sp-3); align-items: center; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: var(--fs-sm); }
.row .name { font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px var(--sp-2); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.plain::before { display: none; }
.float-alert { position: absolute; inset-inline-start: -28px; bottom: -22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--sp-3) var(--sp-4); display: flex; gap: var(--sp-3); align-items: center; font-size: var(--fs-sm); max-width: 300px; }
.float-alert .ic { width: 36px; height: 36px; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--tone-red-1), var(--tone-red-2)); flex: none; }
.float-alert .ic svg { width: 18px; height: 18px; }
.mock-wrap { position: relative; }

/* Sections */
section.block { padding: 80px 0; }
section.block.alt { background: var(--surface); border-block: 1px solid var(--border); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sec-head .kicker { color: var(--accent-ink); font-weight: 800; font-size: var(--fs-sm); }
.sec-head h2 { font-size: var(--fs-4xl); font-weight: 900; margin: var(--sp-2) 0 var(--sp-3); }
.sec-head p { color: var(--muted); font-size: var(--fs-lg); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); padding: var(--sp-5) 0 0; }
.stat { text-align: center; }
.stat b { display: block; font-size: var(--fs-4xl); font-weight: 900; }
.stat span { color: var(--muted); font-size: var(--fs-md); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow); min-width: 0; }
.alt .card { background: var(--surface-2); box-shadow: none; }
.feat-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: var(--sp-4); }
.feat-ic svg { width: 24px; height: 24px; }
.t-orange { background: linear-gradient(135deg, var(--tone-orange-1), var(--tone-orange-2)); }
.t-red { background: linear-gradient(135deg, var(--tone-red-1), var(--tone-red-2)); }
.t-blue { background: linear-gradient(135deg, var(--tone-blue-1), var(--tone-blue-2)); }
.t-green { background: linear-gradient(135deg, var(--tone-green-1), var(--tone-green-2)); }
.t-violet { background: linear-gradient(135deg, var(--tone-violet-1), var(--tone-violet-2)); }
.t-teal { background: linear-gradient(135deg, var(--tone-teal-1), var(--tone-teal-2)); }
.card h3 { font-size: var(--fs-xl); font-weight: 800; margin-bottom: var(--sp-2); }
.card p { color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); counter-reset: s; position: relative; }
.step { position: relative; }
.step .num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: var(--fs-xl); color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); margin-bottom: var(--sp-4); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 14%, transparent); }
.step-shot { margin-top: var(--sp-4); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); padding: var(--sp-3); font-size: var(--fs-sm); }
.step-shot .bar { height: 8px; border-radius: var(--r-pill); background: var(--border); overflow: hidden; margin-top: var(--sp-2); }
.step-shot .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.step-shot .line { display: flex; justify-content: space-between; gap: var(--sp-2); padding: 3px 0; }
.models-note { margin-top: var(--sp-5); text-align: center; color: var(--muted); font-size: var(--fs-md); }

/* Plans */
.billing-toggle { display: flex; justify-content: center; margin-bottom: var(--sp-6); }
.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); flex-wrap: wrap; }
.seg { min-height: 36px; padding: 0 var(--sp-4); border-radius: var(--r-sm); font-weight: 600; font-size: var(--fs-md); display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--muted); }
.seg.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg .badge { padding: 0 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: var(--sp-4); position: relative; }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 20px 48px rgba(247, 147, 26, 0.18); }
.plan .ribbon { position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(50%); background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 800; font-size: var(--fs-xs); padding: 4px var(--sp-3); border-radius: var(--r-pill); white-space: nowrap; }
.plan h3 { margin: 0; }
.price { display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; }
.price b { font-size: 2.5rem; font-weight: 900; line-height: 1.2; }
.price span { color: var(--muted); font-size: var(--fs-md); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: var(--fs-md); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.plan li { display: flex; gap: var(--sp-2); align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 4px; }
.plan .btn { margin-top: auto; }
.calc { margin-top: var(--sp-6); display: grid; grid-template-columns: 1fr auto; gap: var(--sp-5); align-items: center; }
.calc .range { height: 8px; border-radius: var(--r-pill); background: var(--border); position: relative; margin: var(--sp-4) 0 var(--sp-2); }
.calc .range i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 36%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.calc .range b { position: absolute; top: 50%; inset-inline-start: 36%; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); transform: translate(50%, -50%); }
.calc-total { text-align: center; padding: var(--sp-4) var(--sp-6); border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.calc-total b { display: block; font-size: var(--fs-4xl); font-weight: 900; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: var(--sp-3); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); }
.alt .faq details { background: var(--surface-2); }
.faq summary { font-weight: 800; font-size: var(--fs-lg); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--sp-3); }
.faq summary::after { content: "+"; color: var(--accent); font-size: var(--fs-2xl); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: var(--sp-3); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post .cover { aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }
.post .cover svg { width: 64px; height: 64px; opacity: 0.95; }
.post .cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 50%); }
.post .body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.post h3 { font-size: var(--fs-xl); }
.post h3 a { color: var(--text); font-weight: 800; }
.meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); color: var(--muted); font-size: var(--fs-sm); align-items: center; }
.meta span { display: inline-flex; align-items: center; gap: var(--sp-1); }
.meta svg { width: 14px; height: 14px; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); font-weight: 700; font-size: var(--fs-xs); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip.off { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.chip.big { min-height: 36px; font-size: var(--fs-md); padding: 0 var(--sp-4); }

/* CTA */
.cta-band { border-radius: var(--r-lg); padding: 48px; background: radial-gradient(circle at 15% 20%, rgba(255, 210, 122, 0.35), transparent 40%), linear-gradient(135deg, #f7931a, #c2410c 60%, #1b1206); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: var(--sp-5); align-items: center; }
.cta-band h2 { font-size: var(--fs-4xl); font-weight: 900; }
.cta-band p { opacity: 0.9; font-size: var(--fs-lg); margin-top: var(--sp-2); }
.cta-band .btn { background: #fff; color: #b45d00; border: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #aab4c5; padding: 56px 0 24px; margin-top: 80px; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--sp-6); }
.site-footer h4 { color: #fff; margin: 0 0 var(--sp-3); font-size: var(--fs-md); }
.site-footer a { color: #aab4c5; font-weight: 500; display: block; padding: 3px 0; }
.site-footer .brand { color: #fff; }
.site-footer .bottom { border-top: 1px solid #263041; margin-top: 40px; padding-top: var(--sp-4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); font-size: var(--fs-sm); }

/* Page header for inner pages */
.page-hero { padding: 56px 0 32px; }
.page-hero h1 { font-size: var(--fs-5xl); font-weight: 900; }
.page-hero p { color: var(--muted); font-size: var(--fs-lg); margin-top: var(--sp-2); max-width: 680px; }
.crumbs { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-3); display: flex; gap: var(--sp-2); }

.blog-tools { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; align-items: center; margin-bottom: var(--sp-5); }
.search { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; padding: 0 var(--sp-4); border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--muted); min-width: 280px; }
.search svg { width: 18px; height: 18px; }
.lead-post { display: grid; grid-template-columns: 1.1fr 1fr; padding: 0; overflow: hidden; margin-bottom: var(--sp-5); }
.lead-post .cover { aspect-ratio: auto; min-height: 320px; }
.lead-post .body { padding: var(--sp-6); justify-content: center; gap: var(--sp-3); }
.lead-post h2 { font-size: var(--fs-4xl); font-weight: 900; }
.lead-post h2 a { color: var(--text); font-weight: 900; }
.pager { display: flex; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-6); }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 0 var(--sp-3); }
.pager .on { background: var(--accent); color: #fff; border-color: transparent; }

/* Article */
.article-wrap { display: grid; grid-template-columns: minmax(0, var(--page-read)) 300px; gap: 48px; justify-content: center; }
.article h1 { font-size: 2.5rem; font-weight: 900; margin: var(--sp-3) 0; }
.article .cover { border-radius: var(--r-lg); aspect-ratio: 21 / 9; margin: var(--sp-5) 0; display: grid; place-items: center; color: #fff; overflow: hidden; }
.article .cover svg { width: 360px; max-width: 80%; height: auto; }
.prose { font-size: 1.0625rem; line-height: 2.05; }
.prose h2 { font-size: var(--fs-3xl); font-weight: 900; margin: var(--sp-6) 0 var(--sp-3); }
.prose p { margin: 0 0 var(--sp-4); }
.prose ul { padding-inline-start: var(--sp-5); margin: 0 0 var(--sp-4); }
.prose li { margin-bottom: var(--sp-2); }
.prose blockquote { margin: var(--sp-5) 0; padding: var(--sp-4) var(--sp-5); border-inline-start: 4px solid var(--accent); background: var(--surface); border-radius: var(--r-md); color: var(--text); }
.callout { display: flex; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--radius); background: var(--warn-bg); color: var(--text); margin: var(--sp-5) 0; }
.callout svg { width: 22px; height: 22px; color: var(--warn); flex: none; margin-top: 4px; }
.author { display: flex; gap: var(--sp-3); align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--tone-violet-1), var(--tone-violet-2)); }
.aside { display: grid; gap: var(--sp-5); align-content: start; position: sticky; top: 92px; }
.toc a { display: block; color: var(--muted); font-weight: 500; padding: 4px 0; font-size: var(--fs-md); }
.toc a.on { color: var(--accent-ink); font-weight: 700; }
.aside h4 { margin: 0 0 var(--sp-3); }
.share { display: flex; gap: var(--sp-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--sp-5); }
.ways { display: grid; gap: var(--sp-3); align-content: start; }
.way { display: flex; gap: var(--sp-4); align-items: center; }
.way .feat-ic { margin: 0; flex: none; }
.way b { display: block; font-size: var(--fs-lg); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 700; font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.input { min-height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); padding: var(--sp-2) var(--sp-4); color: var(--muted); display: flex; align-items: center; }
.input.area { min-height: 130px; align-items: flex-start; }
.input.err { border-color: var(--bad); background: var(--bad-bg); }
.field-error { color: var(--bad); font-size: var(--fs-sm); margin-top: var(--sp-1); font-weight: 600; }
.select-like { justify-content: space-between; }

/* Legal */
.legal { display: grid; grid-template-columns: 240px minmax(0, var(--page-read)); gap: 48px; justify-content: center; }
.legal .toc { position: sticky; top: 92px; align-self: start; }
.updated { display: inline-flex; gap: var(--sp-2); align-items: center; font-size: var(--fs-sm); color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill); margin-top: var(--sp-3); }
.updated svg { width: 14px; height: 14px; }

/* Phones */
@media (max-width: 900px) {
  .site-nav, .header-actions .hide-sm { display: none; }
  .menu-btn { display: inline-grid; }
  .site-header .wrap { justify-content: space-between; }
  .hero { padding: 40px 0; }
  .hero-grid, .contact-grid, .lead-post, .article-wrap, .legal, .calc { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero .lead { font-size: var(--fs-lg); }
  .hero-cta .btn { flex: 1 1 100%; }
  .float-alert { position: static; margin-top: var(--sp-3); max-width: none; }
  .features, .steps, .plans, .posts { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  section.block { padding: 56px 0; }
  .sec-head h2, .cta-band h2, .lead-post h2 { font-size: var(--fs-3xl); }
  .cta-band { grid-template-columns: 1fr; padding: var(--sp-6) var(--sp-5); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > :first-child { grid-column: 1 / -1; }
  .wrap { padding: 0 var(--sp-4); }
  .form { grid-template-columns: 1fr; }
  .search { min-width: 0; width: 100%; }
  .aside, .legal .toc { position: static; }
  .page-hero h1, .article h1 { font-size: var(--fs-4xl); }
  .lead-post .cover { min-height: 180px; }
  .plans { gap: var(--sp-6); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile b { font-size: var(--fs-lg); }
}

/* Motion layer of the public site: every effect tells part of the product's story
   (miners -> tunnel -> portal -> alert). All of it switches off under reduced motion. */

/* Hero network: miners sending hash packets through the tunnel to the portal. */
.hero { isolation: isolate; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.55; pointer-events: none; }
.hero h1 .hl { background-size: 200% 100%; animation: hl-shift 6s ease-in-out infinite alternate; }
@keyframes hl-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero h1, .hero .lead, .hero-cta, .hero-note, .eyebrow { animation: rise 0.8s cubic-bezier(.2, .7, .2, 1) both; }
.hero .lead { animation-delay: 0.12s; }
.hero-cta { animation-delay: 0.22s; }
.hero-note { animation-delay: 0.32s; }
.mock-wrap { animation: rise-tilt 1.1s cubic-bezier(.2, .7, .2, 1) 0.15s both; perspective: 1200px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes rise-tilt { from { opacity: 0; transform: translateY(30px) rotateX(8deg) scale(0.97); } }
.eyebrow .dot { animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* The dashboard mock behaves like the real portal: numbers tick, the chart scrolls. */
.mock { transform-style: preserve-3d; transition: transform 0.4s ease-out; }
.tile b, .row .ltr, .stat b, .calc-total b { font-variant-numeric: tabular-nums; }
.tick { animation: tick 0.6s ease-out; }
@keyframes tick { 0% { color: var(--accent); } 100% { color: inherit; } }
.chart svg .dotlive { animation: pulse-dot 1.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse-dot { 0% { r: 4; opacity: 1; } 100% { r: 14; opacity: 0; } }
.row { transition: background 0.4s, border-color 0.4s; }
.row.flash { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.row .fan { width: 16px; height: 16px; color: var(--muted); animation: spin 0.8s linear infinite; flex: none; }
.row.down .fan { animation-duration: 6s; opacity: 0.4; }
.row .name { display: inline-flex; gap: var(--sp-2); align-items: center; min-width: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* SMS alert: slides in, the bell rings, then it leaves and comes back on the next outage. */
.float-alert { transition: opacity 0.5s, transform 0.5s cubic-bezier(.2, .8, .2, 1.2); }
.float-alert.out { opacity: 0; transform: translateY(16px) scale(0.96); }
.float-alert.in .ic svg { animation: ring 0.9s ease-in-out 2; transform-origin: 50% 10%; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(18deg); } 30% { transform: rotate(-16deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(2deg); } }

/* Scroll reveal: only things below the first screen wait; the page is complete at rest. */
.pre { opacity: 0; transform: translateY(28px); }
.rv { transition: opacity 0.7s cubic-bezier(.2, .7, .2, 1), transform 0.7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }

/* Header gets a shadow once the page scrolls. */
.site-header { transition: box-shadow 0.3s, background 0.3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(16, 24, 40, 0.08); }

/* Primary buttons: a light sweep, like a coin catching light. */
.btn.primary { position: relative; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%); transform: translateX(120%); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(247, 147, 26, 0.4); }
.btn.primary:hover::after { transform: translateX(-120%); transition: transform 0.8s; }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

/* Feature cards: lift, a spotlight that follows the pointer, and an icon that acts out its feature. */
.features .card { position: relative; overflow: hidden; transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s, border-color 0.35s; }
.features .card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.features .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.features .card:hover::before { opacity: 1; }
.feat-ic { transition: transform 0.35s; }
.features .card:hover .feat-ic { transform: scale(1.08) rotate(-4deg); }
.features .card:nth-child(1) .feat-ic svg path { stroke-dasharray: 60; animation: trace 2.4s linear infinite; }
@keyframes trace { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
.features .card:nth-child(2) .feat-ic svg { animation: ring 1s ease-in-out infinite; animation-play-state: paused; transform-origin: 50% 10%; }
.features .card:nth-child(2):hover .feat-ic svg { animation-play-state: running; }
.features .card:nth-child(3) .feat-ic { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone-blue-2) 50%, transparent); animation: shield 2.6s ease-out infinite; }
@keyframes shield { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone-blue-2) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
.features .card:nth-child(4) .feat-ic svg line, .features .card:nth-child(4) .feat-ic svg path { animation: slide-knob 2.8s ease-in-out infinite alternate; }
.features .card:nth-child(4) .feat-ic svg :nth-child(odd) { animation-delay: -1.4s; }
@keyframes slide-knob { from { transform: translateX(-2px); } to { transform: translateX(2px); } }
.features .card:nth-child(5) .feat-ic svg { animation: bob 3s ease-in-out infinite; }
.features .card:nth-child(6) .feat-ic svg { animation: spin 8s linear infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }

/* Install steps: a tunnel line runs between the steps with a packet travelling along it,
   and each step plays out when it comes into view. */
.steps::before { content: ""; position: absolute; top: 22px; inset-inline: 16%; height: 2px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent) 0 8px, transparent 8px 16px); z-index: 0; }
.steps::after { content: ""; position: absolute; top: 17px; inset-inline-start: 16%; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 18px var(--accent); animation: packet 3.6s cubic-bezier(.6, 0, .4, 1) infinite; z-index: 1; }
@keyframes packet { 0% { inset-inline-start: 16%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { inset-inline-start: 82%; opacity: 0; } }
.step { z-index: 2; }
.step .num { position: relative; z-index: 2; }
.step.live .num { animation: num-pop 0.6s cubic-bezier(.2, .8, .2, 1.4); }
@keyframes num-pop { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }
.step-shot .bar i { transition: width 1.6s cubic-bezier(.4, 0, .2, 1); }
.step-shot .line { transition: opacity 0.4s, transform 0.4s; }
.step-shot .line.wait { opacity: 0.35; }
.badge.scan { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge.scan::before { width: 9px; height: 9px; background: none; border: 2px solid currentColor; border-top-color: transparent; animation: spin 0.7s linear infinite; }

/* Pricing: the featured plan has a slow orbiting light on its border; the calculator is live. */
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, conic-gradient(from var(--ang, 0deg), var(--accent), var(--accent-2), color-mix(in srgb, var(--accent) 20%, transparent), var(--accent-2), var(--accent)) border-box; animation: orbit 5s linear infinite; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes orbit { to { --ang: 360deg; } }
.plans .card { transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s; }
.plans .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.calc input[type="range"] { width: 100%; margin: var(--sp-4) 0 var(--sp-2); accent-color: var(--accent); height: 28px; cursor: pointer; }
.calc label { font-weight: 700; font-size: var(--fs-md); }
.calc-total b { transition: color 0.3s; }

/* FAQ answers ease open. */
.faq details[open] p { animation: rise 0.4s ease-out; }
.faq details { transition: border-color 0.3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }

/* Blog covers: the gradient drifts and the icon floats; hover zooms the cover. */
.post .cover { background-size: 160% 160%; animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.post .cover svg { transition: transform 0.5s cubic-bezier(.2, .7, .2, 1); animation: bob 4s ease-in-out infinite; }
.post { transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post:hover .cover svg { transform: scale(1.18); }

/* CTA: bitcoin coins float up through a slowly shifting glow. */
.cta-band { position: relative; overflow: hidden; background-size: 200% 200%, 100% 100%; animation: glow 10s ease-in-out infinite alternate; }
@keyframes glow { from { background-position: 0% 0%, 0 0; } to { background-position: 100% 100%, 0 0; } }
.cta-band > * { position: relative; z-index: 1; }
.coin { position: absolute; z-index: 0; bottom: -60px; width: var(--s, 40px); height: var(--s, 40px); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe2a6, #f7931a 60%, #b45d00); color: #fff; display: grid; place-items: center; font: 700 calc(var(--s, 40px) * 0.55) Arial, sans-serif; opacity: 0.55; animation: coin-up var(--t, 9s) linear infinite; animation-delay: var(--dl, 0s); }
@keyframes coin-up { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: 0.55; } 100% { transform: translateY(-340px) rotate(260deg); opacity: 0; } }

@media (max-width: 900px) {
  .steps::before, .steps::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pre { opacity: 1; transform: none; }
  .hero-net { display: none; }
}

/* The five story scenes of the home page (scenes.cjs, scenes.js). */
:root {
  --skin-1: #e0a77f;
  --skin-2: #c78a62;
  --status-amber: #d97706;
  --night-1: #0f1830;
  --night-2: #1e2a4a;
  --stage-ink: #0b0f15;
}

.stories .scenes { display: grid; gap: 96px; }
.scene { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.scene.rev .stage { order: 2; }
.scene-text { display: grid; gap: var(--sp-3); min-width: 0; }
.scene-text .kicker { color: var(--accent-ink); font-weight: 800; font-size: var(--fs-sm); }
.scene-text h3 { font-size: var(--fs-4xl); font-weight: 900; text-wrap: balance; }
.scene-text > p { font-size: var(--fs-lg); }

/* Beats: the scene's steps, lit in sync with the animation. */
.beats { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
.beats li { position: relative; display: flex; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); border: 1px solid transparent; transition: background 0.4s, border-color 0.4s, opacity 0.4s; opacity: 0.55; overflow: hidden; }
.beats li.on, .beats li.done { opacity: 1; }
.beats li.on { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
.beats li b { display: block; font-size: var(--fs-lg); }
.beats li p { color: var(--muted); font-size: var(--fs-md); margin: 0; }
.beat-n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); transition: background 0.4s, color 0.4s; }
.beats li.on .beat-n, .beats li.done .beat-n { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; border-color: transparent; }
.beat-bar { position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.beats li.on .beat-bar { animation: beat var(--beat, 3s) linear forwards; }
@keyframes beat { to { width: 100%; } }

.stage { position: relative; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; min-height: 440px; min-width: 0; }

/* ---------- Scene 1: phone in a hand, at night ---------- */
.stage.night { background: radial-gradient(circle at 75% 15%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 40%), linear-gradient(160deg, var(--night-2), var(--night-1)); border-color: transparent; display: grid; place-items: center; padding-top: 40px; min-height: 520px; }
.stars { position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 10% 20%, #fff8, transparent), radial-gradient(1px 1px at 30% 70%, #fff6, transparent), radial-gradient(1.5px 1.5px at 60% 30%, #fff9, transparent), radial-gradient(1px 1px at 85% 60%, #fff7, transparent), radial-gradient(1px 1px at 45% 12%, #fff8, transparent), radial-gradient(1.5px 1.5px at 20% 85%, #fff5, transparent); animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: 0.5; } to { opacity: 1; } }
.moon { position: absolute; top: 28px; inset-inline-end: 36px; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset -12px -4px 0 0 #ffe2a6; transform: rotate(-20deg); }
.phone-wrap { position: relative; width: 300px; height: 520px; display: grid; justify-items: center; align-items: end; }
.hand-back, .hand-front { position: absolute; bottom: -10px; width: 300px; height: 300px; left: 0; }
.hand-back { z-index: 0; }
.hand-front { z-index: 3; pointer-events: none; }
.phone { position: absolute; z-index: 2; bottom: 40px; left: 50%; width: 230px; height: 470px; margin-left: -115px; border-radius: 38px; background: #10141b; padding: 9px; box-shadow: 0 0 0 2px #2a3240, 0 30px 60px rgba(0, 0, 0, 0.5); transform: rotate(-4deg); }
.phone.buzz { animation: buzz 0.12s linear 8; }
@keyframes buzz { 0%, 100% { transform: rotate(-4deg) translateX(0); } 25% { transform: rotate(-4.6deg) translateX(-3px); } 75% { transform: rotate(-3.4deg) translateX(3px); } }
.notch { position: absolute; z-index: 5; top: 16px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 12px; background: #10141b; }
.scr { position: absolute; inset: 9px; border-radius: 30px; overflow: hidden; opacity: 0; transition: opacity 0.5s, transform 0.5s cubic-bezier(.2, .8, .2, 1); transform: scale(1.04); }
.scr.on { opacity: 1; transform: none; }
.scr.lock { background: radial-gradient(circle at 30% 20%, #f7931a88, transparent 50%), linear-gradient(170deg, #3b2a6b, #120f24 70%); color: #fff; text-align: center; padding-top: 64px; }
.lock-time { font-size: 3.2rem; font-weight: 300; line-height: 1; letter-spacing: 0.02em; }
.lock-date { font-size: var(--fs-sm); opacity: 0.8; margin-top: var(--sp-2); }
.notif { position: absolute; left: 10px; right: 10px; top: 150px; display: flex; gap: var(--sp-2); text-align: start; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.86); color: #182231; backdrop-filter: blur(10px); font-size: 12px; line-height: 1.6; transform: translateY(-30px) scale(0.92); opacity: 0; transition: transform 0.5s cubic-bezier(.2, .9, .3, 1.3), opacity 0.4s; }
.notif.on { transform: none; opacity: 1; }
.notif.n2 { top: 228px; }
.notif small { display: block; color: #64708a; font-size: 10px; }
.notif b { font-weight: 700; }
.n-ic { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--tone-red-2); color: #fff; }
.notif.ok .n-ic { background: var(--tone-green-2); }
.n-ic svg { width: 15px; height: 15px; }
.scr.app { background: #f2f4f8; color: #182231; font-size: 12px; }
.app-top { display: flex; align-items: center; gap: 6px; padding: 40px 12px 10px; background: #fff; border-bottom: 1px solid #e3e7ef; }
.app-top svg { width: 16px; height: 16px; }
.app-top b { flex: 1; font-size: 13px; }
.app-top .badge { font-size: 10px; }
.app-body { padding: 12px; display: grid; gap: 10px; }
.m-hr { background: #fff; border: 1px solid #e3e7ef; border-radius: 12px; padding: 10px; }
.m-hr small { display: block; color: #64708a; font-size: 10px; }
.m-hr b { font-size: 26px; font-weight: 800; line-height: 1.3; transition: color 0.4s; }
.boards { background: #fff; border: 1px solid #e3e7ef; border-radius: 12px; padding: 8px 10px; display: grid; gap: 6px; }
.bd { display: grid; grid-template-columns: 40px 1fr 34px; gap: 6px; align-items: center; font-size: 11px; }
.bd i { height: 6px; border-radius: 6px; background: #e3e7ef; position: relative; overflow: hidden; }
.bd i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: #059669; transition: width 1.2s cubic-bezier(.4, 0, .2, 1); }
.bd.off span, .bd.off em { color: #dc2626; font-weight: 700; }
.bd em { font-style: normal; text-align: end; }
.app-alert { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #fef3c7; color: #92400e; font-size: 11px; transition: opacity 0.4s; }
.app-alert svg { width: 14px; height: 14px; flex: none; }
.app-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 10px; font-weight: 700; font-size: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: transform 0.15s, box-shadow 0.2s; }
.scr.app .pbtn { border-color: #e3e7ef; background: #fff; color: #182231; }
.pbtn svg { width: 14px; height: 14px; }
.pbtn.danger, .scr.app .pbtn.danger { background: #dc2626; color: #fff; border-color: transparent; }
.pbtn.primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; border-color: transparent; }
.pbtn.press { transform: scale(0.94); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); }
.app-progress { height: 30px; border-radius: 10px; background: #fff; border: 1px solid #e3e7ef; position: relative; overflow: hidden; display: grid; place-items: center; font-size: 11px; font-weight: 700; opacity: 0; transition: opacity 0.3s; }
.app-progress.on { opacity: 1; }
.app-progress i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: #fde7c7; }
.app-progress.on i { animation: fillx 2.6s linear forwards; }
.app-progress span { position: relative; }
@keyframes fillx { to { width: 100%; } }
.tap { position: absolute; z-index: 6; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.65); border: 2px solid rgba(255, 255, 255, 0.9); opacity: 0; pointer-events: none; transform: scale(0.5); }
.tap.go { animation: tap 0.7s ease-out; }
@keyframes tap { 0% { opacity: 0; transform: scale(1.4); } 30% { opacity: 1; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.8); } }
.waves { position: absolute; z-index: 1; top: 110px; left: 50%; width: 0; height: 0; }
.waves i { position: absolute; left: -130px; top: -130px; width: 260px; height: 260px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); opacity: 0; }
.waves.go i { animation: wave 1.6s ease-out; }
.waves.go i:nth-child(2) { animation-delay: 0.3s; }
.waves.go i:nth-child(3) { animation-delay: 0.6s; }
@keyframes wave { 0% { opacity: 0.9; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.5); } }

/* ---------- Scene 2: internet outage ---------- */
.net-stage { padding: var(--sp-5); display: grid; gap: var(--sp-5); align-content: center; background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.net-status { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); background: var(--ok-bg); color: var(--ok); width: fit-content; font-size: var(--fs-md); transition: background 0.4s, color 0.4s; }
.net-status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: live 1.8s ease-out infinite; }
.net-status.bad { background: var(--bad-bg); color: var(--bad); }
.net-status.warn { background: var(--warn-bg); color: var(--warn); }
.ns-clock { color: var(--muted); font-variant-numeric: tabular-nums; margin-inline-start: var(--sp-2); }
.net-grid { display: grid; grid-template-columns: 1.4fr 0.6fr auto 0.6fr auto 0.6fr auto; align-items: center; }
.node { display: grid; justify-items: center; gap: var(--sp-1); text-align: center; position: relative; }
.node small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.node > svg, .rt svg { width: 34px; height: 34px; color: var(--muted); }
.node.cloud > svg { width: 44px; height: 44px; color: var(--tone-blue-2); }
.farm { padding: var(--sp-3); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); }
.roof { width: 70%; height: 10px; border-radius: 6px 6px 0 0; background: var(--border); }
.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.unit { width: 40px; height: 30px; border-radius: 6px; background: var(--stage-ink); display: flex; align-items: center; justify-content: space-between; padding: 0 5px; transition: box-shadow 0.4s; }
.unit .fan svg { width: 18px; height: 18px; color: #7d8a9c; animation: spin 0.9s linear infinite; }
.unit .led, .router .led { width: 6px; height: 6px; border-radius: 50%; background: var(--tone-green-1); box-shadow: 0 0 6px var(--tone-green-1); transition: background 0.3s, box-shadow 0.3s; }
.unit.off .led, .router.off .led { background: var(--tone-red-1); box-shadow: 0 0 6px var(--tone-red-1); }
.unit.wait .led { background: var(--accent-2); box-shadow: 0 0 6px var(--accent-2); animation: blink 0.5s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.router .led { position: absolute; top: 4px; inset-inline-end: 8px; }
.rt { width: 54px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; }
.logo-tile { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.logo-tile svg { width: 28px; height: 28px; }
.link { height: 3px; margin: 0 4px; position: relative; border-radius: 3px; background: color-mix(in srgb, var(--ok) 50%, transparent); transition: background 0.3s; }
.link .pk { position: absolute; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: flow 1.6s linear infinite; }
.link .pk + .pk { animation-delay: -0.8s; }
@keyframes flow { from { inset-inline-start: 0; } to { inset-inline-start: calc(100% - 9px); } }
.link.down { background: repeating-linear-gradient(90deg, var(--bad) 0 6px, transparent 6px 12px); }
.link.down .pk { display: none; }
.cut { position: absolute; top: -18px; left: 50%; margin-left: -16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bad); color: #fff; opacity: 0; transform: scale(0.4); transition: opacity 0.3s, transform 0.4s cubic-bezier(.2, .9, .3, 1.5); }
.cut svg { width: 18px; height: 18px; }
.link.down .cut { opacity: 1; transform: scale(1); }
.retry { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-md); color: var(--muted); opacity: 0; transition: opacity 0.4s; min-height: 24px; }
.retry.on { opacity: 1; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.sms-chip { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); width: fit-content; max-width: 100%; transition: opacity 0.4s, transform 0.5s cubic-bezier(.2, .9, .3, 1.3); font-size: var(--fs-md); }
.sms-chip > span { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--tone-red-2); flex: none; }
.sms-chip.ok > span { background: var(--tone-green-2); }
.sms-chip svg { width: 16px; height: 16px; }
.sms-chip.off { opacity: 0; transform: translateY(16px); }

/* ---------- Scene 3: heat and power target ---------- */
.heat-stage { padding: var(--sp-5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); align-content: center; background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.gauge-card, .ctl-card { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: var(--sp-4); display: grid; gap: var(--sp-2); min-width: 0; }
.gauge { width: 100%; height: auto; }
.g-arc { transition: stroke-dashoffset 0.6s ease-out; }
.g-needle { transform-origin: 110px 120px; transition: transform 0.6s ease-out; }
.g-read { text-align: center; margin-top: -8px; }
.g-read b { font-size: var(--fs-5xl); font-weight: 900; font-variant-numeric: tabular-nums; transition: color 0.4s; }
.g-read small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.g-read.hot b { color: var(--bad); }
.g-limit { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--muted); border-top: 1px dashed var(--border); padding-top: var(--sp-2); }
.ctl-row { display: flex; justify-content: space-between; gap: var(--sp-2); font-size: var(--fs-md); }
.ctl-row span { color: var(--muted); }
.ctl-row b { font-variant-numeric: tabular-nums; }
.ctl-row.col { flex-direction: column; }
.slider { position: relative; height: 8px; border-radius: 8px; background: var(--border); margin: var(--sp-3) 0 var(--sp-1); }
.slider .fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--p, 54%); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1s cubic-bezier(.4, 0, .2, 1); }
.slider .knob { position: absolute; top: 50%; inset-inline-start: var(--p, 54%); width: 20px; height: 20px; margin-inline-start: -10px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: var(--shadow); transition: inset-inline-start 1s cubic-bezier(.4, 0, .2, 1); }
.sl-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-xs); color: var(--muted); }
.sl-meta b { color: var(--text); font-size: var(--fs-md); }
.ctl-card .pbtn { margin-top: var(--sp-2); }
.toast { position: absolute; inset-inline: var(--sp-5); top: var(--sp-4); display: flex; gap: var(--sp-2); align-items: center; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); font-size: var(--fs-md); font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-16px); transition: opacity 0.4s, transform 0.5s cubic-bezier(.2, .9, .3, 1.3); pointer-events: none; }
.toast svg { width: 18px; height: 18px; flex: none; }
.toast.t-alert { background: var(--bad); color: #fff; }
.toast.t-ok { background: var(--ok); color: #fff; }
.toast.on { opacity: 1; transform: none; }
.log { grid-column: 1 / -1; display: flex; gap: var(--sp-2); align-items: center; font-size: var(--fs-sm); color: var(--muted); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); transition: opacity 0.4s; }
.log svg { width: 15px; height: 15px; }
.log.off { opacity: 0; }

/* ---------- Scene 4: free start ---------- */
.start-stage { display: grid; place-items: center; padding: var(--sp-5); background: radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%), var(--surface-2); }
.win { width: min(100%, 440px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.win-bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.win-bar > i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.win-url { margin-inline-start: auto; font-size: var(--fs-xs); color: var(--muted); direction: ltr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 0 10px; }
.frames { position: relative; height: 270px; }
.fr { position: absolute; inset: 0; padding: var(--sp-5); display: grid; gap: var(--sp-2); align-content: start; opacity: 0; transform: translateX(-30px); transition: opacity 0.5s, transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.fr.on { opacity: 1; transform: none; }
.fr.gone { opacity: 0; transform: translateX(30px); }
.fr h4 { margin: 0 0 var(--sp-2); font-size: var(--fs-xl); }
.fr label { font-size: var(--fs-sm); font-weight: 700; }
.fake-input { min-height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); background: var(--surface-2); padding: 0 var(--sp-4); display: flex; align-items: center; justify-content: flex-start; gap: 2px; font-size: var(--fs-lg); letter-spacing: 0.08em; }
.caret { width: 2px; height: 20px; background: var(--accent); animation: blink 1s steps(2) infinite; }
.pbtn.wide { min-height: 44px; font-size: var(--fs-md); margin-top: var(--sp-2); }
.codes { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-2); direction: ltr; }
.codes span { height: 52px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); display: grid; place-items: center; font-size: var(--fs-2xl); font-weight: 800; transition: border-color 0.2s, transform 0.2s; }
.codes span.in { border-color: var(--accent); transform: translateY(-3px); }
.codes span.hide { color: transparent; }
.ok-line { display: flex; gap: var(--sp-2); align-items: center; color: var(--ok); font-weight: 700; margin-top: var(--sp-3); transition: opacity 0.4s; }
.ok-line svg { width: 18px; height: 18px; }
.ok-line.off { opacity: 0; }
.scan { display: grid; gap: var(--sp-2); }
.sc { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); font-size: var(--fs-md); transition: opacity 0.4s, transform 0.4s; }
.sc.off { opacity: 0; transform: translateY(8px); }
.mini-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.mini-tiles div { border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); padding: var(--sp-2) var(--sp-3); }
.mini-tiles small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.mini-tiles b { font-size: var(--fs-2xl); font-weight: 800; }
.trial { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-2); padding: var(--sp-3); border-radius: var(--r-md); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.trial > svg { width: 26px; height: 26px; color: var(--accent-ink); flex: none; }
.trial div { flex: 1; }
.trial div b { display: block; }
.trial small { color: var(--muted); font-size: var(--fs-xs); }
.trial-ring { position: relative; width: 44px; height: 44px; flex: none; }
.trial-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.trial-ring .ring { transition: stroke-dashoffset 1.4s ease-out; }
.trial-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; }
.dots { display: flex; justify-content: center; gap: 6px; padding: var(--sp-3); }
.dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--border); transition: width 0.3s, background 0.3s; }
.dots i.on { width: 22px; background: var(--accent); }

/* ---------- Scene 5: support chat ---------- */
.chat-stage { padding: var(--sp-5); display: grid; align-content: center; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.chat { display: grid; gap: var(--sp-3); }
.chat-head { display: flex; align-items: center; gap: var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--border); }
.chat-head div { flex: 1; min-width: 0; }
.chat-head b { display: block; font-size: var(--fs-md); }
.chat-head small { font-size: var(--fs-xs); }
.avatar.sm { width: 34px; height: 34px; font-size: var(--fs-sm); }
.bubble { max-width: 82%; padding: var(--sp-3) var(--sp-4); border-radius: 18px; font-size: var(--fs-md); line-height: 1.8; transition: opacity 0.4s, transform 0.5s cubic-bezier(.2, .9, .3, 1.2); }
.bubble.me { justify-self: start; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; border-end-start-radius: 4px; }
.bubble.them { justify-self: end; background: var(--surface); border: 1px solid var(--border); border-end-end-radius: 4px; }
.bubble.them b { display: block; font-size: var(--fs-xs); color: var(--accent-ink); }
.ctx { justify-self: end; width: 70%; border-radius: var(--r-md); border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--border)); background: var(--surface); padding: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); transition: opacity 0.4s, transform 0.5s; }
.ctx-h { display: flex; gap: var(--sp-1); align-items: center; color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.ctx-h svg { width: 14px; height: 14px; }
.ctx-row { display: flex; gap: var(--sp-2); align-items: baseline; }
.ctx-row span { color: var(--muted); }
.bad-t { color: var(--bad); }
.spark { width: 100%; height: 36px; }
.typing { justify-self: end; display: flex; gap: 4px; padding: var(--sp-3) var(--sp-4); border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: opacity 0.3s; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }
.rate { justify-self: start; display: flex; gap: var(--sp-2); align-items: center; font-size: var(--fs-sm); color: var(--muted); transition: opacity 0.4s; }
.stars-r { display: flex; gap: 2px; }
.stars-r svg { width: 18px; height: 18px; color: var(--accent); fill: var(--accent); transition: transform 0.3s, fill 0.3s; }
.stars-r svg.dim { fill: none; color: var(--border); }
.hid { opacity: 0 !important; transform: translateY(10px); }
.gone-h { display: none !important; }

/* Phones: the stage sits above its text; scenes keep their full motion. */
@media (max-width: 900px) {
  .scene, .scene.rev { grid-template-columns: 1fr; gap: var(--sp-5); }
  .scene.rev .stage { order: 0; }
  .stories .scenes { gap: 64px; }
  .scene-text h3 { font-size: var(--fs-3xl); }
  .heat-stage { grid-template-columns: 1fr; }
  .net-grid { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .net-grid .link { width: 3px; height: 34px; margin: 4px 0; }
  .link .pk { inset-inline-start: -3px !important; animation-name: flowv; }
  @keyframes flowv { from { top: 0; } to { top: calc(100% - 9px); } }
  .cut { top: 50%; margin-top: -16px; left: 14px; margin-left: 0; }
  .stage { min-height: 0; }
  .ctx { width: 90%; }
  .bubble { max-width: 92%; }
}
@media (max-width: 420px) {
  .phone-wrap { transform: scale(0.88); transform-origin: center bottom; }
}
.sms-n { font-style: normal; font-size: var(--fs-xs); font-weight: 800; color: var(--bad); background: var(--bad-bg); border-radius: var(--r-pill); padding: 0 8px; }
.sms-n:empty { display: none; }
.heat-stage { padding-bottom: 88px; }
.heat-stage .toast { top: auto; bottom: var(--sp-4); transform: translateY(16px); }
.heat-stage .toast.on { transform: none; }
.hr2, .pw, .pt, .net-stage .ns-clock, .mini-tiles b { direction: ltr; unicode-bidi: isolate; }

/* ---------- The live site (api/site/render.py) ---------- */
.skip { position: absolute; inset-inline-start: -9999px; }
.preview-bar { position: sticky; top: 0; z-index: 20; background: var(--warn-bg); color: var(--warn); text-align: center; font-weight: 700; font-size: var(--fs-sm); padding: var(--sp-2); border-bottom: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.preview-bar ~ .site-header { top: 37px; }
section.block.joined { padding-top: 0; }
section.block.alt.joined { border-top: 0; }
section.block.k-page-head { padding-bottom: 0; padding-top: 0; }
section.block.k-heading { padding-bottom: 0; }
section.block.k-heading + section.block.joined { padding-top: 8px; }
section.block[class*="k-scene-"] + section.block[class*="k-scene-"].joined { padding-top: 16px; }
section.block.k-cta { padding-bottom: 0; }
.scene { scroll-margin-top: 90px; }
section[id] { scroll-margin-top: 72px; }
.hero-grid.rev > .mock-wrap { order: -1; }
.prose.narrow { max-width: var(--page-read); margin: 0 auto; }
.prose h3 { font-size: var(--fs-2xl); font-weight: 800; margin: var(--sp-5) 0 var(--sp-2); }
.prose ol { padding-inline-start: var(--sp-5); margin: 0 0 var(--sp-4); }
.prose figure { margin: var(--sp-5) 0; }
.prose figure img { max-width: 100%; border-radius: var(--radius); display: block; }
.callout .callout-ic svg { width: 22px; height: 22px; }
.callout > div { min-width: 0; }
.article-top { padding-top: 40px; }
.article .cover svg { width: 96px; height: 96px; max-width: none; }
.cover.has-img { background: var(--surface-2); padding: 0; }
.cover.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post > a { display: block; }
.post > a:hover, .lead-post > a:hover { box-shadow: none; }
.lead-post > a { display: grid; }
.lead-post .excerpt { font-size: var(--fs-lg); }
.posts + .more, .more { text-align: center; margin-top: 32px; }
.rel { margin-bottom: 12px; }
.toc h4 { margin: 0 0 var(--sp-2); }
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band > div, .cta-band > .btn { position: relative; z-index: 1; }
.cta-band.small { margin-top: 40px; padding: 32px; }
.cta-band.small h2 { font-size: var(--fs-3xl); }
.site-footer .about { margin-top: 12px; max-width: 320px; }
.empty-note { display: flex; gap: var(--sp-3); align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.empty-note svg { width: 22px; height: 22px; flex: none; }
.not-found { text-align: center; display: grid; gap: var(--sp-3); justify-items: center; padding: 40px 0; }
.not-found .code { font-size: 5rem; font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found h1 { font-size: var(--fs-4xl); font-weight: 900; }

/* Real form controls take the look of the mock inputs. */
input.input, select.input, textarea.input { width: 100%; font: inherit; color: var(--text); display: block; }
textarea.input { resize: vertical; line-height: 1.8; padding-top: var(--sp-3); }
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.input[aria-invalid="true"] { border-color: var(--bad); background: var(--bad-bg); }
input.input.ltr { text-align: right; }
.form-end { display: flex; justify-content: space-between; gap: var(--sp-3); align-items: center; }
.form-end .field-error { margin: 0; }
.form-title { margin-bottom: 16px; }
.form-sent { display: none; gap: var(--sp-2); align-items: center; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); background: var(--ok-bg); color: var(--ok); font-weight: 700; margin-bottom: var(--sp-4); }
.form-sent.on { display: flex; }
.form-sent svg { width: 20px; height: 20px; flex: none; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.way a.muted { display: block; font-weight: 600; }
.search input { border: 0; background: transparent; font: inherit; color: var(--text); flex: 1; min-width: 0; outline: none; min-height: 40px; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; margin-top: var(--sp-3); }
.calc-row select.input { width: auto; min-height: 40px; }
.share .icon-btn { cursor: pointer; }
.icon-btn { font: inherit; }
.copy-link.done { color: var(--ok); }

/* Phones: the menu opens under the header. */
@media (max-width: 900px) {
  .site-nav.open { display: grid; position: absolute; top: 68px; inset-inline: 0; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: var(--sp-3) var(--sp-4); gap: 0; }
  .site-nav.open a { padding: var(--sp-3) var(--sp-2); font-size: var(--fs-lg); border-bottom: 1px solid var(--border); }
  .site-nav.open a:last-child { border-bottom: 0; }
  .site-header .wrap { position: relative; }
  .hero-grid.rev > .mock-wrap { order: 0; }
  .form-end { flex-direction: column-reverse; align-items: stretch; }
  .form-end .btn { width: 100%; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* Softer tiles (D-0071): icon tiles and blog covers are a light tint of their colour with
   the icon in a readable ink of the same colour, in place of a saturated gradient with a
   white icon; the call-to-action band is a warm, even orange so its text keeps its contrast. */
:root {
  --tc-orange: #b45d00; --tc-red: #be123c; --tc-blue: #1d4ed8;
  --tc-green: #047857; --tc-violet: #6d28d9; --tc-teal: #0f766e;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --tc-orange: #ffb547; --tc-red: #fda4af; --tc-blue: #93c5fd;
  --tc-green: #6ee7b7; --tc-violet: #c4b5fd; --tc-teal: #5eead4;
} }
:root[data-theme="dark"] {
  --tc-orange: #ffb547; --tc-red: #fda4af; --tc-blue: #93c5fd;
  --tc-green: #6ee7b7; --tc-violet: #c4b5fd; --tc-teal: #5eead4;
}
.t-orange { --tc: var(--tc-orange); } .t-red { --tc: var(--tc-red); } .t-blue { --tc: var(--tc-blue); }
.t-green { --tc: var(--tc-green); } .t-violet { --tc: var(--tc-violet); } .t-teal { --tc: var(--tc-teal); }
.feat-ic.t-orange, .feat-ic.t-red, .feat-ic.t-blue, .feat-ic.t-green, .feat-ic.t-violet, .feat-ic.t-teal {
  background: color-mix(in srgb, var(--tc) 13%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tc) 24%, transparent);
  color: var(--tc);
}
.cover.t-orange, .cover.t-red, .cover.t-blue, .cover.t-green, .cover.t-violet, .cover.t-teal {
  background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 12%, var(--surface)), color-mix(in srgb, var(--tc) 26%, var(--surface)));
  color: var(--tc);
}
.post .cover::after { background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--tc, #fff) 14%, transparent), transparent 55%); }
.cta-band { background: radial-gradient(circle at 15% 20%, rgba(255, 220, 160, 0.22), transparent 45%), linear-gradient(135deg, #b84f0a, #9d410a 60%, #823508); }
.cta-band p { opacity: 1; color: rgba(255, 255, 255, 0.96); }
.cta-band .btn { color: #8f4300; }
.coin { opacity: 0.3; }
@keyframes coin-up { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: 0.3; } 100% { transform: translateY(-340px) rotate(260deg); opacity: 0; } }
.tile small, .mini-tiles small { font-size: var(--fs-sm); color: color-mix(in srgb, var(--text) 70%, var(--surface)); }
