:root {
  --cream: #f7efe3;
  --cream-light: #fcf8f1;
  --ink: #2b2118;
  --muted: #74665b;
  --rose: #b67970;
  --rose-soft: #ead4ce;
  --lavender: #c9bde2;
  --lavender-soft: #eee8f6;
  --gold: #d8ad65;
  --night: #302b3d;
  --night-soft: #454056;
  --line: rgba(43, 33, 24, 0.14);
  --serif: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --shadow: 0 24px 70px rgba(68, 49, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 9%, rgba(255, 255, 255, 0.72), transparent 23rem),
    radial-gradient(circle at 91% 25%, rgba(234, 212, 206, 0.38), transparent 28rem);
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 10px 16px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: relative;
  z-index: 80;
  border-top: 3px solid rgba(182, 121, 112, 0.42);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font-size: clamp(2.25rem, 3vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.brand-moon {
  color: var(--rose);
  font-family: var(--serif);
  font-size: 1.18em;
  transform: rotate(-13deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}

.primary-nav {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.primary-nav-list,
.legal-dropdown,
.mobile-nav-list,
.mobile-legal-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.primary-nav-item {
  position: relative;
}

.primary-nav-link,
.primary-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 800 0.72rem/1 var(--sans);
  letter-spacing: 0.06em;
  padding: 0 11px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.primary-nav-link:hover,
.primary-nav-button:hover,
.primary-nav-link:focus-visible,
.primary-nav-button:focus-visible,
.primary-nav-link.is-active,
.primary-nav-button.is-active {
  background: rgba(255, 255, 255, 0.64);
  color: var(--night);
}

.primary-nav-link:focus-visible,
.primary-nav-button:focus-visible,
.mobile-nav-toggle:focus-visible,
.mobile-nav-close:focus-visible,
.mobile-nav-link:focus-visible,
.mobile-legal-button:focus-visible,
.mobile-legal-list a:focus-visible {
  outline: 2px solid rgba(182, 121, 112, 0.68);
  outline-offset: 3px;
}

.primary-nav-link.is-active,
.primary-nav-button.is-active {
  box-shadow: inset 0 0 0 1px rgba(48, 43, 61, 0.14);
}

.dropdown-arrow {
  width: 7px;
  height: 7px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.nav-dropdown.is-open .dropdown-arrow,
.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow {
  transform: translateY(1px) rotate(225deg);
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 12px;
}

.legal-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 270px;
  border: 1px solid rgba(43, 33, 24, 0.14);
  border-radius: 18px;
  background: rgba(252, 248, 241, 0.98);
  box-shadow: 0 24px 55px rgba(48, 43, 61, 0.14);
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
  visibility: hidden;
}

.legal-dropdown[hidden] {
  display: none;
}

.nav-dropdown.is-open .legal-dropdown,
.nav-dropdown:hover .legal-dropdown,
.nav-dropdown:focus-within .legal-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.legal-dropdown a {
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.25;
  padding: 11px 12px;
  text-decoration: none;
}

.legal-dropdown a:hover,
.legal-dropdown a:focus-visible,
.legal-dropdown a.is-active {
  background: rgba(234, 212, 206, 0.46);
}

.mobile-nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  cursor: pointer;
}

.mobile-nav-toggle span,
.mobile-nav-toggle::before,
.mobile-nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav-toggle span {
  margin-block: 4px;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(43, 33, 24, 0.34);
  opacity: 0;
  transition: opacity 220ms ease;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 140;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100% - 28px));
  height: 100dvh;
  border-left: 1px solid rgba(43, 33, 24, 0.14);
  background:
    radial-gradient(circle at 18% 0%, rgba(234, 212, 206, 0.48), transparent 16rem),
    var(--cream-light);
  box-shadow: -24px 0 60px rgba(48, 43, 61, 0.16);
  overflow-y: auto;
  padding: 18px;
  transform: translateX(100%);
  transition: transform 240ms ease;
}

.mobile-nav-overlay[hidden],
.mobile-nav-drawer[hidden] {
  display: none;
}

body.is-mobile-nav-open {
  overflow: hidden;
}

body.is-mobile-nav-open .mobile-nav-overlay {
  opacity: 1;
}

body.is-mobile-nav-open .mobile-nav-drawer {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
}

.mobile-nav-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mobile-nav-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.mobile-nav-list {
  display: grid;
  gap: 6px;
}

.mobile-nav-link,
.mobile-legal-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 800 0.95rem/1.2 var(--sans);
  padding: 0 12px;
  text-align: left;
  text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-legal-button:hover,
.mobile-nav-link.is-active,
.mobile-legal-button.is-active {
  background: rgba(234, 212, 206, 0.44);
}

.mobile-legal-button .dropdown-arrow {
  width: 8px;
  height: 8px;
}

.mobile-legal-button[aria-expanded="true"] .dropdown-arrow {
  transform: translateY(1px) rotate(225deg);
}

.mobile-legal-list {
  display: grid;
  gap: 4px;
  margin: 2px 0 8px;
  padding-left: 12px;
}

.mobile-legal-list[hidden] {
  display: none;
}

.mobile-legal-list a {
  display: block;
  border-left: 2px solid rgba(182, 121, 112, 0.3);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.3;
  padding: 9px 12px;
  text-decoration: none;
}

.mobile-legal-list a:hover,
.mobile-legal-list a:focus-visible,
.mobile-legal-list a.is-active {
  color: var(--ink);
  border-left-color: var(--rose);
}

.language-switch {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.language-select-label {
  display: flex;
}

.language-select {
  min-width: 118px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 700 0.74rem/1 var(--sans);
  letter-spacing: 0.02em;
  padding: 9px 12px;
}

.language-select:focus-visible {
  outline: 2px solid rgba(182, 121, 112, 0.62);
  outline-offset: 2px;
}

.language-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 600 0.74rem/1 var(--sans);
  letter-spacing: 0.04em;
  padding: 9px 12px;
}

.language-button.is-active {
  background: var(--night);
  color: white;
}

.text-link {
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 33, 24, 0.4);
}

