/* =========================================================
   BookcastAI — Landing Page
   Editorial daylight / warm newsroom.
   Tokens deliberately scoped under .landing so they cannot
   leak into the authenticated app shell.
   ========================================================= */

.landing {
  --bg:          #ffffff;
  --surface:     #ffffff;
  --surface-2:   #eef5f3;
  --ink:         #121e1c;
  --ink-dim:     #445550;
  --ink-mute:    #7a8e8a;
  --rule:        #dce9e6;
  --accent:      #2e6b63;   /* dark teal — buttons, large display, icons */
  --accent-ink:  #1d4a44;   /* deeper teal for small text */
  --accent-2:    #4e9e8e;
  --ok:          #2a8a5f;
  --radius-lg:   18px;
  --radius-md:   12px;
  --radius-sm:   8px;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---- Reset / base -------------------------------------- */

.landing,
.landing * { box-sizing: border-box; }

body.landing {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle cool teal atmospheric glow */
body.landing::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 620px at 78% 16%, rgba(46, 107, 99, 0.07), transparent 60%),
    radial-gradient(1200px 820px at 8% 110%, rgba(46, 107, 99, 0.04), transparent 55%);
}

.landing main,
.landing header,
.landing footer { position: relative; z-index: 1; }

.landing a { color: inherit; text-decoration: none; }
.landing a:hover { color: var(--accent-ink); }

.landing h1, .landing h2, .landing h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
.landing h1 em, .landing h2 em {
  font-style: italic;
  color: var(--accent);
}

.landing p { margin: 0; }

.landing .mono {
  font-family: var(--mono);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* Accessibility helpers */
.landing .skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.landing .skip:focus {
  left: 12px;
  top: 12px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  z-index: 100;
  font-weight: 600;
}

.landing :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Layout -------------------------------------------- */

.landing .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav ----------------------------------------------- */

.landing .nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--rule);
}
.landing .nav__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.landing .brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--accent);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.landing .brand__dot {
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 0;
  position: relative;
  top: 2px;
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.landing .nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}
.landing .nav__links a:not(.btn) { color: var(--ink-dim); }
.landing .nav__links a:not(.btn):hover { color: var(--ink); }

/* ---- Buttons ------------------------------------------- */

.landing .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease),
              background 180ms var(--ease), color 180ms var(--ease),
              border-color 180ms var(--ease);
  white-space: nowrap;
}
.landing .btn--sm { padding: 9px 16px; font-size: 0.9rem; }

.landing .btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(46, 107, 99, 0.25);
}
.landing .btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(46, 107, 99, 0.34);
}

.landing .btn--ghost {
  color: var(--ink);
  border-color: var(--rule);
  background: transparent;
}
.landing .btn--ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ---- Section head / eyebrow ---------------------------- */

.landing .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.landing .rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(46, 107, 99, 0.55);
  animation: rec 2.4s var(--ease) infinite;
}
@keyframes rec {
  0%   { box-shadow: 0 0 0 0 rgba(46, 107, 99, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(46, 107, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 107, 99, 0); }
}

.landing .sec-head {
  max-width: 720px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.landing .sec-head h2 {
  font-size: clamp(2rem, 2.2vw, 3rem);
  line-height: 1.1;
}
.landing .sec-head .sub {
  color: var(--ink-dim);
  font-size: 1.05rem;
}

/* ---- HERO V2 (text left, SVG right) -------------------- */

.landing .hero-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
}
@media (max-width: 900px) {
  .landing .hero-v2 { grid-template-columns: 1fr; min-height: unset; }
}

.landing .hero-v2__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px clamp(32px, 6vw, 80px) 96px clamp(32px, 8vw, 112px);
  border-right: 1px solid var(--rule);
}
@media (max-width: 900px) {
  .landing .hero-v2__content {
    padding: 64px 24px 48px;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
}

.landing .hero-v2__content .eyebrow { margin-bottom: 18px; }

.landing .hero-v2__content h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.04;
  margin-bottom: 20px;
  max-width: 17ch;
}

.landing .hero-v2__content .sub {
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  max-width: 46ch;
  margin-bottom: 32px;
}

.landing .hero-v2__content .cta-row { margin-top: 0; }
.landing .hero-v2__content .micro   { margin-top: 22px; }

.landing .hero-v2__visual-shell {
  padding: clamp(16px, 2vw, 28px);
  display: flex;
  background: var(--surface-2);
}

.landing .hero-v2__visual {
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
}
@media (max-width: 900px) {
  .landing .hero-v2__visual-shell {
    padding: 18px 18px 24px;
    min-height: 420px;
  }
}

