/* Aridel — marketing site styles
 *
 * Theme: Ariadne's thread navigating a labyrinth.
 * Palette: night-sky purples + muted blue-violets for body / secondary,
 *          yellow-gold reserved for "the solution" — the things that
 *          carry the value: the product, the optimal answer, the action.
 * Vanilla CSS, no build step.
 */

:root {
  /* ─── Palette ───────────────────────────────────────────────────────── */
  --bg-deepest:    #05000f;             /* silhouette black / deepest purple */
  --bg-night:      #2d005f;             /* deep night violet */
  --bg-mid:        #5f14af;             /* mid-tone indigo / purple */

  --violet-mid:    #8a7ad8;             /* muted accent — secondary "you can do this too" content */
  --violet-soft:   #6b5fa8;             /* even more muted — borders, nav */

  --gold:          #FFD700;             /* classic rich gold — the THREAD / solution */
  --gold-glow:     #FFEA00;             /* bright lemon-gold — the thread's halo */

  /* ─── Text ──────────────────────────────────────────────────────────── */
  --text:          #f0e6ff;             /* off-white lavender — body */
  --text-muted:    #b8a5d8;             /* muted lavender — secondary text */
  --text-faint:    #7a6a9a;             /* faint — meta / footer */

  /* ─── Surfaces ──────────────────────────────────────────────────────── */
  --surface-card:     rgba(45, 0, 95, 0.32);
  --surface-elevated: rgba(95, 20, 175, 0.10);
  --border:           rgba(95, 20, 175, 0.45);
  --border-faint:     rgba(95, 20, 175, 0.20);

  /* ─── Layout ────────────────────────────────────────────────────────── */
  --radius:    12px;
  --radius-sm: 8px;
  --max-w:     1080px;

  /* Alpha of the global sheen layer that sits between the labyrinth +
   * thread and the foreground content. Higher = darker background,
   * more legible text. Tuned to 0.65 — strong atmospheric dim while
   * the gold thread still reads as a glow. */
  --sheen-opacity: 0.65;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deepest);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient backdrop: very faint sky-wash + a sparse starfield (fixed).
 * The labyrinth motif lives in its own SVG (injected by labyrinth.js)
 * and scrolls with the page — so this layer stays simple. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 8%  6%,  rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px   1px   at 17% 22%, rgba(255,255,255,0.40), transparent 60%),
    radial-gradient(1px   1px   at 29% 11%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 41% 38%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1px   1px   at 54%  9%, rgba(255,255,255,0.40), transparent 60%),
    radial-gradient(1px   1px   at 63% 27%, rgba(255,255,255,0.40), transparent 60%),
    radial-gradient(1px   1px   at 76% 14%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 85%  5%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px   1px   at 92% 31%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1px   1px   at  4% 65%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1px   1px   at 22% 78%, rgba(255,255,255,0.40), transparent 60%),
    radial-gradient(1.5px 1.5px at 57% 84%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1px   1px   at 81% 73%, rgba(255,255,255,0.40), transparent 60%),
    radial-gradient(1px   1px   at 96% 88%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(ellipse 1200px 600px at 50% -10%, rgba(95, 20, 175, 0.38), transparent 70%),
    var(--bg-deepest);
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* Global sheen overlay — sits above the labyrinth canvas (z:1) and the
 * gold-thread SVG (z:2) but below the content (z:4). Dims the maze and
 * thread uniformly so headings + body text stay legible everywhere. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 0, 15, var(--sheen-opacity));
  pointer-events: none;
  z-index: 3;
}

main, .nav, .footer { position: relative; z-index: 4; }

/* Lift headings off the dimmed background — paired with the sheen so
 * h1/h2/h3 keep a crisp edge even at full sheen opacity. */
main h1, main h2, main h3 {
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.75),
    0 0 16px rgba(5, 0, 15, 0.55);
}

