/* Neurvance plans, billing, refund and privacy pages.
   Brand look: deep blue #09318D, white, bubblegum pink #FD91CC. A deep-blue band with a faint
   dot map sits behind the header and title, then fades into a soft blue-white page. Cards are
   white and rounded, primary buttons are pink pills.
   The privacy pages do not load neurvance-glass.css, so every token has a fallback here.
   Served with style-src 'self': no inline styles, no external fonts or images. */

:root {
  color-scheme: light;
  --blue: var(--nv-blue, #09318D);
  --blue-2: var(--nv-blue-2, #1E4FD8);
  --blue-ink: var(--nv-blue-ink, #061F5C);
  --pink: var(--nv-pink, #FD91CC);
  --pink-strong: var(--nv-pink-strong, #F46BB4);
  --tint: var(--nv-tint, #E8EEFC);
  --bg: var(--nv-surface-soft, #F4F7FD);
  --surface: #fff;
  --ink: var(--nv-text, #0B1A3A);
  --ink-2: #3A4766;
  --ink-3: var(--nv-text-muted, #5A6785);
  --line: var(--nv-glass-line, #E3E9F5);
  --line-strong: var(--nv-line-strong, #C9D4EC);
  --ok: var(--nv-success, #12B76A);
  --ok-ink: #067647;
  --warn: #B54708;
  --warn-fill: #F79009;
  --bad: var(--nv-error, #D92D20);
  --radius: var(--nv-radius, 18px);
  --radius-sm: var(--nv-radius-sm, 12px);
  --shadow: var(--nv-shadow, 0 10px 30px rgba(9, 49, 141, 0.08));
  --shadow-lg: var(--nv-shadow-lg, 0 20px 50px rgba(9, 49, 141, 0.14));
  --band: 340px;
  --shell: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: var(--nv-font-text, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  --font-head: var(--nv-font, "Helvetica Neue", "Segoe UI Variable Display", "Segoe UI", Helvetica, Arial, sans-serif);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html > body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The blue band behind the header and title, fading into the page colour. */
body::before,
body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--band);
  z-index: -1;
  pointer-events: none;
}
body::before {
  background: linear-gradient(180deg, var(--blue) 0%, #123FB3 45%, var(--blue-2) 75%, #DCE6FF 92%, var(--bg) 100%);
}
/* Faint dots at the sides like the public hero, clear behind the text, fading downward. */
body::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image:
    radial-gradient(ellipse 70% 60% at 50% 35%, transparent 25%, #000 70%),
    linear-gradient(180deg, #000 0%, #000 45%, transparent 85%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 70% 60% at 50% 35%, transparent 25%, #000 70%),
    linear-gradient(180deg, #000 0%, #000 45%, transparent 85%);
  mask-composite: intersect;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--blue-ink); font-family: var(--font-head); }
ul { padding: 0; list-style: none; }
a { color: var(--blue-2); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
button { font: inherit; color: inherit; }

main { flex: 1 0 auto; }

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; }

:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 2px;
}
.site-header :focus-visible,
.hero :focus-visible,
body:not([class]) main.shell > p:first-child :focus-visible,
.plan[data-plan="pro"] :focus-visible { outline-color: #fff; }

/* The old decorative backdrop is not used. */
.backdrop { display: none; }

/* -------------------------------------------------------------- header */
.site-header { position: relative; z-index: 2; padding-block: 18px; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-transform: uppercase;
}
.brand:hover { color: #fff; }
.brand-mark { display: block; width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; border-radius: 8px; }

.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.header-nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------------------------------------------------------------- hero */
.hero { padding-block: clamp(24px, 4vw, 44px) clamp(24px, 3.5vw, 36px); color: #fff; }
.hero-compact { padding-block: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 28px); }

.eyebrow,
.panel-eyebrow,
.plan-brand {
  display: block;
  margin-bottom: 12px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow { color: var(--pink); }

.hero h1,
body:not([class]) main.shell > h1 {
  max-width: 22ch;
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-compact h1 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }

.lede {
  max-width: 52ch;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}
.hero a { color: #fff; }
.hero a:hover { color: var(--pink); }

/* ------------------------------------------------------------- surfaces */
.glass,
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.message {
  min-height: 1.4em;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.4;
}
.message:empty { min-height: 0; margin: 0; }
.message.is-error { color: var(--bad); }
.message.is-ok { color: var(--ok-ink); }
.message-page { margin: 0 0 20px; max-width: 60ch; }
.message-page:empty { margin: 0; }
.message-page:not(:empty) {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow);
}

/* -------------------------------------------------------------- banner */
.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 20px;
  padding: 16px 22px;
}
.banner-text { font-size: 1rem; color: var(--ink); }
.banner-text:focus-visible { outline-offset: 6px; }
.banner-text strong { font-weight: 600; color: var(--blue); }
.banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.banner .message { flex-basis: 100%; margin-top: 0; }

/* --------------------------------------------------------------- plans */
.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 24px 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.plan:hover { box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.plan.is-targeted { outline: 3px solid var(--pink); outline-offset: 2px; }

.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-title { line-height: 1.1; }
.plan-brand { margin-bottom: 6px; }
.plan-tier { display: block; font-size: 2rem; font-weight: 600; letter-spacing: -0.025em; }

.plan-mult {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 10px; margin: 20px 0 0; }
.plan-amount { color: var(--blue-ink); font-family: var(--font-head); font-size: 2.8rem; font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-interval { color: var(--ink-3); font-size: 0.95rem; }

.plan-credit { display: flex; align-items: center; gap: 10px; margin: 14px 0 16px; font-weight: 500; }
.plan-credit svg { flex: none; width: 18px; height: 18px; color: var(--pink-strong); }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; }
.chip,
.chips li {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chips .chip-label { padding-inline: 0; border: 0; background: none; color: var(--ink-3); }

.plan-body {
  flex: 1 1 auto;
  margin-bottom: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.95rem;
}
.plan-body p + p { margin-top: 0.75em; }

.plan-cta { display: flex; flex-direction: column; }
.plan-message { margin-top: 10px; }

/* The middle plan is the deep-blue card. */
.plan[data-plan="pro"] {
  border-color: var(--blue);
  background: linear-gradient(160deg, var(--blue) 0%, #0C3AA3 60%, var(--blue-2) 130%);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.plan[data-plan="pro"]:hover { border-color: var(--blue); }
.plan[data-plan="pro"] h2,
.plan[data-plan="pro"] .plan-amount { color: #fff; }
.plan[data-plan="pro"] .plan-brand { color: var(--pink); }
.plan[data-plan="pro"] .plan-interval,
.plan[data-plan="pro"] .chips .chip-label { color: rgba(255, 255, 255, 0.78); }
.plan[data-plan="pro"] .plan-mult { background: var(--pink); color: #fff; }
.plan[data-plan="pro"] .plan-credit svg { color: var(--pink); }
.plan[data-plan="pro"] .chips li:not(.chip-label) { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.12); color: #fff; }
.plan[data-plan="pro"] .plan-body { border-top-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.92); }
.plan[data-plan="pro"] .message { color: rgba(255, 255, 255, 0.92); }
.plan[data-plan="pro"] .message.is-error { color: #FFD1CC; }
.plan[data-plan="pro"] .message.is-ok { color: #A6F4C5; }


/* ------------------------------------------------------------- buttons */
.btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-block { width: 100%; }

.btn-primary { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--pink-strong); border-color: var(--pink-strong); color: #fff; }

.btn-secondary { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-secondary:hover:not(:disabled) { background: var(--tint); color: var(--blue); }

.btn:disabled { cursor: not-allowed; opacity: 0.5; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.btn[aria-busy="true"]::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.free-note {
  max-width: 580px;
  margin: 20px auto 0;
  color: var(--ink-3);
  font-size: 0.85rem;
  text-align: center;
}
.free-note + p {
  max-width: 580px;
  margin: 10px auto 0;
  color: var(--ink-3);
  font-size: 0.85rem;
  text-align: center;
}

/* ------------------------------------------------------------- contact */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 40px;
  padding: 24px 28px;
}
.contact h2 { margin-bottom: 6px; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.025em; }
.contact p { max-width: 58ch; color: var(--ink-2); }
.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background 0.15s;
}
.contact-link:hover { background: var(--pink-strong); color: #fff; }

/* -------------------------------------------------------------- footer */
.site-footer { margin-top: 44px; padding-block: 22px 28px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.site-footer a { color: var(--blue-2); }
.site-footer a:hover { color: var(--blue); }

/* ------------------------------------------------------------- billing */
.billing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.panel { padding: 24px 26px; min-width: 0; }
:where(.panel) :where(p, ul, form, dl) { margin-top: 12px; }
:where(.panel) :where(p) { color: var(--ink-2); }
.panel .panel-eyebrow { margin-top: 0; }
.plan-heading { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.status-row { margin-top: 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pill::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-ok { color: var(--ok-ink); border-color: var(--ok); background: #ECFDF3; }
.pill-warn { color: var(--warn); border-color: var(--warn-fill); background: #FFFAEB; }
.pill-bad { color: var(--bad); border-color: var(--bad); background: #FEF3F2; }

.facts { margin-top: 20px; }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.fact dt { color: var(--ink-3); }
.fact dd { color: var(--ink); font-weight: 600; text-align: right; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.help { margin-top: 12px; color: var(--ink-3); font-size: 0.88rem; }
.muted { color: var(--ink-3); }

.metric { color: var(--blue-ink); font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.metric-of { color: var(--ink-3); font-size: 0.6em; font-weight: 400; letter-spacing: -0.01em; }
.fact-inline { margin-top: 12px; color: var(--ink-2); font-size: 0.92rem; }
.fact-inline strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.meter { height: 8px; margin: 16px 0 4px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.meter-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--blue-2);
  transition: width 0.6s ease;
}
.meter.is-warn .meter-fill { background: var(--warn-fill); }
.meter.is-full .meter-fill { background: var(--bad); }

.state-card { max-width: 560px; padding: 28px 28px; }
.state-card h2 { margin-bottom: 8px; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.025em; }
.state-card p { margin-bottom: 20px; color: var(--ink-2); }

.sk { display: block; border-radius: 6px; background: var(--tint); animation: pulse 1.6s ease-in-out infinite; }
.sk-eyebrow { width: 96px; height: 12px; margin-bottom: 16px; }
.sk-title { width: 58%; height: 28px; margin-bottom: 20px; }
.sk-line { height: 14px; margin-bottom: 12px; }
.sk-short { width: 55%; }
.sk-bar { height: 8px; margin: 8px 0 18px; }
.sk-button { width: 170px; height: 44px; margin-top: 20px; border-radius: 999px; }

/* ----------------------------------------------------------- animation */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* -------------------------------------------------------------- layout */
@media (min-width: 980px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .billing-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .billing-grid > :first-child:not(.visually-hidden),
  #state-loading > .skeleton:nth-child(2) { grid-row: span 2; }
}

@media (max-width: 560px) {
  :root { --band: 420px; }
  .site-header { padding-block: 14px; }
  .header-nav a { padding: 8px 10px; }
  .plan { padding: 24px 20px 22px; }
  .plan-amount { font-size: 2.5rem; }
  .contact { padding: 22px 20px; }
  .contact-link { width: 100%; justify-content: center; }
  .banner { padding: 16px 18px; }
  .panel { padding: 22px 20px; }
  .state-card { padding: 24px 20px; }
  .fact { flex-direction: column; gap: 4px; }
  .fact dd { text-align: left; }
  .actions .btn { width: 100%; }
}

/* ------------------------------------------- purchase review and forms
   The purchase dialog on /subscribe, the purchases list on /billing, and the plain pages
   that reuse this stylesheet (privacy requests, updated documents, refund and withdrawal). */
main > .glass.panel { margin-top: 20px; }
main > .glass.panel h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.025em; }
.panel h3 { margin: 20px 0 6px; font-size: 1rem; font-weight: 600; }
.panel > h3:first-child { margin-top: 0; }
#purchase-list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
#purchase-list:empty { display: none; }
#purchase-list .purchase-copy { padding: 0; border: 0; background: transparent; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; }
#purchase-list .purchase-copy:hover { color: var(--blue-ink); }
.panel [role="status"]:empty { display: none; }

/* A plain button with no variant is the primary action. */
.btn:not(.btn-primary):not(.btn-secondary) { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn:not(.btn-primary):not(.btn-secondary):hover:not(:disabled) { background: var(--pink-strong); border-color: var(--pink-strong); }
#close-purchase,
#cancel-earlier-checkout { background: transparent; border-color: var(--blue); color: var(--blue); }
#close-purchase:hover:not(:disabled),
#cancel-earlier-checkout:hover:not(:disabled) { background: var(--tint); border-color: var(--blue); }

dialog {
  max-width: min(48rem, 94vw);
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(6, 31, 92, 0.55); }
dialog h2 { margin-bottom: 16px; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.025em; }
dialog p { margin-top: 12px; color: var(--ink-2); }
dialog .btn { margin-top: 16px; margin-right: 8px; }
dialog label { color: var(--ink-2); font-size: 0.92rem; }

input,
select,
textarea {
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--blue-2);
  outline: 2px solid var(--blue-2);
  outline-offset: 1px;
  box-shadow: 0 0 0 4px rgba(30, 79, 216, 0.16);
}
dialog input[type="checkbox"] { width: auto; margin-right: 8px; accent-color: var(--blue); }
textarea { width: 100%; }
.panel input:not([type="checkbox"]),
.panel select,
.panel textarea { width: 100%; margin-top: 4px; }
.panel label { color: var(--ink-2); font-size: 0.92rem; font-weight: 500; }
#quote-contract { white-space: pre-wrap; }
#declaration { white-space: pre-wrap; overflow-wrap: anywhere; }
#withdraw-form,
#confirmation { max-width: 46rem; padding: 16px 0; }

/* Plain pages (privacy requests, updated documents) have no header: a top line of links, the
   title and a short intro sit on the blue band, then white panels. */
body:not([class]) > main.shell { max-width: calc(46rem + var(--gutter) * 2); padding-bottom: 8px; }
body:not([class]) main.shell > p:first-child { margin-top: 22px; font-size: 0.9rem; }
body:not([class]) main.shell > p:first-child,
body:not([class]) main.shell > p:first-child a { color: rgba(255, 255, 255, 0.88); }
body:not([class]) main.shell > p:first-child a:hover { color: #fff; }
body:not([class]) main.shell > h1 { margin: 26px 0 14px; }
body:not([class]) main.shell > .lede { margin-top: 0; margin-bottom: 4px; }
body:not([class]) main.shell > .panel { margin-top: 18px; }
body:not([class]) main.shell > p:not(:first-child):not(.lede) { margin-top: 16px; color: var(--ink-3); font-size: 0.9rem; }
#documents li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
#documents li:first-child { border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .glass, .plan { border: 1px solid CanvasText; }
  .btn { border-color: ButtonText; }
  .meter { border: 1px solid CanvasText; }
  .meter-fill { background: Highlight; }
}

/* ======================================================================
   Plans page on the Neurvance stage: light-gray stage, white floating cards,
   a dark featured Pro card and black pill buttons. The header comes from
   /website-assets/stage.css (body.stage). Scoped to body.stage, so
   Billing and the privacy pages keep their look. No inline styles.
   ====================================================================== */
body.stage {
  --blue: #0c0f12;
  --blue-2: #2b3138;
  --blue-ink: #0c0f12;
  --pink: #0c0f12;
  --pink-strong: #2b3138;
  --tint: #eceff1;
  --bg: #c9cfd3;
  --ink: #0c0f12;
  --ink-2: #4a525a;
  --ink-3: #636b73;
  --line: #e1e5e8;
  --line-strong: #cdd3d8;
  --shadow: 0 14px 40px rgba(20, 28, 34, 0.10);
  --shadow-lg: 0 30px 80px rgba(20, 28, 34, 0.20);
  background:
    radial-gradient(1100px 620px at 50% -8%, #e3e8ea 0%, rgba(227, 232, 234, 0) 70%),
    var(--bg);
  color: var(--ink);
}

html:has(body.stage) { background: #c9cfd3; }

/* No blue band on the stage. */
body.stage::before,
body.stage::after { display: none; }

body.stage :focus-visible { outline-color: var(--ink); }
body.stage .skip-link { background: var(--ink); color: #fff; }

/* Hero: centered, dark text, two-tone headline. */
body.stage .hero {
  color: var(--ink);
  padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 44px);
}
body.stage.page-plans .hero { text-align: center; }
body.stage .hero h1 { color: var(--ink); letter-spacing: -0.04em; text-wrap: balance; }
body.stage.page-plans .hero h1 { max-width: 16ch; margin-inline: auto; }
body.stage .hero .soft { color: #a3abb2; }
body.stage .hero a { color: var(--ink); }
body.stage .lede { color: var(--ink-2); text-wrap: balance; }
body.stage.page-plans .lede { margin-inline: auto; }
body.stage .hero .eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* Cards: white, rounded, floating. */
body.stage .plans { gap: 18px; }
body.stage .glass,
body.stage .plan {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}
body.stage .plan { transition: transform 200ms ease, box-shadow 200ms ease; }
body.stage .plan:hover { border-color: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
body.stage .plan-mult { border-radius: 999px; background: #f4f6f7; border-color: var(--line-strong); color: var(--ink); }
body.stage .plan-credit svg { color: var(--ink); }
body.stage .chip,
body.stage .chips li { border-radius: 999px; background: #f4f6f7; border-color: transparent; color: var(--ink); }
body.stage .chips .chip-label { background: transparent; }

/* The featured Pro card is dark. */
body.stage .plan[data-plan="pro"] {
  border-color: transparent;
  background: linear-gradient(160deg, #1a2026, #0c0f12 70%);
  box-shadow: 0 30px 80px rgba(12, 15, 18, 0.35);
}
body.stage .plan[data-plan="pro"]:hover { border-color: transparent; }
body.stage .plan[data-plan="pro"] .plan-brand { color: rgba(255, 255, 255, 0.7); }
body.stage .plan[data-plan="pro"] .plan-mult { background: #fff; color: var(--ink); }
body.stage .plan[data-plan="pro"] .plan-credit svg { color: #fff; }
body.stage .plan[data-plan="pro"] .chips li:not(.chip-label) { background: rgba(255, 255, 255, 0.12); color: #fff; }
body.stage .plan[data-plan="pro"] .btn-primary { background: #fff; border-color: #fff; color: var(--ink); box-shadow: none; }
body.stage .plan[data-plan="pro"] .btn-primary:hover:not(:disabled) { background: #e9edef; border-color: #e9edef; color: var(--ink); }
body.stage .plan[data-plan="pro"] :focus-visible { outline-color: #fff; }

/* Buttons: black pills, ghost outline for secondary. */
body.stage .btn { border-radius: 999px; }
body.stage .btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 26px rgba(12, 15, 18, 0.25); }
body.stage .btn-primary:hover:not(:disabled) { background: #262c33; border-color: #262c33; color: #fff; }
body.stage .btn-secondary { background: rgba(255, 255, 255, 0.4); border-color: rgba(12, 15, 18, 0.3); color: var(--ink); }
body.stage .btn-secondary:hover:not(:disabled) { background: #fff; border-color: var(--ink); color: var(--ink); }

/* Notes, contact card, links. */
body.stage .free-note,
body.stage main.shell > p { color: var(--ink-2); }
body.stage main.shell > p a { color: var(--ink); }
body.stage .contact {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}
body.stage .contact-link { border-color: var(--ink); border-radius: 999px; background: var(--ink); color: #fff; }
body.stage .contact-link:hover { background: #262c33; color: #fff; }

/* Footer: a dark rounded base, like the public site. */
body.stage .site-footer {
  margin-top: 56px;
  padding-block: 28px 32px;
  border-top: 0;
  border-radius: 28px 28px 0 0;
  background: #0c0f12;
  color: rgba(255, 255, 255, 0.7);
}
body.stage .site-footer a { color: #fff; }
