/* atmosphere + dark 2026-09-03: continuous paper, shared grain, mist drift, tokens */
/* Journey blend — Monolog type · UC legs
 * Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4
 * Light paper / warm charcoal. Cyan↔gold held. Continuous scroll.
 */

body.story-mode {
  --story-measure: min(38rem, 100%);
  --story-wide: min(72rem, 100%);
  --story-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg);
  overflow-x: clip;
}

body.story-mode .journey-rail,
body.story-mode .hero-orbs,
body.story-mode .play-cursor-glow,
body.story-mode .play-spark-layer,
body.story-mode .videos,
body.story-mode .journey-stage-head,
body.story-mode .journey-stage-num,
body.story-mode .journey-stage-label,
body.story-mode .waitlist-badge,
body.story-mode .demo-shell-bar {
  display: none !important;
}

body.story-mode main#main {
  display: block;
  padding: 0;
}

body.story-mode .story-doc {
  display: block;
  max-width: none;
  position: relative;
}

/* —— Shared cream atmosphere (C + whisper of B) —— */
@property --atm-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

@property --atm-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

.story-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  --atm-x: 0%;
  --atm-y: 0%;
  background-color: var(--paper-band);
  background-image:
    radial-gradient(ellipse 70% 26% at calc(92% + var(--atm-x)) calc(72% + var(--atm-y)), color-mix(in srgb, var(--mist-soft) 42%, transparent), transparent 70%),
    radial-gradient(ellipse 55% 20% at calc(8% - var(--atm-x)) calc(78% - var(--atm-y)), color-mix(in srgb, var(--sunshine-soft) 40%, transparent), transparent 68%),
    radial-gradient(ellipse 50% 18% at calc(2% + var(--atm-x)) calc(85% + var(--atm-y)), color-mix(in srgb, var(--sunshine-soft) 38%, transparent), transparent 64%),
    radial-gradient(ellipse 48% 16% at calc(98% - var(--atm-x)) calc(88% - var(--atm-y)), color-mix(in srgb, var(--mist-soft) 40%, transparent), transparent 62%),
    radial-gradient(ellipse 60% 18% at calc(12% + var(--atm-x)) calc(94% + var(--atm-y)), color-mix(in srgb, var(--mist-soft) 36%, transparent), transparent 60%),
    radial-gradient(ellipse 45% 14% at calc(96% - var(--atm-x)) calc(97% - var(--atm-y)), color-mix(in srgb, var(--sunshine-soft) 32%, transparent), transparent 58%);
  background-repeat: no-repeat;
  animation: atm-drift 50s linear infinite;
}

.story-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.102 0 0 0 0 0.09 0 0 0 0 0.078 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  background-repeat: repeat;
  background-attachment: scroll;
  mix-blend-mode: multiply;
}

html[data-theme="dark"] .story-atmosphere::after {
  opacity: 0.045;
  mix-blend-mode: overlay;
  filter: invert(1) sepia(0.28) hue-rotate(-12deg);
}

@keyframes atm-drift {
  0% { --atm-x: 0%; --atm-y: 0%; }
  50% { --atm-x: 5%; --atm-y: 3%; }
  100% { --atm-x: 0%; --atm-y: 0%; }
}

@media (prefers-reduced-motion: reduce) {
  .story-atmosphere {
    animation: none;
  }
}

html.reduce-motion .story-atmosphere {
  animation: none;
}

body.story-mode .story-hero,
body.story-mode .leg-stack,
body.story-mode .story-demo,
body.story-mode .story-band {
  position: relative;
  z-index: 1;
}


body.story-mode .story-measure {
  max-width: var(--story-measure);
  margin-inline: auto;
}

body.story-mode .story-demo-wide {
  max-width: var(--story-wide);
  margin-inline: auto;
}

/* —— Sticky leg rail —— removed: got in the way —— */

/* —— Compact top nav (story-mode) —— */
body.story-mode .site-header {
  top: calc(0.65rem + env(safe-area-inset-top, 0px));
  max-width: min(640px, calc(100% - 1.25rem));
}

body.story-mode .header-inner {
  gap: 0.45rem 0.7rem;
  padding: 0.28rem 0.32rem 0.28rem 0.7rem;
}

