/* LongThought — Sanctuary Dark
   Shared by / and /security/. System fonts only (strict CSP: no external assets). */

:root {
  --bg: #141210;
  --bg-deep: #0e0c0a;
  --sheet: #1f1b18;
  --elevated: #2a241f;
  --hairline: rgba(246, 240, 228, 0.11);
  --hairline-strong: rgba(228, 184, 108, 0.36);
  --cream: #f6f0e4;
  --cream-muted: #c8beb0;
  --cream-dim: #9a9084;
  --ember: #d46d46;
  --gold: #e4b86c;
  --forest: #68b27e;
  --font-serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 64px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: clip;
}

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

button {
  font: inherit;
  color: inherit;
}

img,
video,
svg {
  max-width: 100%;
}

.inline-gold-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quiet-link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(228, 184, 108, 0.45);
  text-underline-offset: 4px;
  white-space: nowrap;
}

.quiet-link:hover {
  text-decoration-color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Scroll progress line */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 100;
  background: linear-gradient(90deg, var(--ember), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes grow-scroll-line {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    #scroll-progress {
      animation: grow-scroll-line auto linear;
      animation-timeline: scroll(root block);
    }
  }
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
  padding: 12px var(--gutter);
  background: rgba(16, 14, 12, 0.84);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid rgba(246, 240, 228, 0.08);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

/* Home: the nav floats clear over the film, then settles once you leave it.
   Without JS it simply scrolls away with the hero. */
.home .site-nav {
  position: absolute;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.js .home .site-nav {
  position: fixed;
}

.js .home .site-nav.is-solid {
  background: rgba(16, 14, 12, 0.86);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom-color: rgba(246, 240, 228, 0.08);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ember), var(--gold));
  box-shadow: 0 0 14px rgba(228, 184, 108, 0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  font-size: 0.9rem;
  color: var(--cream-muted);
}

.home .nav-links {
  color: rgba(246, 240, 228, 0.86);
  text-shadow: 0 1px 12px rgba(10, 9, 8, 0.6);
}

.nav-links a {
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--cream);
}

.nav-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(246, 240, 228, 0.1);
  border: 1px solid var(--hairline);
  color: var(--cream);
  font-weight: 500;
  text-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home .nav-pill {
  background: rgba(20, 18, 16, 0.42);
  border-color: rgba(246, 240, 228, 0.28);
}

.nav-pill:hover,
.home .nav-pill:hover {
  background: rgba(228, 184, 108, 0.18);
  border-color: var(--hairline-strong);
}

@media (max-width: 980px) {
  .nav-links a:not(.nav-pill) {
    display: none;
  }
}

/* ---------- Hero: full-bleed living film ---------- */
.hero {
  --p: 0;
  --film-scale: 1.03;
  --film-shift: 9%;
  --stage-over: 0px;
  position: relative;
  background: var(--bg);
}

.hero-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  overflow: clip;
}

.hero-film {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  /* The film's left edge feathers into Sanctuary Dark, so the type has calm ground
     while the picture still breathes across the whole viewport. */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 7.5%, rgba(0, 0, 0, 0.4) 17%, #000 37%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 7.5%, rgba(0, 0, 0, 0.4) 17%, #000 37%);
}

.hero-film video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  /* Nudged right so the face keeps the open upper frame, clear of the type rail. */
  transform-origin: 62% 36%;
  transform: translate3d(var(--film-shift), 0, 0) scale(calc(var(--film-scale) + var(--p) * 0.05));
}

/* Feathered shade: clear over the face, deep under the type, melting into the page. */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(12, 10, 9, 0.62) 0%, rgba(12, 10, 9, 0.18) 13%, rgba(12, 10, 9, 0) 26%),
    radial-gradient(104% 88% at 0% 100%, rgba(14, 12, 10, 0.9) 0%, rgba(14, 12, 10, 0.72) 30%, rgba(14, 12, 10, 0.34) 52%, rgba(14, 12, 10, 0) 70%),
    linear-gradient(to top, #141210 0%, rgba(20, 18, 16, 0.9) 11%, rgba(20, 18, 16, 0.46) 30%, rgba(20, 18, 16, 0) 52%);
}

