:root {
  color-scheme: light;
  --ink: #151412;
  --charcoal: #1a1817;
  --soft-black: #0f0f0e;
  --muted: #665d51;
  --gold: #c89b3c;
  --gold-bright: #e0bd65;
  --gold-deep: #8c6219;
  --evergreen: #10392f;
  --berry: #7b3347;
  --ivory: #f7f1e7;
  --paper: #fffaf1;
  --linen: #eadfcb;
  --line: rgba(21, 20, 18, 0.14);
  --line-dark: rgba(247, 241, 231, 0.16);
  --shadow: 0 20px 54px rgba(27, 20, 9, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.topbar {
  align-items: center;
  background: rgba(247, 241, 231, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  height: 34px;
  width: 44px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 20px);
  justify-content: flex-end;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(15, 15, 14, 0.86) 0%, rgba(15, 15, 14, 0.64) 42%, rgba(15, 15, 14, 0.12) 100%),
    url("/assets/family-tablet-storytime.png") center / cover no-repeat;
  border-bottom: 6px solid var(--gold);
  display: flex;
  min-height: calc(86vh - 72px);
  padding: clamp(52px, 9vw, 110px) clamp(22px, 7vw, 96px);
}

.hero-copy {
  color: var(--paper);
  max-width: 760px;
}

.eyebrow {
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  max-width: none;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  margin: 0 0 16px;
}

h1 {
  color: inherit;
  font-size: clamp(62px, 11vw, 132px);
  font-weight: 700;
}

h2 {
  color: inherit;
  font-size: clamp(34px, 5vw, 60px);
  max-width: 900px;
}

h3 {
  font-size: 24px;
}

p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 18px;
  max-width: 760px;
}

.hero-lede {
  color: rgba(255, 250, 241, 0.9);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
}

.hero-note {
  color: rgba(255, 250, 241, 0.74);
  font-size: 14px;
  margin-top: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  text-decoration: none;
}

