/* ==========================================================================
   eBurst Website — Design System
   Brand: Sky Blue #3BB5F6 · Rose #EF5989 · Graphite
   Target: WCAG 2.2 AA · W3C-valid HTML5/CSS3 · reduced-motion aware
   ========================================================================== */


:root {
  color-scheme: dark;
  --bg: #07080c;
  --bg-2: #0b0d13;
  --surface: #10131b;
  --surface-2: #151925;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #eef0f6;
  --muted: #a7adbd;          /* 8.4:1 on --bg */
  --blue: #3bb5f6;           /* 8.9:1 on --bg */
  --pink: #ef5989;           /* 6.0:1 on --bg */
  --blue-ink: #3bb5f6;
  --pink-ink: #f47aa2;
  --on-accent: #07080c;
  --ok: #3ddc97;
  --code-s: #3ddc97;
  --code-n: #f5b454;
  --grad: linear-gradient(120deg, #3bb5f6 0%, #8f8cf0 50%, #ef5989 100%);
  --glow-blue: rgba(59, 181, 246, .18);
  --glow-pink: rgba(239, 89, 137, .16);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 76px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fb;
  --bg-2: #eef0f5;
  --surface: #ffffff;
  --surface-2: #f2f4f8;
  --line: rgba(10, 14, 24, .09);
  --line-strong: rgba(10, 14, 24, .18);
  --text: #0c0f17;
  --muted: #4a5163;          /* 8.1:1 on --bg */
  --blue-ink: #0a6aa1;       /* 5.6:1 on white */
  --pink-ink: #b8184f;       /* 6.2:1 on white */
  --on-accent: #07080c;
  --ok: #0b7a4b;
  --code-s: #0b7a4b;
  --code-n: #9a5b00;
  --glow-blue: rgba(59, 181, 246, .16);
  --glow-pink: rgba(239, 89, 137, .12);
  --shadow: 0 30px 70px -35px rgba(12, 18, 40, .35);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f7f8fb; --bg-2: #eef0f5; --surface: #ffffff; --surface-2: #f2f4f8;
    --line: rgba(10, 14, 24, .09); --line-strong: rgba(10, 14, 24, .18);
    --text: #0c0f17; --muted: #4a5163; --blue-ink: #0a6aa1; --pink-ink: #b8184f; --ok: #0b7a4b; --code-s: #0b7a4b; --code-n: #9a5b00;
    --glow-blue: rgba(59, 181, 246, .16); --glow-pink: rgba(239, 89, 137, .12);
    --shadow: 0 30px 70px -35px rgba(12, 18, 40, .35);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
::selection { background: var(--pink); color: #07080c; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
:focus-visible { outline-color: var(--blue-ink); }

.visually-hidden { 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-link { position: fixed; left: 16px; top: -80px; z-index: 1000; background: var(--blue); color: #07080c; padding: 12px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--alt { background: var(--bg-2); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: clamp(32px, 6vw, 88px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.05fr 1fr; } .split--rev > :first-child { order: 2; } }

/* ---------- Type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { .grad-text { color: CanvasText; background: none; } }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn { --b: var(--line-strong); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid var(--b); background: transparent; color: var(--text); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .35s; will-change: transform; }
.btn:hover { border-color: var(--text); }
.btn--primary { background: var(--grad); background-size: 200% 100%; color: var(--on-accent); border: 0; box-shadow: 0 10px 40px -10px rgba(239, 89, 137, .55); }
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 16px 50px -12px rgba(59, 181, 246, .6); }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: color-mix(in oklab, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 148px; height: auto; }
.brand .logo-light { display: none; }
[data-theme="light"] .brand .logo-dark, [data-theme="light"] .footer-brand .logo-dark { display: none; }
[data-theme="light"] .brand .logo-light, [data-theme="light"] .footer-brand .logo-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo-dark { display: none; }
  :root:not([data-theme="dark"]) .logo-light { display: block; }
}
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .25s, background .25s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--line); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; transition: background .25s, transform .3s var(--ease); }
.icon-btn:hover { background: var(--line); }
.icon-btn svg { width: 20px; height: 20px; }
.kbd { font-family: var(--font-mono); font-size: .72rem; border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.search-btn { display: none; gap: 10px; align-items: center; min-height: 44px; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; font-size: .9rem; }
.search-btn svg { width: 16px; height: 16px; }
.nav-cta { display: none; }
.menu-toggle { display: inline-grid; }
@media (min-width: 1100px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .nav-cta { display: inline-flex; }
  .search-btn { display: inline-flex; }
}

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); padding: 16px; transform: translateY(-100%); visibility: hidden; transition: transform .55s var(--ease), visibility 0s linear .55s; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; height: calc(var(--header-h) - 16px); }
.drawer nav ul { list-style: none; margin: 32px 0 0; padding: 0; }
.drawer nav a { display: block; padding: 14px 4px; font-family: var(--font-display); font-size: clamp(1.8rem, 8vw, 2.6rem); color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer nav a[aria-current="page"] { color: var(--blue-ink); }

/* ---------- Background ambience ---------- */
.ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.ambient::before, .ambient::after { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; filter: blur(80px); }
.ambient::before { background: radial-gradient(circle, var(--glow-blue), transparent 65%); top: -20%; left: -15%; animation: float-a 22s ease-in-out infinite alternate; }
.ambient::after { background: radial-gradient(circle, var(--glow-pink), transparent 65%); bottom: -25%; right: -15%; animation: float-b 26s ease-in-out infinite alternate; }
@keyframes float-a { to { transform: translate(12%, 10%) scale(1.1); } }
@keyframes float-b { to { transform: translate(-10%, -12%) scale(1.15); } }
.grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); opacity: .6; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-block: clamp(56px, 9vw, 120px) clamp(72px, 10vw, 140px); }
.hero .display { margin-bottom: 28px; }
.hero .lead { margin-bottom: 36px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; list-style: none; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .85rem; color: var(--muted); background: color-mix(in oklab, var(--surface) 60%, transparent); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span { grid-area: 1 / 1; }

/* code window */
.window { position: relative; border-radius: var(--radius); background: color-mix(in oklab, var(--surface) 88%, transparent); border: 1px solid var(--line-strong); box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(12px); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.window-bar i:nth-child(1) { background: #ff5f57; } .window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.code { margin: 0; padding: 22px 22px 26px; font-family: var(--font-mono); font-size: clamp(.78rem, 1.1vw, .9rem); line-height: 1.8; color: var(--text); white-space: pre-wrap; min-height: 330px; overflow: auto; }
.code .k { color: var(--pink-ink); } .code .s { color: var(--code-s); } .code .f { color: var(--blue-ink); } .code .c { color: var(--muted); } .code .n { color: var(--code-n); }
.caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-visual { position: relative; }
.floating-card { position: absolute; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: .85rem; display: flex; align-items: center; gap: 12px; }
.floating-card strong { display: block; font-size: 1.05rem; font-family: var(--font-display); }
.floating-card .muted { font-size: .78rem; }
.fc-1 { left: -18px; bottom: -44px; animation: bob 7s ease-in-out infinite; }
.fc-2 { right: -14px; top: -36px; animation: bob 8s ease-in-out -2s infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.ring { --p: 100; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#3ddc97 calc(var(--p) * 1%), var(--line) 0); font-weight: 700; font-size: .78rem; }
.ring span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); }
@media (max-width: 600px) { .fc-2 { display: none; } .fc-1 { left: 8px; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; border-block: 1px solid var(--line); padding-block: 22px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; list-style: none; margin: 0; padding: 0; }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-track li { font-family: var(--font-display); font-size: 1.25rem; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee-track li::after { content: "✦"; color: var(--pink-ink); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-wrap { position: relative; }
.marquee-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 2; background: var(--bg); }

/* ---------- Cards ---------- */
.card { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s, box-shadow .5s; overflow: hidden; isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), var(--glow-blue), transparent 45%); opacity: 0; transition: opacity .4s; }
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(135deg, rgba(59, 181, 246, .18), rgba(239, 89, 137, .18)); border: 1px solid var(--line-strong); }
.card-icon svg { width: 26px; height: 26px; stroke: var(--text); }
.card-link { position: static; display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-weight: 600; color: var(--text); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .35s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.price small { font-size: .85rem; color: var(--muted); font-family: var(--font-sans); font-weight: 400; }
.tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ticklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticklist li { position: relative; padding-left: 30px; }
.ticklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--pink)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center/contain no-repeat; mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E"); mask-position: center; mask-size: contain; mask-repeat: no-repeat; }

/* bento */
.bento { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(6, 1fr); }
.bento > * { grid-column: span 6; }
@media (min-width: 800px) {
  .bento .b-4 { grid-column: span 4; } .bento .b-2 { grid-column: span 2; } .bento .b-3 { grid-column: span 3; } .bento .b-6 { grid-column: span 6; }
}

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.stats > div { padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats dt { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1; margin-bottom: 8px; }
.stats dd { margin: 0; color: var(--muted); font-size: .95rem; }

/* device mockups */
.devices { position: relative; min-height: 420px; }
.device-laptop { position: relative; width: 86%; margin-left: auto; margin-right: 6%; }
.device-laptop .screen { aspect-ratio: 16 / 10; border-radius: 14px 14px 0 0; border: 10px solid #1b1f2a; background: var(--bg-2); overflow: hidden; }
.device-laptop .base { height: 14px; margin: 0 -6%; border-radius: 0 0 16px 16px; background: linear-gradient(#2a2f3c, #151821); }
.device-phone { position: absolute; left: 0; bottom: -10px; width: 30%; aspect-ratio: 9 / 19; border-radius: 30px; border: 8px solid #1b1f2a; background: var(--bg-2); overflow: hidden; box-shadow: var(--shadow); }
.mock-ui { height: 100%; padding: 8%; display: grid; gap: 7%; align-content: start; }
.mock-ui .bar { height: 10px; border-radius: 5px; background: var(--line-strong); }
.mock-ui .bar.w60 { width: 60%; } .mock-ui .bar.w40 { width: 40%; } .mock-ui .bar.w80 { width: 80%; }
.mock-ui .hero-blk { height: 38%; border-radius: 10px; background: var(--grad); opacity: .85; }
.mock-ui .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; }
.mock-ui .row div { aspect-ratio: 1; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.device-phone .mock-ui .hero-blk { height: 30%; }
.device-phone .mock-ui .row { grid-template-columns: 1fr 1fr; }

/* platform tabs */
.tabs { display: grid; gap: 28px; }
.tablist { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); justify-self: start; }
.tablist [role="tab"] { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background .3s, color .3s; }
.tablist [role="tab"] svg { width: 18px; height: 18px; stroke: currentColor; }
.tablist [role="tab"][aria-selected="true"] { background: var(--text); color: var(--bg); }
[role="tabpanel"] { animation: fade-up .5s var(--ease); }
[role="tabpanel"][hidden] { display: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }

/* timeline / process */
.steps { counter-reset: s; display: grid; gap: 0; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font-family: var(--font-mono); font-size: .9rem; color: var(--blue-ink); padding-top: 6px; }
.steps h3 { margin-bottom: .3em; }
@media (min-width: 900px) { .steps li { grid-template-columns: 120px 1fr 1.2fr; } .steps li p { grid-column: 3; margin: 0; } }

/* ---------- Pricing ---------- */
.billing { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 44px; flex-wrap: wrap; }
.switch { position: relative; width: 60px; height: 34px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); cursor: pointer; padding: 0; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); transition: transform .45s var(--ease); }
.switch[aria-checked="true"]::after { transform: translateX(26px); }
.save-pill { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(61, 220, 151, .14); color: var(--ok); }
.plan-group { display: flex; justify-content: center; margin-bottom: 36px; }
.pricing { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); align-items: stretch; }
.pricing--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.plan { display: flex; flex-direction: column; }
.plan .price-lg { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; margin: 18px 0 6px; }
.plan .price-lg small { font-size: 1rem; font-family: var(--font-sans); color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan .ticklist { margin: 26px 0 30px; flex: 1; }
.plan .btn { width: 100%; }
.plan--featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.badge { position: absolute; top: 22px; right: 22px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--grad); color: #07080c; }
.price-num { display: inline-block; transition: opacity .25s, transform .35s var(--ease); }
.price-num.is-changing { opacity: 0; transform: translateY(-8px); }

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-wrap:focus-visible { outline-offset: -3px; }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .95rem; }
.compare caption { text-align: left; padding: 22px 24px 8px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.compare th, .compare td { padding: 14px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th[scope="row"] { text-align: left; font-weight: 500; }
.compare thead th { font-family: var(--font-display); font-size: 1rem; position: sticky; top: 0; background: var(--surface); }
.compare tbody tr:hover { background: var(--line); }
.compare .grp th { text-align: left; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); background: var(--surface-2); }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--muted); }

/* ---------- Estimator ---------- */
.estimator { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .estimator { grid-template-columns: 1.4fr 1fr; align-items: start; } }
fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
legend { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 14px; padding: 0; }
.opt-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.opt label { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; transition: border-color .25s, background .25s, box-shadow .25s; height: 100%; }
.opt label b { font-weight: 600; }
.opt label span { font-size: .88rem; color: var(--muted); }
.opt input:checked + label { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: color-mix(in oklab, var(--blue) 8%, var(--surface)); }
.opt input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 3px; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary .total { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; line-height: 1; margin: 10px 0 4px; }
.summary ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 8px; font-size: .95rem; }
.summary li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
input[type="range"] { width: 100%; accent-color: var(--pink); min-height: 44px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .req { color: var(--pink-ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); transition: border-color .25s, box-shadow .25s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--glow-blue); }
.field [aria-invalid="true"] { border-color: var(--pink); }
.hint { font-size: .85rem; color: var(--muted); }
.error-msg { font-size: .88rem; color: var(--pink-ink); font-weight: 600; min-height: 1.2em; }
.error-msg:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-strong); }
.form-status:empty { display: none; }
.form-status.ok { border-color: #3ddc97; background: rgba(61, 220, 151, .08); }
.form-status.err { border-color: var(--pink); background: rgba(239, 89, 137, .08); }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--pink); flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .3s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; font-weight: 600; font-size: 1.05rem; position: relative; min-height: 44px; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: calc(var(--radius) + 8px); padding: clamp(40px, 7vw, 96px); text-align: center; border: 1px solid var(--line-strong); background: var(--surface); }
.cta::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 180deg, transparent, var(--glow-blue), transparent 30%, var(--glow-pink), transparent 60%); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.cta .lead { margin-inline: auto; margin-bottom: 34px; }
.cta .btn-row { justify-content: center; }