.hero-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #100e0c;
  opacity: calc(var(--p) * 0.58);
}

.hero-rail {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(24px, 4vw, 64px);
  align-items: end;
  width: 100%;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 26px;
  opacity: calc(1 - var(--p) * 2.6);
  transform: translate3d(0, calc(var(--p) * -56px), 0);
}

.hero-rail.is-gone {
  visibility: hidden;
}

.hero-copy {
  max-width: 35rem;
}

.hero-kicker {
  margin: 0 0 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
  text-shadow: 0 1px 14px rgba(10, 9, 8, 0.7);
}

.hero h1 {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 4.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 600;
  color: var(--cream);
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(10, 9, 8, 0.55);
}

.h1-line {
  display: block;
}

.hero-sub {
  margin: 0;
  max-width: 31em;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.58;
  color: rgba(246, 240, 228, 0.86);
  text-shadow: 0 1px 16px rgba(10, 9, 8, 0.7);
}

.hero-side {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 4px;
}

/* The film trigger: a physical, pressable record-style disc */
.film-trigger {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.film-trigger-disc {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, #ee9a72 0%, var(--ember) 46%, #b9532f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 220, 0.5),
    inset 0 -3px 6px rgba(92, 36, 16, 0.5),
    0 0 0 1px rgba(20, 18, 16, 0.5),
    0 14px 34px rgba(8, 6, 5, 0.6);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.2s ease;
}

.film-trigger-disc::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(246, 240, 228, 0.5);
  opacity: 0.55;
}

.film-trigger-disc svg {
  width: 30px;
  height: 30px;
  margin-left: 3px;
  fill: #1a1512;
}

.film-trigger-text {
  display: grid;
  gap: 3px;
  white-space: nowrap;
  text-shadow: 0 1px 16px rgba(10, 9, 8, 0.8);
}

.film-trigger-title {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.film-trigger-meta {
  font-size: 0.86rem;
  color: rgba(246, 240, 228, 0.8);
}

.film-trigger:hover .film-trigger-disc {
  filter: brightness(1.08);
  transform: scale(1.04);
}

.film-trigger:active .film-trigger-disc {
  transform: scale(0.95) translateY(1px);
  box-shadow:
    inset 0 2px 6px rgba(92, 36, 16, 0.6),
    0 0 0 1px rgba(20, 18, 16, 0.5),
    0 5px 14px rgba(8, 6, 5, 0.6);
}

.film-trigger:focus-visible {
  outline-offset: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes ringBreath {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.1); opacity: 0.12; }
  }
  .film-trigger-disc::before {
    animation: ringBreath 3.6s ease-in-out infinite;
  }
}

.hero-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(26px, 4.5vh, 44px);
  padding-top: 16px;
  border-top: 1px solid rgba(246, 240, 228, 0.16);
}

.hero-promises {
  display: flex;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: rgba(246, 240, 228, 0.78);
}

.hero-promises li {
  padding-right: 22px;
}

.hero-promises li + li {
  padding-left: 22px;
  border-left: 1px solid rgba(246, 240, 228, 0.2);
}

@media (max-width: 1180px) {
  .hero-promises li:nth-child(3) {
    display: none;
  }
}

.motion-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 4px;
  border: 0;
  background: none;
  font-size: 0.84rem;
  color: rgba(246, 240, 228, 0.78);
  cursor: pointer;
}

.motion-toggle:hover {
  color: var(--cream);
}

.motion-toggle-icon {
  position: relative;
  width: 10px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.motion-toggle[data-state="paused"] .motion-toggle-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}

/* The spoken line that carries you from the film into the story */
.hero-subtitle {
  display: none;
}

.js-scroll .hero {
  min-height: 172vh;
  min-height: 172svh;
}

/* Pins once its bottom edge reaches the bottom of the viewport (JS sets --stage-over
   when the stage is taller than the screen, e.g. small phones). */