body.story-mode .brand img {
  max-height: 22px;
}

body.story-mode .nav-links {
  gap: 0.7rem;
}

body.story-mode .nav-links a {
  font-size: 0.78rem;
}

body.story-mode .nav-actions {
  gap: 0.45rem;
}

body.story-mode .lang-switch,
body.story-mode .theme-switch {
  padding: 0.1rem;
}

body.story-mode .lang-btn,
body.story-mode .theme-btn {
  font-size: 0.64rem;
  padding: 0.28rem 0.48rem;
}

body.story-mode .site-header .btn-primary {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
}

/* —— Full-bleed photographic hero (no canvas / orbit) —— */
.story-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: clip;
  background: #12100e;
  color: #fff;
}

.hero-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

/* Face 2026-09-03. Restore type. Humans beside it. */
.hero-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 16%; /* 390: face + van in the top; type at the bottom */
  display: block;
  transform: scale(1.06);
  transition: transform 1.8s var(--story-ease);
}

.story-hero.is-ready .hero-photo > img {
  transform: scale(1);
}

@media (min-width: 768px) {
  .hero-photo > img {
    object-position: 78% 24%; /* 768: push humans into the strip right of the type */
  }
}

@media (min-width: 1280px) {
  .hero-photo > img {
    object-position: 64% 28%; /* 1280: morning desktop — type left, humans center-right */
  }
}

.story-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(18, 16, 14, 0.78) 0%, rgba(18, 16, 14, 0.48) 38%, rgba(18, 16, 14, 0.12) 62%, transparent 78%),
    linear-gradient(0deg, rgba(18, 16, 14, 0.55) 0%, transparent 42%),
    linear-gradient(180deg, rgba(18, 16, 14, 0.35) 0%, transparent 22%);
}

.story-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: min(36rem, 100%);
  padding:
    clamp(5.5rem, 12vw, 7rem)
    clamp(1.25rem, 5vw, 4rem)
    clamp(2.25rem, 6vw, 4rem);
}

.story-hero-copy .hero-brand {
  display: block;
  width: min(15.5rem, 62vw);
  height: auto;
  max-height: none;
  max-width: 100%;
  aspect-ratio: 3344 / 1074;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 1.25rem;
}

.story-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-yellow, #ec9c00) 88%, #fff);
}

