/* Veep marketing site - shared styles
   Brand: Veep violet #7B2FF7, gradient #8025F6 -> #B657FB, dark accent #B794FF
   Type: Plus Jakarta Sans (UI/body) + Instrument Serif (display accents) */

:root {
  --violet: #7B2FF7;
  --violet-600: #6A1FE6;
  --violet-soft: #B794FF;
  --grad: linear-gradient(135deg, #8025F6 0%, #B657FB 100%);
  --grad-text: linear-gradient(100deg, #7B2FF7 10%, #B657FB 60%, #E36BD8 100%);

  --bg: #FBF9FF;
  --bg-2: #F3EEFD;
  --surface: #FFFFFF;
  --ink: #16121F;
  --ink-2: #2E2840;
  --muted: #5B5470;
  --line: rgba(22, 18, 31, .10);
  --line-2: rgba(22, 18, 31, .16);
  --accent: #7B2FF7;
  --accent-ink: #FFFFFF;
  --accent-text: #6A1FE6;
  --glass: rgba(255, 255, 255, .68);
  --glass-line: rgba(255, 255, 255, .7);
  --shadow-sm: 0 1px 2px rgba(30, 10, 60, .06), 0 4px 14px rgba(60, 20, 120, .06);
  --shadow: 0 2px 6px rgba(30, 10, 60, .06), 0 18px 48px -12px rgba(76, 25, 160, .22);
  --shadow-lg: 0 30px 80px -20px rgba(76, 25, 160, .35), 0 8px 24px rgba(30, 10, 60, .08);
  --pattern-alpha: .055;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --radius: 28px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --max: 1220px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0913;
    --bg-2: #151020;
    --surface: #17121F;
    --ink: #F4F1FB;
    --ink-2: #DCD6EA;
    --muted: #ABA3BF;
    --line: rgba(255, 255, 255, .10);
    --line-2: rgba(255, 255, 255, .18);
    --accent: #B794FF;
    --accent-ink: #1A0B3D;
    --accent-text: #C7ABFF;
    --glass: rgba(28, 22, 40, .66);
    --glass-line: rgba(255, 255, 255, .10);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    --shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 18px 48px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 8px 24px rgba(0, 0, 0, .4);
    --pattern-alpha: .07;
    --grad-text: linear-gradient(100deg, #B794FF 10%, #D7A8FF 55%, #F29BE6 100%);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.025em; font-weight: 750; text-wrap: balance; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--violet) 28%, transparent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg);
  font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Brand pattern: the V mark tiled, like the app's Prism screens */
.pattern {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--violet);
  opacity: var(--pattern-alpha);
  -webkit-mask: url("../brand/veep-mark.svg") 0 0 / 72px 72px repeat;
  mask: url("../brand/veep-mark.svg") 0 0 / 72px 72px repeat;
}

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--b-bg); color: var(--b-fg);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--spring), box-shadow .25s var(--ease), background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { --b-bg: var(--violet); --b-fg: #fff; border-color: transparent; background: var(--grad); box-shadow: 0 10px 28px -8px rgba(123, 47, 247, .6), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 16px 36px -10px rgba(123, 47, 247, .75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { background: transparent; }
.btn-dark { --b-bg: #16121F; --b-fg: #fff; border-color: transparent; }
@media (prefers-color-scheme: dark) { .btn-dark { --b-bg: #F4F1FB; --b-fg: #16121F; } }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: .9375rem; }
.btn-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.15; }
.btn-stack small { font-weight: 600; font-size: .78rem; opacity: .85; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-text); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--spring); }
.link-arrow:hover .icon { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); font-size: .875rem; font-weight: 650; color: var(--ink-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #2BD27F; box-shadow: 0 0 0 4px rgba(43, 210, 127, .18); margin-left: 4px; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; background: color-mix(in srgb, var(--violet) 12%, transparent); color: var(--accent-text); vertical-align: middle; }
.tag-soon { background: color-mix(in srgb, #E3A008 18%, transparent); color: #8A5A00; }
@media (prefers-color-scheme: dark) { .tag-soon { color: #F5C451; } }
.tag-android { background: color-mix(in srgb, #2BB673 16%, transparent); color: #11734A; }
@media (prefers-color-scheme: dark) { .tag-android { color: #5FE0A3; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.open {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 6px 16px -6px rgba(123, 47, 247, .6); }
.nav-links { display: none; margin-left: auto; gap: 4px; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: .95rem; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover { background: color-mix(in srgb, var(--violet) 8%, transparent); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--accent-text); background: color-mix(in srgb, var(--violet) 10%, transparent); }
.nav-cta { display: none; }
.menu-btn {
  margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--glass); display: grid; place-items: center; cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.mobile-menu {
  position: fixed; inset: 72px 0 auto 0; z-index: 49;
  max-height: calc(100dvh - 72px); overflow-y: auto;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
  box-shadow: var(--shadow);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 4px;
  border-bottom: 1px solid var(--line); font-size: 1.35rem; font-weight: 700; text-decoration: none; letter-spacing: -.02em;
}
.mobile-menu li a[aria-current="page"] { color: var(--accent-text); }
.mobile-menu li a .icon { width: 20px; height: 20px; opacity: .5; }
.mobile-menu .btn-row { margin-top: 20px; }
.mobile-menu .btn { flex: 1 1 200px; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; margin-left: 8px; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 140px); }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
}
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.h-display { font-size: clamp(2.6rem, 9vw, 6.4rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; }
.h-1 { font-size: clamp(2.2rem, 6vw, 4.2rem); letter-spacing: -.04em; line-height: 1.02; }
.h-2 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); letter-spacing: -.035em; }
.h-3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); letter-spacing: -.02em; line-height: 1.2; }
.h-1 .serif, .h-2 .serif, .h-display .serif { font-size: 1.08em; letter-spacing: -.02em; line-height: .9; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 40ch; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head .lead { max-width: 56ch; margin: 0; }

/* ---------- Phone frame ---------- */
.phone {
  --w: 300px;
  position: relative; width: var(--w); aspect-ratio: 780 / 1688;
  padding: calc(var(--w) * .032); border-radius: calc(var(--w) * .15);
  background: linear-gradient(145deg, #2A2436, #0B0911 55%, #241E30);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 4px #0B0911;
  flex: none;
}
.phone::before { /* side button */
  content: ""; position: absolute; right: -2px; top: 22%; width: 3px; height: 12%; border-radius: 0 3px 3px 0; background: #2A2436;
}
.phone .screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w) * .12);
  background: var(--grad);
  isolation: isolate;
}
.phone .screen::before { /* intentional fill while a screenshot is missing */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../brand/veep-mark-white-tight.webp") center 42% / 38% auto no-repeat,
              radial-gradient(120% 70% at 20% 0%, #B657FB 0%, transparent 60%), var(--grad);
}
.phone .screen::after { /* front camera */
  content: ""; position: absolute; top: 1.1%; left: 50%; width: 3.6%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: #0B0911; box-shadow: 0 0 0 1.5px rgba(255,255,255,.08); z-index: 2;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone .screen img.missing { visibility: hidden; }
.phone.dark-screen .screen::before { background: url("../brand/veep-mark-white-tight.webp") center 42% / 38% auto no-repeat, linear-gradient(160deg, #1C1030, #0B0812); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero-bg { position: absolute; inset: -72px 0 0; z-index: -1; overflow: hidden; }
.hero-bg .glow {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
}
.hero-bg .g1 { width: 60vmax; height: 60vmax; left: -20vmax; top: -24vmax; background: radial-gradient(circle, #C9A7FF, transparent 65%); }
.hero-bg .g2 { width: 50vmax; height: 50vmax; right: -18vmax; top: 4vmax; background: radial-gradient(circle, #F2B5F0, transparent 62%); opacity: .45; }
.hero-bg .g3 { width: 40vmax; height: 40vmax; left: 30%; bottom: -26vmax; background: radial-gradient(circle, #9C6BFF, transparent 62%); opacity: .35; }
@media (prefers-color-scheme: dark) {
  .hero-bg .g1 { background: radial-gradient(circle, #5B22C9, transparent 65%); }
  .hero-bg .g2 { background: radial-gradient(circle, #7D2A9E, transparent 62%); }
  .hero-bg .g3 { background: radial-gradient(circle, #3B1C8C, transparent 62%); }
}
.hero-bg .pattern {
  -webkit-mask-image: url("../brand/veep-mark.svg"), radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: url("../brand/veep-mark.svg"), radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-size: 72px 72px, 100% 100%; mask-size: 72px 72px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy .h-display .line { display: block; }
.hero-copy .h-display .serif { display: inline-block; padding-right: .08em; padding-bottom: .06em; }
.hero-copy .lead { max-width: 34ch; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--muted); max-width: 46ch; margin: 0; }
.hero-note .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--ink-2); }
.hero-note a { font-weight: 700; color: var(--ink-2); }

.hero-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-stage .phone-back { --w: 230px; position: absolute; transform: translate(-46%, 4%) rotate(-9deg); opacity: .96; }
.hero-stage .phone-front { --w: 262px; position: relative; transform: translate(22%, 0) rotate(4deg); }
.float {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 18px; font-size: .86rem; font-weight: 700; white-space: nowrap;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: var(--shadow);
  animation: bob 6s var(--ease) infinite alternate;
}
.float .icon { width: 18px; height: 18px; color: var(--accent-text); }
.float-1 { left: 0; top: 10%; }
.float-2 { right: 0; top: 34%; animation-delay: -2s; }
.float-3 { left: 2%; bottom: 14%; animation-delay: -4s; }
.float-4 { right: 4%; bottom: 4%; animation-delay: -1s; }
.float .ticks { color: #2B8CFF; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 20px; }
.wave i { width: 3px; border-radius: 2px; background: var(--accent); height: 30%; }
.wave i:nth-child(3n) { height: 80%; } .wave i:nth-child(3n+1) { height: 50%; } .wave i:nth-child(4n) { height: 100%; } .wave i:nth-child(5n) { height: 35%; }
.float .play { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.float .play svg { width: 10px; height: 10px; }
.reacts { display: inline-flex; gap: 2px; font-size: 1rem; }
@keyframes bob { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

@media (max-width: 420px) {
  .hero-stage { min-height: 480px; }
  .hero-stage .phone-back { --w: 190px; }
  .hero-stage .phone-front { --w: 214px; }
  .float { font-size: .78rem; padding: 8px 11px; }
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 32px; }
  .hero-stage { min-height: 720px; }
  .hero-stage .phone-back { --w: 290px; }
  .hero-stage .phone-front { --w: 322px; }
  .float-1 { left: -4%; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden; padding-block: 22px; border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0 14px; }
.marquee li { display: inline-flex; align-items: center; gap: 28px; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.2rem); white-space: nowrap; color: var(--ink-2); }
.marquee li::after { content: ""; width: 22px; height: 22px; background: var(--grad); -webkit-mask: url("../brand/veep-mark.svg") center / 150% no-repeat; mask: url("../brand/veep-mark.svg") center / 150% no-repeat; opacity: .8; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3vw, 32px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card .ico {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px;
  background: color-mix(in srgb, var(--violet) 10%, var(--surface)); color: var(--accent-text);
}
.card .ico svg { width: 24px; height: 24px; }
.card-violet { background: var(--grad); color: #fff; border-color: transparent; }
.card-violet p { color: rgba(255,255,255,.86); }
.card-violet .ico { background: rgba(255,255,255,.18); color: #fff; }
.card-ink { background: #120D1C; color: #F4F1FB; border-color: transparent; }
.card-ink p { color: #BDB4D3; }
.card-ink .ico { background: rgba(183,148,255,.14); color: #C7ABFF; }

.b-board { display: grid; gap: 24px; padding-bottom: 0; }
.b-board .phone { --w: 250px; margin: 0 auto -38%; transform: rotate(-3deg); }
.mini-board { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.calls-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; max-width: 260px; }
.calls-grid span { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; }
.calls-grid span:nth-child(1) { background: linear-gradient(135deg, #FF8A65, #F0507A); }
.calls-grid span:nth-child(2) { background: linear-gradient(135deg, #4FC3F7, #3D6CF0); }
.calls-grid span:nth-child(3) { background: linear-gradient(135deg, #81C784, #1F9D74); }
.calls-grid span:nth-child(4) { background: linear-gradient(135deg, #FFD54F, #F08A24); }
.calls-grid span:nth-child(5) { background: linear-gradient(135deg, #BA68C8, #7B2FF7); }
.calls-grid span:nth-child(6) { background: linear-gradient(135deg, #F48FB1, #D63C8A); }
.calls-grid span:nth-child(7) { background: linear-gradient(135deg, #80DEEA, #1E9AB0); }
.calls-grid span:nth-child(8) { background: linear-gradient(135deg, #B0A4C8, #5B5470); }
.rings { display: flex; margin-top: 22px; }
.rings span {
  width: 54px; height: 54px; border-radius: 50%; padding: 3px; margin-right: -8px;
  background: conic-gradient(from 200deg, #8025F6, #B657FB, #F29BE6, #8025F6);
}
.rings span i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--surface); }
.rings span:nth-child(1) i { background: url("../img/stories/story-0.webp") center / cover; }
.rings span:nth-child(2) i { background: url("../img/stories/story-2.webp") center / cover; }
.rings span:nth-child(3) i { background: url("../img/stories/story-3.webp") center / cover; }
.rings span:nth-child(4) { background: var(--line-2); }
.rings span:nth-child(4) i { background: url("../img/stories/story-4.webp") center / cover; }
.voice-demo { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 14px 10px 10px; border-radius: 22px; background: rgba(255,255,255,.16); max-width: 300px; }
.voice-demo .play { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--violet); display: grid; place-items: center; flex: none; }
.voice-demo .play svg { width: 14px; height: 14px; }
.voice-demo .wave { flex: 1; height: 28px; gap: 3px; }
.voice-demo .wave i { background: #fff; flex: 1; }
.voice-demo .spd { font-size: .8rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.22); }
.timer-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.timer-chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 750; font-size: .85rem; }
.timer-chips span.on { background: var(--ink); color: var(--bg); border-color: transparent; }
.poll { display: grid; gap: 8px; margin-top: 22px; max-width: 300px; }
.poll div { position: relative; padding: 9px 12px; border-radius: 12px; background: color-mix(in srgb, var(--violet) 6%, var(--surface)); border: 1px solid var(--line); font-size: .88rem; font-weight: 650; display: flex; justify-content: space-between; overflow: hidden; isolation: isolate; }
.poll div::before { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: color-mix(in srgb, var(--violet) 18%, transparent); z-index: -1; border-radius: inherit; }
.poll .p1 { --p: 62%; } .poll .p2 { --p: 26%; } .poll .p3 { --p: 12%; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-board { grid-row: span 2; }
}
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .b-board { grid-column: 1; grid-row: 1 / span 2; }
  .b-calls { grid-column: 2 / span 2; }
  .b-calls-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
  .b-calls .calls-grid { margin-top: 0; width: 260px; }
}

/* ---------- Theme lab ---------- */
.lab { display: grid; gap: 48px; align-items: center; }
.lab-stage { position: relative; display: grid; place-items: center; padding: 24px 0; }
.lab-stage::before { content: ""; position: absolute; width: min(520px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--lab-accent, #7B2FF7) 32%, transparent), transparent 66%); transition: background .5s; }
.lab-stage .phone { --w: 280px; }
.lab-stage .phone .screen img { position: absolute; inset: 0; transition: opacity .5s var(--ease); }
.lab-stage .phone .img-dark { opacity: 0; }
.lab[data-mode="dark"] .phone .img-dark { opacity: 1; }
.lab[data-mode="dark"] .phone .img-light { opacity: 0; }
.lab-bubbles {
  position: absolute; z-index: 3; right: max(0px, calc(50% - 240px)); bottom: 8%; display: grid; gap: 8px; justify-items: end;
}
.lab-bubbles span { padding: 10px 14px; border-radius: 20px 20px 6px 20px; background: var(--lab-accent, #7B2FF7); color: #fff; font-weight: 650; font-size: .9rem; box-shadow: var(--shadow); transition: background .4s; max-width: 220px; }
.lab-bubbles span:first-child { border-radius: 20px 20px 20px 6px; background: var(--surface); color: var(--ink); justify-self: start; border: 1px solid var(--line); }
.lab-controls { display: grid; gap: 28px; }
.control-label { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.seg { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); transition: background .25s, color .25s, box-shadow .25s; min-height: 44px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; position: relative; background: var(--c);
  transition: transform .25s var(--spring);
}
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2.5px solid transparent; transition: border-color .2s; }
.swatch[aria-pressed="true"]::after { border-color: var(--c); }
.swatch:hover { transform: scale(1.08); }
.sw-red { --c: #CC2E1D; } .sw-blue { --c: #2747D4; } .sw-teal { --c: #0B7A5E; } .sw-violet { --c: #7B2FF7; } .sw-amber { --c: #A65412; } .sw-ink { --c: #111111; }
@media (prefers-color-scheme: dark) { .sw-ink { --c: #6F6880; } }
.lab-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lab-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.lab-list .icon { width: 22px; height: 22px; color: var(--accent-text); margin-top: 2px; }
@media (min-width: 980px) {
  .lab { grid-template-columns: 1fr 1fr; gap: 72px; }
  .lab-stage .phone { --w: 320px; }
}

/* ---------- Dark ribbon band (security) ---------- */
.band-dark {
  position: relative; overflow: hidden; isolation: isolate; color: #F4F1FB; background: #0B0717;
  border-radius: clamp(28px, 4vw, 48px); margin-inline: clamp(8px, 1.5vw, 24px);
}
.band-dark .bg { position: absolute; inset: 0; z-index: -1; }
.band-dark .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.band-dark .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,7,23,.35), rgba(11,7,23,.88) 75%); }
.band-dark .kicker { color: #C7ABFF; }
.band-dark .lead { color: #C9C1DD; }
.band-dark .grad-text { background: linear-gradient(100deg, #C7ABFF, #F29BE6); -webkit-background-clip: text; background-clip: text; }
.sec-grid { display: grid; gap: 16px; }
.sec-item {
  padding: 26px; border-radius: 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.sec-item .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(183,148,255,.16); color: #D6C2FF; }
.sec-item .ico svg { width: 24px; height: 24px; }
.sec-item h3 { font-size: 1.2rem; margin-bottom: 8px; letter-spacing: -.015em; }
.sec-item p { margin: 0; color: #C9C1DD; font-size: .98rem; }
.sec-item .status { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.status.yes { color: #6EE7B7; } .status.part { color: #FCD34D; } .status.no { color: #FCA5A5; }
.status .icon { width: 16px; height: 16px; }
.band-dark .link-arrow { color: #D6C2FF; }
@media (min-width: 820px) { .sec-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Split / history ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }
.timeline { position: relative; display: grid; gap: 14px; }
.tl-row { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tl-row .ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--violet) 10%, var(--surface)); color: var(--accent-text); }
.tl-row .ico svg { width: 26px; height: 26px; }
.tl-row strong { display: block; font-size: 1.05rem; letter-spacing: -.01em; }
.tl-row span { color: var(--muted); font-size: .95rem; }
.retention { margin-top: 28px; padding: 22px; border-radius: 22px; border: 1px dashed var(--line-2); }
.retention-bar { position: relative; height: 14px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin: 14px 0 8px; }
.retention-bar i { position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: inherit; background: var(--grad); }
.retention-legend { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---------- Get Veep ---------- */
.get { display: grid; gap: 16px; }
.get-card {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 18px; align-content: start;
  padding: clamp(26px, 4vw, 44px); border-radius: 32px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
}
.get-card.feature { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); }
.get-card.feature .muted, .get-card.feature p { color: rgba(255,255,255,.88); }
.get-card.feature::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 300px; height: 210px; z-index: -1; opacity: .22;
  background: url("../brand/veep-mark-white-tight.webp") center / contain no-repeat;
}
.get-card .platform { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.get-card .platform .icon { width: 22px; height: 22px; }
.get-card h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; }
.get-card p { margin: 0; color: var(--muted); }
.get-card .btn-primary { background: #fff; color: #4A12B8; box-shadow: 0 12px 30px -10px rgba(20, 0, 60, .5); }
.get-card .meta { font-size: .9rem; font-weight: 600; }
.get-card .meta [data-apk-notes] { display: block; font-weight: 500; opacity: .9; margin-top: 4px; }
.qr-wrap { display: none; }
@media (min-width: 900px) {
  .get { grid-template-columns: 1.15fr 1fr; }
  .qr-wrap { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
  .qr-wrap img { width: 104px; height: 104px; border-radius: 14px; padding: 6px; background: #fff; box-shadow: var(--shadow-sm); }
  .qr-wrap small { font-size: .85rem; line-height: 1.4; max-width: 18ch; }
}
.ios-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.ios-steps li { counter-increment: s; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .98rem; }
.ios-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .8rem; font-weight: 800; background: color-mix(in srgb, var(--violet) 12%, transparent); color: var(--accent-text); }
.ios-steps .icon { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 112px) clamp(36px, 5vw, 64px); }
.page-hero .wrap { display: grid; gap: 22px; }
.page-hero .lead { max-width: 52ch; margin: 0; }
.page-hero .hero-bg { inset: -72px 0 0; }

/* ---------- Features page ---------- */
.toolbar {
  position: sticky; top: 72px; z-index: 20; padding-block: 14px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.toolbar .wrap { display: grid; gap: 12px; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  font-weight: 700; font-size: .92rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters button .n { font-size: .78rem; opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }
.search { position: relative; }
.search input {
  width: 100%; min-height: 48px; padding: 10px 16px 10px 46px; border-radius: 16px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
}
.search input::placeholder { color: var(--muted); }
.search .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
@media (min-width: 900px) {
  .toolbar .wrap { grid-template-columns: 1fr 320px; align-items: center; }
  .filters { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; }
}
.f-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .f-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .f-grid { grid-template-columns: repeat(3, 1fr); } }
.f-card { padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; transition: transform .3s var(--ease), box-shadow .3s; }
.f-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.f-card[hidden] { display: none; }
.comp-row { display: flex; margin-top: 6px; }
.comp-row img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); margin-left: -10px; box-shadow: 0 4px 12px rgba(40, 20, 90, .12); }
.comp-row img:first-child { margin-left: 0; }
.f-card .top { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.f-card .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--violet) 10%, var(--surface)); color: var(--accent-text); }
.f-card .ico svg { width: 22px; height: 22px; }
.f-card h3 { font-size: 1.12rem; letter-spacing: -.015em; line-height: 1.3; }
.f-card p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.f-empty { padding: 48px 0; text-align: center; color: var(--muted); }
.cat-title { margin: 0 0 18px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 4px; }
.cat-block + .cat-block { margin-top: 56px; }
.cat-title h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.cat-title span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.cat-block[hidden] { display: none; }

.showcase { display: grid; gap: 32px; align-items: center; }
.showcase > div:first-child { display: grid; gap: 22px; justify-items: start; }
.showcase > div:first-child .kicker { margin-bottom: 0; }
.showcase-phones { display: flex; justify-content: center; gap: 16px; }
.showcase-phones .phone { --w: min(42vw, 240px); }
.showcase-phones .phone:nth-child(2) { transform: translateY(40px); }
@media (min-width: 980px) { .showcase { grid-template-columns: 1fr 1.1fr; gap: 72px; } }

/* ---------- Download page ---------- */
.tabs { display: flex; gap: 6px; padding: 6px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs [role="tab"] {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 15px; border: 0; background: transparent;
  font-weight: 750; cursor: pointer; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s;
}
.tabs [role="tab"] .icon { width: 20px; height: 20px; }
.tabs [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
@media (max-width: 480px) { .tabs { width: 100%; gap: 4px; padding: 5px; } .tabs [role="tab"] { flex: 1 1 0; min-width: 0; gap: 6px; padding: 10px 6px; justify-content: center; font-size: .88rem; } .tabs [role="tab"] .icon { width: 17px; height: 17px; } }
.tabpanel { margin-top: 28px; }
.tabpanel[hidden] { display: none; }
.dl-grid { display: grid; gap: 20px; }
@media (min-width: 980px) { .dl-grid { grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; } }
.panel { padding: clamp(24px, 4vw, 40px); border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.panel h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.03em; margin-bottom: 12px; }
.panel h3 { font-size: 1.15rem; margin: 28px 0 12px; }
.panel > p { color: var(--muted); }
.version-box { display: grid; gap: 10px; margin: 22px 0; padding: 18px 20px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.version-box dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: .95rem; }
.version-box dt { color: var(--muted); font-weight: 600; }
.version-box dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.version-box .sha { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; font-weight: 500; }
.version-box .whatsnew { font-size: .95rem; color: var(--ink-2); margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.version-box .whatsnew strong { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding-left: 48px; min-height: 34px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--grad); color: #fff; }
.steps li strong { display: block; }
.steps li span { color: var(--muted); font-size: .96rem; }
.steps .icon { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; }
.side-card { padding: 26px; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 14px; justify-items: start; }
.side-card + .side-card { margin-top: 20px; }
.side-card h3 { font-size: 1.15rem; }
.side-card p { margin: 0; color: var(--muted); font-size: .97rem; }
.side-card .qr { width: 168px; height: 168px; padding: 8px; background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: 18px; background: color-mix(in srgb, var(--violet) 7%, transparent); border: 1px solid color-mix(in srgb, var(--violet) 18%, transparent); font-size: .95rem; color: var(--ink-2); }
.note .icon { width: 20px; height: 20px; color: var(--accent-text); margin-top: 2px; }
.note p { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease); opacity: .6; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Security page ---------- */
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .97rem; }
.matrix-wrap { border-radius: 24px; border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.matrix th, .matrix td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.matrix thead th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix tbody th { font-weight: 750; }
.matrix td .status { margin: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.status-pill .icon { width: 14px; height: 14px; }
.pill-yes { background: color-mix(in srgb, #10B981 16%, transparent); color: #05704F; }
.pill-part { background: color-mix(in srgb, #F59E0B 18%, transparent); color: #8A5300; }
.pill-no { background: color-mix(in srgb, #EF4444 14%, transparent); color: #A31B1B; }
@media (prefers-color-scheme: dark) { .pill-yes { color: #6EE7B7; } .pill-part { color: #FCD34D; } .pill-no { color: #FCA5A5; } }
@media (max-width: 760px) {
  .matrix thead { display: none; }
  .matrix, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; width: 100%; }
  .matrix tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .matrix tbody tr:last-child { border-bottom: 0; }
  .matrix th, .matrix td { padding: 4px 0; border: 0; }
  .matrix td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
}
.prose-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .prose-grid { grid-template-columns: repeat(2, 1fr); } }
.emoji-row { display: flex; gap: 10px; font-size: 1.8rem; margin: 6px 0 4px; }
.code-digits { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; letter-spacing: .08em; color: var(--ink-2); line-height: 1.8; word-spacing: .3em; }

/* ---------- Legal ---------- */
.legal { display: grid; gap: 40px; padding-bottom: clamp(64px, 9vw, 120px); }
@media (min-width: 1000px) { .legal { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; } }
.toc { position: sticky; top: 96px; padding: 20px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); font-size: .92rem; }
.toc strong { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent-text); text-decoration: underline; }
@media (max-width: 999px) { .toc { position: static; } }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 48px 0 14px; letter-spacing: -.02em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--accent-text); font-weight: 600; }
.prose .summary { padding: 22px 24px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 32px; }
.prose .summary p:last-child, .prose .summary ul:last-child { margin-bottom: 0; }
.updated { font-weight: 650; color: var(--muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; border-radius: clamp(28px, 4vw, 48px); padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px); background: var(--grad); color: #fff; }
.cta-band .pattern { background: #fff; opacity: .09; }
.cta-band h2 { font-size: clamp(2rem, 5.5vw, 4rem); letter-spacing: -.04em; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 46ch; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-primary { background: #fff; color: #4A12B8; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .mark { width: 92px; margin: 0 auto 22px; filter: drop-shadow(0 10px 24px rgba(40,0,90,.4)); }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.nf .bubble-lost { display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 22px 22px 6px 22px; background: var(--grad); color: #fff; font-weight: 650; box-shadow: var(--shadow); margin-bottom: 28px; }
.nf .bubble-lost .icon { width: 18px; height: 18px; opacity: .8; }
.nf h1 { margin-bottom: 16px; }
.nf .lead { margin: 0 auto 28px; }
.nf .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(48px, 7vw, 96px); padding-block: 56px 32px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 60%, var(--bg)); }
.foot-grid { display: grid; gap: 36px; }
.foot-brand p { color: var(--muted); max-width: 30ch; margin: 14px 0 0; }
.foot-brand .tagline { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink); line-height: 1.2; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.foot-cols h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 800; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-cols a { display: inline-block; padding: 4px 0; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .96rem; overflow-wrap: anywhere; }
.foot-cols a:hover { color: var(--accent-text); text-decoration: underline; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .9rem; }
@media (min-width: 760px) {
  .foot-grid { grid-template-columns: 1.2fr 2fr; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
}

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

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .float { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .skip, .toc { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Small helpers ---------- */
.more { margin: 32px 0 0; }
.split .h-1 { margin-bottom: 22px; }
.split .lead { max-width: 46ch; }
.nf { position: relative; overflow: hidden; isolation: isolate; }
.section-tight + .section-tight { padding-top: 0; }
.showcase-phones { padding-bottom: 44px; }
@media (max-width: 759px) { .foot-cols > div:last-child { grid-column: 1 / -1; } }
