:root {
  --ink: #f6f0e4;
  --ink-soft: rgba(246, 240, 228, 0.76);
  --ink-dim: rgba(246, 240, 228, 0.5);
  --bg: #0a0a08;
  --charcoal: #12110d;
  --gold: #cda567;
  --gold-bright: #e4c389;
  --gold-soft: rgba(205, 165, 103, 0.2);
  --stone: #d8c8ad;
  --olive: #77764f;
  --line: rgba(246, 240, 228, 0.15);
  --line-strong: rgba(246, 240, 228, 0.3);
  --shadow: 0 32px 90px -24px rgba(0, 0, 0, 0.74);
  --shadow-soft: 0 18px 50px -22px rgba(0, 0, 0, 0.6);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", "Avenir Next", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.005em;
}

/* Fine film grain over everything for atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
}

/* Drifting golden mist anchored to the foot of the page */
body::after {
  content: "";
  position: fixed;
  inset: auto -18vw -10vh;
  z-index: 18;
  height: 44vh;
  pointer-events: none;
  opacity: 0.4;
  background:
    radial-gradient(ellipse at 18% 72%, rgba(246, 240, 228, 0.1), transparent 42%),
    radial-gradient(ellipse at 62% 48%, rgba(205, 165, 103, 0.1), transparent 38%),
    radial-gradient(ellipse at 86% 72%, rgba(255, 255, 255, 0.07), transparent 42%),
    linear-gradient(0deg, rgba(10, 10, 8, 0.86), rgba(10, 10, 8, 0));
  filter: blur(18px);
  transform: translate3d(calc(var(--mist-drift, 0) * 1px), 0, 0);
}

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

button {
  font: inherit;
}

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

/* Slim scroll-progress rail */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 3px;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.2);
}

.scroll-progress span {
  display: block;
  width: var(--scroll, 0%);
  height: 100%;
  background: linear-gradient(90deg, rgba(205, 165, 103, 0.4), var(--gold-bright));
  box-shadow: 0 0 14px rgba(228, 195, 137, 0.5);
  transition: width 120ms linear;
}

main::after {
  content: "";
  display: block;
  height: 60svh;
  background: var(--bg);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 26px clamp(18px, 4.5vw, 72px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
  transition: padding 320ms var(--ease), background 320ms var(--ease), backdrop-filter 320ms var(--ease);
}

.site-header.is-scrolled {
  padding-top: 16px;
  padding-bottom: 16px;
  background: linear-gradient(180deg, rgba(8, 8, 6, 0.82), rgba(8, 8, 6, 0.42));
  backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0;
}

.site-header nav,
.site-footer nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
}

.site-header nav a {
  position: relative;
  padding-bottom: 2px;
  color: rgba(255, 255, 255, 0.82);
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: #fff;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-footer a {
  transition: color 180ms ease, opacity 180ms ease;
}

.site-footer a:hover {
  color: var(--gold);
}

.header-action {
  justify-self: end;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  transition: color 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
}

.header-action:hover,
.header-action:focus-visible {
  color: var(--bg);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* ---------- Cinema panels ---------- */
.cinema-panel {
  --panel-progress: 0;
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  padding: 96px clamp(20px, 5vw, 82px) clamp(48px, 6vw, 84px);
  background: var(--bg);
  box-shadow: 0 -26px 80px rgba(0, 0, 0, 0.34);
}

.cinema-panel:nth-child(1) { z-index: 1; }
.cinema-panel:nth-child(2) { z-index: 2; }
.cinema-panel:nth-child(3) { z-index: 3; }
.cinema-panel:nth-child(4) { z-index: 4; }
.cinema-panel:nth-child(5) { z-index: 5; }
.cinema-panel:nth-child(6) { z-index: 6; }
.cinema-panel:nth-child(7) { z-index: 7; }

.cinema-panel::before {
  content: "";
  position: absolute;
  inset: -12vh -10vw auto;
  z-index: -1;
  height: 44vh;
  pointer-events: none;
  opacity: calc(0.16 + (var(--panel-progress) * 0.08));
  background:
    radial-gradient(ellipse at 20% 70%, rgba(246, 240, 228, 0.1), transparent 42%),
    radial-gradient(ellipse at 64% 48%, rgba(205, 165, 103, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(10, 10, 8, 0.94), rgba(10, 10, 8, 0));
  filter: blur(18px);
}

.cinema-panel::after {
  content: "";
  position: absolute;
  inset: auto -14vw -16vh;
  z-index: -1;
  height: 50vh;
  pointer-events: none;
  opacity: 0.45;
  background:
    radial-gradient(ellipse at 24% 32%, rgba(246, 240, 228, 0.12), transparent 44%),
    radial-gradient(ellipse at 76% 48%, rgba(216, 200, 173, 0.1), transparent 48%),
    linear-gradient(0deg, rgba(10, 10, 8, 0.92), rgba(10, 10, 8, 0));
  filter: blur(20px);
}

.panel-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transform: scale(calc(1.04 + (var(--panel-progress) * 0.05))) translateY(calc(var(--panel-progress) * -3.4vh));
  backface-visibility: hidden;
  will-change: transform;
}

.panel-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 4, 3, 0.9) 0%, rgba(4, 4, 3, 0.6) 42%, rgba(4, 4, 3, 0.22) 100%),
    linear-gradient(0deg, rgba(5, 5, 4, 0.95) 0%, rgba(5, 5, 4, 0.16) 48%, rgba(5, 5, 4, 0.64) 100%);
}

