/* =============================================================
   RYLI marketing site — dark celestial AI-companion aesthetic.
   Palette + fonts mirror the app itself (see overlays/overlay.css
   in the main RYLI repo): Saira Condensed for display, Inter for
   body, Celestial Blue / Aurora Purple / Soft Cyan accents on a
   Slate background.
   ============================================================= */
/* Fonts are <link>ed from each page's <head> now, not @imported. An @import
   at the top of a stylesheet serialises the request chain: HTML -> this file
   -> Google's CSS -> the woff2 files, with nothing overlapping. */

:root {
  --blue: #6AAEFF;
  --purple: #B388FF;
  --cyan: #7DE7FF;
  --white: #FFFFFF;
  --frost: #F2F6FF;
  --slate: #0D1117;
  --slate-2: #131a24;
  --slate-3: #1a2230;
  --ink: rgba(242, 246, 255, 0.92);
  --ink-dim: rgba(242, 246, 255, 0.64);
  --ink-faint: rgba(242, 246, 255, 0.4);
  --line: rgba(242, 246, 255, 0.1);
  --line-hot: rgba(106, 174, 255, 0.35);

  --gradient: linear-gradient(90deg, var(--blue), var(--purple));
  --gradient-soft: linear-gradient(135deg, rgba(106,174,255,0.16), rgba(179,136,255,0.10));

  --display: "Saira Condensed", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --container: 1160px;

  /* Motion. There were none of these: every duration was hardcoded and every
     easing was the bare `ease` keyword. --lift extracts the "this one matters"
     idiom that .price-card.pro already used, so it has one definition. */
  --dur-1: 160ms;   /* micro -- hover, tab */
  --dur-2: 320ms;   /* panel crossfade */
  --dur-3: 620ms;   /* scroll reveal */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --lift: 0 0 0 1px rgba(106, 174, 255, 0.2), var(--shadow);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--slate);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fixed ambient glow field behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 500px at 15% -5%, rgba(106,174,255,0.16), transparent 60%),
    radial-gradient(800px 600px at 90% 10%, rgba(179,136,255,0.14), transparent 60%),
    radial-gradient(900px 700px at 50% 100%, rgba(125,231,255,0.08), transparent 60%),
    var(--slate);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; position: relative; }

@media (max-width: 720px) {
  section { padding: 64px 0; }
}

/* ---------- reusable bits ---------- */

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gradient);
  color: #0a0e14;
  box-shadow: 0 10px 30px rgba(106,174,255,0.25);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(106,174,255,0.35); }
.btn-outline {
  background: rgba(255,255,255,0.02);
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--line-hot); background: rgba(255,255,255,0.05); }
.btn-block { width: 100%; }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-dim);
  font-size: 15px;
}
.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: rgba(125,231,255,0.14);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

.icon-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(106,174,255,0.25);
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* STAGGER. .reveal is applied to 21 CONTAINERS, so grids arrived as one rigid
   block -- all four steps, both pricing cards, every theme swatch at once. The
   per-child delay comes from a --d custom property set in script.js, the same
   convention the admin dashboard in src/index.js already uses. */
.stagger > * { opacity: 0; transform: translateY(18px); }
.stagger.is-visible > * {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-3) var(--ease-out) var(--d, 0s),
              transform var(--dur-3) var(--ease-out) var(--d, 0s);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,17,23,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand img { height: 32px; width: auto; }
.nav__brand span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
}
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dim);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; }
.nav__toggle {
  display: none;
  background: none; border: none; color: var(--ink);
  font-size: 22px; cursor: pointer;
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--slate-2);
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
}

/* ---------- hero ---------- */

.hero { padding-top: 88px; padding-bottom: 60px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  margin: 22px 0 20px;
}
.hero p.lede {
  font-size: 18px;
  color: var(--ink-dim);
  max-width: 54ch;
  margin-bottom: 32px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 13px; color: var(--ink-faint);
}
.hero__trust span { display: flex; align-items: center; gap: 6px; }

.hero__art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--slate-2);
  aspect-ratio: 4 / 5;
  max-height: 620px;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
}

/* ---------- who it's for ---------- */

.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.audience-card { padding: 32px 28px; }
.audience-card h3 { font-size: 24px; margin: 6px 0 8px; }
.audience-card .desc { color: var(--ink-dim); margin-bottom: 18px; max-width: 46ch; }
.audience-card .feature__eyebrow { margin-bottom: 4px; }
@media (max-width: 860px) { .audience-grid { grid-template-columns: 1fr; } }