.header-account-link.is-active {
  border-color: var(--rose);
  color: #7d4f48;
}

.hero {
  min-height: min(720px, calc(100vh - 86px));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: clamp(26px, 3.5vw, 48px);
  padding-block: 24px 64px;
}

.hero,
.section,
.join-section,
.legal-main,
.builder-main {
  scroll-margin-top: 28px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 22px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(3.15rem, 5vw, 4.65rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-intro {
  max-width: 650px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 0.87rem;
  font-weight: 600;
}

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.benefit-list li::before {
  content: "✓";
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-soft);
  color: #84564f;
  font-size: 0.65rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--night);
  color: white;
  box-shadow: 0 10px 24px rgba(48, 43, 61, 0.2);
}

.button-primary:hover {
  box-shadow: 0 14px 30px rgba(48, 43, 61, 0.28);
}

.button-waitlist {
  min-height: 58px;
  border-color: var(--night);
  background: linear-gradient(135deg, var(--night), var(--night-soft));
  box-shadow:
    0 12px 28px rgba(48, 43, 61, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.12);
  padding-inline: 34px;
  font-size: 0.9rem;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.38);
}

.button-danger {
  border-color: #8d4c45;
  background: #8d4c45;
  color: white;
}

.button-danger:hover {
  box-shadow: 0 12px 26px rgba(141, 76, 69, 0.22);
}

.microcopy {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.hero-art {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  isolation: isolate;
  border-radius: 34px;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 4% 2% 7% 6%;
  z-index: -2;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow);
}

.milo-frame {
  position: absolute;
  top: 28px;
  right: 2%;
  z-index: 3;
  width: min(74%, 405px);
  height: 430px;
  overflow: hidden;
  border-radius: 45% 45% 22% 22%;
}

.milo {
  position: absolute;
  top: -125px;
  left: -25%;
  width: 160%;
  max-width: none;
  filter: drop-shadow(0 24px 23px rgba(60, 45, 40, 0.13));
  animation: float 5.5s ease-in-out infinite;
  transition: transform 250ms ease;
}

.milo:hover {
  transform: rotate(1.2deg) scale(1.015);
}

.moon-scene {
  position: absolute;
  top: 2%;
  right: 0;
  z-index: 1;
  width: 68%;
  aspect-ratio: 1;
}

.moon {
  position: absolute;
  top: 3%;
  right: 7%;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbf5df, #f0dcae);
  box-shadow:
    0 0 0 22px rgba(238, 232, 246, 0.75),
    0 0 70px rgba(216, 173, 101, 0.3);
}

.moon::after {
  content: "";
  position: absolute;
  top: -6%;
  right: -8%;
  width: 94%;
  height: 94%;
  border-radius: 50%;
  background: var(--cream-light);
}