.landing .hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.landing .hero-vinyl {
  opacity: 0.9;
}

.landing .hero-vinyl__disc {
  transform-box: view-box;
  transform-origin: 850px -30px;
  animation: hero-vinyl-spin 7s linear infinite;
  will-change: transform;
}

@keyframes hero-vinyl-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .landing .hero-vinyl__disc {
    animation: none;
  }
}

.landing .hero-wave > rect {
  transform-box: fill-box;
  transform-origin: center;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.25, 1);
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

.landing .hero-wave > rect:nth-child(5n + 1) {
  animation-name: hero-wave-a;
  animation-duration: 1080ms;
  animation-delay: -920ms;
}

.landing .hero-wave > rect:nth-child(5n + 2) {
  animation-name: hero-wave-b;
  animation-duration: 1320ms;
  animation-delay: -480ms;
}

.landing .hero-wave > rect:nth-child(5n + 3) {
  animation-name: hero-wave-c;
  animation-duration: 1240ms;
  animation-delay: -1080ms;
}

.landing .hero-wave > rect:nth-child(5n + 4) {
  animation-name: hero-wave-b;
  animation-duration: 1460ms;
  animation-delay: -740ms;
}

.landing .hero-wave > rect:nth-child(5n) {
  animation-name: hero-wave-a;
  animation-duration: 1160ms;
  animation-delay: -220ms;
}

@keyframes hero-wave-a {
  0%, 100% {
    transform: scaleY(0.46);
    opacity: 0.42;
  }
  18% {
    transform: scaleY(1);
    opacity: 0.96;
  }
  38% {
    transform: scaleY(0.62);
    opacity: 0.66;
  }
  62% {
    transform: scaleY(0.88);
    opacity: 0.84;
  }
  82% {
    transform: scaleY(0.36);
    opacity: 0.4;
  }
}

@keyframes hero-wave-b {
  0%, 100% {
    transform: scaleY(0.38);
    opacity: 0.36;
  }
  24% {
    transform: scaleY(0.78);
    opacity: 0.7;
  }
  46% {
    transform: scaleY(0.54);
    opacity: 0.54;
  }
  68% {
    transform: scaleY(1.04);
    opacity: 0.95;
  }
  86% {
    transform: scaleY(0.44);
    opacity: 0.42;
  }
}

@keyframes hero-wave-c {
  0%, 100% {
    transform: scaleY(0.5);
    opacity: 0.46;
  }
  16% {
    transform: scaleY(0.34);
    opacity: 0.34;
  }
  34% {
    transform: scaleY(0.92);
    opacity: 0.86;
  }
  58% {
    transform: scaleY(0.58);
    opacity: 0.58;
  }
  78% {
    transform: scaleY(1.08);
    opacity: 0.98;
  }
}

/* ---- HERO SPLIT (two-half layout) ---------------------- */

.landing .hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

@media (max-width: 860px) {
  .landing .hero-split {
    grid-template-columns: 1fr;
    min-height: unset;
  }
}

/* Left half — slider */
.landing .hero-split__slider {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.landing .slider__track {
  display: flex;
  height: 100%;
  width: 300%;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.landing .slide {
  flex: 0 0 33.3333%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: inherit;
}

.landing .slide--1 { background: #2e6b63 center/cover no-repeat; }
.landing .slide--2 { background: #4a8a80 center/cover no-repeat; }
.landing .slide--3 { background: #1d4a44 center/cover no-repeat; }

/* Semi-transparent teal mask over the image */
.landing .slide__mask {
  position: absolute;
  inset: 0;
  background: rgba(18, 55, 50, 0.72);
  z-index: 1;
}

/* Centered text block with solid background */
.landing .slide__caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.landing .slide__caption__inner {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  max-width: 28ch;
}
.landing .slide__label {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.landing .slide__caption p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* Prev / Next arrows */
.landing .slider__prev,
.landing .slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 180ms ease, border-color 180ms ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0;
}
.landing .slider__prev:hover,
.landing .slider__next:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.7);
}
.landing .slider__prev { left: 14px; }
.landing .slider__next { right: 14px; }

/* Dot indicators */
.landing .slider__dots {
  position: absolute;
  bottom: 22px;
  right: 28px;
  z-index: 10;
  display: flex;
  gap: 8px;
}
.landing .slider__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease, transform 200ms ease;
}
.landing .slider__dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* Right half — hero content */
.landing .hero-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 64px 56px 64px 64px;
  background: var(--bg);
}
@media (max-width: 1100px) {
  .landing .hero-split__content { padding: 56px 40px; }
}
@media (max-width: 860px) {
  .landing .hero-split__content { padding: 48px 24px 56px; }
}

.landing .hero-split__content .eyebrow { margin-bottom: 16px; }

.landing .hero-split__content h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 18ch;
}