/* ---------- Page hero (inner) ---------- */
.page-hero { position: relative; isolation: isolate; padding-block: clamp(56px, 8vw, 110px) clamp(40px, 6vw, 72px); }
.page-hero .display { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 22px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 24px; font-size: .9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 72px 36px; background: var(--bg-2); font-size: .95rem; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-brand { grid-column: 1 / -1; max-width: 380px; }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr repeat(5, 1fr); } .footer-brand { grid-column: auto; } }
.footer-brand img { width: 150px; margin-bottom: 18px; }
.footer-brand .logo-light { display: none; }
.site-footer h2 { font-size: .8rem; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer ul a { color: var(--text); text-decoration: none; display: inline-block; padding: 6px 0; min-height: 24px; }
.site-footer ul a:hover { color: var(--blue-ink); text-decoration: underline; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .88rem; }
.footer-bottom a { color: var(--muted); }
address { font-style: normal; }

/* ---------- Command palette ---------- */
.palette { width: min(640px, calc(100% - 32px)); max-height: min(560px, 80vh); padding: 0; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .75); margin-top: 12vh; overflow: hidden; }
.palette::backdrop { background: rgba(4, 5, 8, .6); backdrop-filter: blur(6px); }
.palette[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.palette-input svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.palette input { flex: 1; min-height: 60px; border: 0; background: transparent; font-size: 1.05rem; }
.palette input:focus { outline: none; }
.palette ul { list-style: none; margin: 0; padding: 8px; overflow-y: auto; max-height: 420px; }
.palette li a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; color: var(--text); text-decoration: none; }
.palette li a[aria-selected="true"], .palette li a:hover { background: var(--line); }
.palette li a span { color: var(--muted); font-size: .85rem; }
.palette .empty { padding: 24px; color: var(--muted); text-align: center; }

