/* Zipwren — shared styles. Dark theme only. No external resources. */

:root {
  color-scheme: dark;

  --bg: #0f0e13;
  --bg-2: #14131a;
  --surface: #1a1922;
  --surface-2: #22202c;
  --line: #2e2b39;
  --line-strong: #3d3949;

  --ink: #f3efe8;
  --ink-soft: #d6d1c9;
  --muted: #a7a1b0;          /* ≥ 7:1 on --bg */

  --accent: #ff8a55;         /* wren coral */
  --accent-strong: #ffa477;
  --accent-ink: #1a0d06;
  --accent-soft: rgba(255, 138, 85, 0.12);

  --violet: #8b6cff;
  --pink: #ff4f8b;
  --amber: #ffa24a;
  --glow: linear-gradient(120deg, var(--violet) 0%, var(--pink) 55%, var(--amber) 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 50px -20px rgba(0,0,0,0.7);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* soft ambient glow behind the top of every page */
body::before {
  content: "";
  position: absolute;
  inset: -30vh 0 auto;
  height: 80vh;
  background:
    radial-gradient(40% 60% at 20% 40%, rgba(139,108,255,0.16), transparent 70%),
    radial-gradient(35% 55% at 85% 30%, rgba(255,138,85,0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1, h2 { font-family: var(--font-display); font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 650; }
code, kbd { font-family: var(--font-mono); font-size: 0.88em; }
kbd {
  background: var(--surface-2); border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 6px; padding: 0.05em 0.4em; white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--accent-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 14, 19, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.14rem; letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .dot { color: var(--accent); }

.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 550;
  padding: 7px 12px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; font-weight: 650; font-size: 0.98rem;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { color: var(--ink); border-color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* Store badge placeholders (TODO: swap for the official badges) */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 14px; min-width: 196px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #4a4656; border-radius: 12px; line-height: 1.15;
}
.store-badge:hover { color: #fff; border-color: #8a8496; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 0.7rem; opacity: 0.8; letter-spacing: 0.02em; white-space: nowrap; }
.store-badge span { font-size: 1.06rem; font-weight: 600; }
.store-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid rgba(255,255,255,0.04); }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lede { font-size: clamp(1.08rem, 1.8vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.grad-text {
  background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Home hero ---------- */
.hero { padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 8vw, 96px); }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(48px, 7vw, 80px); }
.value { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.value h3 { margin-bottom: 6px; }
.value p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- App cards (home) ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; transition: transform .2s, border-color .2s;
}
a.app-card:hover { color: var(--ink); transform: translateY(-3px); border-color: var(--line-strong); }
@media (prefers-reduced-motion: reduce) { a.app-card:hover { transform: none; } }
.app-card .app-icon { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 10px 30px -8px rgba(139,108,255,0.45); }
.app-card h3 { font-size: 1.3rem; margin: 4px 0 0; }
.app-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.app-card .platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.app-card .more { color: var(--accent); font-weight: 650; font-size: 0.95rem; }
.app-card.placeholder {
  background: transparent; border-style: dashed; box-shadow: none; justify-content: center; align-items: flex-start; min-height: 260px;
}
.app-card.placeholder .egg {
  width: 72px; height: 72px; border-radius: 17px; border: 1px dashed var(--line-strong);
  display: grid; place-items: center; color: var(--muted); font-size: 1.6rem;
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; color: var(--ink-soft);
  background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- Product hero ---------- */
.product-hero { padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 90px); }
.product-hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.product-hero .app-icon {
  width: 88px; height: 88px; border-radius: 21px; margin-bottom: 26px;
  box-shadow: 0 18px 40px -12px rgba(139,108,255,0.55), 0 0 0 1px rgba(255,255,255,0.06);
}
.product-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.product-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* TV + cursor illustration */
.tv-scene { position: relative; aspect-ratio: 16 / 11; }
.tv {
  position: absolute; inset: 0 0 13% 0;
  border-radius: 16px; padding: 10px; background: #08070c;
  border: 1px solid #34303f;
  box-shadow: 0 40px 90px -30px rgba(139,108,255,0.6), 0 0 0 1px rgba(0,0,0,0.6);
}
.tv-screen {
  position: relative; height: 100%; border-radius: 8px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(30,20,70,0.85) 0%, transparent 55%),
    linear-gradient(115deg, #5b3cf0 0%, #9a3fd8 35%, #e0457b 70%, #ff9a4a 100%);
}
.tv-screen::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -35%; height: 75%;
  background: rgba(20, 12, 50, 0.35); border-radius: 50% 50% 0 0;
}
.tv-stand {
  position: absolute; left: 50%; bottom: 7%; width: 22%; height: 3%;
  transform: translateX(-50%); background: #2a2733; border-radius: 0 0 8px 8px;
}
.tv-stand::after {
  content: ""; position: absolute; left: -30%; right: -30%; top: 100%; height: 90%; background: #1f1c27; border-radius: 6px;
}
.cursor {
  position: absolute; width: 11%; left: 30%; top: 26%; z-index: 2;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35));
  animation: glide 9s ease-in-out infinite;
}
.tv-ui { position: absolute; z-index: 1; left: 7%; right: 7%; top: 58%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4%; }
.tv-ui i { display: block; aspect-ratio: 16/10; border-radius: 6px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.18); }
.tv-ui i:nth-child(3) { background: rgba(255,255,255,0.32); box-shadow: 0 0 0 2px rgba(255,255,255,0.75); animation: pick 9s ease-in-out infinite; }
@keyframes glide {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(210%, -40%); }
  55%, 62% { transform: translate(250%, 190%); }
  58% { transform: translate(250%, 190%) scale(0.88); }
  80% { transform: translate(-60%, 140%); }
}
@keyframes pick { 0%, 54%, 66%, 100% { background: rgba(255,255,255,0.16); box-shadow: none; } 58%, 62% { background: rgba(255,255,255,0.34); box-shadow: 0 0 0 2px rgba(255,255,255,0.8); } }
@media (prefers-reduced-motion: reduce) { .cursor, .tv-ui i { animation: none; } }

.phone-pad {
  position: absolute; right: -2%; bottom: 0; width: 25%; aspect-ratio: 9 / 18.5; z-index: 3;
  border-radius: 22% / 11%; background: #0b0a10; border: 1px solid #3b3747; padding: 5%;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.9);
}
.phone-pad .pad {
  height: 100%; border-radius: 16% / 8%;
  background: radial-gradient(70% 50% at 50% 45%, rgba(139,108,255,0.28), transparent 70%), #17151f;
  border: 1px solid #2b2836; position: relative;
}
.phone-pad .finger {
  position: absolute; width: 26%; aspect-ratio: 1; border-radius: 50%; left: 30%; top: 36%;
  background: rgba(255,255,255,0.22); box-shadow: 0 0 0 6px rgba(255,255,255,0.06);
  animation: finger 9s ease-in-out infinite;
}
@keyframes finger {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(70%, -25%); }
  55%, 62% { transform: translate(85%, 60%); }
  80% { transform: translate(-40%, 45%); }
}
@media (prefers-reduced-motion: reduce) { .phone-pad .finger { animation: none; } }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.feature .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(255,138,85,0.22);
}
.feature .ico svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* Split section (touchpad) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.gesture-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gesture-list li {
  display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: baseline;
  padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
}
.gesture-list b { color: var(--ink); font-weight: 650; }
.gesture-list span { color: var(--muted); }
.card {
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.card.glow { position: relative; overflow: hidden; }
.card.glow::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--glow);
}
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23ff8a55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 14px; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 20px 22px 20px 70px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
}
.steps > li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem; color: var(--accent-ink); background: var(--accent);
}
.steps > li p { margin: 4px 0 0; color: var(--muted); }
.steps-row { grid-template-columns: repeat(3, 1fr); }
.path { color: var(--ink); font-weight: 600; }
.path i { font-style: normal; color: var(--muted); padding: 0 0.25em; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.96rem; }
caption { text-align: left; padding: 18px 20px 0; color: var(--muted); font-size: 0.9rem; caption-side: bottom; padding-bottom: 18px; }
th, td { padding: 15px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
tbody th { font-weight: 650; color: var(--ink); }
tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
tbody tr:last-child > * { border-bottom: 0; }
.yes { color: #7fe0a7; font-weight: 600; white-space: nowrap; }
.part { color: #ffd27a; font-weight: 600; }
.no { color: var(--muted); }

.tested { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.tested div { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.tested b { display: block; font-family: var(--font-mono); font-size: 0.98rem; color: var(--ink); }
.tested span { color: var(--muted); font-size: 0.9rem; }

/* Callout */
.callout {
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255,138,85,0.16), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgba(139,108,255,0.18), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}
.callout > div { flex: 1 1 320px; }
.callout h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.callout p { color: var(--ink-soft); margin: 0; }

/* ---------- Doc pages (support, privacy) ---------- */
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); }
.page-head .lede { margin-top: 10px; }
.prose { padding-bottom: clamp(56px, 8vw, 100px); }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 2.2em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.8em; scroll-margin-top: 90px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--accent); }
.summary {
  margin: 8px 0 32px; padding: 22px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(139,108,255,0.12), rgba(255,138,85,0.08)), var(--surface);
  border: 1px solid var(--line);
}
.summary p { margin: 0; color: var(--ink); }
.meta { color: var(--muted); font-size: 0.95rem; }

