/* White Knight Roadside — shared styles (mobile-first, dark-mode aware) */

:root {
  --brand: #1976d2;
  --brand-strong: #1259a6;
  --brand-soft: #e3f0fc;
  --brand-ink: #0d3f73;
  --accent: #ff9f1c;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #dde4ee;
  --ink: #16202b;
  --ink-muted: #5b6878;
  --ink-faint: #8b97a7;
  --success: #1e9e5a;
  --shadow: 0 1px 2px rgba(16, 32, 56, 0.06), 0 8px 24px rgba(16, 32, 56, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --gutter: 16px;
  --max: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #4f9ae8;
    --brand-strong: #7db7f0;
    --brand-soft: #14304d;
    --brand-ink: #cfe4fa;
    --bg: #0e141b;
    --bg-alt: #141c25;
    --surface: #18222d;
    --surface-raised: #1d2936;
    --border: #2a3744;
    --ink: #e8eef5;
    --ink-muted: #a4b1c0;
    --ink-faint: #76859a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --brand: #4f9ae8;
  --brand-strong: #7db7f0;
  --brand-soft: #14304d;
  --brand-ink: #cfe4fa;
  --bg: #0e141b;
  --bg-alt: #141c25;
  --surface: #18222d;
  --surface-raised: #1d2936;
  --border: #2a3744;
  --ink: #e8eef5;
  --ink-muted: #a4b1c0;
  --ink-faint: #76859a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
small { font-size: 0.875em; }
.muted { color: var(--ink-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 700; color: var(--brand); margin-bottom: 0.5rem; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: 48px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head.center { margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .section { padding: 72px 0; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.05rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand span b { color: var(--brand); }
.nav-toggle { display: none; }
.nav-burger {
  margin-left: auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); cursor: pointer; color: var(--ink);
}
.nav-burger svg { width: 26px; height: 26px; }
.nav-burger .icon-close { display: none; }
.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 8px var(--gutter) 16px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav li a:not(.btn) { display: block; padding: 12px 4px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--border); }
.site-nav li a[aria-current="page"] { color: var(--brand); }
.site-nav .nav-actions { display: flex; gap: 10px; padding-top: 14px; }
.site-nav .nav-actions .btn { flex: 1; }
.nav-toggle:checked ~ .site-nav { display: block; }
.nav-toggle:checked ~ .nav-burger .icon-open { display: none; }
.nav-toggle:checked ~ .nav-burger .icon-close { display: block; }
@media (min-width: 900px) {
  .nav-burger { display: none; }
  .site-nav { display: flex; position: static; background: none; border: 0; box-shadow: none; padding: 0; margin-left: auto; align-items: center; gap: 8px; }
  .site-nav ul { flex-direction: row; gap: 4px; align-items: center; }
  .site-nav li a:not(.btn) { padding: 8px 12px; border: 0; border-radius: var(--radius-sm); font-size: 0.95rem; }
  .site-nav li a:not(.btn):hover { background: var(--bg-alt); text-decoration: none; }
  .site-nav .nav-actions { padding: 0; margin-left: 12px; }
  .site-nav .nav-actions .btn { flex: none; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f4c8a 0%, #1976d2 55%, #2b8fe6 100%);
  color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -80px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 28px; align-items: center; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { font-size: 1.15rem; max-width: 46ch; color: rgba(255, 255, 255, 0.92); }
.hero .eyebrow { color: #ffd38a; }
.hero .hero-art { display: none; }
.hero .hero-art img { width: min(320px, 60vw); margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35)); }
.hero .fine { font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); margin-top: 12px; }
@media (min-width: 860px) {
  .hero { padding: 88px 0 96px; }
  .hero .wrap { grid-template-columns: 1.2fr 0.8fr; }
  .hero .hero-art { display: block; }
}
.hero.compact { padding: 44px 0 48px; }
.hero.compact h1 { max-width: none; font-size: clamp(1.8rem, 5vw, 2.6rem); }
@media (min-width: 860px) { .hero.compact .wrap { grid-template-columns: 1fr; } }

/* "Need help right now?" hero: the service picker is the main content */
.hero.help { padding: 36px 0 44px; }
.hero.help h1 { max-width: none; font-size: clamp(1.9rem, 6vw, 3rem); margin-bottom: 0.35em; }
.hero.help .lead { font-size: 1.05rem; margin-bottom: 20px; }
.hero.help .hero-art img { width: min(260px, 40vw); }
.hero.help .join-row { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.hero.help .join-row p { margin: 0 0 12px; color: rgba(255, 255, 255, 0.9); }
@media (min-width: 860px) {
  .hero.help { padding: 56px 0 64px; }
  .hero.help .wrap { grid-template-columns: 1.35fr 0.65fr; }
}

/* Service picker (six tap targets to the app's request flow) */
.service-picker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .service-picker { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.service-picker a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 96px; padding: 14px 8px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--ink); font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  box-shadow: var(--shadow); transition: background 0.15s, border-color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.service-picker a:hover, .service-picker a:focus-visible { text-decoration: none; transform: translateY(-1px); border-color: var(--brand); background: var(--brand-soft); }
.service-picker svg { width: 32px; height: 32px; flex: none; color: var(--brand); }
.hero .service-picker a { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); color: #fff; box-shadow: none; }
.hero .service-picker a:hover, .hero .service-picker a:focus-visible { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.8); }
.hero .service-picker svg { color: #ffd38a; }
.picker-note { margin: 14px 0 0; font-size: 0.93rem; }
.hero .picker-note { color: rgba(255, 255, 255, 0.9); }
.picker-call { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; min-height: 44px; }
.hero .picker-call { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.5); }
.picker-call svg { width: 18px; height: 18px; }

/* Compact strip variant: one row that wraps */
.picker-strip { padding: 22px 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.picker-strip .picker-head { font-weight: 800; margin: 0 0 10px; font-size: 1.05rem; }
.service-picker.compact { display: flex; flex-wrap: wrap; gap: 8px; }
.service-picker.compact li { flex: 1 1 calc(50% - 8px); }
@media (min-width: 560px) { .service-picker.compact li { flex: 1 1 auto; min-width: 120px; } }
.service-picker.compact a { flex-direction: row; justify-content: flex-start; min-height: 52px; padding: 10px 14px; font-size: 0.92rem; border-radius: 999px; text-align: left; }
.service-picker.compact svg { width: 22px; height: 22px; }
.picker-strip .picker-note { margin-top: 10px; color: var(--ink-muted); }
.picker-strip .picker-call { min-height: 0; margin: 0 0 0 4px; }

/* Cards & grids */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.benefit { padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.benefit .ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.benefit .ico svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 1.02rem; margin-bottom: 4px; }
.benefit p { margin: 0; color: var(--ink-muted); font-size: 0.93rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .steps.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps.four { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 24px 22px 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; color: var(--ink-muted); }

/* Plan cards */
.plan-grid { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 900px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-grid.two { max-width: 820px; margin: 0 auto; }
@media (min-width: 760px) { .plan-grid.two { grid-template-columns: repeat(2, 1fr); } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 22px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.plan .plan-family { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); font-weight: 700; }
.plan h3 { font-size: 1.35rem; margin: 2px 0 0; }
.plan .tagline { color: var(--ink-muted); margin: 0; min-height: 2.6em; }
.plan .plan-cta { margin-top: auto; display: grid; gap: 10px; }
.plan ul.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.95rem; }
.plan ul.features li { display: flex; gap: 10px; align-items: flex-start; }
.plan ul.features li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231976d2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ribbon {
  position: absolute; top: 14px; right: -42px; transform: rotate(38deg);
  background: var(--accent); color: #2a1a00; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 48px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.no-intro .ribbon, .no-intro .intro-only { display: none !important; }
.no-intro .price .was { display: none; }
.no-intro .price .now { display: none; }
.no-intro .price .regular-only { display: block; }
.price { display: grid; gap: 2px; }
.price .was { color: var(--ink-faint); text-decoration: line-through; font-weight: 600; }
.price .now { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
.price .now small { font-size: 0.9rem; font-weight: 600; color: var(--ink-muted); margin-left: 4px; letter-spacing: 0; }
.price .then { color: var(--ink-muted); font-size: 0.9rem; }
.price .regular-only { display: none; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.price .regular-only small { font-size: 0.9rem; font-weight: 600; color: var(--ink-muted); margin-left: 4px; }
.price-month { display: none; }
[data-interval="month"] .price-month { display: grid; }
[data-interval="month"] .price-year { display: none; }

/* Interval toggle */
.interval-toggle {
  display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px;
  margin: 0 auto 24px;
}
.interval-toggle button {
  font: inherit; font-weight: 700; font-size: 0.9rem; padding: 8px 18px; border-radius: 999px; border: 0; background: transparent;
  color: var(--ink-muted); cursor: pointer;
}
.interval-toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.interval-toggle .save { font-size: 0.72rem; font-weight: 700; margin-left: 6px; color: var(--accent); }
.interval-toggle button[aria-pressed="true"] .save { color: #ffe0a8; }
.toggle-wrap { text-align: center; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }

/* Comparison table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.93rem; }
table.compare th, table.compare td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.compare thead th { background: var(--bg-alt); font-weight: 800; position: sticky; top: 0; }
table.compare thead th:not(:first-child), table.compare td:not(:first-child) { text-align: center; }
table.compare tbody th { font-weight: 600; color: var(--ink); min-width: 190px; }
table.compare tbody th small { display: block; color: var(--ink-faint); font-weight: 500; }
table.compare td.yes { color: var(--success); font-weight: 700; }
table.compare td.no { color: var(--ink-faint); }
table.compare tfoot td { border-bottom: 0; padding-top: 16px; }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li .ck { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.check-list li .ck svg { width: 15px; height: 15px; }
.check-list li strong { display: block; }
.check-list li span.d { color: var(--ink-muted); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: 0.9rem; }
.chips li.off { background: var(--bg-alt); color: var(--ink-faint); text-decoration: line-through; }

/* Stat strip */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat .v { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--brand); line-height: 1.1; }
.stat .l { font-size: 0.85rem; color: var(--ink-muted); margin-top: 4px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 700; font-size: 1.02rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 18px; color: var(--ink-muted); }
.faq .a p:last-child { margin-bottom: 0; }

/* App badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 10px;
  background: #111; color: #fff; font-weight: 600; line-height: 1.1; min-height: 52px; border: 1px solid #333;
}
.badge:hover { text-decoration: none; background: #222; }
.badge svg { width: 24px; height: 24px; flex: none; }
.badge .t { display: flex; flex-direction: column; }
.badge .t small { font-size: 0.68rem; font-weight: 500; opacity: 0.8; }
.badge.web { background: var(--brand); border-color: var(--brand); }
.badge.web:hover { background: var(--brand-strong); }
.badge[aria-disabled="true"] { opacity: 0.6; cursor: default; }

/* Prose (policies, detail copy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5em; }
.prose li { margin-bottom: 0.4em; }
.prose .meta { color: var(--ink-muted); font-size: 0.9rem; }
.callout { border-left: 4px solid var(--brand); background: var(--brand-soft); color: var(--brand-ink); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.fine-print { font-size: 0.88rem; color: var(--ink-muted); }

/* Detail page hero price */
.price-hero { display: grid; gap: 4px; margin-top: 12px; }
.price-hero .big { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-hero .big small { font-size: 1rem; font-weight: 600; opacity: 0.85; margin-left: 6px; letter-spacing: 0; }
.price-hero .was { text-decoration: line-through; opacity: 0.75; }
.price-hero .then { opacity: 0.85; font-size: 0.95rem; }
.hero .pill { display: inline-block; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; padding: 4px 12px; font-size: 0.8rem; font-weight: 700; margin-bottom: 12px; }
.no-intro .price-hero .was, .no-intro .price-hero .intro-only { display: none; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #0f4c8a, #1976d2); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band .cta-row { justify-content: center; }

/* Join page */
.join-card { max-width: 560px; margin: 0 auto; text-align: center; }
.js .join-card .spinner { display: block; }
.join-card .spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--brand); margin: 0 auto 16px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.join-summary { text-align: left; background: var(--bg-alt); border-radius: var(--radius-sm); padding: 14px 16px; margin: 16px 0; display: grid; gap: 4px; }
.join-summary .row { display: flex; justify-content: space-between; gap: 12px; }
.join-summary .row b { text-align: right; }

/* Contact */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-grid .card a { font-weight: 700; font-size: 1.1rem; }
dl.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
dl.hours dt { font-weight: 600; }
dl.hours dd { margin: 0; color: var(--ink-muted); }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 44px 0 28px; margin-top: 48px; font-size: 0.93rem; }
.site-footer .cols { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink); }
.site-footer .brand { margin-bottom: 10px; }
.site-footer .legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--ink-faint); font-size: 0.82rem; display: grid; gap: 6px; }
.site-footer .contact-line a { color: var(--brand); font-weight: 600; }

/* Error page */
.error-page { text-align: center; padding: 80px 0; }
.error-page .code { font-size: 5rem; font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -0.04em; }

/* Live data: fade when values update */
[data-live="updated"] { animation: flash 0.6s ease-out; }
@keyframes flash { from { background: var(--brand-soft); } to { background: transparent; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .join-card .spinner { animation: none; }
}

/* Owner toggles (portal → GET /api/public/plans; see scripts/bake.mjs and assets/site.js).
   `no-memberships` on <html> hides every membership surface and reveals the pay-per-use copy;
   a service the owner turned off gets `hidden` on its data-service element. */
.no-memberships .members-only { display: none !important; }
.no-members-only { display: none !important; }
.no-memberships .no-members-only { display: block !important; }
.no-memberships .btn.no-members-only { display: inline-flex !important; }
.no-memberships .cta-row.no-members-only { display: flex !important; }
.no-memberships span.no-members-only { display: inline !important; }
.no-memberships li.no-members-only { display: list-item !important; }
[data-service][hidden] { display: none !important; }
.pay-per-use { max-width: 640px; margin: 0 auto; text-align: center; }
.pay-per-use h1 { margin-top: 8px; }

/* Services */
.service-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; color: inherit; }
.service-card .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.service-card .ico svg { width: 24px; height: 24px; }
.service-card:hover { text-decoration: none; transform: translateY(-2px); }
.service-card h3 { margin: 0 0 6px; }
.service-card p { margin: 0; color: var(--ink-muted); }
.service-card .cta { display: inline-block; margin-top: 10px; color: var(--brand); font-weight: 700; }

/* Blog and long-form pages */
.article-wrap { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .article-wrap { grid-template-columns: minmax(0, 1fr) 300px; } .article-cta { position: sticky; top: 84px; } }
.article { max-width: 72ch; }
.article h2 { margin-top: 2rem; }
.article h3 { margin-top: 1.6rem; }
.article h4 { margin-top: 1.3rem; }
.article p, .article li { font-size: 1.02rem; line-height: 1.7; }
.article ul, .article ol { padding-left: 1.3rem; }
.article a { text-decoration: underline; }
.article blockquote { margin: 1.4rem 0; padding: 12px 18px; border-left: 4px solid var(--brand); background: var(--bg-alt); border-radius: var(--radius-sm); font-style: italic; }
.article-cta h3 { margin-top: 0; }
.post-card { display: flex; flex-direction: column; gap: 8px; color: inherit; }
.post-card:hover { text-decoration: none; transform: translateY(-2px); }
.post-card time { font-size: 0.85rem; }
.post-card h3 { margin: 0; }
.post-card p { margin: 0; flex: 1; }
.post-card .more { color: var(--brand); font-weight: 700; }