.story-hero h1 {
  margin: 0 0 1rem;
  max-width: 11em;
  font-size: clamp(2.75rem, 7.5vw, 4.75rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  font-weight: 700;
  color: #fff;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  min-width: 0;
}

.story-hero h1 .accent {
  color: #fff;
  background-image: linear-gradient(
    transparent 64%,
    color-mix(in srgb, var(--color-yellow, #ec9c00) 85%, transparent) 64%
  );
}

.story-lede {
  margin: 0 0 1.5rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.hero-device {
  display: none;
}

/* Scene switch chips on photo legs */
.screen-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
}

.screen-chip {
  font-family: var(--font-body, inherit);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 160ms ease, border-color 160ms ease;
}

.screen-chip:hover {
  background: rgba(255, 255, 255, 0.2);
}

.screen-chip.is-active {
  background: #fff;
  color: var(--espresso);
  border-color: #fff;
}

.screen-chip:focus-visible {
  outline: 2px solid var(--color-yellow, #ec9c00);
  outline-offset: 2px;
}

.story-hero-copy > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 650ms var(--story-ease),
    transform 750ms var(--story-ease);
}

.story-hero.is-ready .story-hero-copy > * {
  opacity: 1;
  transform: none;
}

.story-hero.is-ready .story-hero-copy > *:nth-child(1) { transition-delay: 60ms; }
.story-hero.is-ready .story-hero-copy > *:nth-child(2) { transition-delay: 120ms; }
.story-hero.is-ready .story-hero-copy > *:nth-child(3) { transition-delay: 180ms; }
.story-hero.is-ready .story-hero-copy > *:nth-child(4) { transition-delay: 240ms; }
.story-hero.is-ready .story-hero-copy > *:nth-child(5) { transition-delay: 300ms; }

body.story-mode .story-hero .hero-secondary-link {
  color: rgba(255, 255, 255, 0.92);
  border-bottom-color: color-mix(in srgb, var(--color-yellow, #ec9c00) 75%, transparent);
}

body.story-mode .story-hero .hero-secondary-link:hover {
  color: #fff;
  border-bottom-color: var(--color-yellow, #ec9c00);
}

body.story-mode .story-hero .hero-cta .btn-primary {
  box-shadow: 0 12px 28px rgba(1, 118, 166, 0.42);
}

@media (max-width: 719px) {
  .story-hero-copy {
    padding-bottom: clamp(1.75rem, 5vw, 2.5rem);
  }
}

@media (min-width: 960px) {
  .story-hero {
    align-items: center;
    min-height: min(100svh, 58rem);
  }

  .story-hero-copy {
    justify-content: center;
    padding-block: clamp(6rem, 12vw, 8rem);
  }
}

html.reduce-motion .hero-photo > img,
html.reduce-motion .story-hero-copy > * {
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* —— Full-bleed photo legs (crossfade stack) —— */
.leg-stack {
  position: relative;
  /* Fallback height; JS sets exact vh based on panel count */
  height: 300vh;
  background: #111;
}

.leg-stack-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.leg-bleed {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: clip;
  background: #111;
}

.leg-panel {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
}

.leg-panel.is-active {
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.leg-panel .leg-media {
  opacity: 0;
  transition: none;
}

.leg-panel.is-active .leg-media {
  opacity: 1;
}

.leg-panel .leg-overlay {
  opacity: 0;
  transition: none;
}

.leg-panel.is-active .leg-overlay {
  opacity: 1;
}

.leg-panel .leg-media,
.leg-panel .leg-overlay {
  will-change: opacity, transform;
}

.leg-bleed .leg-media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.leg-bleed .leg-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.02);
}

#leg-customer .leg-media > img { object-position: 22% 50%; }
@media (min-width: 768px) { #leg-customer .leg-media > img { object-position: 18% 50%; } }
@media (min-width: 1280px) { #leg-customer .leg-media > img { object-position: 20% 45%; } }

.leg-bleed .leg-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.35) 48%, rgba(17, 17, 17, 0.2) 100%),
    linear-gradient(0deg, rgba(17, 17, 17, 0.55) 0%, transparent 45%);
  pointer-events: none;
}

.leg-device {
  position: absolute;
  right: 8%;
  bottom: 12%;
  width: min(34%, 260px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
  background: #fff;
  z-index: 1;
}

.leg-device img {
  display: block;
  width: 100%;
  height: auto;
}

.leg-overlay {
  position: relative;
  z-index: 2;
  max-width: min(34rem, 92vw);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3.5rem);
  color: #fff;
}

.leg-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, #00aeef 70%, #fff);
}

.leg-kicker span:first-child {
  color: #ec9c00;
  margin-inline-end: 0.55rem;
}

.story-band .leg-kicker {
  color: var(--berry-deep); /* #0176a6 — VENTELISTE / WAITLIST on cream */
}

.leg-sector {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, #ec9c00 75%, #fff);
}

.leg-overlay h2 {
  margin: 0 0 0.9rem;
  max-width: 11ch;
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-weight: 700;
  color: #fff;
}

.leg-overlay > p:not(.leg-kicker):not(.leg-sector) {
  margin: 0 0 1.25rem;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.leg-next {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid #ec9c00;
  padding-bottom: 0.12rem;
  transition: color 160ms ease, border-color 160ms ease;
}

.leg-next::after {
  content: "→";
  transition: transform 160ms var(--story-ease);
}

.leg-next:hover {
  color: #e0f6fd;
  border-color: #00aeef;
}

.leg-next:hover::after {
  transform: translateX(3px);
}

.leg-next:focus-visible {
  outline: 2px solid #00aeef;
  outline-offset: 3px;
}

@media (min-width: 900px) {
  .leg-bleed {
    align-items: center;
  }

  .leg-overlay {
    padding-block: clamp(3rem, 8vw, 6rem);
  }
}

/* —— Demo —— */
body.story-mode .story-demo {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: transparent;
}

body.story-mode .story-demo-intro {
  margin-bottom: 1.15rem;
}

body.story-mode .story-demo-intro h2 {
  margin: 0 0 0.55rem;
  max-width: 14ch;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
}

body.story-mode .story-continue {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--berry-deep);
}

body.story-mode .story-lede-sm {
  margin: 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

body.story-mode .demo-shell {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--espresso) 8%, transparent);
}

body.story-mode .demo-frame-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  min-height: clamp(440px, 72vh, 760px);
  height: clamp(440px, 72vh, 760px);
}

body.story-mode .demo-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--card);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--story-ease);
}