.landing .hero-split__content .sub {
  color: var(--ink-dim);
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  max-width: 48ch;
  margin-bottom: 28px;
}

.landing .hero-split__content .cta-row { margin-top: 0; }

.landing .hero-split__content .micro { margin-top: 20px; }

.landing .cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.landing .micro {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---- Placeholder "images" ------------------------------ */
/*
 * No real imagery yet — these colored blocks stand in for cover art,
 * with a text label describing what the asset should be.
 */
.landing .ph {
  position: relative;
  color: rgba(20, 22, 30, 0.92);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  isolation: isolate;
}
.landing .ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.08) 0 2px, transparent 2px 10px);
  mix-blend-mode: multiply;
  opacity: 0.45;
  z-index: 0;
}
.landing .ph__label {
  position: relative;
  z-index: 1;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.88);
  border-top-right-radius: 8px;
  max-width: 85%;
}
.landing .ph__label small {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--body);
  color: rgba(20, 22, 30, 0.7);
}

/* Per-title colored blocks — distinct teal-mint tones */
.landing .ph--holmes    { background: linear-gradient(160deg, #4a8a80 0%, #7abdb5 55%, #c2e4de 100%); }
.landing .ph--awakening { background: linear-gradient(160deg, #3a7a72 0%, #6ab0a8 55%, #b8dcd8 100%); }
.landing .ph--dickens   { background: linear-gradient(160deg, #5a8f8a 0%, #8ec4bc 55%, #cce8e2 100%); }
.landing .ph--austen    { background: linear-gradient(160deg, #7aa8a0 0%, #a8cfc8 55%, #daeee8 100%); }

.landing .watermark {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  padding: 4px 8px;
  border: 1px solid rgba(20, 22, 30, 0.55);
  border-radius: 4px;
  color: rgba(20, 22, 30, 0.82);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ---- DEMO strip ---------------------------------------- */

.landing .demo {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
}
.landing .demo__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .landing .demo__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .landing .demo__grid { grid-template-columns: repeat(4, 1fr); } }

.landing .card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease),
              box-shadow 220ms var(--ease);
  box-shadow: 0 6px 16px rgba(31, 28, 20, 0.05);
}
.landing .card:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 107, 99, 0.45);
  box-shadow: 0 20px 40px rgba(20, 30, 28, 0.1);
}
.landing .card .cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  transform: none;
  overflow: hidden;
  background: var(--surface-2);
}
.landing .cover__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing .card__body {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}
.landing .card__body h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 500;
}
.landing .author {
  color: var(--ink-dim);
  font-size: 0.9rem;
  margin-top: -4px;
}
.landing .chip {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--accent-ink);
  padding: 4px 8px;
  border: 1px solid rgba(46, 107, 99, 0.45);
  border-radius: 999px;
  text-transform: uppercase;
  background: rgba(46, 107, 99, 0.06);
}

.landing .player {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.landing .play {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 140ms var(--ease);
}
.landing .play:active { transform: scale(0.94); }
.landing .ch {
  color: var(--ink-dim);
  font-size: 0.8rem;
}

.landing .track {
  height: 2px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
  margin-top: auto;
}
.landing .track__fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 80ms linear;
}
.landing .card.is-playing { border-color: rgba(46, 107, 99, 0.55); }

/* ---- HOW IT WORKS -------------------------------------- */

.landing .how {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
}
.landing .how__art {
  margin: -10px 0 38px;
}
.landing .how__art svg {
  display: block;
  width: 100%;
  height: auto;
}
.landing .how__fa-icon {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 3.9rem;
  line-height: 1;
}
.landing .how__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .landing .how__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}
.landing .step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.landing .step__n {
  font-size: 3.4rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.04em;
}
.landing .step__icon {
  color: var(--ink-dim);
  font-size: 1.3rem;
}
.landing .step h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
}
.landing .step p { color: var(--ink-dim); }

/* ---- CLEAN AUDIO --------------------------------------- */

.landing .clean {
  padding: 88px 0;
  border-top: 1px solid var(--rule);
}
.landing .clean__grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .landing .clean__grid {
    grid-template-columns: 5fr 6fr;
    gap: 72px;
  }
  .landing .clean__lede { position: sticky; top: 104px; }
}
.landing .clean__lede {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.landing .clean__lede h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.08;
  margin-top: 4px;
}
.landing .clean__lede .sub {
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 44ch;
}