.storybook {
  position: absolute;
  right: 3%;
  bottom: 8%;
  z-index: 4;
  width: 45%;
  height: 15%;
  filter: drop-shadow(0 18px 12px rgba(72, 52, 39, 0.14));
}

.book-page {
  position: absolute;
  bottom: 0;
  width: 52%;
  height: 90%;
  border: 2px solid rgba(182, 121, 112, 0.35);
  background: #fffaf0;
}

.book-page-left {
  left: 0;
  border-radius: 80% 8% 10% 18%;
  transform: rotate(8deg);
}

.book-page-right {
  right: 0;
  border-radius: 8% 80% 18% 10%;
  transform: rotate(-8deg);
}

.book-glow {
  position: absolute;
  left: 28%;
  bottom: 48%;
  width: 44%;
  height: 68%;
  border-radius: 50%;
  background: rgba(255, 225, 156, 0.45);
  filter: blur(18px);
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(182, 121, 112, 0.2);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.orbit-one {
  inset: 15% -6% 18% 7%;
}

.orbit-two {
  inset: 24% -13% 27% 16%;
}

.spark {
  position: absolute;
  color: var(--lavender);
}

.spark-one {
  top: 11%;
  left: 17%;
  font-size: 2rem;
}

.spark-two {
  top: 31%;
  right: -1%;
  font-size: 1.6rem;
}

.spark-three {
  left: 4%;
  bottom: 23%;
  color: var(--gold);
  font-size: 2.4rem;
}

.milo-bubble {
  position: absolute;
  left: 1%;
  bottom: 18px;
  top: auto;
  z-index: 4;
  width: min(250px, 47%);
  margin: 0;
  border: 1px solid rgba(43, 33, 24, 0.11);
  border-radius: 22px 22px 6px 22px;
  background: rgba(255, 252, 246, 0.94);
  box-shadow: 0 15px 45px rgba(66, 46, 37, 0.12);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
  padding: 17px 18px;
}

.milo-bubble span {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-weight: 800;
}

.section {
  padding-block: clamp(88px, 10vw, 144px);
}

.section-heading-wrap {
  max-width: 820px;
  margin-bottom: 52px;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 6vw, 5.1rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.soft-card {
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.36);
  padding: clamp(28px, 4vw, 48px);
}

.soft-card:nth-child(2) {
  background: var(--night);
  color: white;
}

.card-kicker,
.comparison-label {
  margin-bottom: 26px;
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.soft-card:nth-child(2) .card-kicker {
  color: #e9c5bd;
}

.check-list,
.dash-list,
.comparison ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.dash-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--rose);
  font-weight: 800;
}

.dash-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #d9b6af;
}

.card-conclusion {
  margin: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #f0ded8;
  padding-top: 24px;
}

.section-tinted {
  border-block: 1px solid rgba(182, 121, 112, 0.18);
  background: rgba(234, 212, 206, 0.23);
}

.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 20px;
}

.comparison-side {
  border-radius: 30px;
  padding: clamp(28px, 4vw, 46px);
}