body.story-mode .demo-shell.is-loaded .demo-frame {
  opacity: 1;
  pointer-events: auto;
}

body.story-mode .demo-load {
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--espresso) 16%, transparent);
}

body.story-mode .demo-shell.is-loaded .demo-load {
  display: none;
  pointer-events: none;
}

body.story-mode .demo-note {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: var(--story-measure);
}

/* —— After Try: distinct band layouts (not three identical stacks) —— */
.story-band {
  padding: clamp(3.75rem, 9vw, 6.5rem) 0;
  border-top: none;
  background: transparent;
}

.story-band-grid {
  width: min(72rem, calc(100% - clamp(2rem, 6vw, 4rem)));
  margin-inline: auto;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.story-leg-kicker {
  margin-bottom: 0.85rem;
}

.story-band h2 {
  margin: 0 0 0.85rem;
  max-width: 14ch;
  font-size: clamp(2.1rem, 5.2vw, 3.35rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  overflow-wrap: anywhere;
  min-width: 0;
}

.story-band .story-lede {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.12rem);
  line-height: 1.5;
}

/* §04 · Spec sheet */
.story-band-price {
  background: transparent;
}

.story-price-grid {
  align-items: start;
}

.story-price-intro .pricing-note {
  margin: 0 0 1.35rem;
  max-width: 28rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.story-price-spec {
  display: grid;
  gap: 1.5rem;
}

.story-price-include {
  padding: 0;
  border: none;
  background: transparent;
}

.story-spec-label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--berry-deep);
}

.story-price-features {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.story-price-features li {
  position: relative;
  padding-inline-start: 1.15rem;
  color: var(--ink);
  line-height: 1.4;
}

.story-price-features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--berry);
}

.story-price-aside {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 32rem;
}

.story-leash {
  margin: 0;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--border);
}

.leash-question {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--espresso);
}

.leash-hint {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.4;
}

.leash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
}

.leash-chip {
  font-family: var(--font-body, inherit);
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.leash-chip:hover {
  border-color: color-mix(in srgb, var(--berry) 40%, var(--border));
}

.leash-chip.is-active {
  background: var(--peach);
  border-color: color-mix(in srgb, var(--ink) 12%, var(--border));
  color: var(--espresso);
}

.leash-chip:focus-visible {
  outline: 2px solid var(--berry-deep);
  outline-offset: 2px;
}

.leash-panel {
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--mist-soft) 70%, var(--card));
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.leash-title {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--espresso);
}

.leash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.leash-list li {
  position: relative;
  padding-inline-start: 1.35rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
}

.leash-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.4em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--berry);
}

.leash-list li[data-can="no"] {
  color: var(--muted);
}

.leash-list li[data-can="no"]::before {
  background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--muted) 55%, transparent);
}

.leash-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (min-width: 900px) {
  .story-price-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }

  .story-price-intro h2 {
    max-width: 9ch;
    font-size: clamp(2.8rem, 5vw, 4rem);
  }
}

/* §05 · Conversational FAQ */
.story-band-faq {
  background: transparent;
}

.story-faq-intro .story-lede {
  margin-bottom: 0;
}

.story-faq {
  margin: 0;
}

.story-faq .faq-item {
  border-top: 1px solid var(--border);
  padding: 0.95rem 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.story-faq .faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.story-faq .faq-item summary {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--espresso);
}

.story-faq .faq-item p {
  margin: 0.55rem 0 0.15rem;
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (min-width: 900px) {
  .story-faq-grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
  }

  .story-faq-intro {
    position: static;
    padding-block-end: 0;
  }
}