.hero-panel .panel-shade {
  background:
    linear-gradient(90deg, rgba(4, 4, 3, 0.92) 0%, rgba(4, 4, 3, 0.6) 45%, rgba(4, 4, 3, 0.18) 100%),
    radial-gradient(circle at 76% 28%, rgba(205, 165, 103, 0.16), transparent 32%),
    linear-gradient(0deg, rgba(5, 5, 4, 0.95) 0%, rgba(5, 5, 4, 0.16) 48%, rgba(5, 5, 4, 0.66) 100%);
}

.align-right {
  justify-content: end;
}

.align-right .panel-shade {
  background:
    linear-gradient(270deg, rgba(4, 4, 3, 0.9) 0%, rgba(4, 4, 3, 0.62) 42%, rgba(4, 4, 3, 0.22) 100%),
    linear-gradient(0deg, rgba(5, 5, 4, 0.95) 0%, rgba(5, 5, 4, 0.18) 48%, rgba(5, 5, 4, 0.64) 100%);
}

.panel-copy {
  width: min(720px, 100%);
}

.panel-copy.narrow {
  width: min(620px, 100%);
}

.panel-copy.centered {
  width: min(880px, 100%);
  margin: 0 auto;
  text-align: center;
}

/* Scroll-triggered staggered reveal of copy children.
   Gated on .js so the page degrades to fully visible without JavaScript. */
.js .panel-copy > * {
  opacity: 0;
  transform: translateY(22px);
}

.js .cinema-panel.is-visible .panel-copy > * {
  animation: rise-in 820ms var(--ease) forwards;
}

.js .cinema-panel.is-visible .panel-copy > *:nth-child(1) { animation-delay: 40ms; }
.js .cinema-panel.is-visible .panel-copy > *:nth-child(2) { animation-delay: 140ms; }
.js .cinema-panel.is-visible .panel-copy > *:nth-child(3) { animation-delay: 240ms; }
.js .cinema-panel.is-visible .panel-copy > *:nth-child(4) { animation-delay: 340ms; }
.js .cinema-panel.is-visible .panel-copy > *:nth-child(5) { animation-delay: 440ms; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--gold-bright);
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(16px, 1.15vw, 19px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 26px;
  max-width: 16ch;
  color: #fff;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.02;
  font-weight: 430;
  letter-spacing: -0.018em;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}

h1 {
  max-width: 14ch;
  font-size: clamp(48px, 6.3vw, 92px);
  letter-spacing: -0.025em;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 380;
  color: var(--stone);
}

.panel-copy > p {
  max-width: 60ch;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.62;
  font-weight: 400;
}

.centered > p {
  margin-left: auto;
  margin-right: auto;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.panel-actions.center {
  justify-content: center;
}

/* ---------- Buttons ---------- */
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(246, 240, 228, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: color 240ms var(--ease), background 240ms var(--ease), border-color 240ms var(--ease), transform 240ms var(--ease), box-shadow 240ms var(--ease);
}

.button:hover,
.button:focus-visible {
  color: var(--bg);
  background: #fff;
  border-color: #fff;
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7);
}

.button.filled {
  color: #1c1407;
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  font-weight: 700;
}

