/* Carbiter — krivoy.co.uk
   Palette mirrors CarAnalyst/Assets.xcassets (light / dark). No external resources. */

:root {
  --ground: #F7F4EC;
  --ground-2: #EFEADD;
  --surface: #FFFDF7;
  --surface-2: #F3EEE2;
  --ink: #1A1710;
  --ink-soft: #4A443A;
  --muted: #6E675A;
  --rule: #E4DFD2;
  --rule-strong: #D6CFBE;
  --accent: #7A5410;
  --accent-ink: #7A5410;
  --on-accent: #FFFFFF;
  --icon-ground: #151A22;
  --gold: #E0B054;
  --gold-deep: #B8862E;
  --needle: #F5F6F8;
  --zone-normal: #1E6B44;
  --glow: rgba(224, 176, 84, .30);
  --grid-line: rgba(26, 23, 16, .05);
  --header-bg: rgba(247, 244, 236, .78);
  --shadow-sm: 0 1px 2px rgba(26, 23, 16, .05), 0 4px 12px -6px rgba(26, 23, 16, .10);
  --shadow: 0 1px 2px rgba(26, 23, 16, .06), 0 18px 40px -18px rgba(26, 23, 16, .22);
  --shadow-phone: 0 50px 100px -40px rgba(26, 23, 16, .55), 0 30px 60px -30px rgba(26, 23, 16, .35);
  --headline-gold: linear-gradient(100deg, #6B4A0E, #A37526 55%, #7A5410);
  color-scheme: light dark;

  --radius: 22px;
  --wrap: 1180px;
  --gutter: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #12100C;
    --ground-2: #17140F;
    --surface: #1B1812;
    --surface-2: #231F17;
    --ink: #EDE8DC;
    --ink-soft: #B9B2A2;
    --muted: #8A8373;
    --rule: #2A251C;
    --rule-strong: #3A3327;
    --accent: #E0B054;
    --accent-ink: #E0B054;
    --on-accent: #12100C;
    --zone-normal: #3E9E6A;
    --glow: rgba(224, 176, 84, .16);
    --grid-line: rgba(237, 232, 220, .035);
    --header-bg: rgba(18, 16, 12, .74);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px -6px rgba(0, 0, 0, .6);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 20px 44px -18px rgba(0, 0, 0, .75);
    --shadow-phone: 0 50px 110px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .04);
    --headline-gold: linear-gradient(100deg, #B8862E, #F0C979 55%, #B8862E);
  }
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ── Base & typography ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: hidden;
}
@media (min-width: 720px) { body { font-size: 18px; } }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(224, 176, 84, .4); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 10.6vw, 84px); line-height: 1.02; letter-spacing: -.038em; }
h2 { font-size: clamp(31px, 7.4vw, 56px); line-height: 1.06; letter-spacing: -.032em; }
h3 { font-size: clamp(19px, 4.6vw, 22px); line-height: 1.25; letter-spacing: -.02em; font-weight: 650; }
p { margin: 0; text-wrap: pretty; }
b, strong { font-weight: 600; color: var(--ink); }
.num { font-family: var(--font-round); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .7; }
.lede { font-size: clamp(18px, 4.6vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 34em; }

/* ── Logo mark ─────────────────────────────────────────── */
.mark { flex: none; }
.mark .tile { fill: var(--icon-ground); }
.mark .ring { fill: none; stroke: var(--gold); stroke-width: 10.5; }
.mark .needle { stroke: var(--needle); stroke-width: 5.5; stroke-linecap: round; }
.mark .hub { fill: var(--needle); }
.mark .sweep { transform-box: view-box; transform-origin: 50px 50px; }
.mark.animate .sweep { animation: needle-sweep 1.8s var(--ease) .2s both, needle-idle 6s ease-in-out 2.2s infinite; }
.mark.animate .ring { stroke-dasharray: 160; stroke-dashoffset: 160; animation: ring-draw 1.2s var(--ease) forwards; }
@keyframes needle-sweep { 0% { transform: rotate(-95deg); } 55% { transform: rotate(218deg); } 75% { transform: rotate(-8deg); } 100% { transform: rotate(0); } }
@keyframes needle-idle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(4deg); } }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }

/* ── Buttons & badges ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--font); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .25s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 22px -10px var(--accent); }
.btn-ghost { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14.5px; }

.store { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.store a { display: inline-block; border-radius: 12px; transition: transform .25s var(--ease); }
.store a:hover { transform: translateY(-2px); }
.store img { height: 54px; width: auto; }
.store .badge-dark { display: none; }
@media (prefers-color-scheme: dark) { .store .badge-light { display: none; } .store .badge-dark { display: block; } }
.store .soon-note { display: none; font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.store.soon .soon-note { display: inline-flex; align-items: center; gap: 7px; }
.store.soon .soon-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse-dot 2s infinite; }
.store.soon a { cursor: default; }
.store.soon a:hover { transform: none; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  backdrop-filter: saturate(1.8) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled, .menu-open .site-header { border-bottom-color: var(--rule); }
.site-header .bar { display: flex; align-items: center; gap: 12px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 650 19px/1 var(--font-display); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.nav { display: none; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: -.005em; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { margin-left: auto; }
.menu-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; margin-right: -8px;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative;
  transition: transform .35s var(--ease), background-color .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-cta { margin-left: 8px; }
  .menu-btn, .mobile-menu, .menu-scrim { display: none !important; }
}

.mobile-menu {
  position: fixed; top: 62px; left: 0; right: 0; z-index: 55;
  background: var(--ground); border-bottom: 1px solid var(--rule);
  padding: 4px var(--gutter) 24px;
  box-shadow: var(--shadow);
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: transform .35s var(--ease), opacity .25s, visibility 0s .35s;
}
.menu-open .mobile-menu { transform: none; opacity: 1; visibility: visible; transition: transform .35s var(--ease), opacity .25s; }
.mobile-menu a.row {
  display: flex; align-items: center; justify-content: space-between; padding: 17px 2px;
  border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none;
  font: 600 21px/1.2 var(--font-display); letter-spacing: -.022em;
}
.mobile-menu a.row svg { width: 18px; height: 18px; color: var(--muted); }
.mobile-menu .menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; }
.mobile-menu .menu-foot p { font-size: 14px; line-height: 1.4; color: var(--muted); }
.menu-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .32); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.menu-open .menu-scrim { opacity: 1; visibility: visible; transition: opacity .3s; }
body.menu-open { overflow: hidden; }

/* ── Phone frame (iPhone 17 Pro Max proportions) ───────── */
/* The screen box has the screenshot's exact aspect ratio, so nothing is cropped. */
.phone {
  position: relative;
  width: 100%;
  padding: 3.4%;
  border-radius: 15.5% / 7.25%;
  background: linear-gradient(145deg, #45444A 0%, #1E1E21 20%, #0C0C0E 60%, #2E2E33 100%);
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255, 255, 255, .12), inset 0 0 0 4px #050506;
}
.phone::before, .phone::after { /* side buttons */
  content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2B2B2F, #4A4A50);
}
.phone::before { right: -2px; top: 26%; height: 11%; }
.phone::after { left: -2px; top: 20%; height: 6%; }
.phone .screen {
  position: relative; overflow: hidden;
  aspect-ratio: 1320 / 2868;
  border-radius: 12.6% / 5.8%;
  background: #000;
  isolation: isolate;
}
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone .screen::after { /* glass highlight */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 30%);
}
.phone .island {
  position: absolute; z-index: 3; left: 50%; top: 1.15%;
  width: 28.6%; height: 3.85%; transform: translateX(-50%);
  background: #000; border-radius: 999px;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 28px 0 56px; isolation: isolate; }
.hero::before { /* fine grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero::after { /* gold glow */
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; max-width: 180vw;
  left: 50%; top: 34%; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
}
.hero .wrap { display: grid; gap: 44px; align-items: center; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-copy .mark { margin-bottom: 22px; filter: drop-shadow(0 12px 24px rgba(21, 26, 34, .35)); }
.hero-copy h1 { margin: 16px 0 20px; }
.hero-copy h1 em { font-style: normal; background: var(--headline-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; }
.hero-actions .store { align-items: center; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.trust li {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft); letter-spacing: -.005em;
}
.trust svg { width: 15px; height: 15px; color: var(--accent-ink); }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 8px 0 12px; }
.hero-visual .phone { width: min(290px, 68vw); animation: float 7s ease-in-out infinite; }
.chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border-radius: 16px; padding: 8px 12px 8px 8px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--rule);
  font-size: 12px; line-height: 1.25; color: var(--muted);
}
.chip b { display: block; color: var(--ink); font: 700 15.5px/1.15 var(--font-round); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.chip i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--icon-ground); color: var(--gold); flex: none; }
.chip svg { width: 18px; height: 18px; }
.chip-a { left: max(0px, calc(50% - 200px)); top: 13%; animation: float 6s ease-in-out -2s infinite; }
.chip-b { right: max(0px, calc(50% - 200px)); top: 49%; animation: float 8s ease-in-out -4s infinite; }
.chip-c { left: max(0px, calc(50% - 190px)); bottom: 10%; animation: float 7s ease-in-out -1s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (min-width: 960px) {
  .hero { padding: 64px 0 104px; }
  .hero .wrap { grid-template-columns: 1.08fr .92fr; gap: 56px; }
  .hero-copy { text-align: left; align-items: flex-start; }
  .hero-actions { flex-direction: row; align-items: flex-start; gap: 20px; }
  .hero-actions .store { align-items: flex-start; }
  .trust { justify-content: flex-start; }
  .hero-visual .phone { width: 320px; }
  .chip { font-size: 13px; padding: 10px 14px 10px 10px; }
  .chip b { font-size: 18px; }
  .chip i { width: 36px; height: 36px; }
  .chip-a { left: 0; }
  .chip-b { right: -8px; }
  .chip-c { left: 2%; }
}

/* ── Marquee ───────────────────────────────────────────── */
.marquee { border-block: 1px solid var(--rule); background: var(--surface); overflow: hidden; }
.marquee .track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.marquee li {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 0 16px 26px; white-space: nowrap;
  font: 600 15px/1 var(--font-display); letter-spacing: -.01em; color: var(--ink-soft);
}
.marquee li svg { width: 18px; height: 18px; color: var(--accent-ink); }
.marquee li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rule-strong); margin-left: 16px; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: 72px 0; position: relative; }
@media (min-width: 960px) { .section { padding: 120px 0; } }
.section.tint { background: var(--ground-2); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head h2 { margin: 14px 0 16px; }
.section-head p { font-size: clamp(17px, 4.4vw, 20px); color: var(--ink-soft); max-width: 36em; }
@media (min-width: 960px) { .section-head { margin-bottom: 56px; } }

/* Stats */
.stats { padding: 40px 0 0; }
.stats .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 820px) { .stats { padding-top: 64px; } .stats .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat { background: var(--surface); border-radius: 20px; padding: 22px 18px; box-shadow: inset 0 0 0 1px var(--rule); }
.stat b { display: block; font: 700 clamp(34px, 9vw, 46px)/1 var(--font-round); font-variant-numeric: tabular-nums; letter-spacing: -.035em; color: var(--ink); }
.stat b small { font-size: .5em; font-weight: 650; color: var(--accent-ink); margin-left: 2px; letter-spacing: 0; }
.stat span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* Feature grid */
.features { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature {
  position: relative; background: var(--surface); border-radius: var(--radius);
  padding: 20px; box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden;
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-items: start;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow), inset 0 0 0 1px var(--rule-strong); }
.feature .ico {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--icon-ground); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-top: 1px; padding-right: 48px; }
.feature p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.pro-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font: 650 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-ink); background: rgba(224, 176, 84, .18); border-radius: 999px; padding: 5px 8px;
}
.pro-tag svg { width: 10px; height: 10px; }
.feature .pro-tag { position: absolute; top: 18px; right: 18px; }
@media (min-width: 640px) {
  .feature { display: block; padding: 28px; }
  .feature .ico { margin-bottom: 20px; width: 48px; height: 48px; border-radius: 14px; }
  .feature .ico svg { width: 26px; height: 26px; }
  .feature h3 { font-size: 20px; margin-bottom: 8px; padding-right: 0; }
  .feature .pro-tag { top: 24px; right: 24px; }
}