a {
  color: var(--violet-mid);
  text-decoration: none;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
a:hover {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(255, 234, 0, 0.5);
}

h1, h2, h3, h4 {
  color: #fff;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text); }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 640px; }

code, pre {
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  background: rgba(5, 0, 15, 0.7);
  color: #e0d2ff;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border-faint);
}

/* ─── Glow utilities ──────────────────────────────────────────────────── */

.glow-gold    { color: var(--gold);       text-shadow: 0 0 8px rgba(255, 234, 0, 0.75), 0 0 14px rgba(255, 215, 0, 0.45); }
.glow-violet  { color: var(--violet-mid); text-shadow: 0 0 12px rgba(138, 122, 216, 0.50); }

/* ─── Layout ──────────────────────────────────────────────────────────── */

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
section.tight { padding: 48px 0; }

/* ─── Top nav ─────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 0, 15, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-faint);
}
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.55) 35%, rgba(255, 234, 0, 0.7) 50%, rgba(255, 215, 0, 0.55) 65%, transparent);
  box-shadow: 0 0 8px rgba(255, 234, 0, 0.4);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Cinzel", -apple-system, Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold);
  text-shadow: 0 0 8px rgba(255, 234, 0, 0.45);
  letter-spacing: 0.06em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--gold); }
.brand img { height: 28px; width: auto; filter: drop-shadow(0 0 6px rgba(255, 234, 0, 0.6)); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; text-shadow: 0 0 6px rgba(138, 122, 216, 0.5); }
.nav-links a.active { color: var(--gold); text-shadow: 0 0 8px rgba(255, 234, 0, 0.5); }

/* ─── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease, color 0.15s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* Primary CTA — the action that gets you to the value. Gold thread border. */
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--bg-night) 0%, rgba(95, 20, 175, 0.55) 100%);
  border-color: var(--gold);
  box-shadow:
    0 0 14px rgba(255, 234, 0, 0.30),
    inset 0 0 14px rgba(255, 234, 0, 0.06);
}
.btn-primary:hover {
  color: var(--gold);
  text-shadow: 0 0 6px rgba(255, 234, 0, 0.6);
  box-shadow:
    0 0 28px rgba(255, 234, 0, 0.45),
    inset 0 0 18px rgba(255, 234, 0, 0.12);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Secondary CTA — muted violet ghost, less weighty than the primary */
.btn-ghost {
  background: transparent;
  color: var(--violet-mid);
  border-color: rgba(138, 122, 216, 0.35);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--violet-mid);
  box-shadow: 0 0 12px rgba(138, 122, 216, 0.30);
  text-decoration: none;
}

/* ─── Eyebrow ─────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(138, 122, 216, 0.08);
  color: var(--violet-mid);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(138, 122, 216, 0.30);
}

/* ─── Hero ────────────────────────────────────────────────────────────── */

.hero { padding: 96px 0 64px; position: relative; overflow: visible; }
.hero-inner { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { font-size: 1.25rem; max-width: 620px; margin-bottom: 2em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Grids ───────────────────────────────────────────────────────────── */

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ─── Cards ───────────────────────────────────────────────────────────── */

.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  backdrop-filter: blur(6px);
}
.card:hover {
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 234, 0, 0.15),
    0 6px 28px rgba(95, 20, 175, 0.35);
  transform: translateY(-2px);
}
.card h3 { margin-top: 0; }
.card p { color: var(--text-muted); margin-bottom: 0; }

/* Value-prop icons. Each represents what the product solves — so they're GOLD. */
.card .icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 234, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 1.1rem;
  text-shadow: 0 0 8px rgba(255, 234, 0, 0.6);
  box-shadow: inset 0 0 12px rgba(255, 234, 0, 0.08);
}

/* ─── Section headings get a gold-thread underline ────────────────────── */

section h2,
.doc h2 {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 12px;
}
section h2::after,
.doc h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-glow));
  box-shadow: 0 0 6px rgba(255, 234, 0, 0.6);
  border-radius: 1px;
}

/* ─── How it works — gold thread connecting step "beads" ──────────────── */

.steps { counter-reset: step; position: relative; }
.step {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  position: relative;
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 64px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-glow) 100%);
  box-shadow: 0 0 6px rgba(255, 234, 0, 0.5);
  border-radius: 1px;
}
.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-deepest);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 6px rgba(255, 234, 0, 0.5);
  box-shadow:
    0 0 14px rgba(255, 234, 0, 0.45),
    inset 0 0 8px rgba(255, 234, 0, 0.18);
  position: relative;
  z-index: 1;
}
.step-num::before { content: counter(step); }
.step-body h3 { margin: 4px 0 6px; }
.step-body p { color: var(--text-muted); margin: 0; }

/* ─── Pricing ─────────────────────────────────────────────────────────── */