/* ---------- Toast / progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); z-index: 300; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); background: var(--surface); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

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

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.note { font-size: .9rem; color: var(--muted); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.pill-list li { font-size: .82rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.spacer { height: clamp(24px, 4vw, 48px); }

/* ---------- Motion & contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 12px; }
  .marquee-track li[aria-hidden] { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; padding-inline: 16px; }
  .marquee-toggle { display: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(255, 255, 255, .3); --line-strong: rgba(255, 255, 255, .55); --muted: #d0d4de; }
}
@media print {
  .site-header, .site-footer, .ambient, .grid-bg, .to-top, .progress, .marquee-wrap, .cta { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- v2 additions ---------- */
.xlist { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; color: var(--muted); }
.xlist li { position: relative; padding-left: 30px; }
.xlist li::before { content: "—"; position: absolute; left: 4px; color: var(--pink-ink); }
.plan h4.tag { margin: 22px 0 12px; }
.plan .ticklist { margin-top: 0; }
.check-grid { display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.check label { font-weight: 500; }
fieldset.field legend { font-size: 1rem; font-family: var(--font-sans); margin-bottom: 12px; }
.opt-grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.opt label span { line-height: 1.55; }
.opt-price { color: var(--text); }
.opt input:disabled + label { opacity: .55; cursor: not-allowed; }
.save-pill--alt { background: rgba(239, 89, 137, .14); color: var(--pink-ink); }
.build-toggle { margin-bottom: 36px; }
fieldset .build-toggle { justify-content: flex-start; margin-bottom: 0; }
.powered { font-size: .9rem; color: var(--muted); }
.powered strong { color: var(--text); }
.info-card .ticklist { margin: 0; }
input[type="number"] { max-width: 220px; }

/* ---------- v3: per-service build switch ---------- */
.card-toggle { display: inline-flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: .92rem; }
.card-toggle .tag { color: var(--pink-ink); }
.build-card .price-lg { margin-top: 18px; }
.variant { margin-top: 4px; animation: fade-up .4s var(--ease); }
.variant[hidden], .note[hidden] { display: none; }
.manage { font-size: .92rem; padding: 12px 14px; border-radius: 12px; margin: 16px 0 0; border: 1px solid var(--line); }
.manage--wp { background: color-mix(in oklab, var(--ok) 9%, transparent); }
.manage--coded { background: color-mix(in oklab, var(--pink) 9%, transparent); }
.upg-note { margin: 18px 0; }
table.compare--2 { min-width: 560px; }

/* ---------- Legal pages ---------- */
.legal { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .legal { grid-template-columns: 280px 1fr; } .toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; } }
.toc { padding: 24px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 4px; font-size: .92rem; }
.toc a { color: var(--muted); text-decoration: none; display: inline-block; padding: 3px 0; }
.toc a:hover { color: var(--text); text-decoration: underline; }
.prose h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.prose .table-wrap { margin: 16px 0 8px; }
.legal-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; }
.legal-links a { color: var(--muted); display: inline-block; padding: 4px 0; }
fieldset.field > legend.h3 { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.35rem); margin-bottom: 16px; }
#partner-form > fieldset.field { padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Our Companies dropdown ---------- */
.nav-links a { padding: 8px 12px; }
.nav-more { position: relative; }
.nav-more-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 500; font-size: .95rem; cursor: pointer; transition: color .25s, background .25s; }
.nav-more-btn:hover, .nav-more-btn[aria-expanded="true"] { color: var(--text); background: var(--line); }
.nav-more-btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.nav-more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-panel { position: absolute; top: calc(100% + 12px); right: -40px; width: 400px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: pop .25s var(--ease); z-index: 120; }
.nav-panel[hidden] { display: none; }
.nav-panel > .tag { margin: 0 0 10px 8px; }
.co-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.co-list a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--text); transition: background .2s; }
.co-list a:hover, .co-list a:focus-visible { background: var(--line); }
.co-q { font-weight: 600; font-size: .95rem; }
.co-name { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-ink); font-size: .9rem; font-weight: 600; }
.co-desc { color: var(--muted); font-size: .85rem; }
.ext { width: 13px; height: 13px; flex-shrink: 0; }
.drawer { overflow-y: auto; grid-template-rows: auto auto auto 1fr; gap: 20px; }
.drawer-companies { border-top: 1px solid var(--line); padding-top: 16px; }
.drawer-companies .tag { margin: 0 0 6px; }
.co-list--drawer a { padding: 10px 4px; }
.search-btn { padding: 0 12px; }
.nav-links a, .nav-more-btn, .btn { white-space: nowrap; }
.search-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.container--wide { width: min(100% - 32px, 1360px); }
.nav-links a, .nav-more-btn { padding: 8px 10px; font-size: .92rem; }
.nav { gap: 12px; }