.landing .clean__points {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: cleanpt;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.landing .clean__point {
  counter-increment: cleanpt;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
.landing .clean__point:first-child { padding-top: 8px; border-top: 0; }
.landing .clean__point:last-child  { padding-bottom: 0; }

.landing .clean__point::after {
  content: counter(cleanpt, decimal-leading-zero);
  position: absolute;
  top: 28px;
  right: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}
.landing .clean__point:first-child::after { top: 8px; }

.landing .clean__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent);
  border: 1px solid var(--rule);
  font-size: 1.1rem;
}
.landing .clean__point h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 6px;
  padding-right: 40px; /* room for the numeral */
}
.landing .clean__point p {
  color: var(--ink-dim);
  font-size: 0.98rem;
  max-width: 56ch;
}

@media (max-width: 520px) {
  .landing .clean { padding: 64px 0; }
  .landing .clean__point { grid-template-columns: 40px 1fr; column-gap: 14px; }
  .landing .clean__icon { width: 40px; height: 40px; font-size: 1rem; }
  .landing .clean__point h3 { font-size: 1.15rem; }
}

/* ---- PRICING ------------------------------------------- */

.landing .pricing {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
}
.landing .pricing__inner {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.landing .pricing h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.1;
  margin-top: 4px;
}
.landing .pricing .sub {
  color: var(--ink-dim);
  font-size: 1.05rem;
}
.landing .math {
  margin-top: 8px;
  font-family: var(--mono);
  color: var(--ink-dim);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  width: fit-content;
  max-width: 100%;
}
.landing .pricing .cta-row { margin-top: 20px; }
.landing .pricing .reassure {
  margin-top: 10px;
  color: var(--ink-mute);
  font-size: 0.92rem;
}

/* ---- TRUST --------------------------------------------- */

.landing .trust {
  padding: 64px 0 80px;
  border-top: 1px solid var(--rule);
}
.landing .trust__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .landing .trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .landing .trust__grid { grid-template-columns: repeat(4, 1fr); } }
.landing .trust__grid li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
}
.landing .trust__grid i {
  grid-row: span 2;
  color: var(--accent);
  font-size: 1.15rem;
  padding-top: 4px;
}
.landing .trust__grid strong {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
}
.landing .trust__grid span {
  color: var(--ink-dim);
  font-size: 0.94rem;
}

/* ---- Footer -------------------------------------------- */

.landing .foot {
  padding: 40px 0 64px;
  border-top: 1px solid var(--rule);
}
.landing .foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.landing .foot__links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.landing .foot__fine {
  margin-top: 16px;
  font-size: 0.72rem;
  color: var(--ink-mute);
}

/* ---- Reveal animation ---------------------------------- */

.landing .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.landing .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .landing .reveal,
  .landing .reveal.in,
  .landing .vu,
  .landing .rec-dot,
  .landing .brand__dot {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .landing .hero-wave > rect {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ---- Responsive tweaks --------------------------------- */

@media (max-width: 720px) {
  .landing .nav__links a:not(.btn) { display: none; }
  .landing .cta-row .btn { flex: 1 1 auto; }
}

@media (max-width: 520px) {
  .landing .wrap { padding: 0 18px; }
  .landing .micro { font-size: 0.68rem; }
  .landing .step__n { font-size: 2.8rem; }
}

/* ---- LOGIN MODAL --------------------------------------- */

.landing .modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 30, 28, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.landing .modal-overlay[hidden] { display: none; }

.landing .modal-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 32px 72px rgba(18, 30, 28, 0.24);
}

.landing .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  transition: background 150ms, border-color 150ms;
}
.landing .modal-close:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--ink);
}

.landing .modal-card h2 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}
.landing .modal-sub {
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.landing .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.landing .field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--body);
}
.landing .field input {
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: var(--body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color 150ms;
}
.landing .field input::placeholder { color: var(--ink-mute); }
.landing .field input:focus { border-color: var(--accent); }

.landing .modal-submit {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 2px;
}

.landing .modal-helper {
  margin-top: 14px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-dim);
}
.landing .modal-helper a {
  color: var(--accent);
  font-weight: 600;
}
.landing .modal-helper a:hover { text-decoration: underline; }

.landing .modal-msg {
  margin-top: 10px;
  text-align: center;
  font-size: 0.9rem;
  color: #c0392b;
  min-height: 1.3em;
}

/* ---- AUTH PAGES (register, reset-password) ------------- */