.pricing-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  backdrop-filter: blur(6px);
}
.pricing-card.featured {
  border: 1px solid var(--gold);
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.5),
    0 0 28px rgba(255, 234, 0, 0.20),
    inset 0 0 36px rgba(255, 234, 0, 0.04);
}
.pricing-card.featured::before,
.pricing-card.featured::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 60px;
  height: 22px;
  border-top: 2px solid var(--gold);
  box-shadow: 0 -1px 6px rgba(255, 234, 0, 0.4);
  pointer-events: none;
}
.pricing-card.featured::before { left: -1px;  border-left: 2px solid var(--gold);  border-top-left-radius: var(--radius); }
.pricing-card.featured::after  { right: -1px; border-right: 2px solid var(--gold); border-top-right-radius: var(--radius); }

.price { font-size: 2.4rem; font-weight: 700; color: #fff; }
.price small { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }

.feature-list { list-style: none; padding: 0; margin: 18px 0 24px; }
.feature-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--text);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 234, 0, 0.55);
}

/* ─── Doc / long-form pages ───────────────────────────────────────────── */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  position: relative;
  /* Must match the `main` z-index so the doc content stays above the
   * sheen overlay (z:3). With z:2 the sheen darkens the text. */
  z-index: 4;
}
.doc h1 { margin-bottom: 0.4em; }
.doc h2 { margin-top: 2.2em; padding-top: 0.6em; padding-bottom: 14px; }
.doc h2:first-of-type { margin-top: 0.8em; }
.doc h3 { margin-top: 1.6em; color: #fff; }
.doc ul, .doc ol { color: var(--text); padding-left: 1.4em; }
.doc li { margin: 0.4em 0; }
.doc li::marker { color: var(--gold); }
.doc .lead { margin-bottom: 2em; }
.doc strong { color: #fff; }
.doc em { color: var(--text-muted); }

.kv {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-card);
  padding: 4px 0;
  margin: 1em 0;
  backdrop-filter: blur(6px);
}
.kv dt { font-weight: 600; color: var(--gold); padding: 12px 18px 4px; text-shadow: 0 0 4px rgba(255, 234, 0, 0.3); }
.kv dd { margin: 0; padding: 0 18px 14px; color: var(--text-muted); border-bottom: 1px solid var(--border-faint); }
.kv dd:last-of-type { border-bottom: none; }

/* FAQ accordion */
details.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-card);
  margin: 12px 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(6px);
}
details.faq[open] {
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 18px rgba(255, 234, 0, 0.10);
}
details.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  text-shadow: 0 0 4px rgba(255, 234, 0, 0.45);
  transition: transform 0.2s ease;
}
details.faq[open] summary::after { content: "−"; }
details.faq .answer { padding: 0 20px 18px; color: var(--text-muted); }
details.faq .answer p { color: var(--text-muted); margin: 0 0 0.6em; }
details.faq .answer p:last-child { margin-bottom: 0; }

/* Callout — gold thread on the left edge */
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(255, 234, 0, 0.05) 0%, rgba(45, 0, 95, 0.20) 30%);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 1.4em 0;
  color: var(--text-muted);
  box-shadow: -2px 0 8px rgba(255, 234, 0, 0.10);
}
.callout strong { color: var(--gold); text-shadow: 0 0 4px rgba(255, 234, 0, 0.4); }

/* ─── Footer ──────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border-faint);
  padding: 20px 0 24px;
  color: var(--text-faint);
  font-size: 0.9rem;
  position: relative;
  /* Same dark-glass treatment as the nav so the footer reads as a
   * banner. With this opaque-enough background the labyrinth canvas
   * + gold thread behind it are hidden — the yellow gradient line
   * (::before above) becomes the visual end of the maze. */
  background: rgba(5, 0, 15, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.55) 40%, rgba(255, 234, 0, 0.7) 50%, rgba(255, 215, 0, 0.55) 60%, transparent);
  box-shadow: 0 0 6px rgba(255, 234, 0, 0.35);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--gold); text-shadow: 0 0 6px rgba(255, 234, 0, 0.5); text-decoration: none; }

/* ─── Selection ──────────────────────────────────────────────────────── */

::selection {
  background: rgba(255, 234, 0, 0.30);
  color: #fff;
  text-shadow: none;
}

/* ─── Labyrinth background + scroll-driven thread (injected by labyrinth.js) ─── */

.labyrinth-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;             /* above body::before stars, below content */

  /* Promote to its own compositing layer at load time. Without this the
   * layer is created the first time JS sets a transform (on first scroll),
   * which causes a one-frame subpixel snap that looks like a sideways jump. */
  transform: translateZ(0);
  will-change: transform;

  /* No CSS mask here — masks on transformed layers force tile re-rasterization
   * every frame in Chromium, which made fast wheel-scrolling stall. The
   * top/bottom fade is now drawn as two static gradient <rect>s inside the
   * SVG itself (see labyrinth.js). */
}