/* ==========================================================================
   Polish pass — consistency & refinement
   ========================================================================== */
/* Badges sit on the card edge instead of colliding with titles */
.plan { padding-top: clamp(30px, 3.4vw, 40px); }
.badge { top: -12px; right: auto; left: 24px; box-shadow: 0 6px 20px -6px rgba(239, 89, 137, .6); }
.plan--featured { overflow: visible; }
.card.plan { overflow: visible; }

/* Stats: clean 2 × 2 grid with hairlines */
.stats { grid-template-columns: repeat(2, 1fr); }
.stats > div { border-right: 0; border-bottom: 0; }
.stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } .stats > div { border-right: 0 !important; border-bottom: 1px solid var(--line); } .stats > div:last-child { border-bottom: 0; } }

/* Hero floating card: single, tidy */
.fc-1 { left: auto; right: 24px; bottom: -26px; }

/* Partner band */
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(26px, 3.5vw, 40px); border-radius: var(--radius); border: 1px solid var(--line-strong); background: linear-gradient(120deg, color-mix(in oklab, var(--blue) 8%, var(--surface)), color-mix(in oklab, var(--pink) 8%, var(--surface))); }
.band > div { max-width: 720px; }
.band .eyebrow { margin-bottom: 10px; }
.band h2 { margin-bottom: 8px; }

