:root {
  --bg0: #eaf9f2;
  --bg1: #bcefe9;
  --ink: #f9fff5;
  --ink-soft: rgba(249, 255, 245, 0.82);
  --surface-ink: #082f2c;
  --surface-muted: rgba(8, 47, 44, 0.72);
  --glass-surface: rgba(255, 255, 255, 0.12);
  --glass-surface-strong: rgba(255, 255, 255, 0.18);
  --glass-line: rgba(255, 255, 255, 0.38);
  --glass-line-soft: rgba(255, 255, 255, 0.24);
  --sky: #aeeaff;
  --ocean: #4fd6cf;
  --sun: #ffd56d;
  --leaf: #87d977;
  --coral: #ff8f78;
  --shadow: rgba(8, 43, 39, 0.18);
  --display: Futura, "Avenir Next", "Trebuchet MS", Arial, sans-serif;
  --body: Futura, "Avenir Next", "Trebuchet MS", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 34px;
  --pill-radius: 999px;
  --control-radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background: var(--bg0);
}

body {
  margin: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--body);
  letter-spacing: 0;
}

html.video-load-locked,
body.video-load-locked {
  overflow: hidden;
}

body.theme-light {
  --ink: #082f2c;
  --ink-soft: rgba(8, 47, 44, 0.78);
  --surface-ink: #092d2a;
  --surface-muted: rgba(9, 45, 42, 0.7);
  --glass-surface: rgba(255, 255, 255, 0.14);
  --glass-surface-strong: rgba(255, 255, 255, 0.18);
  --glass-line: rgba(255, 255, 255, 0.48);
  --shadow: rgba(18, 83, 76, 0.12);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 246, 218, 0.24), rgba(111, 222, 212, 0.12)),
    linear-gradient(135deg, var(--bg0), var(--bg1));
}

.scanlines {
  display: none;
}

.scrolly-video {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #c9f5ef url("../images/video-poster.jpg") center / cover no-repeat;
}

.scrolly-video canvas,
.scrolly-video video {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  transform: translate(-50%, -50%) !important;
}

.scrolly-video video {
  object-fit: cover !important;
  object-position: center center !important;
}

.oh-scroll-copy .scrolly-video video,
.oh-scroll-copy .scrolly-video canvas {
  filter: none !important;
}

.scrolly-video canvas {
  object-fit: cover !important;
  object-position: center center !important;
}

.scrolly-video::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(7, 55, 51, 0.16)),
    linear-gradient(90deg, rgba(3, 35, 34, 0.2), transparent 45%, rgba(255, 213, 109, 0.1));
}

.oh-scroll-copy .scrolly-video::after {
  display: none;
}

.desktop-video-dim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: #000;
  opacity: 0;
}

html.video-load-locked .scrolly-video video,
html.video-load-locked .scrolly-video canvas {
  opacity: 0;
  visibility: hidden;
}

html.video-load-locked .desktop-video-dim {
  display: none !important;
}

body.theme-light .scrolly-video::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 248, 226, 0.18)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 54%, rgba(255, 213, 109, 0.14));
}

.page {
  position: relative;
  z-index: 2;
  margin-top: -100vh;
}

.container {
  width: min(1120px, 90vw);
  margin: 0 auto;
}

.glass {
  position: relative;
  color: var(--surface-ink);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)),
    var(--glass-surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    0 18px 52px var(--shadow);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.28), transparent 38%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.16), transparent 34%);
  opacity: 0.7;
}

.glass > * {
  position: relative;
  z-index: 1;
}

.glass--hero {
  width: min(100%, 62rem);
  max-width: 62rem;
  min-width: 0;
  padding: clamp(0.9rem, 2vw, 1.4rem);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(9, 72, 68, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 14px 46px rgba(8, 43, 39, 0.1);
}

.glass--small,
.glass--pill {
  width: fit-content;
  padding: 0.7rem 0.85rem;
  border-radius: var(--pill-radius);
  font-size: 0.86rem;
  line-height: 1.35;
}

.glass--pill {
  color: var(--surface-ink);
  text-transform: uppercase;
  font-family: var(--mono);
}

.hero {
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  padding: clamp(4.2rem, 8vw, 7rem) 0 clamp(3.2rem, 7vw, 5.8rem);
}

.hero__layout {
  position: relative;
  display: grid;
  gap: 1rem;
  align-items: end;
}

.hero__copy {
  justify-self: start;
  width: min(100%, 58rem);
  max-width: 58rem;
  min-width: 0;
  color: var(--ink);
  text-shadow: 0 18px 46px rgba(0, 42, 38, 0.34);
}

.hero__peek {
  position: absolute;
  right: 0;
  bottom: -3.6rem;
  justify-self: end;
  margin: 0;
  color: var(--surface-ink);
}

.chapter {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: clamp(3.8rem, 6vw, 5.8rem) 0;
}

.chapter__layout,
.launch-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.4rem);
  align-items: center;
}

.chapter__card,
.quote-panel,
.launch-card {
  padding: clamp(1.05rem, 2.6vw, 2.1rem);
}