.comparison-side.before {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

.comparison-side.after {
  background: var(--cream-light);
  box-shadow: var(--shadow);
}

.comparison-side.after .comparison-label {
  color: #6f5f9a;
}

.comparison li {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 0 0 13px 27px;
}

.comparison li::before {
  position: absolute;
  left: 0;
}

.before li::before {
  content: "×";
  color: var(--rose);
}

.after li::before {
  content: "✓";
  color: #75659d;
  font-weight: 800;
}

.comparison-arrow {
  align-self: center;
  color: var(--rose);
  font-family: var(--serif);
  font-size: 2.4rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.step {
  min-height: 280px;
  border-right: 1px solid var(--line);
  padding: 34px 26px 30px 0;
}

.step + .step {
  padding-left: 26px;
}

.step:last-child {
  border-right: 0;
}

.step-number {
  display: block;
  margin-bottom: 54px;
  color: var(--rose);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.step h3 {
  margin-bottom: 10px;
  font-size: 1.75rem;
  line-height: 1.1;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.photo-story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(45px, 8vw, 110px);
}

.memory-card {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(49, 44, 62, 0.05), rgba(49, 44, 62, 0.68)),
    radial-gradient(circle at 50% 33%, #e9dba9 0 8%, transparent 8.5%),
    radial-gradient(circle at 50% 36%, #766b8f 0 28%, #4d475f 29% 58%, #393446 59%);
  box-shadow: var(--shadow);
  color: white;
  padding: 50px;
  text-align: center;
}

.memory-card::before,
.memory-card::after {
  content: "";
  position: absolute;
  bottom: 22%;
  width: 60%;
  height: 35%;
  background: #292537;
  clip-path: polygon(0 100%, 20% 54%, 37% 73%, 60% 20%, 100% 100%);
}

.memory-card::before {
  left: -4%;
}

.memory-card::after {
  right: -12%;
  opacity: 0.78;
}

.memory-card p,
.memory-card strong {
  position: relative;
  z-index: 2;
}

.memory-card p {
  margin-bottom: 3px;
  color: #e7d9d5;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.memory-card strong {
  font-size: 2.25rem;
  line-height: 1.05;
}

.memory-moon {
  position: absolute;
  top: 10%;
  right: 13%;
  color: #f2e1b9;
  font-size: 4rem;
}

.memory-star {
  position: absolute;
  color: #d8cbe8;
}

.star-a {
  top: 19%;
  left: 17%;
}

.star-b {
  top: 38%;
  right: 24%;
}

.photo-copy p:last-child,
.why-copy p:last-child {
  color: var(--muted);
  font-size: 1.04rem;
}

.section-night {
  background:
    radial-gradient(circle at 75% 25%, rgba(201, 189, 226, 0.14), transparent 24rem),
    var(--night);
  color: white;
}

.section-night .eyebrow {
  color: #d9b6af;
}

.story-preview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
}

.story-copy p:last-child {
  max-width: 660px;
  color: #d8d3df;
  font-size: 1.06rem;
}

.word-cards {
  display: grid;
  gap: 12px;
}

.word-cards div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  padding: 20px 24px;
}

.word-cards strong {
  font-size: 1.8rem;
}

.word-cards span {
  color: #bfb8cb;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.research-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.34);
  padding: 30px;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.research-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.65);
}

.source-name {
  color: var(--rose);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.research-card p {
  margin: 25px 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.2;
}

.source-link {
  margin-top: auto;
  font-size: 0.72rem;
  font-weight: 800;
}

.research-note {
  max-width: 800px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(48px, 9vw, 120px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-grid span {
  min-height: 95px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
  font-family: var(--serif);
  font-size: 1.17rem;
  line-height: 1.15;
  padding: 18px;
}

.feature-grid span::before {
  content: "✦";
  align-self: flex-start;
  margin-right: auto;
  color: var(--rose);
  font-size: 0.72rem;
}

.platform-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 60px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--night);
  color: white;
  padding: clamp(38px, 6vw, 72px);
}

.platform-card h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.platform-card > p {
  margin: 0;
  color: #d6d0dd;
}

.founder {
  position: relative;
  display: block;
}

.founder::before {
  content: "☾";
  position: absolute;
  top: clamp(78px, 9vw, 122px);
  right: 3%;
  color: var(--rose-soft);
  font: 400 clamp(6rem, 14vw, 11rem)/1 var(--serif);
  transform: rotate(-12deg);
}

.founder-copy {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

blockquote {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.42;
}

.join-section {
  overflow: hidden;
  border-top: 1px solid rgba(182, 121, 112, 0.2);
  background: var(--cream-light);
}

.join-inner {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: clamp(30px, 7vw, 90px);
}

.join-inner > div {
  max-width: 690px;
}

.join-inner > div > p:not(.eyebrow, .microcopy) {
  color: var(--muted);
  font-size: 1.05rem;
}

.join-milo {
  width: min(100%, 430px);
  justify-self: center;
  filter: drop-shadow(0 20px 24px rgba(52, 40, 34, 0.11));
}

.homepage-waitlist-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: 12px 14px;
  max-width: 620px;
  margin-top: 25px;
}

.homepage-waitlist-form .field {
  min-width: 0;
}

.homepage-waitlist-form .field input {
  min-width: 0;
}

.homepage-waitlist-form .button {
  width: auto;
  min-width: 180px;
  min-height: 56px;
  justify-self: start;
  white-space: nowrap;
}

.homepage-waitlist-form .form-helper,
.homepage-waitlist-form .compact-consent,
.homepage-waitlist-form .waitlist-status,
.homepage-waitlist-form .microcopy {
  grid-column: 1 / -1;
  margin: 0;
  text-align: left;
}

.form-helper {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.site-footer {
  min-height: 130px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 25px;
  border-bottom: 3px solid rgba(182, 121, 112, 0.42);
}

.site-footer .brand {
  font-size: 1.45rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.site-footer .text-link {
  justify-self: end;
}

.legal-footer-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.74rem;
}

.legal-footer-links a,
.legal-footer-links button {
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.legal-footer-links button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

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

  .milo {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .primary-nav-link,
  .primary-nav-button,
  .legal-dropdown,
  .dropdown-arrow,
  .mobile-nav-overlay,
  .mobile-nav-drawer {
    transition: none;
  }
}

@media (max-width: 1120px) {
  .primary-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: grid;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 26px;
  }

  .hero-copy {
    max-width: 780px;
    padding-top: 0;
  }

  .hero-art {
    width: min(700px, 100%);
    min-height: 500px;
    margin: 0 auto;
  }

  .milo-frame {
    top: 14px;
    right: 5%;
    width: min(65%, 410px);
    height: 400px;
  }

  .milo-bubble {
    left: 2%;
    bottom: 18px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .photo-story,
  .story-preview,
  .why-grid,
  .platform-card,
  .founder {
    grid-template-columns: 1fr;
  }

  .memory-card {
    min-height: 480px;
  }

  .platform-card {
    gap: 28px;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 30px, 1180px);
  }

  .site-header {
    min-height: 74px;
    gap: 12px;
  }

  .brand {
    gap: 4px;
    font-size: 2.12rem;
  }

  .header-actions {
    gap: 8px;
  }

  .site-header .text-link {
    display: none;
  }

  .language-button {
    padding: 8px 9px;
    font-size: 0.66rem;
  }

  .language-select {
    min-width: 104px;
    padding: 8px 9px;
    font-size: 0.66rem;
  }

  .mobile-nav-drawer {
    width: min(370px, calc(100% - 20px));
  }

  .hero {
    gap: 4px;
    padding-block: 20px 56px;
  }

  h1 {
    max-width: 560px;
    font-size: clamp(2.7rem, 12vw, 3.45rem);
    line-height: 1.02;
  }

  .hero-intro {
    font-size: 0.98rem;
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-art {
    min-height: 410px;
  }

  .hero-art::before {
    inset: 3% 0 5%;
  }

  .milo-frame {
    top: 5px;
    right: 1%;
    width: 82%;
    height: 340px;
  }

  .milo {
    top: -82px;
    left: -22%;
    width: 145%;
  }

  .moon-scene {
    top: 0;
    right: 0;
    width: 64%;
  }

  .storybook {
    right: 1%;
    bottom: 8%;
    width: 47%;
    height: 14%;
  }

  .milo-bubble {
    top: auto;
    bottom: 10px;
    left: 2%;
    width: 56%;
    font-size: 0.68rem;
    padding: 13px;
  }

  .problem-grid,
  .research-grid,
  .comparison,
  .join-inner {
    grid-template-columns: 1fr;
  }

  .soft-card {
    min-height: 0;
  }

  .comparison-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .steps {
    display: block;
  }

  .step,
  .step + .step {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
  }

  .step-number {
    margin-bottom: 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid span {
    min-height: 80px;
  }

  .memory-card {
    min-height: 420px;
    padding: 30px;
  }

  .word-cards div {
    padding: 16px 18px;
  }

  .join-inner {
    text-align: center;
  }

  .join-milo {
    width: min(310px, 78%);
    margin-inline: auto;
  }

  .join-section .button-waitlist {
    width: 100%;
  }

  .homepage-waitlist-form {
    grid-template-columns: 1fr;
  }

  .homepage-waitlist-form .button {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-block: 35px;
    text-align: center;
  }

  .site-footer .text-link {
    justify-self: center;
  }
}

/* Static MVP product experience */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.app-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 8%, rgba(201, 189, 226, 0.24), transparent 25rem),
    radial-gradient(circle at 8% 28%, rgba(234, 212, 206, 0.35), transparent 24rem),
    var(--cream);
}

.app-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 3px solid rgba(182, 121, 112, 0.42);
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-header-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.builder-main {
  padding-block: 45px 90px;
}

.builder-intro {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: clamp(30px, 7vw, 90px);
  max-width: 1000px;
  margin: 0 auto 38px;
}

.builder-intro h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(3.15rem, 6vw, 5.4rem);
}

.builder-intro > div > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.builder-intro img {
  width: min(100%, 280px);
  justify-self: center;
  filter: drop-shadow(0 20px 28px rgba(60, 45, 40, 0.12));
}

.wizard-card {
  max-width: 930px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 252, 246, 0.9);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 58px);
}