.button.primary {
  background: var(--soft-black);
  border-color: var(--gold);
  color: var(--ivory);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.button.secondary {
  background: rgba(255, 250, 241, 0.86);
  color: var(--ink);
}

.intro-strip {
  align-items: center;
  background: var(--soft-black);
  color: var(--ivory);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.intro-strip span {
  align-items: center;
  border-right: 1px solid var(--line-dark);
  color: rgba(247, 241, 231, 0.86);
  display: flex;
  font-weight: 850;
  justify-content: center;
  min-height: 82px;
  padding: 18px;
  text-align: center;
}

.showcase,
.story-band,
.memory-wall,
.download-cta,
.steps {
  padding: clamp(48px, 8vw, 100px) clamp(22px, 7vw, 96px);
}

.showcase {
  align-items: center;
  background: var(--paper);
  display: grid;
  gap: clamp(28px, 6vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  overflow: hidden;
}

.showcase-copy h2 {
  color: var(--ink);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.feature-list div {
  border-left: 4px solid var(--gold);
  padding: 4px 0 4px 18px;
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.feature-list span {
  color: var(--muted);
  margin-top: 4px;
}

.phone-stage {
  min-height: 610px;
  position: relative;
}

.phone {
  background: var(--soft-black);
  border: 8px solid var(--soft-black);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: absolute;
  width: min(260px, 42vw);
}

.phone img {
  display: block;
  height: auto;
  width: 100%;
}

.phone-front {
  right: 34px;
  top: 0;
  z-index: 2;
}

.phone-back {
  left: 0;
  top: 76px;
  transform: rotate(-5deg);
  z-index: 1;
}

.story-band {
  align-items: center;
  background: var(--charcoal);
  color: var(--ivory);
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
}

.story-image img,
.memory-wall img {
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.story-image img {
  border-radius: 0;
}

.story-copy p:not(.eyebrow),
.story-copy h2 {
  color: var(--ivory);
}

.story-copy p:not(.eyebrow) {
  color: rgba(247, 241, 231, 0.78);
}

.steps {
  background: var(--ivory);
}

.section-heading {
  margin: 0 auto 36px;
  max-width: 980px;
  text-align: center;
}

.section-heading p {
  margin-left: auto;
  margin-right: auto;
}

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

.step-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 280px;
  padding: clamp(22px, 3vw, 34px);
}

.step-grid span {
  color: var(--berry);
  display: block;
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 40px;
}

.step-grid h3 {
  color: var(--ink);
}

.step-grid p {
  font-size: 16px;
}

.memory-wall {
  align-items: center;
  background: var(--evergreen);
  color: var(--ivory);
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.74fr);
}

.memory-wall img {
  max-height: 620px;
}

.memory-wall h2,
.memory-wall p:not(.eyebrow) {
  color: var(--ivory);
}

.memory-wall p:not(.eyebrow) {
  color: rgba(247, 241, 231, 0.8);
}

.download-cta {
  align-items: center;
  background: var(--paper);
  display: grid;
  gap: 28px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.download-cta h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.download-cta p {
  margin-bottom: 0;
}

.narrow,
.legal {
  margin: 0 auto;
  max-width: 920px;
  min-height: calc(100vh - 150px);
  padding: clamp(42px, 8vw, 90px) 22px;
}

.center {
  text-align: center;
}

.center p {
  margin-left: auto;
  margin-right: auto;
}

.app-icon {
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: block;
  height: 132px;
  margin: 0 auto 28px;
  width: 132px;
}

.download-cta .app-icon {
  margin: 0;
}

.fine-print {
  font-size: 14px;
  margin-top: 20px;
}

.legal {
  background: var(--paper);
}

.legal h2,
.legal h3,
.legal h4 {
  margin-top: 34px;
}

.legal p,
.legal li {
  color: #3b352f;
  font-size: 16px;
}

.legal ul {
  padding-left: 24px;
}

.legal hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 16px;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 56px);
}

footer a {
  text-decoration: none;
}

@media (max-width: 980px) {
  .showcase,
  .story-band,
  .memory-wall,
  .download-cta {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    min-height: 540px;
  }

  .phone-front {
    right: 12%;
  }

  .phone-back {
    left: 12%;
  }

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

  .download-cta {
    align-items: flex-start;
  }
}

@media (max-width: 740px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(15, 15, 14, 0.88) 0%, rgba(15, 15, 14, 0.7) 58%, rgba(15, 15, 14, 0.38) 100%),
      url("/assets/family-tablet-storytime.png") center / cover no-repeat;
    min-height: 76vh;
  }

  .intro-strip {
    grid-template-columns: 1fr 1fr;
  }

  .intro-strip span {
    min-height: 70px;
  }

  .phone-stage {
    min-height: 460px;
  }

  .phone {
    width: min(220px, 58vw);
  }

  .phone-front {
    right: 0;
  }

  .phone-back {
    left: 0;
  }

  .button {
    width: 100%;
  }

  .download-cta .app-icon {
    height: 112px;
    width: 112px;
  }
}

/* Rivian-inspired landing flow */
.topbar {
  background: rgba(15, 15, 14, 0.72);
  border-bottom: 1px solid rgba(247, 241, 231, 0.14);
  color: var(--ivory);
  left: 0;
  position: fixed;
  right: 0;
}

.brand span,
nav a {
  color: rgba(255, 250, 241, 0.9);
}

nav a:hover {
  color: var(--gold-bright);
}

.hero {
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(15, 15, 14, 0.18) 0%, rgba(15, 15, 14, 0.36) 46%, rgba(15, 15, 14, 0.88) 100%),
    url("/assets/family-tablet-storytime.png") center / cover no-repeat;
  border-bottom: 0;
  min-height: 92vh;
  padding: 138px 7vw 78px;
  position: relative;
}

.hero-copy {
  color: var(--paper);
  max-width: 820px;
}

.eyebrow {
  letter-spacing: 0;
}

h1 {
  font-size: 8rem;
  letter-spacing: 0;
}

h2 {
  font-size: 4rem;
  letter-spacing: 0;
}