.js-scroll .hero-stage {
  position: sticky;
  top: calc(var(--stage-over) * -1);
}

.js-scroll .hero-subtitle {
  position: absolute;
  left: 50%;
  bottom: clamp(72px, 15vh, 150px);
  display: grid;
  gap: 16px;
  width: min(46rem, 100% - 2 * var(--gutter));
  margin: 0;
  text-align: center;
  opacity: calc((var(--p) - 0.34) * 3.4);
  transform: translate3d(-50%, calc((1 - var(--p)) * 22px), 0);
  pointer-events: none;
}

.hero-subtitle-line {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2.15rem);
  font-style: italic;
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-wrap: balance;
  text-shadow: 0 2px 26px rgba(8, 6, 5, 0.9);
}

.hero-subtitle-note {
  font-size: 0.95rem;
  color: var(--gold);
}

/* Narrow screens: film holds the top of the frame, type takes the feathered floor. */
@media (max-width: 860px) {
  .hero {
    --film-scale: 1;
    --film-shift: 0px;
    --film-h: max(62vh, 380px);
  }

  @supports (height: 1svh) {
    .hero {
      --film-h: max(62svh, 380px);
    }
  }

  .hero-film {
    inset: 0 0 auto 0;
    height: var(--film-h);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-film video {
    object-position: 46% 50%;
    transform-origin: 50% 30%;
  }

  .hero-shade {
    background:
      linear-gradient(to bottom, rgba(12, 10, 9, 0.6) 0, rgba(12, 10, 9, 0.1) 72px, rgba(12, 10, 9, 0) 132px),
      linear-gradient(
        to bottom,
        rgba(20, 18, 16, 0) calc(var(--film-h) * 0.52),
        rgba(20, 18, 16, 0.6) calc(var(--film-h) * 0.71),
        rgba(20, 18, 16, 0.93) calc(var(--film-h) * 0.87),
        #141210 var(--film-h)
      );
  }

  .hero-rail {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 22px;
    /* keeps the type below the chin on every screen height */
    padding-top: calc(var(--film-h) * 0.66);
    padding-bottom: 22px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    margin-bottom: 14px;
    font-size: clamp(2.3rem, 10.4vw, 3.4rem);
  }

  .hero-kicker {
    margin-bottom: 12px;
    font-size: 0.86rem;
    text-wrap: balance;
  }

  .hero-side {
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .film-trigger {
    gap: 14px;
  }

  .film-trigger-disc {
    width: 62px;
    height: 62px;
  }

  .film-trigger-disc::before {
    inset: -8px;
  }

  .film-trigger-disc svg {
    width: 25px;
    height: 25px;
  }

  .film-trigger-title {
    font-size: 1.12rem;
  }

  .hero-foot {
    margin-top: 0;
    padding-top: 10px;
    justify-content: flex-end;
  }

  .hero-promises {
    display: none;
  }

  .js-scroll .hero {
    min-height: 156vh;
    min-height: 156svh;
  }
}

/* ---------- Buttons ---------- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-primary {
  background: var(--ember);
  color: #141210;
  box-shadow: 0 10px 28px rgba(212, 109, 70, 0.28);
}

.btn-primary:hover {
  background: #e27c55;
}

.btn-secondary {
  background: rgba(246, 240, 228, 0.09);
  border-color: rgba(246, 240, 228, 0.16);
  color: var(--cream);
}

.btn-secondary:hover {
  background: rgba(246, 240, 228, 0.16);
  border-color: var(--hairline-strong);
}

.btn-subtle {
  padding: 10px 15px;
  font-size: 0.84rem;
  background: rgba(20, 18, 16, 0.72);
  border-color: var(--hairline);
  color: var(--cream-muted);
}

.btn-subtle:hover {
  color: var(--cream);
  border-color: var(--hairline-strong);
}

/* ---------- Film theater ---------- */
dialog.film-dialog {
  width: min(1120px, 96vw);
  max-height: 96vh;
  padding: 0;
  border: 1px solid rgba(246, 240, 228, 0.14);
  border-radius: 18px;
  background: #0c0a09;
  color: var(--cream);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

dialog.film-dialog::backdrop {
  background: rgba(8, 7, 6, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes houseLightsDown {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes screenIn {
    from { opacity: 0; transform: scale(0.965); }
    to { opacity: 1; transform: scale(1); }
  }
  dialog.film-dialog[open] {
    animation: screenIn 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  dialog.film-dialog[open]::backdrop {
    animation: houseLightsDown 0.5s ease both;
  }
}

.film-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 20px;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.88rem;
  color: var(--cream-muted);
}

.film-dialog-bar p {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 0;
}

.film-dialog-bar strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--cream);
}

.film-dialog video {
  display: block;
  width: 100%;
  max-height: calc(96vh - 62px);
  aspect-ratio: 16 / 9;
  background: #000;
}

/* ---------- Sections ---------- */
.container {
  width: min(1160px, 100% - clamp(32px, 8vw, 96px));
  margin-inline: auto;
}

section.band {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: clamp(72px, 11vh, 132px) 0;
  border-top: 1px solid var(--hairline);
}

.home section.band {
  border-top: 0;
  padding: clamp(80px, 13vh, 152px) 0;
}

.section-header {
  max-width: 740px;
  margin-bottom: clamp(40px, 6vh, 64px);
}

.section-header h2,
.privacy h2,
.download h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.home .section-header h2,
.privacy h2,
.download h2 {
  font-weight: 600;
}

.section-header p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--cream-muted);
}

.home .section-header p {
  max-width: 38em;
  font-size: 1.12rem;
  line-height: 1.62;
}

/* ---------- Story chapters ---------- */
.home .story {
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(40px, 6vh, 72px);
}

.chapter-text {
  padding: 4px 0 4px 26px;
  border-left: 1px solid var(--hairline);
  scroll-margin-top: 96px;
}

.chapter-when {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gold);
}