/* Service cards: compact management line */
.manage-line { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.manage-line svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; stroke: currentColor; }
.manage-line strong { color: var(--text); }
.manage-line--wp svg { color: var(--ok); }
.manage-line--coded svg { color: var(--pink-ink); }
.pill-price { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: 999px; font-family: var(--font-sans); font-size: .78rem; font-weight: 700; color: var(--pink-ink); background: color-mix(in oklab, var(--pink) 12%, transparent); }
.build-card .card-toggle { margin-top: 20px; }
.build-card h4.tag { margin: 24px 0 12px; }
.build-card .ticklist { margin: 0; gap: 8px; }
.build-card .ticklist li { font-size: .95rem; }
.build-card .upg-note { margin: 22px 0 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.build-card .xlist { margin-bottom: 0; }

/* Contact layout */
.contact-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.7fr 1fr; } }

/* Footer */
.site-footer { padding-block: 80px 32px; }
.footer-top { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .footer-top { grid-template-columns: 1.1fr 1.6fr; gap: 80px; } }
.footer-brand { max-width: 420px; }
.footer-brand img { width: 160px; }
.footer-contact { display: grid; gap: 6px; margin-top: 18px; font-size: .95rem; }
.footer-contact a { color: var(--text); text-decoration: none; }
.footer-contact a:hover { color: var(--blue-ink); text-decoration: underline; }
.footer-cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.site-footer .legal-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-bottom { align-items: center; }