/* A neutral pill. There is no bare `.tag` rule in this file -- only `.tag.pro`
   and the theme-swatch variants -- so setup-guide.html's own COMING SOON tags
   have been rendering unstyled. One rule covers both. */
.tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(242, 246, 255, 0.08);
  color: var(--ink-dim);
  border: 1px solid var(--line);
}

/* ---------- positioning strip ---------- */

.strip {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.strip strong { color: var(--ink-dim); }

/* ---------- feature sections ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature.flip .feature__copy { order: 2; }
.feature.flip .feature__media { order: 1; }
.feature__eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: 18px;
}
.feature h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
.feature p.desc { color: var(--ink-dim); font-size: 16px; max-width: 52ch; }
.feature__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--slate-2);
}
.feature__media img { width: 100%; height: auto; display: block; }
/* Ryli's waveform and the Insights screenshot sit in matching bubbles. A shared
   aspect-ratio (rather than a min-height) is what actually keeps them the same
   size — they share a column, so equal width plus equal ratio means equal
   height at every breakpoint. Left to their own content they diverged badly:
   the waveform ran ~332px while the Insights shot came in at ~271px. */
.waveform-media {
  display: flex;
  align-items: center;
  justify-content: center;
  /* The Insights screenshot's OWN ratio, so it fills its bubble edge to edge
     rather than sitting letterboxed inside a taller box — at 16/10 it rendered
     474x246 in a 524x328 bubble and read as too small. */
  aspect-ratio: 1600 / 831;
  background: radial-gradient(400px 260px at 50% 50%, rgba(106,174,255,0.10), transparent 70%), var(--slate-2);
}
.insights-media {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Its OWN ratio, not the waveform's. These two used to share 1600/831 -- the
     old Insights screenshot's shape. That shot is gone: it showed an eBay Live
     platform pill for a platform that was dropped from the product, so it is
     cropped above the switcher now and is shorter. Sharing the old ratio would
     letterbox it. */
  aspect-ratio: 1600 / 685;
  background: radial-gradient(400px 260px at 50% 50%, rgba(106,174,255,0.10), transparent 70%), var(--slate-2);
}
/* No padding: the screenshot IS the bubble. */
.insights-media { padding: 0; }
.waveform-media { padding: 18px; }
.waveform-media svg,
.insights-media img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
.thermalflow-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  background: radial-gradient(420px 280px at 50% 50%, rgba(106,174,255,0.10), transparent 70%), var(--slate-2);
  padding: 32px;
}
.thermalflow-media svg {
  width: 100%;
  max-width: 260px;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(106,174,255,0.28)) drop-shadow(0 10px 26px rgba(0,0,0,0.4));
}
.feature__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-faint);
  font-style: italic;
}

@media (max-width: 900px) {
  .feature, .feature.flip .feature__copy, .feature.flip .feature__media {
    order: initial;
  }
  .feature { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- carousel ---------- */

.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--slate-2);
}
.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 1560 / 1000; /* matches the real app screenshots' native ratio */
  background: #000;
}
/* object-fit: contain — these are real app screenshots; nothing gets cropped */
.carousel__slide img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Tall variant: one unified, unboxed carousel — phone + screenshots share
   the same spot and the same floating (drop-shadow, no card bg) treatment,
   instead of the phone standing alone above a separately-boxed carousel.
   object-fit: contain (base rule) handles portrait vs. landscape slides
   correctly within one shared height — no per-image sizing needed. */