.chapter__card {
  max-width: 37rem;
  border-radius: 34px 54px 42px 54px;
}

.chapter__card--wide {
  max-width: 42rem;
}

.quote-panel {
  border-radius: 54px 34px 58px 34px;
}

.chapter--left .chapter__card {
  grid-column: 1 / span 6;
}

.chapter--right .chapter__card {
  grid-column: 7 / span 6;
}

.chapter--center .chapter__card,
.chapter--center .quote-panel {
  grid-column: 3 / span 8;
  justify-self: center;
}

.chapter__note {
  grid-column: 8 / span 3;
  align-self: end;
}

.chapter--right .chapter__note {
  grid-column: 2 / span 3;
  grid-row: 1;
}

.principle-stack,
.questions-flow {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
}

.quote-panel {
  grid-column: 2 / span 9;
}

.floating-line {
  grid-column: 8 / span 4;
  justify-self: end;
}

.glint-list {
  grid-column: 8 / span 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-self: end;
}

.chapter--right .glint-list {
  grid-column: 2 / span 4;
  grid-row: 1;
}

.glint-list--stacked {
  align-self: center;
}

.questions-flow .chapter__card {
  grid-column: 1 / span 7;
}

.question-list {
  grid-column: 8 / span 5;
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.question-list li {
  padding: 0.9rem 1rem;
  border-radius: var(--pill-radius);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.45;
}

.section--trailer[hidden],
[hidden] {
  display: none !important;
}

.video {
  position: relative;
  width: min(760px, 100%);
  aspect-ratio: 16 / 9;
  margin: 1.4rem auto 0;
  overflow: hidden;
}

.eyebrow,
.kicker {
  margin: 0 0 0.85rem;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
  text-transform: uppercase;
}

.title {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(3.2rem, 8.4vw, 7.2rem);
  font-weight: 850;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
  text-shadow: 0 18px 52px rgba(0, 42, 38, 0.38);
}

.subtitle {
  margin: 1.1rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 2.4vw, 1.58rem);
  line-height: 1.45;
}

.hero__line {
  max-width: 40rem;
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.68;
}

.h2,
.quote {
  margin: 0;
  color: var(--surface-ink);
  font-family: var(--display);
  font-weight: 780;
  letter-spacing: 0;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(1.75rem, 3.5vw, 3.15rem);
  line-height: 1.1;
}

.quote {
  font-size: clamp(2.45rem, 7vw, 6.4rem);
  line-height: 0.98;
}

.p {
  margin: 1rem 0 0;
  color: var(--surface-muted);
  font-size: clamp(1rem, 1.7vw, 1.13rem);
  line-height: 1.72;
}

.author-links,
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.author-links {
  margin-top: 1.25rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--glass-line-soft);
  border-radius: var(--pill-radius);
  color: var(--surface-ink);
  text-decoration: none;
  background: var(--glass-surface);
}

.social-btn:hover {
  border-color: rgba(255, 213, 109, 0.74);
}

.launch-grid {
  align-items: stretch;
}

.email-capture {
  grid-column: 1 / span 5;
  padding: clamp(1rem, 2.5vw, 1.45rem);
  border-radius: var(--control-radius);
}

.launch-card {
  grid-column: 7 / span 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 17rem;
  border-radius: 54px 34px 54px 34px;
}