/* Maze walls — C64 10-PRINT style, painted directly to a <canvas> by
 * labyrinth.js (see paintDiagonalsToCanvas). Stroke color / line width
 * / opacity live in JS now since canvas doesn't honor CSS for its
 * drawing primitives. The canvas itself uses .labyrinth-bg for layout
 * and GPU compositing. */

/* Three stacked paths share the solution `d` to fake a 3D cord:
 *   shadow  → wider, dark, semi-transparent, offset down-right (no blur
 *             filter — that's the single biggest perf cost on a large SVG)
 *   body    → muted bronze-gold, the bulk of the thread
 *   highlight → thin warm sliver, offset up-left
 * No CSS transition on stroke-dashoffset — we want it to snap to the
 * scroll position. Animating it queues continuous repaints on every
 * scroll event and that's what was causing the wheel-scroll jank. */
.maze-thread-shadow,
.maze-thread,
.maze-thread-highlight {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* dasharray + dashoffset set via JS */
}
.maze-thread-shadow {
  stroke: rgba(40, 22, 0, 0.45);
  stroke-width: 6;
  transform: translate(1.5px, 2.5px);
}
.maze-thread {
  stroke: #b8902c;                  /* desaturated bronze-gold, ~70% sat */
  stroke-width: 3.2;
}
.maze-thread-highlight {
  stroke: rgba(255, 224, 150, 0.55);
  stroke-width: 1.2;
  transform: translate(-0.5px, -1px);
}

/* Bead at the head of the drawn portion — travels with the user as they
 * scroll. Slightly warmer than the body for visual punch. One soft glow,
 * not two — stacked drop-shadows on a moving element get expensive. */
.maze-bead {
  fill: #ffd76a;
  filter: drop-shadow(0 0 5px rgba(255, 200, 80, 0.7));
  transition: opacity 0.35s ease;
}

/* ─── Calibration page ────────────────────────────────────────────────── */

.cal-question { margin: 2.4em 0; }
.cal-question h2 { margin-bottom: 0.4em; }
.cal-question .lead { font-size: 1rem; margin-bottom: 1.2em; }

.cal-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.cal-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-card);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  backdrop-filter: blur(6px);
}
.cal-option:hover { border-color: rgba(255, 215, 0, 0.45); }
.cal-option input {
  position: absolute;
  left: 14px;
  top: 16px;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}
.cal-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(255, 234, 0, 0.05);
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.5), 0 0 18px rgba(255, 234, 0, 0.10);
}
.cal-option-label { color: #fff; font-weight: 600; font-size: 0.98rem; }
.cal-option-sublabel { color: var(--text-faint); font-size: 0.82rem; }

.cal-submit-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 2em 0 0.6em;
  flex-wrap: wrap;
}

.cal-error {
  margin: 0.6em 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 140, 255, 0.45);
  background: rgba(245, 140, 255, 0.06);
  color: #ffd0ff;
}

.cal-result {
  margin-top: 3em;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(45, 0, 95, 0.45) 0%, rgba(95, 20, 175, 0.20) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.4),
    0 0 28px rgba(255, 234, 0, 0.15),
    inset 0 0 36px rgba(255, 234, 0, 0.04);
}
.cal-result h2 { margin-top: 0; }
.cal-result h2::after { width: 80px; }

.cal-headline {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0.4em 0 1.4em;
}

.cal-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 1.6em 0;
}
.cal-stat {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(5, 0, 15, 0.45);
}
.cal-stat-label { display: block; color: var(--text-muted); font-size: 0.82rem; }
.cal-stat-value { display: block; color: var(--gold); font-weight: 700; font-size: 1.4rem; margin-top: 6px; text-shadow: 0 0 6px rgba(255, 234, 0, 0.45); }
.cal-stat-sublabel { display: block; color: var(--text-faint); font-size: 0.78rem; margin-top: 2px; }

.cal-method-note {
  margin: 1.2em 0 0;
  padding: 12px 16px;
  border-left: 2px solid rgba(255, 215, 0, 0.45);
  background: rgba(255, 234, 0, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.cal-fallback-note {
  margin: 0.6em 0 0;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.cal-cta { margin-top: 1.6em; text-align: center; }
.cal-disclaimer { font-size: 0.85rem; color: var(--text-faint); }