/* Section heads: consistent measure */
.section-head .lead { max-width: 640px; }
.page-hero .lead { max-width: 680px; }

/* Nav dropdown: calmer */
.nav-panel { width: 380px; right: 0; }
.co-list a { padding: 12px; }

/* Card grids breathe a little more */
.grid-3 .card p.muted, .bento .card p.muted { font-size: .98rem; }
.ticklist { align-content: start; }
.build-card .ticklist { flex: none; }
.plan > .btn:last-child { margin-top: auto; }
.build-card .upg-note { margin-top: auto; }
.build-card .upg-note ~ .btn { margin-top: 0; }


/* ==========================================================================
   Refined design layer (v9) — calmer, more editorial, more premium
   ========================================================================== */
:root { --radius: 16px; --header-h: 84px; }

/* Layout rhythm */
.section { padding-block: clamp(80px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { margin-bottom: clamp(36px, 4.5vw, 56px); }

/* Typography */
.display { font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.04; letter-spacing: -.032em; font-weight: 600; }
.page-hero .display { font-size: clamp(2.25rem, 4.2vw, 3.5rem); }
.h2 { font-size: clamp(1.9rem, 3.3vw, 2.75rem); letter-spacing: -.025em; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.2rem); line-height: 1.7; }
.eyebrow { font-family: var(--font-sans); font-weight: 600; font-size: .8rem; letter-spacing: .12em; margin-bottom: 14px; }
.eyebrow::before, .section-head.center .eyebrow::after { display: none; }

/* Quieter backgrounds */
.grid-bg { display: none; }
.ambient { opacity: .7; }
.page-hero { padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero .ambient::after { display: none; }

/* Header */
.site-header { height: var(--header-h); background: color-mix(in oklab, var(--bg) 70%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.nav { gap: 24px; }
.brand { padding-block: 10px; }
.brand img { width: auto; height: 56px; }
.nav-primary { flex: 1; display: flex; justify-content: center; }
.nav-links { gap: 2px; }
.nav-links a, .nav-more-btn { padding: 8px 14px; font-size: .95rem; font-weight: 500; color: var(--muted); border-radius: 10px; }
.nav-links a:hover, .nav-more-btn:hover, .nav-more-btn[aria-expanded="true"] { color: var(--text); background: var(--line); }
.nav-links a[aria-current="page"], .nav-more-btn.is-current { color: var(--text); background: transparent; box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav-actions { gap: 6px; }
.nav-actions .icon-btn { border-color: transparent; }
.nav-actions .icon-btn:hover { background: var(--line); }
.search-btn { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.nav-cta { margin-left: 8px; }
.nav-panel { top: calc(100% + 10px); width: 360px; padding: 10px; border-radius: 14px; }
.nav-panel--left { left: 0; right: auto; }
.nav-panel > .tag { margin: 8px 12px 6px; }
.co-list a { padding: 12px 14px; border-radius: 10px; }
.co-list a[aria-current="page"] .co-q { color: var(--blue-ink); }

/* Buttons: solid, confident */
.btn { border-radius: 10px; min-height: 48px; padding: 12px 22px; font-weight: 600; }
.btn--sm { min-height: 42px; padding: 8px 18px; }
.btn--primary { background: var(--blue); color: #06121c; box-shadow: none; }
.btn--primary:hover { background: #69c8f8; box-shadow: 0 10px 30px -12px rgba(59, 181, 246, .7); }
[data-theme="light"] .btn--primary { background: #0a6aa1; color: #fff; }
[data-theme="light"] .btn--primary:hover { background: #085a89; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn--primary { background: #0a6aa1; color: #fff; } }

/* Hero */
.hero { padding-block: clamp(64px, 8vw, 112px) clamp(72px, 9vw, 128px); }
.hero-grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero .display { margin-bottom: 24px; max-width: 15ch; }
.hero .lead { margin-bottom: 32px; max-width: 34em; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .85rem; font-weight: 500; color: var(--muted); }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 20%, transparent); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 36px 0 0; padding: 0; font-size: .92rem; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 16px; height: 16px; background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); mask-size: contain; mask-repeat: no-repeat; }
.window { border-radius: 14px; }
.code { min-height: 300px; font-size: clamp(.78rem, 1vw, .88rem); }

/* Service grid */
.svc-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.svc-card { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.svc-card:hover { border-color: color-mix(in oklab, var(--blue) 45%, var(--line)); transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.svc-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in oklab, var(--blue) 12%, transparent); }
.svc-icon svg { width: 22px; height: 22px; stroke: var(--blue-ink); }
.svc-body { display: grid; gap: 8px; flex: 1; }
.svc-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.svc-text { color: var(--muted); font-size: .98rem; line-height: 1.6; }
.svc-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--blue-ink); }
.svc-more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.svc-card:hover .svc-more svg { transform: translateX(4px); }

/* Stats */
.stats { border-radius: var(--radius); background: var(--surface); }
.stats > div { padding: 32px 28px; }
.stats dt { font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -.02em; }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.process li { padding-top: 22px; border-top: 2px solid var(--line-strong); }
.process li:first-child { border-top-color: var(--blue); }
.process .num { display: block; font-family: var(--font-mono); font-size: .82rem; color: var(--blue-ink); margin-bottom: 14px; }
.process h3 { font-size: 1.2rem; margin-bottom: 8px; }
.process p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Cards everywhere: quieter */
.card { border-radius: var(--radius); }
.card::before { display: none; }
.card:hover { transform: none; box-shadow: none; border-color: var(--line-strong); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in oklab, var(--blue) 12%, transparent); border: 0; margin-bottom: 18px; }
.card-icon svg { width: 22px; height: 22px; stroke: var(--blue-ink); }
.plan--featured { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--blue), var(--pink)) border-box; }
.badge { background: var(--blue); color: #06121c; }

/* FAQ + CTA: simpler */
.faq details { border-radius: 12px; }
.cta { border-radius: 20px; background: linear-gradient(135deg, color-mix(in oklab, var(--blue) 14%, var(--surface)), color-mix(in oklab, var(--pink) 12%, var(--surface))); }
.cta::before { display: none; }
.cta .eyebrow { justify-content: center; }

/* Partner band */
.band { background: var(--surface); }

/* Footer */
.site-footer { background: var(--bg-2); }
.footer-brand img { width: auto; height: 64px; }
.nav-panel .co-list a { color: var(--text); padding: 12px 14px; font-size: 1rem; background: transparent; box-shadow: none; border-radius: 10px; }
.nav-panel .co-list a:hover, .nav-panel .co-list a:focus-visible { background: var(--line); }
.nav-panel .co-q { font-size: .98rem; }
.nav-panel .co-desc { font-size: .86rem; }

/* ---------- Our Companies — mega panel ---------- */
.nav-panel--mega { width: min(760px, calc(100vw - 32px)); left: 50%; right: auto; transform: translateX(-50%); padding: 0; overflow: hidden; }
.mega-head { padding: 22px 24px 6px; }
.mega-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.mega-sub { margin: 0; font-size: .9rem; color: var(--muted); }
.co-grid { list-style: none; margin: 0; padding: 14px; display: grid; gap: 10px; }
.co-grid--panel { grid-template-columns: repeat(3, 1fr); }
.co-grid li { display: flex; }
.co-card { display: flex; flex-direction: column; gap: 14px; width: 100%; padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); text-decoration: none; transition: border-color .25s, background .25s, transform .3s var(--ease); }
.co-card:hover, .co-card:focus-visible { border-color: color-mix(in oklab, var(--blue) 45%, var(--line)); background: var(--surface-2); text-decoration: none; }
.co-card:hover { transform: translateY(-2px); }
.co-mark { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: #fff; letter-spacing: -.02em; }
.co-card--0 .co-mark { background: linear-gradient(135deg, #1f6fb2, #3bb5f6); }
.co-card--1 .co-mark { background: linear-gradient(135deg, #b8184f, #ef5989); }
.co-card--2 .co-mark { background: linear-gradient(135deg, #4b4f9e, #8f8cf0); }
.co-info { display: grid; gap: 4px; flex: 1; align-content: start; }
.co-cat { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.co-name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; line-height: 1.25; color: var(--text); }
.co-desc { font-size: .86rem; line-height: 1.5; color: var(--muted); margin-top: 2px; }
.co-url { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: .84rem; font-weight: 600; color: var(--blue-ink); overflow-wrap: anywhere; }
.co-url .ext { width: 14px; height: 14px; flex-shrink: 0; transition: transform .25s var(--ease); }
.co-card:hover .co-url .ext { transform: translate(2px, -2px); }
.mega-foot { margin: 0; padding: 12px 24px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); background: var(--bg-2); }
/* Drawer (mobile) version */
.drawer-companies .mega-title { margin-bottom: 10px; }
.co-grid--drawer { padding: 0; gap: 8px; }
.co-grid--drawer .co-card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 14px; }
.co-grid--drawer .co-desc { display: none; }
.co-grid--drawer .co-url { margin-top: 4px; }
/* Neutralise top-level nav link styles inside the mega panel */
.nav-links .nav-panel a.co-card { display: flex; flex-direction: column; align-items: flex-start; white-space: normal; min-height: 0; padding: 18px; font-size: 1rem; font-weight: 400; color: var(--text); border-radius: 12px; box-shadow: none; background: var(--bg-2); }
.nav-links .nav-panel a.co-card:hover, .nav-links .nav-panel a.co-card:focus-visible { background: var(--surface-2); color: var(--text); }
.nav-links .nav-panel .co-list a { white-space: normal; display: grid; }
.co-grid--panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nav-panel--mega { width: min(820px, calc(100vw - 32px)); }
.co-info { height: 100%; }
.co-grid--panel .co-url { margin-top: auto; padding-top: 12px; font-size: .8rem; overflow-wrap: normal; white-space: nowrap; }
.co-grid--panel .co-desc { margin-bottom: 4px; }
.co-grid--panel .co-info { display: flex; flex-direction: column; gap: 4px; }