.email-capture__label {
  display: block;
  margin: 0 0 0.8rem;
  color: var(--surface-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.email-capture__label-accent {
  color: #b75442;
  font-weight: 850;
}

.email-capture__row {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}

.email-capture__input {
  width: 100%;
  min-width: 0;
  min-height: 2.9rem;
  padding: 0.72rem 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--control-radius);
  color: var(--surface-ink);
  background: rgba(255, 255, 255, 0.2);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.email-capture__input::placeholder {
  color: rgba(8, 47, 44, 0.48);
}

.email-capture__input:focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: 2px;
}

.email-capture__join {
  min-width: 4.5rem;
  padding: 0.72rem 0.9rem;
  border: 0;
  border-radius: var(--control-radius);
  color: #07302d;
  background: linear-gradient(135deg, var(--ocean), var(--sky));
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.email-capture__join:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.email-capture__status {
  min-height: 1.1rem;
  margin: 0.6rem 0 0;
  color: var(--surface-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.email-capture__status--ok {
  color: #1b7c4f;
}

.email-capture__status--error {
  color: #a74332;
}

.cta {
  display: flex;
  margin-top: 1.25rem;
}

.cta--final {
  margin-top: 1.4rem;
}

.btn.amazon-btn {
  position: relative;
  display: inline-flex;
  width: min(100%, 21rem);
  min-height: 4.35rem;
  padding: 2px;
  border: 0;
  border-radius: var(--control-radius);
  color: #11241f;
  text-decoration: none;
  background: linear-gradient(135deg, var(--sun), #fff0b8 45%, var(--coral));
  box-shadow: 0 16px 38px rgba(20, 78, 68, 0.22);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.btn.amazon-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.btn.amazon-btn:focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: 4px;
}

.amazon-btn--xl {
  width: 100%;
}

.amazon-btn--disabled,
.amazon-btn--disabled:hover {
  cursor: not-allowed;
  filter: saturate(0.82);
  transform: none;
}

.amazon-btn__content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 0.25rem;
  align-content: center;
  padding: 0.82rem 1rem;
  border-radius: calc(var(--control-radius) - 2px);
  background: rgba(255, 251, 224, 0.58);
  overflow: hidden;
}

.amazon-btn__dust {
  position: absolute;
  inset: -20%;
  opacity: 0.34;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 62%, rgba(255, 143, 120, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 36% 24%, rgba(255, 213, 109, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 44%, rgba(135, 217, 119, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 78%, rgba(79, 214, 207, 0.38) 0 1px, transparent 2px);
  animation: amazon-dust 4.5s ease-in-out infinite;
}

@keyframes amazon-dust {
  0%, 100% {
    transform: translate3d(-2%, 1%, 0);
    opacity: 0.24;
  }
  50% {
    transform: translate3d(2%, -2%, 0);
    opacity: 0.48;
  }
}

.amazon-btn__title {
  position: relative;
  z-index: 1;
  font-size: clamp(0.98rem, 2.3vw, 1.18rem);
  font-weight: 850;
  line-height: 1.15;
}

.amazon-btn__fineprint {
  position: relative;
  z-index: 1;
  color: rgba(17, 36, 31, 0.7);
  font-size: 0.78rem;
  line-height: 1.35;
}

.footer {
  position: relative;
  z-index: 2;
  padding: 2rem 0 2.5rem;
  color: var(--ink-soft);
}

.footer__inner {
  justify-content: center;
  padding-top: 0;
}

.video-load-splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  color: var(--surface-ink);
  background:
    linear-gradient(180deg, rgba(233, 255, 247, 0.94), rgba(188, 239, 233, 0.96)),
    var(--bg0);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.video-load-splash--done {
  opacity: 0;
  visibility: hidden;
}

.video-load-splash__inner {
  width: min(22rem, 86vw);
  padding: 1.4rem;
  text-align: center;
  border: 1px solid var(--glass-line);
  border-radius: var(--control-radius);
  background: var(--glass-surface-strong);
  box-shadow: 0 18px 46px var(--shadow);
}

.video-load-splash__kicker,
.video-load-splash__hint {
  margin: 0;
}

.video-load-splash__kicker {
  font-weight: 850;
  text-transform: uppercase;
}

.video-load-splash__hint {
  margin-top: 0.45rem;
  color: var(--surface-muted);
}

.video-load-splash__bar {
  width: 100%;
  height: 0.42rem;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: var(--pill-radius);
  background: rgba(8, 47, 44, 0.12);
}

.video-load-splash__bar-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ocean), var(--sun), var(--coral));
  transition: width 0.16s ease;
}

.video-load-splash__spinner {
  width: 2.4rem;
  height: 2.4rem;
  margin: 1rem auto 0;
  border: 2px solid rgba(8, 47, 44, 0.18);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .amazon-btn__dust,
  .video-load-splash__spinner {
    animation: none;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 2rem, 760px);
  }

  .hero {
    min-height: 88svh;
    padding: 5rem 0 2.8rem;
  }

  .chapter {
    min-height: 92vh;
    padding: 3.6rem 0;
  }

  .chapter__layout,
  .launch-grid,
  .principle-stack,
  .questions-flow {
    grid-template-columns: 1fr;
  }

  .chapter--left .chapter__card,
  .chapter--right .chapter__card,
  .chapter--center .chapter__card,
  .chapter--center .quote-panel,
  .questions-flow .chapter__card,
  .quote-panel,
  .floating-line,
  .chapter__note,
  .chapter--right .chapter__note,
  .glint-list,
  .chapter--right .glint-list,
  .question-list,
  .email-capture,
  .launch-card {
    grid-column: 1;
    grid-row: auto;
  }

  .chapter__card,
  .chapter__card--wide,
  .quote-panel,
  .launch-card {
    max-width: min(100%, 38rem);
  }

  .hero__peek,
  .floating-line {
    position: static;
    justify-self: start;
  }

  .question-list {
    margin-top: 0.75rem;
  }
}

@media (max-width: 760px) {
  .scrolly-video {
    background-image: url("../images/video-poster-mobile.jpg");
  }

  .container {
    width: min(100% - 1.25rem, 36rem);
  }

  .glass--hero,
  .chapter__card,
  .quote-panel,
  .launch-card,
  .email-capture {
    padding: 0.95rem;
  }

  .chapter__card,
  .quote-panel,
  .launch-card,
  .email-capture {
    border-radius: var(--control-radius);
  }

  .title {
    font-size: clamp(2.7rem, 13vw, 4.25rem);
  }

  .h2 {
    font-size: clamp(1.85rem, 10vw, 3.05rem);
  }

  .quote {
    font-size: clamp(2.25rem, 13vw, 4.1rem);
  }

  .email-capture__row {
    flex-direction: column;
  }

  .email-capture__join {
    width: 100%;
  }

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