.chapter-text h3 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.chapter-text p:last-child {
  margin: 0;
  max-width: 33em;
  font-size: 1.04rem;
  line-height: 1.66;
  color: var(--cream-muted);
}

.chapter-text strong {
  color: var(--cream);
  font-weight: 600;
}

.chapter-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  margin: 28px 0 64px;
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: 28px;
  background: linear-gradient(180deg, #231e1a 0%, #1b1714 100%);
  border: 1px solid rgba(246, 240, 228, 0.12);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
}

.chapter-panel:last-child {
  margin-bottom: 0;
}

.panel-body {
  margin-block: auto;
}

.panel-footnote {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--cream-dim);
}

@media (min-width: 961px) {
  .chapters {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    column-gap: clamp(40px, 6vw, 96px);
  }

  .chapter-text {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 78vh;
    scroll-margin-top: 11vh;
  }

  .chapter-panel {
    grid-column: 2;
    align-self: center;
    margin: 0;
    min-height: 560px;
  }

  .chapter-text[data-step="0"], .chapter-panel[data-stage="0"] { grid-row: 1; }
  .chapter-text[data-step="1"], .chapter-panel[data-stage="1"] { grid-row: 2; }
  .chapter-text[data-step="2"], .chapter-panel[data-stage="2"] { grid-row: 3; }

  /* With JS: one pinned stage, panels cross-fade as each chapter reaches centre. */
  .js .chapter-text {
    opacity: 0.36;
    transition: opacity 0.45s ease, border-color 0.45s ease;
  }

  .js .chapter-text.is-active {
    opacity: 1;
    border-left-color: var(--gold);
  }

  .js .chapter-panel[data-stage] {
    grid-row: 1 / span 3;
    position: sticky;
    top: max(88px, calc(50vh - 290px));
    align-self: start;
    height: 580px;
    max-height: calc(100vh - 110px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.985);
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.45s;
  }

  .js .chapter-panel[data-stage].is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
  }
}

/* Panel 1: the spoken exchange */
.exchange-who {
  margin: 0 0 6px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--cream-dim);
}

.exchange-who-lottie {
  color: var(--gold);
}