.carousel--tall {
  background: transparent;
  border: none;
  box-shadow: none;
}
.carousel--tall .carousel__slide {
  aspect-ratio: unset;
  height: 580px;
  background: transparent;
}
.carousel--tall .carousel__slide img {
  filter: drop-shadow(0 26px 42px rgba(0,0,0,0.5)) drop-shadow(0 6px 16px rgba(106,174,255,0.15));
}
@media (max-width: 720px) {
  .carousel--tall .carousel__slide { height: 440px; }
}
.carousel__dots {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel__dots button.is-active { background: var(--white); transform: scale(1.2); }

/* The pause control lives in the dots row. It is a real button, not a hover
   affordance, because hover is not available to a keyboard or a phone. */
.carousel__pause {
  width: auto;
  min-width: 26px;
  height: 12px;
  padding: 0 6px;
  margin-left: 8px;
  font-size: 9px;
  line-height: 1;
  color: var(--ink-dim);
  background: rgba(242, 246, 255, 0.12);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.carousel__pause:hover { color: var(--ink); background: rgba(242, 246, 255, 0.2); }
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(13,17,23,0.55);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }
.carousel__arrow:hover { border-color: var(--line-hot); }
.carousel[data-single] .carousel__arrow,
.carousel[data-single] .carousel__dots { display: none; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow-badge { margin-bottom: 20px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--ink-dim); margin-top: 14px; font-size: 16px; }

/* ---------- themes gallery ---------- */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}
.theme-swatch {
  border-radius: var(--radius);
  padding: 20px 16px;
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
}
.theme-swatch .swatch-dot {
  width: 40px; height: 40px; border-radius: 50%;
  margin: 0 auto 14px;
}
.theme-swatch .name { font-weight: 700; font-size: 14px; }
.theme-swatch .tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 999px;
}
.theme-swatch .tag.free { background: rgba(125,231,255,0.15); color: var(--cyan); }
.theme-swatch .tag.pro { background: var(--gradient); color: #0a0e14; }

/* Standalone inline tag — e.g. marking a Pro-only line inside a checklist */
.tag.pro {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gradient);
  color: #0a0e14;
}

.theme-grid--compact { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 720px) {
  .theme-grid--compact { grid-template-columns: repeat(2, 1fr); }
}
.theme-swatch--bundle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,0.03);
}
.theme-swatch--bundle .name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
}
.theme-swatch--bundle .sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------- showcase toggle (Stream Store / Themes) ---------- */

.showcase-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.showcase-toggle__btn {
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--ink-dim);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.showcase-toggle__btn:hover { border-color: var(--line-hot); color: var(--ink); }
.showcase-toggle__btn.is-active {
  background: var(--gradient);
  border-color: transparent;
  color: #0a0e14;
}

.showcase-panel { display: none; }
/* Was a hard display:none -> block cut on two prominent tab widgets. Keeps
   display:none (so lazy images in a hidden panel stay unfetched and the layout
   reserves nothing) while the incoming panel fades up. No JS change. */
.showcase-panel.is-active { display: block; animation: panelIn var(--dur-2) var(--ease-out) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.store-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.store-highlight {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.store-highlight .icon-badge {
  margin-bottom: 14px;
  font-size: 18px;
}
.store-highlight .name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.store-highlight p {
  color: var(--ink-dim);
  font-size: 14px;
  max-width: 22ch;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  padding: 28px 22px;
  position: relative;
}
.step .num {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  display: block;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--ink-dim); font-size: 14px; }

/* ---------- pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  align-items: stretch;
}
.price-card {
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.pro {
  border-color: var(--line-hot);
  box-shadow: 0 0 0 1px rgba(106,174,255,0.2), var(--shadow);
}
.ribbon {
  position: absolute;
  top: -13px; right: 28px;
  background: var(--gradient);
  color: #0a0e14;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}
.price-card .tier-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-faint);
}
.price-card h3 { font-size: 24px; margin: 8px 0 18px; }
.price-card .amount { font-family: var(--display); font-size: 44px; font-weight: 700; }
.price-card .amount .period { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--ink-faint); }
.price-card .amount .strike { font-size: 24px; font-weight: 500; color: var(--ink-faint); text-decoration: line-through; margin-right: 6px; }
.price-card .blurb { color: var(--ink-dim); font-size: 14px; margin: 14px 0 4px; }
.price-card .checklist { flex-grow: 1; }
.price-card .btn { margin-top: 26px; }
.price-note { text-align: center; margin-top: 28px; color: var(--ink-faint); font-size: 13px; }
.card-note { text-align: center; margin-top: 10px; color: var(--ink-faint); font-size: 12px; }
.discount-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(125, 231, 255, 0.12);
  border: 1px solid rgba(125, 231, 255, 0.3);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  width: fit-content;
}

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  padding: 20px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--ink-faint);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--ink-dim); font-size: 15px; }
.faq-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- final CTA ---------- */

.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 16px; }
.final-cta p { color: var(--ink-dim); max-width: 46ch; margin: 0 auto 32px; }

/* ---------- email form ---------- */