.wizard-progress {
  margin-bottom: 45px;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--rose-soft);
}

.progress-track span {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), #78699c);
  transition: width 380ms ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #9a8c82;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progress-labels span.is-current {
  color: var(--ink);
}

.progress-labels span.is-complete {
  color: var(--rose);
}

.wizard-step {
  display: none;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.wizard-step.is-active {
  display: block;
}

.wizard-step.step-enter {
  animation: step-in 360ms ease both;
}

.wizard-step legend {
  display: grid;
  gap: 7px;
  width: 100%;
  margin-bottom: 6px;
  padding: 0;
}

.wizard-step legend .serif {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.step-label,
.choice-title {
  color: var(--rose);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step-description {
  margin-bottom: 30px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.field-wide {
  margin-top: 28px;
}

.field input,
.field select {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(43, 33, 24, 0.18);
  border-radius: 15px;
  outline: none;
  background: #fffdf8;
  color: var(--ink);
  font: 500 1rem/1.3 var(--sans);
  padding: 14px 16px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(182, 121, 112, 0.12);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #a64f46;
}

.field-error,
.group-error {
  min-height: 18px;
  color: #9a4139;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
}

.choice-group + .choice-group {
  margin-top: 28px;
}

.choice-title {
  display: block;
  margin-bottom: 12px;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

.character-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mood-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.goal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card,
.choice-pill {
  position: relative;
  cursor: pointer;
}

.choice-card input,
.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf8;
  color: var(--muted);
  text-align: center;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.choice-card > span {
  color: var(--rose);
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1;
}

.choice-card strong {
  font-size: 0.77rem;
}

.choice-card:hover,
.choice-pill:hover {
  transform: translateY(-2px);
}

.choice-card:has(input:checked) {
  border-color: #796a9d;
  background: var(--lavender-soft);
  box-shadow: 0 9px 20px rgba(73, 61, 95, 0.1);
  color: var(--ink);
}

.choice-card:has(input:focus-visible),
.choice-pill:has(input:focus-visible) {
  outline: 3px solid rgba(182, 121, 112, 0.3);
  outline-offset: 2px;
}

.choice-pill {
  display: flex;
}

.choice-pill span {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 10px 15px;
  text-align: center;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.choice-pill input:checked + span {
  border-color: var(--night);
  background: var(--night);
  color: white;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 25px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
}

.consent-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--night);
}

.consent-row a {
  font-weight: 800;
}

.compact-consent {
  grid-column: 1 / -1;
  margin-top: 0;
}

.field-helper {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.privacy-note {
  margin-top: 18px;
}

.adult-notice {
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.46);
  padding: 24px;
}

.adult-notice h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.adult-notice p:not(.eyebrow) {
  max-width: 780px;
  margin-bottom: 10px;
  color: var(--muted);
}

.adult-notice p:last-child {
  margin-bottom: 0;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.wizard-actions .button {
  min-width: 145px;
  cursor: pointer;
}

.wizard-actions .button[hidden] {
  display: none;
}

.wizard-actions .wizard-back {
  margin-right: auto;
}

.form-status,
.waitlist-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: #6f5f9a;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.app-footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
}

.app-footer p {
  margin: 0;
}

.app-footer a {
  font-weight: 700;
  text-decoration: none;
}

.story-page {
  background:
    radial-gradient(circle at 85% 8%, rgba(201, 189, 226, 0.25), transparent 25rem),
    var(--cream);
}

.story-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(30px, 7vw, 90px);
  padding-block: 55px;
}

.story-heading h1 {
  max-width: 800px;
  margin-bottom: 25px;
  font-size: clamp(3.5rem, 7vw, 6.25rem);
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.story-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 12px;
}

.story-milo-scene {
  position: relative;
  width: min(100%, 360px);
  justify-self: center;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.58);
}

.story-milo-scene::before {
  content: "";
  position: absolute;
  inset: 20% 10%;
  z-index: -1;
  border-radius: 50%;
  background: var(--lavender-soft);
  filter: blur(4px);
}

.story-milo-scene img {
  filter: drop-shadow(0 22px 25px rgba(60, 45, 40, 0.12));
  animation: float 5.5s ease-in-out infinite;
}

.story-star {
  position: absolute;
  color: var(--lavender);
  font-size: 1.8rem;
}

.story-star-one {
  top: 20%;
  left: 4%;
}

.story-star-two {
  top: 12%;
  right: 6%;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: start;
  gap: 24px;
  padding-bottom: 95px;
}

.story-paper {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fffdf8;
  box-shadow: var(--shadow);
  padding: clamp(34px, 6vw, 75px);
}

.story-opening-mark {
  position: absolute;
  top: 27px;
  right: 34px;
  color: var(--rose-soft);
  font: 400 4rem/1 var(--serif);
  transform: rotate(-13deg);
}

.story-content {
  max-width: 720px;
}

.story-content p {
  color: #51453c;
  font-family: var(--serif);
  font-size: clamp(1.23rem, 2vw, 1.55rem);
  line-height: 1.75;
}

.story-content p:first-child::first-letter {
  float: left;
  margin: 8px 8px 0 0;
  color: var(--rose);
  font-size: 4.3rem;
  line-height: 0.72;
}

.story-ending {
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
  color: var(--rose);
  font-size: 1.15rem;
  padding-top: 24px;
}

.story-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 20px;
}

.story-insight {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 252, 246, 0.7);
  padding: 27px;
}