.toc {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none;
}
.toc a {
  display: inline-block; padding: 7px 14px; border-radius: 999px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); font-size: 0.92rem; font-weight: 550;
}
.toc a:hover { color: var(--ink); border-color: var(--line-strong); }

.note {
  padding: 14px 18px; border-radius: var(--radius-sm); background: var(--accent-soft);
  border: 1px solid rgba(255,138,85,0.25); color: var(--ink-soft); font-size: 0.96rem;
}

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
  font-weight: 620; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 20px 18px; }
.faq .answer p:last-child, .faq .answer ul:last-child, .faq .answer ol:last-child { margin-bottom: 0; }

.contact-card { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.contact-card p { margin: 0; }

/* ---------- 404 ---------- */
.not-found { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.not-found .big {
  font-family: var(--font-display); font-size: clamp(5rem, 18vw, 9rem); line-height: 1; margin-bottom: 10px;
}
.not-found .wren { width: 72px; margin: 0 auto 20px; color: var(--accent); transform: rotate(-8deg); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: flex-start; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .legal { flex-basis: 100%; font-size: 0.85rem; margin: 0; }
.site-footer .brand { font-size: 1rem; }
.site-footer .brand svg { width: 24px; height: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-hero .wrap { grid-template-columns: 1fr; }
  .tv-scene { max-width: 560px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .tested { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { gap: 12px; min-height: 58px; }
  .nav a { padding: 6px 9px; font-size: 0.9rem; }
  .values { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .gesture-list li { grid-template-columns: 1fr; gap: 2px; }
  .app-grid { grid-template-columns: 1fr; }
  .store-badges { gap: 10px; }
  .store-badge { min-width: 0; width: 248px; padding: 8px 16px 8px 12px; }
  .store-badge span { font-size: 1rem; }
}

/* steps inside long-form pages */
.prose .steps { padding-left: 0; }
.prose .steps > li { margin: 0; }
.steps h3, .prose .steps h3 { margin: 4px 0 0; }
.prose .contact-card h3 { margin-top: 0; }

/* product pages: keep the three-item nav on one line on phones */
@media (max-width: 460px) {
  .site-header--sub .brand .word { display: none; }
  .site-header--sub .nav { flex-wrap: nowrap; gap: 2px; }
  .site-header--sub .nav a { padding: 6px 10px; }
}

/* ---------- Support section ---------- */
.support-layout {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px);
  align-items: start; padding-bottom: clamp(56px, 8vw, 100px);
}
.side-nav { position: sticky; top: 88px; }
.side-nav p { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px 12px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a {
  display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  color: var(--muted); font-size: 0.95rem; font-weight: 550; border-left: 2px solid transparent;
}
.side-nav a:hover { color: var(--ink); background: var(--surface); }
.side-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); border-left-color: var(--accent); border-radius: 4px 10px 10px 4px; }
.support-main { min-width: 0; }
.support-main .page-head { padding-top: 0; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.support-shell { padding-top: clamp(40px, 6vw, 72px); }

.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0 12px; }
.hub-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.hub-card:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .hub-card:hover { transform: none; } }
.hub-card .ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(255,138,85,0.22);
}
.hub-card .ico svg { width: 21px; height: 21px; }
.hub-card h3 { margin: 0 0 4px; font-size: 1.04rem; }
.hub-card p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.5; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.pager a {
  display: block; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600;
}
.pager a:hover { border-color: var(--line-strong); color: var(--ink); }
.pager small { display: block; color: var(--muted); font-weight: 500; font-size: 0.82rem; margin-bottom: 2px; }
.pager .next { text-align: right; grid-column: 2; }

.prose table { min-width: 0; }
.prose .table-wrap { margin: 16px 0 8px; }
.prose td, .prose th { color: var(--ink-soft); }
.prose thead th { color: var(--muted); }
.msg {
  display: inline; font-family: var(--font-mono); font-size: 0.86em; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.08em 0.4em;
}
.path-block { margin: 6px 0 0; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.two-up .card { padding: 22px; box-shadow: none; }
.two-up .card h3 { margin-top: 0; }
.two-up .card p { margin: 0 0 10px; }
.two-up .card .btn { margin-top: 6px; }
.prose .ticks { margin: 12px 0 16px; }

@media (max-width: 900px) {
  .support-layout { grid-template-columns: 1fr; gap: 20px; }
  .side-nav { position: static; }
  .side-nav p { display: none; }
  .side-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .side-nav a, .side-nav a[aria-current="page"] {
    border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 0.88rem; background: var(--surface);
  }
  .side-nav a[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); }
  .hub-grid, .two-up { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}