.exchange-you {
  margin: 0 0 26px;
  font-size: 1.14rem;
  color: var(--cream-muted);
}

.exchange-lottie {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.42;
  color: var(--cream);
}

.panel-note {
  margin-top: 30px;
  padding-left: 18px;
  border-left: 2px solid var(--forest);
}

.panel-note h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.panel-note p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cream-muted);
}

/* Panel 2: Apple Watch + cues */
.watch-demo-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
}

.watch-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 34px 0;
}

/* Strap, behind the case */
.watch-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 124px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: linear-gradient(90deg, #17130f 0%, #2a241f 18%, #241f1a 82%, #17130f 100%);
  box-shadow: inset 0 0 0 1px rgba(246, 240, 228, 0.05);
}

.watch-bezel {
  position: relative;
  width: 182px;
  height: 224px;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(145deg, #4a433d 0%, #1d1916 52%, #37302b 100%);
  border: 1px solid rgba(246, 240, 228, 0.24);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.62),
    inset 0 0 0 2px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.4s ease;
}

.watch-bezel.is-pulsing {
  box-shadow:
    0 0 0 7px rgba(228, 184, 108, 0.24),
    0 0 46px rgba(228, 184, 108, 0.2),
    0 22px 44px rgba(0, 0, 0, 0.62);
}

.watch-crown {
  position: absolute;
  right: -7px;
  top: 52px;
  width: 6px;
  height: 36px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #524a43, #2b2622, #4d453f);
  border: 1px solid rgba(246, 240, 228, 0.18);
}

.watch-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: radial-gradient(circle at 50% 20%, #241e19 0%, #0d0b0a 85%);
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.watch-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--cream-muted);
  padding: 0 6px;
}

.watch-link-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 8px rgba(104, 178, 126, 0.8);
}

.watch-route {
  font-size: 0.68rem;
  color: var(--cream-muted);
}

.watch-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 109, 70, 0.18);
  border: 1px solid rgba(212, 109, 70, 0.45);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cream);
}

.watch-bezel[data-state="paused"] .watch-status-pill {
  background: rgba(228, 184, 108, 0.14);
  border-color: rgba(228, 184, 108, 0.38);
  color: var(--gold);
}

.watch-rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
  animation: recPulse 1.5s ease-in-out infinite;
}

.watch-bezel[data-state="paused"] .watch-rec-dot {
  background: var(--gold);
  box-shadow: none;
  animation: none;
}

@keyframes recPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.watch-timer {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cream);
  line-height: 1;
}

.watch-wave {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.watch-wave span {
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--ember));
  animation: waveBar 1.1s ease-in-out infinite;
}

.watch-wave span:nth-child(2) { animation-delay: 0.12s; }
.watch-wave span:nth-child(3) { animation-delay: 0.24s; }
.watch-wave span:nth-child(4) { animation-delay: 0.06s; }
.watch-wave span:nth-child(5) { animation-delay: 0.30s; }
.watch-wave span:nth-child(6) { animation-delay: 0.18s; }
.watch-wave span:nth-child(7) { animation-delay: 0.09s; }

@keyframes waveBar {
  0%, 100% { height: 7px; opacity: 0.55; }
  50% { height: 24px; opacity: 1; }
}

.watch-bezel[data-state="paused"] .watch-wave span {
  animation: none;
  height: 4px;
  opacity: 0.35;
}

.watch-subcap {
  font-size: 0.66rem;
  color: var(--cream-dim);
}

.cue-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cue-intro {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--cream-muted);
  line-height: 1.45;
}

.cue-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 12px 14px 12px 50px;
  border-radius: 16px;
  background: var(--elevated);
  border: 1px solid var(--hairline);
  color: var(--cream);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

/* small speaker-style play mark */
.cue-btn::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background: rgba(228, 184, 108, 0.16);
  box-shadow: inset 0 0 0 1px rgba(228, 184, 108, 0.4);
}

.cue-btn::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 50%;
  margin-top: -5px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--gold);
}

.cue-btn:hover {
  background: #332c26;
  border-color: var(--hairline-strong);
}