.story-insight h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.story-insight > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.vocabulary-card {
  background: var(--night);
  color: white;
}

.vocabulary-card .card-kicker {
  color: #e3c0b8;
}

.insight-intro {
  margin-bottom: 20px !important;
  color: #c9c2d1 !important;
  font-size: 0.74rem !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vocabulary-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.vocabulary-list div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 11px;
}

.vocabulary-list dt {
  font-family: var(--serif);
  font-size: 1.3rem;
}

.vocabulary-list dd {
  margin: 0;
  color: #c9c2d1;
  font-size: 0.75rem;
  text-align: right;
}

.parent-tip {
  background: var(--rose-soft);
}

.story-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 75px;
  border-top: 1px solid var(--line);
}

.story-actions h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
}

.story-action-links {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.story-action-links .microcopy {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.browser-data-panel {
  max-width: 430px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.44);
  padding: 18px;
}

.browser-data-panel p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.status-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: #6f5f9a;
  font-size: 0.78rem;
  font-weight: 800;
}

.prototype-waitlist {
  padding-block: 90px;
  background: var(--night);
  color: white;
}

.waitlist-card {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: clamp(50px, 9vw, 120px);
}

.waitlist-card h2 {
  max-width: 700px;
}

.waitlist-card > div > p:last-child {
  max-width: 650px;
  color: #d2cbd8;
}