.email-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.email-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 15px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
}
.email-form input[type="email"]::placeholder { color: var(--ink-faint); }
.email-form input[type="email"]:focus { outline: none; border-color: var(--line-hot); }
.form-status { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-status.ok { color: var(--cyan); }
.form-status.err { color: #ff9a9a; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { height: 26px; }
.footer__brand span { font-family: var(--display); font-weight: 700; font-size: 18px; }
.footer__tagline { color: var(--ink-faint); font-size: 13px; margin-top: 8px; max-width: 32ch; }
.footer__links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-dim); flex-wrap: wrap; }
/* ---------- legal pages (privacy / terms) ---------- */

.legal { padding: 56px 0 40px; }
.legal__updated { color: var(--ink-faint); font-size: 13px; margin-top: 10px; }
.legal__body { max-width: 760px; margin: 40px auto 0; }
.legal__body h2 {
  font-size: 22px;
  margin: 44px 0 14px;
  padding-top: 4px;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.legal__body ul {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px 22px;
}
.legal__body li { margin-bottom: 6px; }
.legal__body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal__body strong { color: var(--ink); }

/* ---------- thank-you (post-checkout) ---------- */

.thankyou { padding: 72px 0 60px; text-align: center; }
.thankyou h1 { font-size: clamp(32px, 4.5vw, 48px); margin-top: 14px; }
.thankyou__sub { color: var(--ink-dim); font-size: 17px; max-width: 52ch; margin: 14px auto 0; }
.thankyou__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 44px auto 0;
  text-align: left;
}
@media (max-width: 760px) { .thankyou__grid { grid-template-columns: 1fr; } }
.thankyou__keycard, .thankyou__stepscard { padding: 28px; display: flex; flex-direction: column; }
.thankyou__keylabel {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
/* An unconditional `display` here would beat the browser's own
   [hidden]{display:none} (same specificity tier, author rule wins) — scope
   to :not([hidden]) or the "still looking it up" / fallback states silently
   stop working, same lesson as .onboarding-overlay in the desktop app. */
.thankyou__keybox:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line-hot);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.thankyou__keybox code {
  flex: 1;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--cyan);
  word-break: break-all;
}
.thankyou__keybox .btn { padding: 8px 16px; font-size: 13px; flex-shrink: 0; }
.thankyou__hint { color: var(--ink-faint); font-size: 13px; line-height: 1.6; margin-top: 14px; }
.thankyou__steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; flex: 1; }
.thankyou__steps li {
  counter-increment: step;
  display: flex;
  gap: 12px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.5;
}
.thankyou__steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gradient);
  color: #0a0e14;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.thankyou__steps strong { color: var(--ink); }
.thankyou__support { color: var(--ink-faint); font-size: 14px; margin-top: 36px; }
.thankyou__support a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--ink-faint);
  font-size: 12px;
  text-align: center;
}

/* ---------- setup guide ---------- */

.guide { padding: 56px 0 72px; }
.guide h1 { font-size: clamp(32px, 4.5vw, 48px); margin: 22px 0 18px; }
.guide__intro { color: var(--ink-dim); font-size: 16px; line-height: 1.7; max-width: 68ch; margin-bottom: 24px; }
.guide .checklist { margin-bottom: 40px; }

.guide-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.guide-nav a {
  font-size: 13px; font-weight: 700; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-dim);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.guide-nav a:hover { border-color: var(--line-hot); color: var(--ink); }

.guide-step-section { padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.guide-step-section:first-of-type { border-top: none; padding-top: 0; }
.guide-step-section h2 { font-size: clamp(24px, 3vw, 32px); margin: 16px 0 14px; }
.guide-step-section .desc { color: var(--ink-dim); font-size: 15px; line-height: 1.7; max-width: 62ch; margin-bottom: 28px; }

.guide-steps { max-width: 760px; display: flex; flex-direction: column; gap: 12px; counter-reset: gstep; }
.guide-step summary::before {
  counter-increment: gstep; content: counter(gstep) ".";
  color: var(--blue); font-family: var(--display); font-weight: 700; margin-right: 10px;
}

/* camera-stack diagram */
.camera-stack { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; margin: 8px 0 32px; }
.camera-stack__diagram {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--slate-2); box-shadow: var(--shadow); padding: 20px;
}
.camera-stack__diagram svg { width: 100%; height: auto; display: block; }
.stack-layer { transition: opacity 0.2s ease, filter 0.2s ease; cursor: pointer; }
.camera-stack__diagram.has-active .stack-layer:not(.is-active) { opacity: 0.4; }
.stack-layer.is-active { filter: drop-shadow(0 0 8px rgba(106,174,255,0.55)); }
.stack-layer[data-layer="facecam"].is-active rect { stroke-opacity: 1; }

