/* ==========================================================================
   Doddy — Design System
   Premium light theme. Indigo accent. System font stack.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #fafbfc;
  --bg-tint: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --ink: #0b0d12;
  --ink-2: #1c1f27;
  --ink-3: #2c3140;
  --muted: #6b7280;
  --muted-2: #9aa1ad;
  --line: #e7e9ee;
  --line-2: #eef0f4;
  --accent: #5e5ce6;
  --accent-2: #4a48d6;
  --accent-soft: #eeedff;
  --accent-ink: #2a297a;
  --success: #0d9362;
  --success-soft: #e6f7ef;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #b91c1c;
  --gold: #b78900;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(11, 13, 18, 0.04);
  --shadow-sm: 0 2px 6px rgba(11, 13, 18, 0.05), 0 1px 2px rgba(11, 13, 18, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 13, 18, 0.06), 0 2px 4px rgba(11, 13, 18, 0.04);
  --shadow-lg: 0 24px 60px rgba(11, 13, 18, 0.10), 0 4px 8px rgba(11, 13, 18, 0.04);
  --ring: 0 0 0 3px rgba(94, 92, 230, 0.18);
  --header-h: 64px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
ul, ol { padding-left: 18px; }

/* ---------- Layout ---------- */
.container { width: min(1180px, 92vw); margin: 0 auto; }
.container-sm { width: min(820px, 92vw); margin: 0 auto; }
.section { padding: 88px 0; position: relative; }
.section-tight { padding: 56px 0; }
.section-loose { padding: 120px 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head h2 { margin: 12px 0 10px; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 { margin: 0 0 12px; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; line-height: 1.25; }
h4 { font-size: .98rem; letter-spacing: -0.01em; }
p  { margin: 0 0 12px; }
.lead { font-size: 1.13rem; color: var(--ink-3); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.tiny  { font-size: .78rem; }
.mono  { font-family: var(--mono); font-size: .85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 4px 14px rgba(11,13,18,.18);
}
.btn-primary:hover { background: #000; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 20px rgba(11,13,18,.22); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 18px rgba(94,92,230,.32);
}
.btn-accent:hover { background: var(--accent-2); }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { border-color: var(--ink-3); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-lg { padding: 14px 22px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 8px 12px; font-size: .85rem; border-radius: 8px; }
.btn-block { display: flex; width: 100%; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.kbd-arrow { display: inline-block; transform: translateY(-1px); }

/* ---------- Pills, badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .78rem; font-weight: 600;
  color: var(--ink-3);
}
.pill-accent { background: var(--accent-soft); border-color: #d8d6ff; color: var(--accent-ink); }
.pill-success { background: var(--success-soft); border-color: #b8ecd4; color: var(--success); }
.pill-warn { background: var(--warn-soft); border-color: #fde68a; color: var(--warn); }
.pill-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 6px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card-elev { box-shadow: var(--shadow-md); }
.card-flat { box-shadow: none; }
.card-tight { padding: 16px; }
.card-loose { padding: 28px; }
.card h3 { margin-top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.92);
  border-bottom-color: var(--line);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
  color: var(--ink);
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #8a78ff 60%, #b4a3ff);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 4px 10px rgba(94,92,230,.35);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 6px; border-radius: 4px;
  background: rgba(255,255,255,.92);
  mask: radial-gradient(circle at 60% 40%, transparent 30%, #000 31%);
  -webkit-mask: radial-gradient(circle at 60% 40%, transparent 30%, #000 31%);
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .92rem;
  color: var(--ink-3);
  font-weight: 500;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center; justify-content: center;
  padding: 0;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
}
.mobile-menu .backdrop {
  position: absolute; inset: 0;
  background: rgba(11,13,18,.36);
  opacity: 0;
  transition: opacity .25s ease;
}
.mobile-menu .panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 86vw);
  background: #fff;
  padding: 22px;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { pointer-events: auto; visibility: visible; }
.mobile-menu.open .backdrop { opacity: 1; }
.mobile-menu.open .panel { transform: translateX(0); }
.mobile-menu .panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.mobile-menu .panel-head .close {
  width: 36px; height: 36px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-menu nav a {
  display: block;
  padding: 14px 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.mobile-menu .panel-foot {
  margin-top: auto;
  padding-top: 16px;
  display: grid; gap: 8px;
}
.mobile-menu .panel-foot .muted { font-size: .85rem; }

body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 64px;
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -60px -10% auto -10%; height: 520px;
  background:
    radial-gradient(60% 60% at 20% 30%, rgba(94,92,230,.10), transparent 60%),
    radial-gradient(50% 50% at 80% 20%, rgba(120,108,255,.10), transparent 60%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 .accent { background: linear-gradient(120deg, var(--accent), #8a78ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 14px; max-width: 540px; }
.hero .meta-row {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  margin-top: 16px;
  color: var(--muted);
  font-size: .9rem;
}
.hero .meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.hero .ctas { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.hero .micro-trust {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; gap: 16px 22px;
  color: var(--muted-2);
  font-size: .82rem;
}
.hero .micro-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero .micro-trust svg { width: 14px; height: 14px; color: var(--success); }

/* ---------- Browser & phone frames ---------- */
.frame-browser {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.frame-browser .chrome {
  height: 32px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  background: #f4f5f8;
  border-bottom: 1px solid var(--line-2);
}
.frame-browser .chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: #d8dbe1; }
.frame-browser .chrome .dot.r { background: #ff6058; }
.frame-browser .chrome .dot.y { background: #ffbd2e; }
.frame-browser .chrome .dot.g { background: #28c941; }
.frame-browser .chrome .url {
  flex: 1;
  height: 20px; border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 8px;
  font-family: var(--mono); font-size: .72rem; color: var(--muted);
}
.frame-browser .chrome .url svg { width: 11px; height: 11px; margin-right: 6px; color: var(--success); }
.frame-browser .surface { padding: 18px; }

.frame-phone {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 8px;
  box-shadow: var(--shadow-md);
  width: 200px;
}
.frame-phone .screen {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  aspect-ratio: 9 / 19;
}
.frame-phone .notch {
  width: 60px; height: 14px; background: #0b0d12; border-radius: 0 0 10px 10px;
  margin: 0 auto;
  position: relative; z-index: 2;
}

/* ---------- Mock template (CSS-rendered visual) ---------- */
.mock {
  --m-bg: #fff;
  --m-ink: #0b0d12;
  --m-muted: #c8ccd4;
  --m-line: #eef0f4;
  --m-accent: var(--accent);
  --m-accent-soft: var(--accent-soft);
  font-family: var(--font);
  color: var(--m-ink);
  background: var(--m-bg);
  border-radius: 10px;
  padding: 14px;
  display: grid; gap: 10px;
}
.mock .m-nav { display: flex; align-items: center; justify-content: space-between; }
.mock .m-logo { width: 40px; height: 8px; background: var(--m-ink); border-radius: 3px; }
.mock .m-menu { display: flex; gap: 6px; }
.mock .m-menu i { display: block; width: 24px; height: 4px; background: var(--m-muted); border-radius: 2px; }
.mock .m-cta { width: 50px; height: 16px; background: var(--m-accent); border-radius: 4px; }
.mock .m-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; align-items: center; }
.mock .m-h1 { height: 10px; background: var(--m-ink); border-radius: 4px; width: 90%; }
.mock .m-h1.sm { height: 7px; width: 70%; background: var(--m-muted); margin-top: 4px; }
.mock .m-h2 { height: 5px; background: var(--m-muted); border-radius: 3px; width: 80%; margin-top: 4px; }
.mock .m-buttons { display: flex; gap: 6px; margin-top: 6px; }
.mock .m-b { height: 14px; width: 42px; border-radius: 4px; background: var(--m-ink); }
.mock .m-b.outline { background: transparent; border: 1px solid var(--m-line); }
.mock .m-img {
  border-radius: 6px;
  background:
    linear-gradient(135deg, var(--m-accent-soft), #fff);
  border: 1px solid var(--m-line);
  aspect-ratio: 4 / 3;
  position: relative;
}
.mock .m-img::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 25%; bottom: 25%;
  background:
    linear-gradient(135deg, rgba(94,92,230,.5), rgba(138,120,255,.4));
  border-radius: 4px;
  opacity: .85;
}
.mock .m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mock .m-card { border: 1px solid var(--m-line); border-radius: 6px; padding: 6px; background: #fff; }
.mock .m-card .ln { display: block; height: 4px; background: var(--m-muted); border-radius: 2px; }
.mock .m-card .ln.dark { background: var(--m-ink); width: 60%; margin-bottom: 4px; height: 5px; }
.mock .m-card .ln.sm { width: 80%; margin-top: 3px; }
.mock .m-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mock .m-bar { height: 6px; background: var(--m-muted); border-radius: 3px; opacity: .6; }
.mock .m-bar.full { width: 100%; }
.mock .m-bar.dark { background: var(--m-ink); opacity: 1; height: 8px; }

/* Niche-themed variants */
.theme-clinic { --m-accent: #14b8a6; --m-accent-soft: #ccfbf1; }
.theme-salon { --m-accent: #ec4899; --m-accent-soft: #fce7f3; }
.theme-d2c { --m-accent: #f59e0b; --m-accent-soft: #fef3c7; }
.theme-local { --m-accent: #2563eb; --m-accent-soft: #dbeafe; }
.theme-realestate { --m-accent: #0f766e; --m-accent-soft: #d1fae5; }
.theme-agency { --m-accent: #6d28d9; --m-accent-soft: #ede9fe; }

/* Phone mock — vertical stack */
.mock-phone {
  padding: 10px;
  gap: 6px;
}
.mock-phone .m-nav { padding-bottom: 4px; border-bottom: 1px solid var(--m-line); }
.mock-phone .m-logo { width: 32px; }
.mock-phone .m-menu i { width: 14px; }
.mock-phone .m-hero { grid-template-columns: 1fr; }
.mock-phone .m-img { aspect-ratio: 5 / 4; }
.mock-phone .m-cards { grid-template-columns: 1fr; gap: 6px; }
.mock-phone .m-card { padding: 5px; }
.mock-phone .m-card .ln.dark { width: 50%; }

/* ---------- Marquee / logos ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 18px;
}
.logo-cell {
  height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-2);
  font-weight: 700; letter-spacing: -.01em;
  opacity: .9;
}
.logo-cell svg { height: 22px; width: auto; }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-2-asym { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- Product cards ---------- */
.product-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d6d9e0;
}
.product-card .visual {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px;
}
.product-card .pc-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.product-card .pc-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.product-card .pc-desc { color: var(--muted); font-size: .92rem; margin: 0; }
.product-card .pc-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.product-card .pc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.product-card .pc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line-2);
  padding-top: 12px; margin-top: 2px;
}
.product-card .pc-price { font-weight: 800; letter-spacing: -.01em; }
.product-card .pc-price em { font-style: normal; color: var(--muted); font-weight: 500; font-size: .85rem; margin-left: 4px; }

/* ---------- Tables ---------- */
.table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.table th, .table td { padding: 14px 16px; text-align: left; vertical-align: top; font-size: .92rem; }
.table thead th { background: var(--surface-2); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.table tbody td { border-bottom: 1px solid var(--line-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.center, .table th.center { text-align: center; }
.cell-yes { color: var(--success); font-weight: 700; }
.cell-no { color: var(--danger); font-weight: 700; opacity: .8; }
.cell-mid { color: var(--warn); font-weight: 700; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.input, select, textarea {
  width: 100%;
  font: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
textarea { resize: vertical; }

/* ---------- Lighthouse-style score block ---------- */
.scoreboard {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.score {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  text-align: center;
  display: grid; gap: 4px;
}
.score-ring {
  --val: 98;
  --col: var(--success);
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 6px;
  background:
    conic-gradient(var(--col) calc(var(--val) * 1%), #ecedf1 0);
  position: relative;
  display: grid; place-items: center;
  color: var(--col);
  font-weight: 800; font-size: 1.05rem;
}
.score-ring::before {
  content: "";
  position: absolute; inset: 6px; border-radius: 50%; background: #fff;
}
.score-ring span { position: relative; }
.score .label { font-size: .82rem; color: var(--muted); }
.score .ttl { font-weight: 700; }

/* ---------- Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}
.stat .v { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.stat .k { color: var(--muted); font-size: .85rem; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 8px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}
.faq details + details { margin-top: 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .18s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 18px 18px; color: var(--ink-3); }
.faq details > div p { margin: 0 0 8px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.step .n {
  width: 30px; height: 30px;
  background: var(--ink); color: #fff;
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 800; font-size: .85rem;
}
.step h4 { margin: 0 0 4px; }
.step p { color: var(--muted); margin: 0; font-size: .92rem; }

/* ---------- Comparison ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.compare-grid > div {
  border-bottom: 1px solid var(--line-2);
  padding: 14px 16px;
  font-size: .92rem;
}
.compare-grid > div:nth-child(-n+4) {
  background: var(--surface-2);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.compare-grid > div:nth-child(4n+1) { background: var(--surface-2); font-weight: 600; }
.compare-grid > div:nth-child(4n+2) { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid ul a { color: var(--ink-3); font-size: .92rem; }
.footer-grid ul a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .85rem;
}
.footer-bottom .pay {
  display: inline-flex; gap: 10px; align-items: center;
  color: var(--muted-2);
}
.footer-bottom .pay svg { height: 18px; width: auto; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  z-index: 50;
  background: rgba(11,13,18,.96);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(11,13,18,.28);
  padding: 10px 12px 10px 16px;
  align-items: center; justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(8px);
}
.sticky-cta .meta { font-size: .85rem; line-height: 1.25; }
.sticky-cta .meta strong { display: block; font-weight: 700; }
.sticky-cta .meta span { color: rgba(255,255,255,.7); font-size: .78rem; }
.sticky-cta .btn { padding: 10px 14px; }

/* ---------- Product detail ---------- */
.product-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: start;
}
.product-hero .visual {
  position: sticky; top: calc(var(--header-h) + 20px);
}
.tab-bar {
  display: flex; gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 10px;
  width: max-content;
}
.tab-bar button {
  border: 0; background: transparent;
  padding: 7px 12px; border-radius: 7px;
  font-weight: 600; font-size: .85rem;
  color: var(--ink-3);
}
.tab-bar button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }

.preview-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f7f8fb, #eef0f6);
  padding: 26px;
}

.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.feature {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.feature .ic {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.feature .ic svg { width: 14px; height: 14px; }
.feature h4 { margin: 0 0 3px; font-size: .95rem; }
.feature p { margin: 0; font-size: .85rem; color: var(--muted); }

.kit-list { columns: 2; column-gap: 30px; list-style: none; padding: 0; margin: 0; }
.kit-list li { padding: 6px 0; break-inside: avoid; display: flex; gap: 10px; align-items: start; }
.kit-list li::before {
  content: ""; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%;
  background: var(--success-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%230d9362' stroke-width='4' fill='none'><path d='M5 13l4 4L19 7'/></svg>");
  background-repeat: no-repeat; background-size: 10px; background-position: center;
  flex: none;
}

.changelog { display: grid; gap: 12px; }
.changelog .entry { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.changelog .entry:last-child { border-bottom: 0; }
.changelog .v { font-family: var(--mono); font-size: .8rem; color: var(--accent); font-weight: 700; }
.changelog .d { color: var(--muted); font-size: .8rem; }
.changelog h4 { margin: 0 0 4px; font-size: .95rem; }
.changelog ul { margin: 0; padding-left: 18px; font-size: .9rem; color: var(--ink-3); }

.buy-card {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 22px;
  display: grid; gap: 14px;
}
.buy-card .price-row { display: flex; align-items: baseline; gap: 10px; }
.buy-card .price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.buy-card .strike { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.buy-card .license-pick { display: grid; gap: 8px; }
.buy-card .license-opt {
  display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer;
}
.buy-card .license-opt.active { border-color: var(--accent); background: var(--accent-soft); }
.buy-card .license-opt .radio {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line);
  position: relative;
}
.buy-card .license-opt.active .radio { border-color: var(--accent); }
.buy-card .license-opt.active .radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent);
}
.buy-card .license-opt strong { font-size: .92rem; }
.buy-card .license-opt small { color: var(--muted); font-size: .78rem; display: block; }
.buy-card .license-opt .opt-price { font-weight: 700; font-size: .92rem; }

.buy-card .perks { display: grid; gap: 6px; font-size: .85rem; color: var(--ink-3); }
.buy-card .perks li { display: flex; gap: 8px; align-items: center; }
.buy-card .perks li svg { width: 14px; height: 14px; color: var(--success); flex: none; }
.buy-card ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.summary-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.summary-line:last-child { border-bottom: 0; font-weight: 700; padding-top: 14px; font-size: 1rem; }
.pay-row {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .82rem;
  color: var(--muted);
}
.pay-icons { display: inline-flex; gap: 6px; }
.pay-icons span {
  display: inline-flex; align-items: center; justify-content: center;
  height: 18px; padding: 0 6px;
  border-radius: 4px;
  font-size: .7rem; font-weight: 700;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-3);
  letter-spacing: .04em;
}
.lock-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--success-soft);
  border: 1px solid #b8ecd4;
  color: var(--success);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .88rem;
}
.lock-row svg { width: 16px; height: 16px; }

/* ---------- Founder card ---------- */
.founder {
  display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: start;
}
.founder .avatar {
  width: 110px; height: 110px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #b4a3ff);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  color: #fff;
  font-size: 2rem; font-weight: 800; letter-spacing: -.04em;
  box-shadow: var(--shadow-md);
}
.founder .links { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* ---------- Niche cards ---------- */
.niche-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: grid; gap: 8px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.niche-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.niche-card .ic {
  width: 32px; height: 32px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 8px; display: grid; place-items: center;
}
.niche-card h4 { margin: 0; font-size: 1rem; }
.niche-card p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ---------- Utilities ---------- */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.divider { height: 1px; background: var(--line-2); border: 0; margin: 24px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-2-asym, .product-hero, .checkout-grid { grid-template-columns: 1fr; gap: 24px; }
  .scoreboard { grid-template-columns: repeat(4, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-feature { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .buy-card, .product-hero .visual { position: static; }
  .compare-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-loose { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-feature { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .scoreboard { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { font-size: .85rem; }
  .compare-grid > div { padding: 10px 10px; }
  .founder { grid-template-columns: 80px 1fr; gap: 14px; }
  .founder .avatar { width: 72px; height: 72px; font-size: 1.4rem; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 84px; }
  .kit-list { columns: 1; }
  .changelog .entry { grid-template-columns: 90px 1fr; gap: 10px; }
  .buy-card { padding: 18px; }
  .product-hero .visual { margin-bottom: 8px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.05rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
