/* ==========================================================================
   FONTS - self-hosted, no third-party request on the critical path.
   Both are VARIABLE fonts, so one file covers every weight used below.
   Loading them from a font CDN would hand every visitor's IP to that CDN,
   which the privacy policy says does not happen. Do not reintroduce one.
   ========================================================================== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

/* ==========================================================================
   AI CAST COMPANION - design system
   One stylesheet for the site, the account pages and (with admin.css on top)
   the admin. The class vocabulary - panel, kv, btn, field, eyebrow, tag - is
   CoderDude's, on purpose: the admin views were ported from there and render
   here unchanged. The look is this product's own.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces - a studio at night: near-black with an indigo cast. */
  --bg-0: #08080f;
  --bg-1: #0e0e19;
  --bg-2: #151524;

  --glass: rgba(18, 18, 32, 0.62);
  --glass-soft: rgba(18, 18, 32, 0.42);
  --glass-deep: rgba(6, 6, 12, 0.8);

  /*
   | Accents.
   |
   | The variable NAMES are CoderDude's (gold/mint/amber/teal) because the
   | ported admin views and admin.css reference them by name. The VALUES are
   | this brand's: "gold" is the signal violet, "mint" is the ok/live state,
   | "amber" is a warning, and --live is the on-air red that is only ever
   | used for the ON AIR mark, never for an error.
  */
  --gold: #9d8cff;
  --gold-bright: #c3b8ff;
  --gold-glow: rgba(157, 140, 255, 0.26);
  --gold-dim: rgba(157, 140, 255, 0.12);
  --gold-line: rgba(157, 140, 255, 0.38);

  --mint: #5eead4;
  --mint-dim: rgba(94, 234, 212, 0.12);
  --mint-line: rgba(94, 234, 212, 0.32);

  --teal: #67e8f9;
  --teal-dim: rgba(103, 232, 249, 0.12);
  --teal-line: rgba(103, 232, 249, 0.3);

  --amber: #fbbf5a;
  --amber-line: rgba(251, 191, 90, 0.34);

  --violet: #d8b4fe;
  --violet-dim: rgba(216, 180, 254, 0.08);
  --violet-line: rgba(216, 180, 254, 0.3);

  --live: #fe2c55;
  --live-dim: rgba(255, 77, 109, 0.14);

  /* Ink. --ink-4 is the faintest tone that still clears AA (4.5:1) on every
     surface here; --ink-faint is decoration only and never text. */
  --ink: #f1f0fb;
  --ink-1: #f1f0fb;
  --ink-2: rgba(241, 240, 251, 0.76);
  --ink-3: rgba(241, 240, 251, 0.6);
  --ink-4: rgba(241, 240, 251, 0.56);
  --ink-faint: rgba(241, 240, 251, 0.3);

  --line: rgba(255, 255, 255, 0.11);
  --line-soft: rgba(255, 255, 255, 0.065);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --r-panel: 14px;
  --r-control: 9px;
  --r-pill: 999px;

  --gap: 1.25rem;
  --shell: 1200px;
  --nav-h: 62px;

  --t-fast: 0.15s ease;
  --t: 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-0);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
code, kbd { font-family: var(--mono); font-size: 0.92em; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--gold-dim); color: var(--gold-bright); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 500;
  padding: 0.6rem 1.1rem;
  background: var(--bg-1);
  border: 1px solid var(--gold-line);
  border-radius: 0 0 var(--r-control) var(--r-control);
  font-size: 0.85rem;
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   3. BACKGROUND - two soft lights and a faint horizon, all CSS.
   No image to download and nothing moving behind the text.
   -------------------------------------------------------------------------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg__wash {
  background:
    radial-gradient(ellipse 70% 50% at 18% -8%, rgba(157, 140, 255, 0.2), transparent 60%),
    radial-gradient(ellipse 55% 45% at 92% 6%, rgba(255, 77, 109, 0.1), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(94, 234, 212, 0.07), transparent 60%),
    var(--bg-0);
}
.bg__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 20%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 55% at 50% 20%, #000 10%, transparent 70%);
}

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