.cue-btn:active {
  transform: scale(0.985);
}

.cue-btn-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--cream);
}

.cue-btn-sub {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--cream-muted);
}

@media (max-width: 620px) {
  .watch-demo-layout {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .cue-controls {
    width: 100%;
  }
}

/* Panel 3: refined words + masked name */
.refined-quote {
  margin: 0 0 30px;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.9vw, 1.58rem);
  line-height: 1.44;
  color: var(--cream);
}

.mask-demo {
  display: grid;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(14, 12, 10, 0.5);
  border: 1px solid var(--hairline);
}

.mask-row + .mask-row {
  padding-top: 16px;
  border-top: 1px dashed rgba(246, 240, 228, 0.14);
}

.mask-label {
  margin: 0 0 4px;
  font-size: 0.84rem;
  color: var(--cream-dim);
}

.mask-line {
  margin: 0;
  font-size: 1.02rem;
  color: var(--cream-muted);
}

.mask-name {
  color: var(--cream);
  font-weight: 600;
  border-bottom: 1px solid var(--forest);
}

.mask-hidden {
  display: inline-block;
  width: 3.1em;
  height: 0.95em;
  vertical-align: -0.12em;
  border-radius: 4px;
  background: repeating-linear-gradient(135deg, rgba(104, 178, 126, 0.85) 0 4px, rgba(104, 178, 126, 0.55) 4px 8px);
}

/* ---------- Insights ---------- */
.mac-shot {
  margin: 0;
  border-radius: clamp(14px, 2vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(246, 240, 228, 0.1);
  background: #0c0a09;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.55);
}

.mac-shot img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 621px) {
  /* The capture carries its own black surround; trim to the app window itself. */
  .mac-shot img {
    width: 111.6%;
    max-width: none;
    margin: -3.55% -5.8% -3.6%;
  }
}

.radar-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(48px, 8vh, 96px);
}

.radar {
  display: block;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  overflow: visible;
}

.radar-ring {
  fill: none;
  stroke: rgba(246, 240, 228, 0.16);
  stroke-width: 1;
}

.radar-spokes line {
  stroke: rgba(246, 240, 228, 0.1);
  stroke-width: 1;
}

.radar-shape {
  fill: rgba(228, 184, 108, 0.16);
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.radar-dot {
  fill: var(--bg);
  stroke: var(--gold);
  stroke-width: 1.6;
  transition: fill 0.25s ease, r 0.25s ease, stroke 0.25s ease;
}

.radar-dot.is-active {
  fill: var(--ember);
  stroke: var(--cream);
  r: 7px;
}

.radar-labels text {
  font-family: var(--font-sans);
  font-size: 11.5px;
  fill: var(--cream-muted);
}

.radar-copy h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.radar-copy > p {
  margin: 0 0 24px;
  max-width: 34em;
  font-size: 1.04rem;
  color: var(--cream-muted);
}

.radar-axes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.radar-axis {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--cream-muted);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.radar-axis:hover {
  border-color: var(--hairline-strong);
  color: var(--cream);
}

.radar-axis[aria-pressed="true"] {
  background: rgba(228, 184, 108, 0.14);
  border-color: var(--hairline-strong);
  color: var(--cream);
}

.radar-evidence {
  min-height: 7.4em;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
}

.radar-days {
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: var(--gold);
}

.radar-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.42;
  color: var(--cream);
}

@media (max-width: 820px) {
  .radar-block {
    grid-template-columns: minmax(0, 1fr);
  }

}

@media (max-width: 620px) {
  /* Phone: crop in on the page title, the curve and today's reflection so the
     screen stays legible. The radar it hides is drawn live just below. */
  .mac-shot img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 36% 50%;
  }
}

/* ---------- Cloud AI comparison ---------- */
.compare-shell {
  border-radius: 28px;
  background: var(--sheet);
  border: 1px solid var(--hairline);
  padding: clamp(22px, 4vw, 44px);
}

.segmented {
  display: inline-flex;
  max-width: 100%;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  margin-bottom: 30px;
}