.waitlist-form {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
  padding: 28px;
}

.waitlist-form .field {
  color: white;
}

.waitlist-form .button {
  width: 100%;
  margin-top: 14px;
  border-color: #fff;
  background: #fff;
  color: var(--night);
}

.waitlist-form .waitlist-status {
  color: #e8c6bf;
  text-align: left;
}

.waitlist-form .microcopy {
  color: #bdb5c6;
  line-height: 1.5;
}

.waitlist-form .form-helper,
.waitlist-form .consent-row {
  color: #d6cfdd;
}

.legal-main {
  padding-block: 42px 78px;
}

.legal-hero {
  max-width: 880px;
  padding-block: 24px 34px;
}

.legal-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
}

.legal-hero p:not(.eyebrow),
.legal-meta {
  color: var(--muted);
}

.legal-warning,
.legal-section {
  border-top: 1px solid var(--line);
  padding-block: 30px;
}

.legal-warning {
  border-radius: 22px;
  border: 1px solid rgba(182, 121, 112, 0.3);
  background: rgba(234, 212, 206, 0.28);
  padding: 24px;
}

.legal-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-block: 28px;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.4);
  padding: 24px;
}

.legal-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.legal-card p {
  color: var(--muted);
}

.legal-card p:last-of-type {
  margin-bottom: 18px;
}

.legal-doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 22px;
  border-block: 1px solid var(--line);
  padding-block: 14px;
}

.legal-doc-nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.legal-warning h2,
.legal-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  line-height: 1.12;
}

.legal-section h3 {
  margin: 24px 0 8px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
}

.legal-definition-list {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) 1fr;
  gap: 10px 18px;
  margin: 0 0 20px;
}

.legal-definition-list dt {
  color: var(--ink);
  font-weight: 800;
}