main { padding-top: var(--nav-h); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--hairline { border-top: 1px solid var(--line-soft); }
.stack { display: grid; gap: var(--gap); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.section-head { max-width: 44rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head .lede { margin-top: 0.85rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lede { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. TYPOGRAPHY
   -------------------------------------------------------------------------- */
.display {
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 720; line-height: 1.12; letter-spacing: -0.02em; }
.h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 680; line-height: 1.2; letter-spacing: -0.015em; }
.h3 { font-size: 1.15rem; font-weight: 640; line-height: 1.3; }
.display, .h1, .h2, .h3 { text-wrap: balance; }

.lede { font-size: clamp(1.03rem, 1.5vw, 1.18rem); color: var(--ink-2); max-width: 50ch; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.small { font-size: 0.87rem; }
.mono { font-family: var(--mono); }
.gold { color: var(--gold-bright); }
.mint { color: var(--mint); }
.amber { color: var(--amber); }
.prose { max-width: 68ch; color: var(--ink-2); }
.prose p + p { margin-top: 0.9rem; }
.prose a, .link { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.gradient-text {
  background: linear-gradient(100deg, #fff 10%, var(--gold-bright) 45%, var(--teal) 95%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.rule {
  height: 1px; width: 64px; margin: 1.4rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* --------------------------------------------------------------------------
   6. PANELS
   -------------------------------------------------------------------------- */
.panel {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.panel--soft { background: var(--glass-soft); }
.panel--deep { background: var(--glass-deep); }
.panel--glow {
  border-color: var(--gold-line);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 56px rgba(157, 140, 255, 0.1),
    0 24px 70px rgba(0, 0, 0, 0.55);
}
.panel--ticks::before,
.panel--ticks::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--gold-line);
  pointer-events: none;
}
.panel--ticks::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: var(--r-panel) 0 0 0; }
.panel--ticks::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 var(--r-panel) 0; }
.panel-pad { padding: clamp(1.2rem, 3vw, 1.75rem); }

/* --------------------------------------------------------------------------
   7. BUTTONS & CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: transparent;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 560;
  cursor: pointer;
  text-align: center;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast),
              box-shadow var(--t-fast), transform var(--t-fast);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.22); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn--primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #6d28d9, #a13fd6 55%, #fe2c55);
  box-shadow: 0 10px 30px rgba(123, 104, 255, 0.28);
}
.btn--primary:hover {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 40px rgba(123, 104, 255, 0.4);
  transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0); }

.btn--mint { color: var(--mint); border-color: var(--mint-line); background: var(--mint-dim); }
.btn--mint:hover { color: #b8fff0; border-color: var(--mint); }
.btn--danger { color: #ffb3c1; border-color: rgba(255, 77, 109, 0.42); background: var(--live-dim); }
.btn--danger:hover { color: #fff; border-color: var(--live); }
.btn--ghost { border-color: transparent; padding-inline: 0.4rem; color: var(--ink-3); }
.btn--ghost:hover { color: var(--ink); border-color: transparent; }
.btn--block { width: 100%; }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn--waiting { color: var(--ink-4); border-style: dashed; cursor: default; }
.btn--waiting:hover { color: var(--ink-4); border-color: var(--line); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: rgba(18, 18, 32, 0.4);
  color: var(--ink-3);
  cursor: pointer;
  transition: all var(--t-fast);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--ink); border-color: var(--gold-line); }

.mini-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding-inline: 0.45rem;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(18, 18, 32, 0.4);
  color: var(--ink-3);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--t-fast);
}
.mini-btn:hover { color: var(--ink); border-color: var(--gold-line); }

.field {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: rgba(4, 4, 10, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field::placeholder { color: var(--ink-4); }
/* The border and ring are decoration. The indicator that has to clear 3:1 is
   the global :focus-visible outline. */
.field:focus { border-color: var(--gold-line); box-shadow: 0 0 0 3px var(--gold-dim); }
.field[aria-invalid="true"] { border-color: var(--amber-line); }
textarea.field { min-height: 140px; resize: vertical; }
select.field { appearance: auto; }

/* A live region has to stay in the accessibility tree to be announced, so it
   stays in the DOM and empty, and :empty keeps it from taking up space. */
[data-form-status]:empty { display: none; }

.label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.45rem;
}
.field-error { color: var(--amber); margin-top: 0.35rem; }

.check-row { display: flex; align-items: center; gap: 0.55rem; cursor: pointer; }
.check-row input { width: 1rem; height: 1rem; accent-color: var(--gold); }

/* Honeypot - off-screen rather than display:none, which bots detect. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   8. TAGS AND DOTS
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.tag--mint   { color: var(--mint);        border-color: var(--mint-line); }
.tag--gold   { color: var(--gold-bright); border-color: var(--gold-line); }
.tag--amber  { color: var(--amber);       border-color: var(--amber-line); }
.tag--teal   { color: var(--teal);        border-color: var(--teal-line); }
.tag--violet { color: var(--violet);      border-color: var(--violet-line); }
.tag--live   { color: #ffb3c1;            border-color: rgba(255, 77, 109, 0.42); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot--mint { color: var(--mint); }
.dot--live { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50% { box-shadow: 0 0 0 5px transparent; opacity: 0.7; }
}

/* --------------------------------------------------------------------------
   9. DATA: key/value rows and tables
   -------------------------------------------------------------------------- */
.kv {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-control);
  background: rgba(4, 4, 10, 0.32);
  overflow: hidden;
}
.kv-row { display: flex; gap: 0.85rem; padding: 0.6rem 0.75rem; border-top: 1px solid var(--line-soft); font-size: 0.86rem; }
.kv-row:first-child { border-top: 0; }
.kv-k { flex: none; width: 110px; color: var(--ink-4); font-family: var(--mono); font-size: 0.74rem; padding-top: 0.15rem; }
.kv-v { color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-control); }
.table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.table th, .table td { padding: 0.65rem 0.8rem; text-align: left; border-top: 1px solid var(--line-soft); vertical-align: top; }
.table thead th {
  border-top: 0;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 500;
  background: rgba(4, 4, 10, 0.35);
}
.table td { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   10. NAV, DRAWER, ACCOUNT MENU
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-inline: clamp(1rem, 4vw, 2rem);
  background: rgba(8, 8, 15, 0.76);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.brand small { font-weight: 500; color: var(--ink-3); font-size: 0.78rem; font-family: var(--mono); }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.45rem 0.75rem;
  border-radius: var(--r-control);
  font-size: 0.9rem;
  color: var(--ink-3);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav-link[aria-current="page"] { color: var(--gold-bright); background: var(--gold-dim); }
.nav-rule { width: 1px; height: 18px; background: var(--line); margin-inline: 0.35rem; }
.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.nav-burger { display: none; }

.drawer {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  display: none;
  padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
  background: rgba(8, 8, 15, 0.97);
  border-bottom: 1px solid var(--line);
}
.drawer.is-open { display: grid; gap: 0.25rem; }
.drawer a, .drawer-signout {
  display: block; text-align: left; width: 100%;
  padding: 0.7rem 0.5rem;
  border-radius: var(--r-control);
  border: 0; background: none; cursor: pointer;
  color: var(--ink-2);
  font-size: 1rem;
}
.drawer a:hover, .drawer-signout:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
.drawer a[aria-current="page"] { color: var(--gold-bright); }

.acct { position: relative; }
.acct > summary { list-style: none; }
.acct > summary::-webkit-details-marker { display: none; }
.acct__button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: var(--gold-dim);
  color: var(--gold-bright);
  cursor: pointer;
}
.acct__button svg { width: 18px; height: 18px; }
.acct__menu {
  position: absolute; right: 0; top: calc(100% + 0.5rem);
  min-width: 15rem;
  display: grid; gap: 0.1rem;
  padding: 0.5rem;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  z-index: 120;
}
.acct__who { display: grid; padding: 0.45rem 0.6rem 0.6rem; border-bottom: 1px solid var(--line-soft); margin-bottom: 0.3rem; font-size: 0.9rem; }
.acct__menu a, .acct__menu button {
  display: block; width: 100%; text-align: left;
  padding: 0.5rem 0.6rem;
  border: 0; border-radius: 6px; background: none;
  color: var(--ink-2); font-size: 0.9rem; cursor: pointer;
}
.acct__menu a:hover, .acct__menu button:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }

/* --------------------------------------------------------------------------
   11. HERO
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
}
.hero-copy .lede { margin-top: 1.25rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.75rem; color: var(--ink-3); font-size: 0.86rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-proof svg { width: 16px; height: 16px; color: var(--mint); }

.onair {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  border: 1px solid rgba(255, 77, 109, 0.45);
  border-radius: var(--r-pill);
  background: var(--live-dim);
  color: #ffc2cd;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.onair .dot { color: var(--live); }

/* The hero shot: a real screenshot of the app, framed like the other panels.
   The img carries width/height so the hero doesn't jump when it loads. */
.shot { padding: 0.45rem; margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: calc(var(--r-panel) - 0.45rem); }

/* --------------------------------------------------------------------------
   12. BLOCKS: features, steps, requirements, pricing, FAQ
   -------------------------------------------------------------------------- */
.feature { padding: 1.4rem; display: grid; gap: 0.6rem; align-content: start; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-line); background: var(--gold-dim); color: var(--gold-bright);
}
.feature-icon svg { width: 21px; height: 21px; }
.feature p { color: var(--ink-2); font-size: 0.94rem; }