.segmented button {
  padding: 10px 20px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--cream-muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.segmented button[aria-pressed="true"] {
  background: var(--elevated);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}

.compare-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
}

.compare-col + .compare-col {
  padding-left: clamp(24px, 4vw, 56px);
  border-left: 1px solid var(--hairline);
}

.compare-label {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold);
}

.compare-shell[data-mode="std"] .compare-label {
  color: var(--forest);
}

.compare-col h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.22;
}

.compare-col p:last-child {
  margin: 0;
  font-size: 1rem;
  color: var(--cream-muted);
}

.compare-col p.compare-sample {
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 1.6vw, 1.3rem);
  line-height: 1.46;
  color: var(--cream);
}

.compare-shell[data-mode="std"] p.compare-sample {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--cream-muted);
}

.promise-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: clamp(40px, 7vh, 72px) 0 0;
  padding: 0;
  list-style: none;
}

.promise-list li {
  padding-top: 18px;
  border-top: 2px solid var(--forest);
}

.promise-list h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
}

.promise-list p {
  margin: 0;
  font-size: 0.99rem;
  color: var(--cream-muted);
}

.tech-pointer {
  margin: 34px 0 0;
  font-size: 0.95rem;
  color: var(--cream-dim);
}

@media (max-width: 760px) {
  .compare-pair,
  .promise-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-col + .compare-col {
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }

  .segmented {
    display: flex;
  }

  .segmented button {
    flex: 1;
    padding: 10px 6px;
    font-size: 0.84rem;
    white-space: nowrap;
  }
}

/* ---------- Privacy ---------- */
.home section.privacy {
  background: var(--bg-deep);
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}

.privacy h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
}

.privacy-copy p {
  margin: 0 0 18px;
  max-width: 34em;
  font-size: 1.08rem;
  line-height: 1.66;
  color: var(--cream-muted);
}

.privacy-copy p:last-child {
  margin: 28px 0 0;
}

/* ---------- Download ---------- */
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.download-main p {
  margin: 0 0 28px;
  max-width: 34em;
  font-size: 1.1rem;
  color: var(--cream-muted);
}

.download-aside {
  padding-left: 24px;
  border-left: 2px solid var(--gold);
}

.download-aside h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.download-aside p {
  margin: 0;
  font-size: 0.99rem;
  color: var(--cream-muted);
}

@media (max-width: 820px) {
  .privacy-grid,
  .download-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Shared components used by /security/ ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(228, 184, 108, 0.13);
  border: 1px solid rgba(228, 184, 108, 0.3);
  margin-bottom: 20px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  border-radius: 20px;
  background: var(--sheet);
  border: 1px solid var(--hairline);
  padding: 28px;
}

.card-elevated {
  background: var(--elevated);
}

.card h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.card p {
  margin: 0;
  color: var(--cream-muted);
  font-size: 0.97rem;
}

.badge-green {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(104, 178, 126, 0.16);
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.badge-gold {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(228, 184, 108, 0.16);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.spec-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  background: var(--sheet);
}

table.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

table.spec-table th,
table.spec-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

table.spec-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold);
  background: rgba(246, 240, 228, 0.03);
}

table.spec-table tr:last-child td {
  border-bottom: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(246, 240, 228, 0.07);
  color: var(--cream);
}

