:root {
  --bg: #0a0f1e;
  --surface: #121a2e;
  --surface-2: #18223a;
  --border: #243150;
  --text: #e8ebf3;
  --muted: #a9b2c7;
  --accent: #5cd6ff;
  --on-accent: #06121f;
  --off-bg: #2a3550;
  --off-text: #a3acc0;
  --glow: 0 0 0 1px rgba(92, 214, 255, 0.55), 0 0 22px rgba(92, 214, 255, 0.28);
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 520px; margin: 0 auto; padding: 32px 16px 48px; }

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

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: 1.35rem; margin-top: 40px; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; margin-top: 16px; color: var(--muted); font-weight: 600; }
p { margin: 0 0 12px; }
.small { font-size: 0.9rem; color: var(--muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--accent); color: var(--on-accent); padding: 12px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* TODO markers are deliberately loud in draft builds. */
mark.todo {
  background: #ffe08a; color: #1a1300; border-radius: 4px; padding: 0 0.3em;
  font: 600 0.82em/1.5 ui-monospace, Consolas, monospace; overflow-wrap: anywhere;
}
.draft-banner {
  background: #ffe08a; color: #1a1300; font-weight: 700; text-align: center;
  padding: 10px 12px; border-radius: 10px; margin: 0 0 20px;
}

/* Header */
.site-header { text-align: center; padding: 16px 0 8px; }
.wordmark {
  font-size: 2.4rem; font-weight: 800; letter-spacing: 0.04em; margin: 0 0 4px;
}
.wordmark::after {
  content: ""; display: block; width: 48px; height: 2px; margin: 10px auto 0; background: var(--accent);
}
.bio { color: var(--muted); font-size: 1.05rem; }
.social a, .social .todo-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 0.95rem;
}

.intro { margin: 20px 0 8px; text-align: center; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin: 0 0 24px;
}
.card-pack { border-color: rgba(92, 214, 255, 0.6); box-shadow: var(--glow); }
.eyebrow { color: var(--accent); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.tagline { color: var(--text); }
.meta { color: var(--muted); font-size: 0.95rem; }
.saving { font-weight: 700; }
.includes { margin: 0 0 8px; padding-left: 20px; }

/* Previews are vertical 9:16 clips (540x960). */
.preview {
  display: block; width: 100%; max-width: 340px; aspect-ratio: 9 / 16; border-radius: 12px; margin: 0 auto 16px;
  background: #070b16; object-fit: cover;
}
.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 16px; border: 1px solid var(--border);
}
.placeholder p { margin: 4px 0 0; }
.line-art { width: 55%; max-width: 200px; fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0.75; }

/* Buy block */
.buy { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }
.price { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.consent {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface-2); border-radius: 10px; padding: 12px; margin-bottom: 10px;
}
.consent input {
  flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer;
}
.consent label { cursor: pointer; min-height: 24px; }
.btn-buy {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 12px 16px; margin-top: 14px; border-radius: 12px;
  font-weight: 800; font-size: 1.05rem; text-decoration: none;
  background: var(--accent); color: var(--on-accent); box-shadow: var(--glow);
}
.btn-buy[aria-disabled="true"] {
  background: var(--off-bg); color: var(--off-text); box-shadow: none; cursor: not-allowed;
}
.btn-buy[aria-disabled="false"]:not([href]) { cursor: default; }
.hint { font-size: 0.9rem; color: var(--muted); margin: 8px 0 0; }
.btn-buy[aria-disabled="false"] + .hint { visibility: hidden; }
.noscript { background: #3a2a10; color: #ffe8c2; padding: 12px; border-radius: 10px; margin-top: 12px; }
.noscript a { color: #ffe08a; }
.payhip-note { font-size: 0.9rem; color: var(--muted); margin: 12px 0 0; }
.payhip-note a { display: inline-block; padding: 12px 0; }

/* Info panels */
.panel { margin-top: 8px; }
.checklist { padding-left: 20px; margin: 0 0 12px; }
.checklist li { margin-bottom: 10px; }
.checklist.not li::marker { content: "✕  "; color: var(--muted); }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
summary { cursor: pointer; min-height: 48px; padding: 12px 16px; font-weight: 600; display: flex; align-items: center; }
details p { padding: 0 16px 12px; margin: 0; }

/* Legal pages */
.legal h1 { font-size: 1.8rem; margin-top: 16px; }
.legal h2 { font-size: 1.15rem; margin-top: 28px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.back { display: inline-flex; align-items: center; min-height: 44px; }

/* Footer */
.site-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.95rem; color: var(--muted); }
.site-footer p { margin-bottom: 8px; }
.site-footer p > a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-links { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; }

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