.camera-stack__legend { display: flex; flex-direction: column; gap: 10px; }
.camera-layer-btn {
  display: flex; align-items: flex-start; gap: 14px; text-align: left; width: 100%;
  padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: rgba(255,255,255,0.02); color: inherit; font-family: var(--body); cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.camera-layer-btn:hover, .camera-layer-btn.is-active { border-color: var(--line-hot); background: rgba(255,255,255,0.05); }
.camera-layer-btn .num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--gradient);
  color: #0a0e14; font-family: var(--display); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.camera-layer-btn .title { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.camera-layer-btn .sub { display: block; color: var(--ink-dim); font-size: 13px; line-height: 1.5; }

/* Part heading — splits the guide into "get running" and "go live". */
.guide-part {
  margin: 64px 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}
.guide-part:first-of-type { margin-top: 40px; }

/* The one instruction hosts keep missing. Deliberately louder than a hint:
   starting a show from the wrong window leaves the overlay running and doing
   nothing, which looks like a broken product rather than a missed step. */
.guide-critical {
  margin: 20px 0 28px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 176, 82, 0.42);
  border-left-width: 4px;
  background: rgba(255, 176, 82, 0.09);
  color: var(--text, #dfe7f5);
  line-height: 1.6;
}
.guide-critical strong:first-child { display: block; margin-bottom: 6px; }

/* Tutorial video slot. Sits empty and hidden until there is one to show. */
.guide-video {
  margin: 28px 0 8px;
  aspect-ratio: 16 / 9;
  max-width: 760px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.guide-video[hidden] { display: none; }
.guide-video > iframe, .guide-video > video { width: 100%; height: 100%; border: 0; display: block; }

.guide-outro { text-align: center; max-width: 560px; margin: 64px auto 0; }
.guide-outro h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.guide-outro p { color: var(--ink-dim); margin-bottom: 24px; }
.guide-outro p a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 860px) {
  .camera-stack { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .guide-step-section { padding: 36px 0; }
}

/* ── Changelog page ─────────────────────────────────────────────────────
   Reuses .legal's page chrome (container + vertical rhythm); everything
   below is specific to the release list. Rendered client-side from
   changelog.json — the same file the desktop app ships. */
.changelog__intro { max-width: 620px; }
.changelog__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 34px;
}
.changelog__loading { color: var(--ink-dim); }
.changelog__entry {
  background: var(--slate-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
/* The newest release is what most visitors came for — lift it with the
   brand gradient edge rather than a different card colour, matching the
   treatment already used on the Insights hero inside the app. */
.changelog__entry.is-latest {
  border-color: var(--line-hot);
  position: relative;
  overflow: hidden;
}
.changelog__entry.is-latest::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--gradient);
}
.changelog__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.changelog__version {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--white);
}
.changelog__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--slate);
  background: var(--gradient);
}
.changelog__date {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-left: auto;
}
.changelog__items {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.changelog__items li {
  color: var(--ink-dim);
  line-height: 1.6;
}
.changelog__items li::marker { color: var(--blue); }
.changelog__footnote {
  margin-top: 34px;
  color: var(--ink-faint);
  font-size: 0.9rem;
}
@media (max-width: 560px) {
  .changelog__entry { padding: 18px 16px; }
  .changelog__date { margin-left: 0; width: 100%; }
}

/* Hype Meter feature media (2026-08-10). Same shape as .thermalflow-media —
   an inline SVG rather than a screenshot, because the meter is changing and a
   screenshot would go stale the moment it does. */
.hype-media, .companion-media { display: flex; align-items: center; justify-content: center; }
.hype-media svg, .companion-media svg { width: 100%; max-width: 520px; height: auto; }

/* ---------- hover, focus, and the reduced-motion guard ---------- */

/* The card system had NO hover state at all -- .card, .price-card, .step,
   .theme-swatch and .store-highlight were completely inert. --gradient-soft
   was declared in :root and never referenced; this is what it was for. */
.card,
.price-card,
.step,
.theme-swatch,
.store-highlight,
.audience-card {
  transition: transform var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out),
              background var(--dur-1) var(--ease-out);
}
.step:hover,
.theme-swatch:hover,
.store-highlight:hover,
.audience-card:hover,
.step:focus-visible,
.theme-swatch:focus-visible,
.store-highlight:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-hot);
  background-image: var(--gradient-soft);
}