/* §07 · Letter contact */
.story-band-contact {
  background: transparent;
}

.story-contact-intro .contact-email-plain {
  margin: 0 0 1rem;
}

.story-contact-intro .contact-email-plain a {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--berry-deep);
  text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--peach) 70%, transparent);
}

.story-contact-intro .contact-email-plain a:hover {
  color: var(--espresso);
  border-bottom-color: var(--peach);
}

.contact-aside {
  margin: 0;
  max-width: 26rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}

.story-contact-form {
  margin: 0;
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--espresso) 6%, transparent);
}

@media (min-width: 900px) {
  .story-contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
  }

  .story-contact-intro {
    padding-block-start: 0.35rem;
  }
}

/* §06 · Waitlist (no reused photo) */
.story-band-waitlist {
  background: transparent;
}

.story-waitlist-grid {
  align-items: start;
}

.story-waitlist-panel {
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--espresso) 6%, transparent);
}

.story-waitlist-form label {
  color: var(--muted);
}

.story-waitlist-form .waitlist-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.story-waitlist-form input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--espresso);
  padding: 0.8rem 0.95rem;
}

.story-waitlist-form .waitlist-note,
.story-waitlist-panel .fine-print,
.story-waitlist-panel .waitlist-success,
.story-waitlist-panel .waitlist-error,
.story-waitlist-panel .waitlist-count {
  color: var(--muted);
}

.story-waitlist-form .waitlist-note a,
.story-waitlist-panel .fine-print a {
  color: var(--berry-deep);
}

.story-contact-strip-light {
  margin: 1.1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.story-contact-strip-light a {
  color: var(--berry-deep);
}

@media (min-width: 900px) {
  .story-waitlist-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

/* Legacy photo-close leftovers (unused) */
.leg-bleed-close .leg-overlay-form {
  max-width: min(36rem, 94vw);
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.story-contact-strip {
  margin: 1.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

.story-contact-strip a {
  color: #e0f6fd;
}

/* Face 2026-09-03. Cream waitlist strip: light variant must beat the dark strip. */
.story-contact-strip.story-contact-strip-light {
  color: var(--muted); /* #5c574f — "Or write directly:" / "Eller skriv direkte:" */
}

.story-contact-strip.story-contact-strip-light a {
  color: var(--berry-deep); /* #0176a6 — hello@ and Send a message / Send en besked */
}

.story-contact-strip.story-contact-strip-light a:hover,
.story-contact-strip.story-contact-strip-light a:focus-visible {
  color: color-mix(in srgb, var(--berry-deep) 82%, var(--ink)); /* ~#015a80, already used on .btn-primary:hover */
}

body.story-mode .site-footer {
  margin-top: 0;
  border-top: 1px solid var(--border);
}

@media (max-width: 700px) {
  body.story-mode .demo-frame-wrap,
  body.story-mode .demo-frame {
    min-height: 72vh;
    height: 72vh;
  }

  .story-hero h1 {
    max-width: none;
  }

  .leg-device {
    width: min(48%, 180px);
    right: 5%;
    bottom: 8%;
  }

  .hero-scroll-hint {
    display: none;
  }

  body.story-mode .nav-links {
    display: none;
  }
}

html.reduce-motion .leg-stack {
  height: auto !important;
}

html.reduce-motion .leg-stack-pin {
  position: static;
  height: auto;
  overflow: visible;
}

html.reduce-motion .leg-panel {
  position: relative;
  inset: auto;
  min-height: 100svh;
  height: auto;
  opacity: 1 !important;
  pointer-events: auto;
}

html.reduce-motion .leg-panel .leg-media,
html.reduce-motion .leg-panel .leg-overlay {
  opacity: 1 !important;
  transform: none !important;
}

html.reduce-motion .leg-bleed .leg-media > img {
  transform: none !important;
  transition: none !important;
}

@media (max-width: 390px) {
  body.story-mode .nav-actions {
    gap: 0.3rem;
  }

  body.story-mode .theme-btn {
    font-size: 0;
    letter-spacing: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    line-height: 0;
  }

  body.story-mode .theme-btn:not(.active) {
    display: none;
  }
}