/* Showcase (tabbed) */
.tabs-wrap { display: flex; justify-content: center; margin: 0 calc(var(--gutter) * -1) 36px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.tabs-wrap::-webkit-scrollbar { display: none; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); flex: none; }
.tabs button {
  appearance: none; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer;
  font: 600 14.5px/1 var(--font); letter-spacing: -.01em; padding: 11px 15px; border-radius: 999px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; transition: color .25s, background-color .25s, box-shadow .25s;
}
.tabs button svg { width: 16px; height: 16px; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
@media (prefers-color-scheme: dark) { .tabs button[aria-selected="true"] { background: var(--icon-ground); color: var(--gold); } }
@media (min-width: 720px) { .tabs button { padding: 12px 20px; font-size: 15px; } }

.panel { display: grid; gap: 36px; align-items: center; }
.panel + .panel { margin-top: 72px; }
.js .panel + .panel { margin-top: 0; }
.js .panel[hidden] { display: none; }
.js .panel.enter .panel-copy, .js .panel.enter .panel-media { animation: panel-in .6s var(--ease) both; }
.js .panel.enter .panel-media { animation-delay: .06s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.panel-media { position: relative; display: flex; justify-content: center; order: -1; isolation: isolate; }
.panel-media .phone { width: min(270px, 66vw); }
.panel-media::before {
  content: ""; position: absolute; inset: 6% 0; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent 75%);
}
.panel-copy h3 { font-size: clamp(27px, 6.4vw, 42px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; margin: 14px 0 16px; }
.panel-copy > p { font-size: clamp(17px, 4.3vw, 19px); color: var(--ink-soft); }
.panel-copy .eyebrow .pro-tag { margin-left: 2px; }
@media (min-width: 900px) {
  .panel { grid-template-columns: 1fr 1fr; gap: 80px; }
  .panel-media { order: 0; }
  .panel-media .phone { width: 300px; }
}

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(224, 176, 84, .22);
}
.ticks li::after {
  content: ""; position: absolute; left: 7px; top: calc(.12em + 4.5px); width: 5px; height: 9px;
  border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Confidence band */
.confidence { background: var(--icon-ground); color: #EDE8DC; overflow: hidden; isolation: isolate; }
.confidence::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 50% 0%, rgba(224, 176, 84, .16), transparent 70%);
}
.confidence h2 { color: #fff; }
.confidence .section-head p { color: #B9B2A2; }
.confidence .eyebrow { color: var(--gold); }
.conf-demo { display: grid; gap: 14px; max-width: 780px; margin: 0 auto; }
@media (min-width: 720px) { .conf-demo { grid-template-columns: 1fr 1fr; gap: 18px; } }
.conf-card { background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 24px; }
.conf-card .label { font: 600 12px/1 var(--font); color: #8A8373; text-transform: uppercase; letter-spacing: .12em; }
.conf-card .value { font: 700 46px/1 var(--font-round); font-variant-numeric: tabular-nums; letter-spacing: -.035em; margin: 16px 0 8px; color: #fff; }
.conf-card .value small { font-size: 17px; color: #B9B2A2; font-weight: 600; letter-spacing: -.01em; }
.conf-card .pm { font-size: 15px; color: var(--gold); font-weight: 600; }
.conf-bar { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); margin-top: 18px; overflow: hidden; }
.conf-bar span { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transition: left 1.4s var(--ease), right 1.4s var(--ease); }
.conf-card.est .conf-bar span { left: 15%; right: 15%; }
.conf-card.cal .conf-bar span { left: 44%; right: 44%; background: var(--gold); }
.conf-card .foot { font-size: 14px; color: #B9B2A2; margin-top: 14px; line-height: 1.5; }
.reveal:not(.in) .conf-bar span { left: 0; right: 0; }

/* Steps — vertical timeline on phones, row on desktop */
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 0 32px 64px; counter-increment: step; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: 0; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--icon-ground); color: var(--gold); font: 700 18px/1 var(--font-round);
  box-shadow: 0 0 0 6px var(--ground);
}
.step::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: linear-gradient(var(--rule-strong), transparent); }
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step h3 { margin: 9px 0 6px; }
.step p { color: var(--ink-soft); font-size: 16px; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps::before { content: ""; position: absolute; top: 22px; left: 52px; right: 33%; height: 2px; background: repeating-linear-gradient(90deg, var(--rule-strong) 0 8px, transparent 8px 14px); }
  .step { padding: 66px 0 0; }
  .step::after { display: none; }
}
.adapter-note {
  margin-top: 36px; display: flex; gap: 14px; align-items: flex-start;
  border-radius: 18px; padding: 18px 20px;
  color: var(--ink-soft); font-size: 15px; line-height: 1.55;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.adapter-note svg { width: 22px; height: 22px; color: var(--accent-ink); flex: none; margin-top: 2px; }

/* Gallery */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 28px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.gallery::-webkit-scrollbar { display: none; }
@media (min-width: 1244px) { .gallery { padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }
.gallery figure { margin: 0; flex: none; width: 62vw; max-width: 250px; scroll-snap-align: center; }
@media (min-width: 720px) { .gallery figure { width: 250px; scroll-snap-align: start; } }
.gallery .phone { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45), inset 0 0 0 1.5px rgba(255, 255, 255, .12), inset 0 0 0 4px #050506; }
.gallery figcaption { margin-top: 18px; text-align: center; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.gallery figcaption b { display: block; color: var(--ink); font: 650 16px/1.3 var(--font-display); letter-spacing: -.015em; margin-bottom: 2px; }
.dots { display: flex; justify-content: center; gap: 7px; }
.dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: var(--rule-strong); cursor: pointer; transition: width .35s var(--ease), background-color .3s; }
.dots button[aria-current="true"] { width: 22px; background: var(--accent); }
@media (min-width: 720px) { .dots { display: none; } }
.gallery-nav { display: none; gap: 10px; }
@media (min-width: 720px) { .gallery-nav { display: flex; } }
.gallery-nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule-strong); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .2s;
}
.gallery-nav button:hover { background: var(--surface-2); }
.gallery-nav button:active { transform: scale(.94); }
.gallery-nav svg { width: 18px; height: 18px; }

/* Live Activity */
.la { display: grid; gap: 28px; align-items: center; margin-top: 64px; }
@media (min-width: 900px) { .la { grid-template-columns: 1.05fr .95fr; gap: 64px; margin-top: 96px; } }
.la-visual {
  position: relative; border-radius: 28px; padding: 26px 16px 22px; overflow: hidden; isolation: isolate; text-align: center;
  background: radial-gradient(120% 90% at 20% 0%, #3A4A66 0%, #1B2230 45%, #151A22 70%), #151A22;
  box-shadow: var(--shadow);
}
.la-visual::after { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; z-index: -1; background: radial-gradient(closest-side, rgba(224, 176, 84, .35), transparent 70%); }
.la-visual .lock-date { color: rgba(255, 255, 255, .75); font: 500 15px/1 var(--font); }
.la-visual .lock-time { color: rgba(255, 255, 255, .95); font: 600 clamp(64px, 18vw, 86px)/1 var(--font-round); letter-spacing: -.03em; margin: 6px 0 22px; font-variant-numeric: tabular-nums; }
.la-visual img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.la-copy h3 { font-size: clamp(26px, 6vw, 36px); line-height: 1.1; letter-spacing: -.028em; font-weight: 700; margin: 14px 0 14px; }
.la-copy p { color: var(--ink-soft); }

/* Privacy */
.privacy-band .grid { display: grid; gap: 12px; }
@media (min-width: 820px) { .privacy-band .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.pill-card { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: inset 0 0 0 1px var(--rule); display: grid; grid-template-columns: 42px 1fr; gap: 2px 14px; }
.pill-card .ico { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(62, 158, 106, .14); color: var(--zone-normal); }
.pill-card svg { width: 22px; height: 22px; }
.pill-card h3 { font-size: 18px; }
.pill-card p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }
.privacy-band .more { margin-top: 28px; text-align: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Pricing */
.plans { display: grid; gap: 24px; max-width: 940px; margin: 0 auto; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; gap: 22px; } }
.plan { background: var(--surface); border-radius: 26px; padding: 28px 24px; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--rule); }
@media (min-width: 720px) { .plan { padding: 34px; } }
.plan.pro { position: relative; box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.plan .ribbon { position: absolute; top: -13px; left: 24px; background: var(--accent); color: var(--on-accent); font: 700 11.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 99px; }
.plan h3 { font-size: 26px; letter-spacing: -.025em; }
.plan .price { font: 500 16px/1.4 var(--font); color: var(--muted); margin: 8px 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.plan .ticks { margin-top: 0; flex: 1; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font: 600 17.5px/1.4 var(--font-display); letter-spacing: -.015em; color: var(--ink);
}
@media (min-width: 720px) { .faq summary { font-size: 19px; padding: 24px 48px 24px 0; } }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: var(--muted);
  transition: transform .35s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 40em; }

/* Final CTA */
.final .card {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  background: var(--icon-ground); color: #EDE8DC; border-radius: 32px; padding: 56px 22px;
}
@media (min-width: 720px) { .final .card { padding: 80px 32px; border-radius: 40px; } }
.final .card::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -55%; width: 760px; height: 760px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(224, 176, 84, .26), transparent 70%);
}
.final .card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%); mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}
.final .mark { margin: 0 auto 26px; }
.final .card.in .mark .sweep { animation: needle-sweep 1.8s var(--ease) .3s both; }
.final .card.in .mark .ring { stroke-dasharray: 160; stroke-dashoffset: 160; animation: ring-draw 1.2s var(--ease) forwards; }
.final h2 { color: #fff; }
.final p { color: #B9B2A2; font-size: clamp(17px, 4.4vw, 20px); margin: 18px auto 32px; max-width: 30em; }
.final .store { align-items: center; }
.final .store .badge-light { display: none; }
.final .store .badge-dark { display: block; }
.final .store .soon-note { color: #B9B2A2; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--rule);
  transform: translateY(calc(100% + 40px)); transition: transform .5s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta .txt { flex: 1; min-width: 0; line-height: 1.2; }
.sticky-cta .txt b { display: block; font: 650 15.5px/1.2 var(--font-display); letter-spacing: -.015em; }
.sticky-cta .txt span { font-size: 12.5px; color: var(--muted); }
.sticky-cta .btn { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 calc(110px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 15px; }
@media (min-width: 900px) { .site-footer { padding-bottom: 56px; } }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin-top: 14px; max-width: 26em; line-height: 1.55; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot-col h4 { margin: 0 0 14px; font: 600 12.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--ink-soft); text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 12.5px; line-height: 1.6; }

/* ── Reveal on scroll ──────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .07s; }
.js .reveal.d2 { transition-delay: .14s; }

/* ── Document pages (privacy, support) ─────────────────── */
.doc { padding: 40px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 8.6vw, 54px); margin: 14px 0 20px; }
.doc h2 { font-size: clamp(24px, 5.6vw, 30px); letter-spacing: -.025em; margin: 52px 0 14px; }
.doc h3 { font-size: 20px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); line-height: 1.7; }
.doc p + p { margin-top: 16px; }
.doc ul, .doc ol { padding-left: 22px; margin: 16px 0; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--accent-ink); }
.doc code { font: 500 .88em/1 ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.doc .table-wrap { overflow-x: auto; margin: 20px 0; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 460px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--rule); color: var(--ink-soft); line-height: 1.5; }
.doc th { color: var(--ink); font-weight: 600; background: var(--surface-2); }
.doc tr:last-child td { border-bottom: 0; }
.doc .updated, .doc .updated strong { color: var(--muted); font-size: 15px; font-weight: 500; }
.callout { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); padding: 22px; margin: 32px 0; box-shadow: inset 0 0 0 1px var(--rule); }
.callout svg { width: 26px; height: 26px; color: var(--accent-ink); flex: none; margin-top: 2px; }
.callout h2 { margin: 0 0 6px; font-size: 21px; }
.trouble { counter-reset: t; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.trouble li { counter-increment: t; background: var(--surface); border-radius: 18px; padding: 20px 20px 20px 64px; position: relative; margin: 0 !important; box-shadow: inset 0 0 0 1px var(--rule); }
.trouble li::before {
  content: counter(t); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--icon-ground); color: var(--gold); display: grid; place-items: center; font: 700 15px/1 var(--font-round);
}
.trouble li b { display: block; color: var(--ink); margin-bottom: 4px; font: 650 17px/1.35 var(--font-display); letter-spacing: -.015em; }