.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; counter-reset: step; }
.pipe { padding: 1.1rem; counter-increment: step; }
.pipe::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--gold); margin-bottom: 0.5rem;
}
.pipe p { font-size: 0.88rem; color: var(--ink-3); margin-top: 0.3rem; }

.steps { display: grid; gap: 0.9rem; counter-reset: s; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; counter-increment: s; }
.steps li::before {
  content: counter(s);
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.8rem;
  border: 1px solid var(--gold-line); color: var(--gold-bright); background: var(--gold-dim);
}
.steps p { color: var(--ink-2); }

.reqs { display: grid; gap: 0; }
.req { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--line-soft); }
.req:first-child { border-top: 0; }
.req dt { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); padding-top: 0.15rem; }
.req dd { color: var(--ink-2); }

.price-card { padding: clamp(1.5rem, 4vw, 2.4rem); display: grid; gap: 1.1rem; }
.price { display: flex; align-items: baseline; gap: 0.6rem; }
.price-amount { font-size: clamp(2.8rem, 6vw, 3.8rem); font-weight: 780; letter-spacing: -0.03em; line-height: 1; }
.price-note { color: var(--ink-3); font-size: 0.95rem; }
.ticks { display: grid; gap: 0.55rem; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; color: var(--ink-2); font-size: 0.95rem; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 0.2rem; border-radius: 50%; background: var(--mint-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235eead4' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; border: 1px solid var(--mint-line); }

.faq { display: grid; gap: 0.6rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-control); background: var(--glass-soft); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1rem 1.2rem; font-weight: 600;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--gold); transition: transform var(--t-fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 1.2rem 1.1rem; color: var(--ink-2); }
.faq .faq-a p + p { margin-top: 0.7rem; }

.band { padding: clamp(1.8rem, 5vw, 3rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: center; }

/* --------------------------------------------------------------------------
   13. NEWSLETTER SIGNUP (the package's views, restyled)
   -------------------------------------------------------------------------- */
.signup { display: grid; gap: 0.6rem; }
.signup-row { display: flex; gap: 0.5rem; }
.signup-row .field { flex: 1; min-width: 0; }
.signup-row .btn { flex: none; }
.signup-fine { margin-top: 0.1rem; }

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line-soft); padding-block: 2.5rem 2rem; margin-top: clamp(2rem, 6vw, 4rem); background: rgba(8, 8, 15, 0.6); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 2rem; padding-bottom: 2rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line-soft); }
.footer-top--solo { grid-template-columns: minmax(0, 34rem); }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; font-size: 0.82rem; color: var(--ink-3); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1rem; }
.footer-legal a { color: var(--ink-2); }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--gold-bright); }
.footer-bar .status { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.74rem; }