.reveal-card {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: 0% 100%)) {
    @keyframes riseIn {
      from { opacity: 0.2; transform: translateY(24px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .reveal-card {
      animation: riseIn linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
  }
}

/* ---------- Footer ---------- */
footer.site-footer {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 64px;
  color: var(--cream-dim);
  font-size: 0.88rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-links a:hover {
  color: var(--cream);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-card,
  #scroll-progress,
  .watch-rec-dot,
  .watch-wave span,
  .film-trigger-disc::before,
  dialog.film-dialog[open] {
    animation: none !important;
  }

  .reveal-card {
    transform: none !important;
    opacity: 1 !important;
  }

  .chapter-panel,
  .chapter-text,
  .film-trigger-disc,
  .btn,
  .cue-btn {
    transition: none !important;
  }
}

/* Early Access Waitlist Form */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-form {
  margin-top: 24px;
  max-width: 520px;
}

.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.waitlist-row input[type="email"] {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(246, 240, 228, 0.2);
  background: rgba(18, 16, 14, 0.9);
  color: var(--cream);
  font-size: 0.98rem;
  font-family: inherit;
}

.waitlist-row input[type="email"]::placeholder {
  color: var(--cream-dim);
}

.waitlist-row input[type="email"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}

.waitlist-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--cream-muted);
}

.waitlist-platforms label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.waitlist-platforms input[type="radio"] {
  accent-color: var(--ember);
}

.waitlist-status {
  margin: 12px 0 0;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--forest);
}

.waitlist-status.is-error {
  color: #f08a6c;
}

.waitlist-heard {
  margin-top: 12px;
}

.waitlist-heard input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(246, 240, 228, 0.14);
  background: rgba(18, 16, 14, 0.72);
  color: var(--cream);
  font-size: 0.9rem;
  font-family: inherit;
}

.waitlist-heard input[type="text"]::placeholder {
  color: var(--cream-dim);
}

.waitlist-heard input[type="text"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}

.waitlist-notice {
  margin: 10px 0 0;
  font-size: 0.84rem;
  color: var(--cream-dim);
}

.waitlist-notice a {
  color: var(--cream-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Plans, Objections & Importer section */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.plan-card {
  padding: clamp(24px, 3vw, 34px);
  border-radius: 24px;
  background: linear-gradient(180deg, #231e1a 0%, #1a1613 100%);
  border: 1px solid rgba(246, 240, 228, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-card.is-featured {
  border-color: rgba(228, 184, 108, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.plan-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.plan-price {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.1;
  color: var(--cream);
}

.plan-sub {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cream-dim);
}

.plan-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--cream-muted);
  font-size: 0.95rem;
}

.plan-list li {
  padding-left: 18px;
  position: relative;
}

.plan-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.objection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.objection-card {
  padding: 22px 24px;
  border-radius: 20px;
  background: rgba(246, 240, 228, 0.03);
  border: 1px solid var(--hairline);
}

.objection-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--cream);
}

.objection-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--cream-muted);
}

.importer-callout {
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: 20px;
  border: 1px solid rgba(104, 178, 126, 0.28);
  background: rgba(104, 178, 126, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.importer-callout p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--cream-muted);
  max-width: 720px;
}

.importer-callout strong {
  color: var(--cream);
}

/* Legal & Support editorial document layout */
.legal-main {
  padding-top: 108px;
  padding-bottom: 84px;
}

.legal-head {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 36px;
}

.legal-head h1 {
  margin: 10px 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.legal-head .legal-lead {
  margin: 0;
  max-width: 720px;
  font-size: 1.08rem;
  color: var(--cream-muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

@media (max-width: 820px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
}

.legal-toc {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(246, 240, 228, 0.03);
  border: 1px solid var(--hairline);
  font-size: 0.9rem;
}

.legal-toc-title {
  margin: 0 0 4px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.legal-toc a {
  color: var(--cream-muted);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--cream);
}

.legal-prose {
  max-width: 760px;
  display: grid;
  gap: 36px;
}

.legal-prose section {
  scroll-margin-top: 96px;
}

.legal-prose h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--cream);
}

.legal-prose p, .legal-prose li, .legal-prose dd {
  color: var(--cream-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.legal-prose p {
  margin: 0 0 12px;
}

.legal-prose ul {
  margin: 0 0 12px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-prose dl {
  margin: 12px 0 0;
  display: grid;
  gap: 14px;
}

.legal-prose dt {
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 2px;
}

.legal-prose dd {
  margin: 0;
}

.legal-prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-color: rgba(246, 240, 228, 0.28);
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .site-nav.is-legal .nav-links a {
    display: inline-flex;
    font-size: 0.84rem;
    padding: 4px 6px;
  }
}

.footer-meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 0.8rem;
  color: var(--cream-dim);
  line-height: 1.5;
}