.button.filled:hover,
.button.filled:focus-visible {
  color: #1c1407;
  border-color: var(--gold-bright);
  background: linear-gradient(180deg, #f1d4a0, var(--gold-bright));
}

.button.outline {
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- Quiet list ---------- */
.quiet-list {
  display: grid;
  gap: 0;
  max-width: 620px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.quiet-list li {
  position: relative;
  padding: 13px 0 13px 24px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  font-weight: 500;
}

.quiet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(205, 165, 103, 0.6);
}

/* ---------- Study surface ---------- */
.study-surface {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin-top: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.study-surface div {
  padding: 18px 22px;
  background: rgba(12, 12, 10, 0.74);
  backdrop-filter: blur(16px);
  transition: background 260ms var(--ease);
}

.study-surface div:hover {
  background: rgba(24, 21, 14, 0.82);
}

.study-surface span,
.ai-options span {
  color: var(--gold-bright);
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.study-surface strong {
  display: block;
  margin: 7px 0;
  color: #fff;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 22px;
}

.study-surface p,
.ai-options p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.52;
}

/* ---------- App carousel ---------- */
.app-panel {
  padding-left: clamp(20px, 3.4vw, 54px);
  padding-right: clamp(20px, 3.4vw, 54px);
}

.app-copy {
  display: grid;
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3.4vw, 56px);
  width: min(1560px, 100%);
}

.app-intro,
.app-carousel {
  min-width: 0;
}

.carousel-viewport {
  position: relative;
  aspect-ratio: 1.55;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: rgba(7, 7, 6, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 320ms var(--ease), transform 480ms var(--ease);
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.56);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(14px);
}

.carousel-controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.carousel-controls button {
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease);
}

.carousel-controls button:hover,
.carousel-controls button:focus-visible {
  color: var(--bg);
  background: #fff;
  outline: none;
  transform: scale(1.06);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: width 280ms var(--ease), background 280ms var(--ease), border-color 280ms var(--ease);
}

.carousel-dots button.is-active {
  width: 30px;
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* ---------- AI options ---------- */
.ai-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 680px;
  margin: 28px 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--line);
  overflow: hidden;
}

.ai-options div {
  padding: 22px;
  background: rgba(12, 12, 10, 0.7);
  backdrop-filter: blur(16px);
}

.ai-options span {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 500;
  font-size: 25px;
  letter-spacing: -0.01em;
}

/* ---------- Pricing ---------- */
.pricing-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(30px, 5vw, 78px);
  width: min(1120px, 100%);
}

.license-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(205, 165, 103, 0.42);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(40, 31, 18, 0.84), rgba(13, 12, 9, 0.84)),
    rgba(12, 12, 10, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.license-price-row {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  text-align: center;
}

.license-price {
  color: #fff;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(56px, 6vw, 88px);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.license-term {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.license-features {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.license-features li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.4;
}

.license-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.license-button {
  width: 100%;
  margin-bottom: 16px;
}

.license-button:disabled {
  cursor: default;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.download-claim {
  display: grid;
  gap: 10px;
  margin: -2px 0 16px;
  padding: 14px;
  border: 1px solid rgba(228, 195, 137, 0.36);
  border-radius: 16px;
  background: rgba(246, 240, 228, 0.08);
}

.download-claim[hidden] {
  display: none;
}

.download-claim p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.download-claim .button {
  width: 100%;
  justify-content: center;
}

.license-number {
  margin-left: 0.25em;
}

.license-meter {
  height: 6px;
  margin: 4px 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.license-meter div {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width 320ms var(--ease);
}

.license-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.license-tiers div {
  min-width: 0;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.56);
  text-align: center;
  transition: border-color 240ms var(--ease), background 240ms var(--ease), color 240ms var(--ease);
}

.license-tiers div.is-active {
  border-color: rgba(205, 165, 103, 0.72);
  color: #fff;
  background: rgba(205, 165, 103, 0.13);
  box-shadow: inset 0 0 0 1px rgba(228, 195, 137, 0.18);
}

.license-tiers div.is-sold-out {
  color: rgba(255, 255, 255, 0.32);
  text-decoration: line-through;
}

.license-tiers strong,
.license-tiers span,
.license-tiers small {
  display: block;
}

.license-tiers strong {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 21px;
}

.license-tiers span {
  margin: 5px 0;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.license-tiers small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.46);
}

.license-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  line-height: 1.46;
  text-align: center;
}

.download-panel .panel-shade {
  background:
    radial-gradient(circle at 50% 40%, rgba(205, 165, 103, 0.18), transparent 30%),
    linear-gradient(0deg, rgba(5, 5, 4, 0.95) 0%, rgba(5, 5, 4, 0.46) 50%, rgba(5, 5, 4, 0.92) 100%);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 120px;
  padding: 36px clamp(20px, 5vw, 82px);
  color: rgba(255, 255, 255, 0.66);
  background: #080806;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-footer p {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 24px;
}

/* ---------- Purchase dialog ---------- */
.purchase-dialog {
  max-width: 460px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  color: var(--ink);
  background: linear-gradient(180deg, #181410, #100f0b);
  box-shadow: var(--shadow);
}

.purchase-dialog h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1;
}

.purchase-dialog p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.purchase-dialog form {
  margin-top: 20px;
}

