:root {
  --night: #17132a;   /* page: a desk at night */
  --dusk: #231c3c;    /* raised surfaces */
  --line: #3a3160;
  --mist: #eeebf7;    /* text */
  --haze: #a99fca;    /* quiet text */
  --glow: #b98cff;    /* the LED ring */
  --lamp: #ffc37a;    /* the desk lamp: savings and totals */
  --radius-media: 28px;
  --radius-control: 14px;
  --font: "Bricolage Grotesque", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--mist);
  font: 400 1.0625rem/1.55 var(--font);
  font-variation-settings: "opsz" 14;
}

a { color: var(--glow); }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
img, video { display: block; max-width: 100%; }

h1, h2 { font-variation-settings: "opsz" 96, "wdth" 78; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(2.6rem, 9vw, 4.2rem); font-weight: 760; letter-spacing: -0.02em; }
h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.9rem; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px 16px; max-width: 1180px; margin: 0 auto;
}
.brand {
  color: var(--mist); text-decoration: none; font-weight: 760; font-size: 1.25rem;
  font-variation-settings: "opsz" 48, "wdth" 78;
}
.topbar-bonus { margin: 0; color: var(--lamp); font-size: 0.875rem; text-align: right; }

/* Layout */
.product {
  max-width: 1180px; margin: 0 auto; padding: 0 16px 120px;
  display: grid; gap: 28px;
}
@media (min-width: 900px) {
  .product { grid-template-columns: 1.05fr 1fr; gap: 56px; padding-top: 12px; }
  .stage { position: sticky; top: 16px; align-self: start; grid-row: span 2; }
  .details { grid-column: 2; }
}

/* The stage: the one bold thing. The video sits on a purple glow, like the diffuser on its ring. */
.stage-media { position: relative; isolation: isolate; }
.stage-media video {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-media); background: #8e8d92;
}
.stage-media video.is-photo { object-position: center 62%; }
.glow {
  position: absolute; z-index: -1; left: 8%; right: 8%; bottom: -26px; height: 90px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(185, 140, 255, 0.55), transparent 70%);
  filter: blur(18px);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.55; transform: scaleX(0.92); } }
@media (prefers-reduced-motion: reduce) { .glow { animation: none; } }

.thumbs { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: 12px; background: none;
  cursor: pointer; overflow: hidden; width: 64px; aspect-ratio: 1;
}
.thumbs button[aria-pressed="true"] { border-color: var(--glow); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Buy panel */
.buy h1 { margin-top: 4px; }
.tagline { color: var(--haze); font-size: 1.2rem; margin: 12px 0 18px; max-width: 34ch; }
.points { padding: 0; margin: 0 0 26px; list-style: none; display: grid; gap: 8px; }
.points li { padding-left: 22px; position: relative; }
.points li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow);
}

.bundles fieldset { border: 0; padding: 0; margin: 0; }
.bundles legend { font-weight: 700; margin-bottom: 10px; font-size: 1.1rem; }
.bundle {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-control); background: var(--dusk);
  transition: border-color 0.15s, background-color 0.15s;
}
.bundle:has(input:checked) { border-color: var(--glow); background: #2c2350; }
.bundle input { accent-color: var(--glow); width: 20px; height: 20px; margin: 0; }
.bundle-name { font-weight: 700; display: block; }
.bundle-note { color: var(--haze); font-size: 0.9rem; }
.bundle-price { text-align: right; }
.bundle-price strong { display: block; font-size: 1.15rem; }
.bundle-price span { color: var(--lamp); font-size: 0.85rem; }
.bundle-best {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px;
  background: var(--lamp); color: var(--night); font-size: 0.75rem; font-weight: 700; vertical-align: 2px;
}

.summary { margin: 18px 0; display: grid; gap: 4px; }
.summary div { display: flex; justify-content: space-between; color: var(--haze); }
.summary dt, .summary dd { margin: 0; }
.summary .summary-total { color: var(--mist); font-weight: 700; font-size: 1.25rem; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.summary-total dd { color: var(--lamp); }

/* PayPal renders on white by default; give it a light card so it doesn't float on the dark page. */
.pay { background: #f6f3ff; border-radius: var(--radius-control); padding: 14px 14px 4px; min-height: 64px; }
.pay-status { color: #3a2f66; font-size: 0.9rem; margin: 4px 0 10px; min-height: 0; }
.pay-status:empty { display: none; }
.fine { color: var(--haze); font-size: 0.875rem; margin: 12px 0 0; }

.done {
  margin-top: 18px; padding: 20px; border-radius: var(--radius-control);
  border: 1.5px solid var(--glow); background: #2c2350;
}
.done h2 { margin-bottom: 6px; }
.done p { margin: 0; }

/* Details */
.details { display: grid; gap: 44px; padding-top: 12px; }
.box ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

.timeline ol { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { counter-increment: step; position: relative; padding: 0 0 22px 46px; }
.timeline li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--glow); color: var(--glow); font-weight: 700; font-size: 0.9rem;
}
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 1.5px; background: var(--line);
}
.timeline strong { display: block; }
.timeline span { color: var(--haze); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--glow); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--haze); max-width: 60ch; }

/* Footer */
.footer {
  max-width: 1180px; margin: 0 auto; padding: 28px 16px 110px; color: var(--haze);
  font-size: 0.9rem; border-top: 1px solid var(--line);
}
.footer p { margin: 4px 0; }

/* Sticky buy bar, phones only */
.buybar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 99px;
  background: rgba(35, 28, 60, 0.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); font-weight: 700;
}
.buybar[hidden] { display: none; }
.buybar-btn {
  background: var(--glow); color: var(--night); text-decoration: none;
  padding: 10px 18px; border-radius: 99px; font-weight: 700;
}
@media (min-width: 900px) { .buybar { display: none !important; } }

/* Links page and policies */
.page { max-width: 640px; margin: 0 auto; padding: 8px 16px 80px; }
.page h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); margin: 8px 0 24px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.card {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center;
  padding: 10px; border-radius: 20px; background: var(--dusk); border: 1px solid var(--line);
  color: var(--mist); text-decoration: none;
}
.card img { width: 96px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.card strong { display: block; font-size: 1.15rem; }
.card span { color: var(--haze); font-size: 0.95rem; }
.card em { font-style: normal; color: var(--lamp); }
.policies h2 { margin-top: 32px; }
.policies p { color: var(--haze); max-width: 65ch; }

.missing { max-width: 640px; margin: 15vh auto; padding: 0 16px; }