.landing .auth-page-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.landing .auth-page-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 40px 36px 32px;
  box-shadow: 0 32px 72px rgba(18, 30, 28, 0.12);
}

@media (max-width: 520px) {
  .landing .auth-page-card { padding: 32px 20px 24px; }
}

.landing .auth-page-card h2 { font-size: 1.7rem; margin-bottom: 6px; }

.landing .auth-ok-msg {
  margin-top: 10px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ok);
  min-height: 1.3em;
}

/* =========================================================
   DASHBOARD APP SHELL
   Sidebar layout for the authenticated app. Scoped to
   body.landing.dash so landing tokens are inherited.
   ========================================================= */

body.landing.dash {
  display: flex;
  flex-direction: row;
  height: 100vh;
  overflow: hidden;
}

body.landing.dash::before { display: none; }

/* ---- Sidebar ------------------------------------------- */

.dash-sidebar {
  width: 240px;
  flex-shrink: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--rule);
  transition: width 260ms var(--ease);
  position: sticky;
  top: 0;
  overflow: hidden;
}

.dash-sidebar--collapsed { width: 64px; }

.dash-sidebar__header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
  gap: 8px;
}

.dash-sidebar--collapsed .dash-sidebar__header .brand {
  font-size: 0;
}
.dash-sidebar--collapsed .dash-sidebar__header .brand__dot {
  font-size: 1.4rem;
  top: 2px;
}

.dash-sidebar__toggle {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--ink-dim);
  padding: 6px 8px;
  cursor: pointer;
  line-height: 1;
  transition: color 150ms, border-color 150ms;
}
.dash-sidebar__toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.dash-sidebar--collapsed .dash-sidebar__toggle i {
  transform: rotate(180deg);
}

.dash-credit-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
  color: var(--accent);
  cursor: pointer;
  transition: background 150ms var(--ease);
  text-decoration: none;
}

.dash-credit-badge:hover { background: var(--surface-2); }

.dash-credit-badge i { font-size: 0.95rem; flex-shrink: 0; }

.dash-credit-text {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 200ms var(--ease);
}

.dash-sidebar--collapsed .dash-credit-badge {
  padding: 10px;
  justify-content: center;
}

.dash-sidebar--collapsed .dash-credit-text { opacity: 0; width: 0; }

.dash-sidebar__nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overflow-x: hidden;
}

.dash-sidebar__footer {
  padding: 8px;
  border-top: 1px solid var(--rule);
  flex-shrink: 0;
}

.dash-nav-divider {
  height: 1px;
  background: var(--rule);
  margin: 6px 8px;
}

/* ---- Nav items ----------------------------------------- */

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-dim);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--body);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
  transition: background 150ms, color 150ms;
  white-space: nowrap;
  overflow: hidden;
}
.dash-nav-item:hover { background: var(--surface-2); color: var(--ink); }
.dash-nav-item.active { background: var(--accent); color: #fff; }
.dash-nav-item.active:hover { color: #fff; }

.dash-nav-item i {
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.dash-nav-label {
  overflow: hidden;
  max-width: 200px;
  transition: max-width 260ms var(--ease), opacity 200ms;
}

.dash-sidebar--collapsed .dash-nav-label {
  max-width: 0;
  opacity: 0;
}
.dash-sidebar--collapsed .dash-nav-item {
  justify-content: center;
  padding: 10px;
}

/* ---- Main content -------------------------------------- */

.dash-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.dash-frame-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  overflow: hidden;
  min-height: 0;
}

.dash-content-frame {
  flex: 1;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface);
  min-height: 0;
}

.dash-player-container { flex-shrink: 0; }

.dash-player-frame {
  width: 100%;
  display: block;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

/* ---- Mobile header ------------------------------------- */

.dash-mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--rule);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 40;
}

.dash-mobile-toggle {
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: color 150ms, border-color 150ms;
}
.dash-mobile-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---- Sidebar overlay (mobile) -------------------------- */

.dash-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 30, 28, 0.4);
  z-index: 49;
}
.dash-sidebar-overlay.visible { display: block; }

/* ---- Responsive ---------------------------------------- */

@media (max-width: 768px) {
  body.landing.dash {
    flex-direction: column;
    height: auto;
    overflow: auto;
  }

  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 300ms var(--ease);
    z-index: 50;
  }
  .dash-sidebar.mobile-open { transform: translateX(0); }

  .dash-sidebar__toggle { display: none; }

  .dash-mobile-header { display: flex; }

  .dash-main {
    height: auto;
    min-height: calc(100vh - 60px);
    margin-top: 60px;
  }
}