.purchase-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  body::after {
    transform: none;
  }

  .cinema-panel {
    position: relative;
  }

  .panel-media {
    transform: scale(1.04);
    transition: none;
  }

  .js .panel-copy > *,
  .js .cinema-panel.is-visible .panel-copy > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Tablet / small desktop ---------- */
@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .cinema-panel,
  .align-right {
    align-items: end;
    justify-content: start;
    height: 100svh;
    min-height: 0;
    padding: 84px 22px 46px;
  }

  .download-panel {
    align-items: start;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    scroll-snap-align: none;
  }

  .panel-shade,
  .align-right .panel-shade,
  .hero-panel .panel-shade {
    background:
      linear-gradient(90deg, rgba(4, 4, 3, 0.9) 0%, rgba(4, 4, 3, 0.54) 58%, rgba(4, 4, 3, 0.24) 100%),
      linear-gradient(0deg, rgba(5, 5, 4, 0.96) 0%, rgba(5, 5, 4, 0.16) 52%, rgba(5, 5, 4, 0.64) 100%);
  }

  h1,
  h2 {
    font-size: clamp(40px, 9.5vw, 62px);
    max-width: 18ch;
  }

  h1 {
    font-size: clamp(44px, 11vw, 68px);
  }

  .study-surface {
    grid-template-columns: 1fr;
  }

  .ai-options,
  .app-copy,
  .pricing-copy {
    grid-template-columns: 1fr;
  }

  .app-copy {
    gap: 20px;
  }

  .app-intro h2 {
    max-width: 16ch;
  }

  .app-intro p {
    max-width: 60ch;
  }

  .carousel-viewport {
    aspect-ratio: 1.55;
  }

  .license-card {
    max-width: 560px;
  }
}

/* ---------- Phones ---------- */
@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 16px 18px;
  }

  .site-header.is-scrolled {
    padding: 12px 18px;
  }

  .brand {
    font-size: 19px;
  }

  .header-action {
    padding: 8px 15px;
    font-size: 12px;
  }

  .cinema-panel,
  .align-right {
    padding: 78px 20px 40px;
  }

  .kicker {
    margin-bottom: 14px;
  }

  h1,
  h2 {
    margin-bottom: 20px;
  }

  .panel-copy > p {
    font-size: 16px;
    margin-bottom: 22px;
  }

  .panel-actions,
  .panel-actions.center {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .app-intro p {
    font-size: 15px;
    line-height: 1.55;
  }

  .ai-options {
    grid-template-columns: 1fr;
  }

  .license-tiers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  /* Compact the pricing panel so the whole offer fits one phone screen */
  .download-panel {
    align-items: center;
    padding-top: 66px;
    padding-bottom: 24px;
  }

  .download-panel .pricing-copy {
    gap: 16px;
  }

  #download-title {
    font-size: 29px;
    line-height: 1.06;
    margin-bottom: 0;
    max-width: 20ch;
  }

  .download-panel .kicker {
    margin-bottom: 8px;
  }

  /* Drop the intro paragraph on phones — the card carries the offer */
  .download-panel .pricing-copy > div > p:not(.kicker) {
    display: none;
  }

  .license-card {
    padding: 18px;
  }

  .license-price-row {
    margin-bottom: 10px;
  }

  .license-price {
    font-size: 48px;
  }

  .license-features {
    gap: 6px;
    margin-bottom: 14px;
  }

  .license-features li {
    font-size: 13px;
    line-height: 1.32;
  }

  .license-button {
    min-height: 48px;
    margin-bottom: 12px;
  }

  .license-meter {
    margin: 2px 0 12px;
  }

  .license-tiers div {
    padding: 8px 5px;
    border-radius: 11px;
  }

  .license-tiers strong {
    font-size: 16px;
  }

  .license-tiers span {
    margin: 3px 0;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .license-tiers small {
    font-size: 10px;
  }

  .license-note {
    margin-top: 10px;
    font-size: 11px;
  }

  .carousel-controls {
    grid-template-columns: 40px 1fr 40px;
    gap: 10px;
    margin-top: 14px;
  }

  .carousel-controls button {
    height: 40px;
    font-size: 24px;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
}

/* ---------- Short landscape desktops ---------- */
@media (max-height: 760px) and (min-width: 901px) {
  .kicker {
    margin-bottom: 10px;
    font-size: 16px;
  }

  h1,
  h2 {
    margin-bottom: 18px;
    font-size: clamp(38px, 5vw, 62px);
  }

  h1 {
    font-size: clamp(42px, 5.5vw, 72px);
  }

  .panel-copy > p {
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.5;
  }
}