/* The glow is PRE-PAINTED on a pseudo-element and only its opacity animates.
   Interpolating box-shadow repaints the element and its shadow region every
   frame -- which .btn already does, and does on the download CTA. */
.price-card { position: relative; }
.price-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: var(--lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-1) var(--ease-out);
}
.price-card:hover::after { opacity: 1; }

/* There was no focus-ring convention anywhere on this site. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Nothing on this site honoured a reduced-motion preference: not the reveals,
   not smooth scroll, and not the 4.5s carousel autoplay.
   The last rule is load-bearing -- without it, any .reveal whose observer
   never fires is stranded at opacity:0 and its content is simply gone. */
@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;
    scroll-behavior: auto !important;
  }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- showpiece: the Hype Meter fills ---------- */
/* The section's whole argument is "make the room erupt on cue" and the graphic
   was a static SVG with the bar hard-coded at 268 of 444. Transform and opacity
   only: transform-box:fill-box gives the rect its own coordinate space so a
   left-origin scaleX grows it from its own edge, the same technique the admin
   map's blips use. */
.hm-fill {
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0);
}
.hype-media.is-live .hm-fill {
  animation: hmFill 1400ms var(--ease-out) 120ms forwards;
}
@keyframes hmFill { to { transform: scaleX(1); } }

/* The countdown breathes rather than blinks -- a blink reads as an error state,
   and this is a prompt. */
.hype-media.is-live .hm-clock { animation: hmPulse 1800ms ease-in-out 900ms infinite; }
@keyframes hmPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

@media (prefers-reduced-motion: reduce) {
  .hm-fill { transform: scaleX(1); }
  .hype-media.is-live .hm-fill,
  .hype-media.is-live .hm-clock { animation: none; }
}

/* ---------- showpiece: the board fills itself ---------- */
/* The board screenshot above it is a board BEFORE a break starts -- every spot
   open. This is the part a still cannot carry: spots being claimed one at a
   time with a buyer's name landing on each. Transform and opacity only, and it
   runs once, when the section is first seen. */
.breaker-media { display: block; padding: 0; }
.breaker-media img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

.bk-live {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}
.bk-live__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.bk-live__count { color: var(--blue); font-variant-numeric: tabular-nums; }
.bk-live__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bk-tile {
  position: relative;
  overflow: hidden;
  padding: 7px 8px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}
/* The team's own colour as a left edge -- the same device the real board uses,
   and what makes a 32-spot board scannable at a glance. */
.bk-tile::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--team);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 320ms var(--ease-out) var(--d, 0s);
}
.bk-live.is-running .bk-tile::before { transform: scaleY(1); }

.bk-tile__team {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}
.bk-tile__who {
  display: block;
  font-size: 10px;
  color: var(--ink-dim);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 260ms var(--ease-out) var(--d, 0s),
              transform 260ms var(--ease-out) var(--d, 0s);
}
.bk-live.is-running .bk-tile__who { opacity: 1; transform: none; }
/* A spot nobody has taken stays visibly open -- that is the information. */
.bk-tile.is-open .bk-tile__who { color: var(--ink-faint); font-style: italic; }
.bk-tile.is-open::before { opacity: 0.35; }

@media (max-width: 520px) { .bk-live__grid { grid-template-columns: repeat(2, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .bk-tile::before { transform: scaleY(1); }
  .bk-tile__who { opacity: 1; transform: none; }
}

/* ---------- what a phone can actually do ---------- */
/* RYLI is a Windows desktop app. On a phone, "Download Now" is an instruction
   the device cannot carry out -- it hands over a 188MB .exe that iOS will not
   open. The button stays (people do send themselves the link) but it says what
   it is, and a line under the hero explains rather than leaving a dead end. */
.cta-narrow { display: none; }
.hero__pcnote { display: none; }

@media (max-width: 720px) {
  .cta-wide { display: none; }
  .cta-narrow { display: inline; }
  .hero__pcnote {
    display: block;
    margin: 14px 0 0;
    max-width: 42ch;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-faint);
  }
}