.legal-definition-list dd {
  margin: 0;
  color: var(--muted);
}

.legal-section code,
.legal-warning code {
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--night);
  font-size: 0.9em;
  padding: 2px 5px;
}

.table-wrap {
  overflow-x: auto;
  margin-block: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
}

.table-wrap table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  border-bottom: 1px solid var(--line);
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  width: min(440px, calc(100% - 36px));
}

.cookie-panel {
  border: 1px solid rgba(43, 33, 24, 0.16);
  border-radius: 22px;
  background: rgba(252, 248, 241, 0.97);
  box-shadow: var(--shadow);
  padding: 20px;
}

.cookie-panel h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.cookie-panel p,
.cookie-choice {
  color: var(--muted);
  font-size: 0.82rem;
}

.cookie-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block: 14px;
}

.cookie-choice input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--night);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .builder-intro {
    grid-template-columns: 1fr;
  }

  .builder-intro img {
    display: none;
  }

  .character-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .story-milo-scene {
    width: min(320px, 76%);
  }

  .story-layout,
  .waitlist-card {
    grid-template-columns: 1fr;
  }

  .legal-card-grid {
    grid-template-columns: 1fr;
  }

  .story-action-links {
    justify-items: start;
  }

  .story-action-links .microcopy {
    text-align: left;
  }

  .story-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-sidebar .vocabulary-card {
    grid-row: span 2;
  }
}

@media (max-width: 700px) {
  .app-header {
    min-height: 74px;
  }

  .app-header-actions {
    gap: 8px;
  }

  .app-header-note {
    display: none;
  }

  .app-header .text-link {
    display: none;
  }

  .builder-main {
    padding-block: 32px 65px;
  }

  .builder-intro {
    margin-bottom: 25px;
  }

  .builder-intro h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .wizard-card {
    border-radius: 24px;
    padding: 24px 18px;
  }

  .wizard-progress {
    margin-bottom: 30px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .character-grid,
  .mood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goal-grid {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 96px;
  }

  .wizard-actions {
    flex-wrap: wrap;
  }

  .wizard-actions .button {
    width: 100%;
  }

  .wizard-actions .wizard-back {
    order: 2;
  }

  .form-status {
    text-align: center;
  }

  .app-footer {
    flex-direction: column;
    justify-content: center;
    padding-block: 28px;
    text-align: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-block: 26px;
    text-align: center;
  }

  .site-footer .brand,
  .site-footer .text-link {
    justify-self: center;
  }

  .legal-footer-links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .legal-definition-list {
    grid-template-columns: 1fr;
  }

  .story-hero {
    padding-block: 38px;
  }

  .story-heading h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .story-milo-scene {
    width: min(280px, 78%);
  }

  .story-layout {
    padding-bottom: 65px;
  }

  .story-paper {
    border-radius: 24px;
    padding: 38px 22px;
  }

  .story-opening-mark {
    top: 16px;
    right: 20px;
    font-size: 3rem;
  }

  .story-content p {
    font-size: 1.18rem;
    line-height: 1.68;
  }

  .story-sidebar {
    grid-template-columns: 1fr;
  }

  .story-sidebar .vocabulary-card {
    grid-row: auto;
  }

  .story-actions {
    align-items: stretch;
    flex-direction: column;
    padding-block: 60px;
  }

  .story-actions .button {
    width: 100%;
  }

  .prototype-waitlist {
    padding-block: 70px;
  }

  .waitlist-form {
    padding: 22px 18px;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .cookie-actions .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    gap: 8px;
  }

  .brand {
    font-size: 1.78rem;
  }

  .language-select {
    min-width: 92px;
    max-width: 96px;
  }

  .mobile-nav-toggle {
    width: 40px;
    height: 40px;
  }

  .mobile-nav-drawer {
    width: calc(100% - 14px);
    padding: 16px;
  }
}
/* ==========================
   Cookie Banner
========================== */

#cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  justify-content: center;
}

.cookie-banner-content {
  max-width: 920px;
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-banner-content h3 {
  margin: 0 0 12px;
}

.cookie-banner-content p {
  margin: 0 0 18px;
  line-height: 1.6;
}

.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-link {
  margin-left: auto;
  text-decoration: none;
  font-weight: 600;
  color: inherit;
}

.cookie-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  #cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .cookie-banner-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-link {
    margin-left: 0;
    text-align: center;
  }
}