h3 {
  font-size: 1.55rem;
}

.hero-lede {
  color: rgba(255, 250, 241, 0.92);
  font-size: 1.72rem;
  max-width: 730px;
}

.hero-note {
  color: rgba(255, 250, 241, 0.72);
  font-size: 0.96rem;
}

.scroll-cue {
  bottom: 24px;
  color: rgba(255, 250, 241, 0.8);
  font-size: 0.88rem;
  font-weight: 900;
  position: absolute;
  right: 7vw;
  text-decoration: none;
}

.button {
  border-radius: 8px;
}

.button.primary {
  background: var(--gold);
  border-color: var(--gold-bright);
  color: #15100a;
}

.button.secondary {
  background: rgba(255, 250, 241, 0.12);
  border-color: rgba(255, 250, 241, 0.32);
  color: var(--paper);
}

.narrow .button.secondary,
.mission-close .button.secondary {
  background: rgba(15, 15, 14, 0.06);
  border-color: rgba(15, 15, 14, 0.14);
  color: var(--ink);
}

.signal-strip {
  background: var(--soft-black);
  color: var(--ivory);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signal-strip span {
  align-items: center;
  border-right: 1px solid var(--line-dark);
  color: rgba(247, 241, 231, 0.88);
  display: flex;
  font-size: 0.96rem;
  font-weight: 900;
  justify-content: center;
  min-height: 84px;
  padding: 18px;
  text-align: center;
}

.pathways,
.app-flow,
.detail-band,
.steps,
.mission-close {
  padding: 96px 7vw;
}

.pathways {
  background: var(--paper);
}

.section-heading.align-left {
  margin: 0 0 48px;
  max-width: 920px;
  text-align: left;
}

.section-heading.align-left p {
  margin-left: 0;
  margin-right: 0;
}

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

.pathway {
  background: #fbf3e4;
  border: 1px solid rgba(21, 20, 18, 0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  overflow: hidden;
  padding: 24px;
}

.pathway.dark {
  background: var(--soft-black);
  color: var(--ivory);
}

.pathway.blue {
  background: #0f2638;
  color: var(--ivory);
}

.pathway img {
  align-self: center;
  border-radius: 50%;
  display: block;
  height: 210px;
  margin: 0 auto 28px;
  object-fit: cover;
  width: 210px;
}

.pathway span,
.detail-grid span {
  color: var(--gold-deep);
  display: block;
  font-size: 0.82rem;
  font-weight: 950;
  margin-bottom: 12px;
}

.pathway.dark span,
.pathway.blue span,
.pathway.dark h3,
.pathway.blue h3,
.pathway.dark p,
.pathway.blue p {
  color: var(--ivory);
}

.pathway h3 {
  color: var(--ink);
  margin-bottom: 12px;
}

.pathway p {
  font-size: 1rem;
  margin-bottom: 0;
}

.app-flow {
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(200, 155, 60, 0.16), transparent 34rem),
    var(--soft-black);
  color: var(--ivory);
  display: grid;
  gap: 58px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  overflow: hidden;
}

.app-flow h2,
.app-flow p {
  color: var(--ivory);
}

.app-flow p:not(.eyebrow) {
  color: rgba(247, 241, 231, 0.76);
}

.mini-specs {
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 32px;
}

.mini-specs span {
  border-bottom: 1px solid var(--line-dark);
  color: rgba(247, 241, 231, 0.84);
  font-weight: 900;
  padding: 18px 0;
}

.screen-duo {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  justify-items: center;
}

.screen-duo .phone {
  background: #111;
  border: 8px solid #111;
  border-radius: 34px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  position: relative;
  width: min(280px, 100%);
}

.screen-duo .phone.lifted {
  transform: translateY(-34px);
}

.immersive-panel {
  align-items: flex-end;
  background-position: center;
  background-size: cover;
  color: var(--ivory);
  display: flex;
  min-height: 86vh;
  padding: 112px 7vw 84px;
}

.storyteller-panel {
  background-image:
    linear-gradient(90deg, rgba(15, 15, 14, 0.88) 0%, rgba(15, 15, 14, 0.58) 44%, rgba(15, 15, 14, 0.08) 100%),
    url("/assets/storyteller-phone-kitchen.png");
}

.family-panel {
  background-image:
    linear-gradient(180deg, rgba(15, 15, 14, 0.18) 0%, rgba(15, 15, 14, 0.78) 100%),
    url("/assets/family-tablet-storytime.png");
}

.panel-copy {
  max-width: 680px;
}

.panel-copy.wide {
  max-width: 900px;
}

.panel-copy h2,
.panel-copy p:not(.eyebrow) {
  color: var(--ivory);
}

.panel-copy p:not(.eyebrow) {
  color: rgba(247, 241, 231, 0.8);
  font-size: 1.2rem;
}

.detail-band {
  background: var(--ivory);
}

.detail-copy {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  margin-bottom: 44px;
}

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

.detail-grid article {
  border-top: 1px solid var(--line);
  min-height: 280px;
  padding-top: 24px;
}

.detail-grid p {
  font-size: 1rem;
}

.steps {
  background: #efe4d1;
}

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

.timeline article {
  background: rgba(255, 250, 241, 0.72);
  border-left: 1px solid rgba(21, 20, 18, 0.12);
  min-height: 270px;
  padding: 30px;
}

.timeline article:first-child {
  border-left: 0;
}

.mission-close {
  align-items: center;
  background: var(--paper);
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
  min-height: 68vh;
  text-align: left;
}

.mission-close .watermark {
  display: block;
  max-width: 320px;
  opacity: 0.9;
  width: 100%;
}

.mission-close h2 {
  color: var(--ink);
}

.mission-close .actions {
  margin-top: 28px;
}

.center-actions {
  justify-content: flex-start;
}

.narrow,
.legal {
  padding-top: 130px;
}

@media (max-width: 1120px) {
  h1 {
    font-size: 6rem;
  }

  h2 {
    font-size: 3.2rem;
  }

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

  .app-flow,
  .detail-copy,
  .mission-close {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: 96px;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(15, 15, 14, 0.26) 0%, rgba(15, 15, 14, 0.52) 52%, rgba(15, 15, 14, 0.92) 100%),
      url("/assets/family-tablet-storytime.png") center / cover no-repeat;
    min-height: 90vh;
    padding: 154px 22px 64px;
  }

  h1 {
    font-size: 4.35rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .hero-lede {
    font-size: 1.28rem;
  }

  .scroll-cue {
    display: none;
  }

  .signal-strip,
  .mini-specs,
  .pathway-grid,
  .detail-grid,
  .timeline,
  .screen-duo {
    grid-template-columns: 1fr;
  }

  .signal-strip span {
    min-height: 62px;
  }

  .pathways,
  .app-flow,
  .detail-band,
  .steps,
  .mission-close {
    padding: 66px 22px;
  }

  .pathway {
    min-height: auto;
  }

  .pathway img {
    height: 180px;
    width: 180px;
  }

  .screen-duo .phone {
    width: min(290px, 88vw);
  }

  .screen-duo .phone.lifted {
    transform: none;
  }

  .immersive-panel {
    min-height: 78vh;
    padding: 88px 22px 58px;
  }

  .storyteller-panel {
    background-image:
      linear-gradient(180deg, rgba(15, 15, 14, 0.28) 0%, rgba(15, 15, 14, 0.9) 100%),
      url("/assets/storyteller-phone-kitchen.png");
  }

  .mission-close .watermark {
    max-width: 220px;
  }

  .button {
    width: 100%;
  }
}

.hero-copy,
.section-heading,
.panel-copy,
.detail-copy,
.mission-close > div,
.flow-copy {
  min-width: 0;
}

.actions {
  max-width: 100%;
  width: 100%;
}

@media (max-width: 820px) {
  h1 {
    font-size: 3.85rem;
  }

  .hero-copy {
    width: 100%;
  }

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