/* --------------------------------------------------------------------------
   15. AUTH AND ACCOUNT PAGES
   -------------------------------------------------------------------------- */
.auth-shell { max-width: 30rem; padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.account-shell { max-width: 56rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.auth-card { padding: clamp(1.3rem, 3vw, 1.9rem); }
.auth-alt { margin-top: 1.15rem; text-align: center; }
.auth-errors {
  padding: 0.8rem 1rem;
  border: 1px solid var(--amber-line);
  border-radius: var(--r-control);
  background: rgba(251, 191, 90, 0.06);
}
.auth-errors ul { list-style: none; padding: 0; display: grid; gap: 0.25rem; color: var(--ink-2); }
.page-head { margin-bottom: 1.75rem; }
.page-head .h1 { max-width: 22ch; }
.page-head .lede { margin-top: 0.8rem; max-width: 60ch; }

.notice { padding: 0.9rem 1.1rem; border-radius: var(--r-control); border: 1px solid var(--line); background: var(--glass-soft); font-size: 0.92rem; color: var(--ink-2); }
.notice--ok { border-color: var(--mint-line); background: var(--mint-dim); }
.notice--warn { border-color: var(--amber-line); background: rgba(251, 191, 90, 0.07); }

/* A licence key: big, monospaced, selectable in one go, and never wrapped
   mid-group so it can be read aloud to support. */
.license-key {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--gold-line);
  border-radius: var(--r-control);
  background: rgba(4, 4, 10, 0.55);
}
.license-key code {
  flex: 1; min-width: 0;
  font-size: 0.95rem; letter-spacing: 0.04em; color: var(--gold-bright);
  word-spacing: 0.1em; overflow-wrap: anywhere;
  user-select: all;
}
.device { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.75rem 0; border-top: 1px solid var(--line-soft); }
.device:first-child { border-top: 0; }

/* Centred message pages: newsletter confirm/unsubscribe, thanks, errors. */
.coming { max-width: 44rem; padding-block: clamp(3.5rem, 10vw, 7rem); text-align: center; }
.coming .lede { margin-inline: auto; }
.coming .hero-cta { justify-content: center; }

/* --------------------------------------------------------------------------
   16. LEGAL DOCUMENTS
   -------------------------------------------------------------------------- */
.doc { max-width: 50rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.doc h2 { font-size: 1.3rem; font-weight: 660; margin-top: 2.2rem; margin-bottom: 0.7rem; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.doc h3 { font-size: 1.05rem; font-weight: 620; margin-top: 1.4rem; margin-bottom: 0.5rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 0.8rem; }
.doc ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: 0.35rem; margin-top: 0.6rem; }
.doc a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.doc-toc { margin-top: 1.5rem; padding: 1rem 1.2rem; }
.doc-toc ol { list-style: decimal; padding-left: 1.2rem; display: grid; gap: 0.25rem; }
.doc-toc a { color: var(--ink-2); text-decoration: none; }
.doc-toc a:hover { color: var(--gold-bright); }

/* Unresolved before launch. Deliberately loud: a placeholder that ships is
   worse than a gap, and tools/dev/preflight.sh counts these. */
.todo {
  background: rgba(251, 191, 90, 0.16);
  color: var(--amber);
  outline: 1px dashed var(--amber-line);
  padding: 0 0.25rem;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .hero { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .req { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (max-width: 560px) {
  :root { --nav-h: 58px; --gap: 1rem; }
  .pipeline, .grid--4 { grid-template-columns: 1fr; }
  .signup-row { flex-direction: column; }
  .brand small { display: none; }
  .nav-signin { display: none; }
}

/* --------------------------------------------------------------------------
   18. MOTION PREFERENCES
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