.notfound { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.notfound h1 { margin: 16px 0 12px; }
.notfound p { color: var(--ink-soft); margin-bottom: 28px; }

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mark.animate .ring { stroke-dashoffset: 0; }
}

/* ── Language switcher ─────────────────────────────────── */
.lang-menu { position: relative; display: none; }
@media (min-width: 900px) { .lang-menu { display: block; } }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px; border-radius: 999px; color: var(--ink-soft);
  font: 600 13px/1 var(--font); letter-spacing: .04em; box-shadow: inset 0 0 0 1px var(--rule-strong);
  transition: color .2s, box-shadow .2s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); box-shadow: inset 0 0 0 1px var(--muted); }
.lang-menu summary svg { width: 16px; height: 16px; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 168px; margin: 0; padding: 6px;
  list-style: none; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow), inset 0 0 0 1px var(--rule);
  animation: lang-pop .2s var(--ease);
}
@keyframes lang-pop { from { opacity: 0; transform: translateY(-4px); } }
.lang-list a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.lang-list a:hover { background: var(--surface-2); color: var(--ink); }
.lang-list a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.lang-list a[aria-current="true"]::after { content: "✓"; float: right; color: var(--accent-ink); }

.lang-row { display: flex; align-items: center; gap: 12px; padding: 18px 2px 4px; color: var(--muted); }
.lang-row > svg { width: 20px; height: 20px; flex: none; }
.lang-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lang-pills a {
  display: inline-block; padding: 7px 11px; border-radius: 999px; font-size: 14px; color: var(--ink-soft);
  text-decoration: none; box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.lang-pills a[aria-current="true"] { background: var(--accent); color: var(--on-accent); box-shadow: none; font-weight: 600; }

.lang-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lang-plain a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.foot-grid { grid-template-columns: 1fr 1fr; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* Tabs on phones: four equal columns, icon over label, so every language fits without scrolling. */
.tabs { margin-inline: auto; }
@media (max-width: 559px) {
  .tabs-wrap { overflow: visible; margin-inline: 0; padding: 0; }
  .tabs { display: grid; grid-template-columns: repeat(4, auto); gap: 2px; width: 100%; border-radius: 18px; }
  .tabs button {
    flex-direction: column; gap: 6px; padding: 10px 2px 9px; border-radius: 14px;
    font-size: 12px; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; text-align: center; min-width: 0;
  }
  .tabs button svg { width: 20px; height: 20px; }
}
