@font-face {
  font-display: swap;
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  src: url("/once-upon-today/assets/fonts/cormorant-garamond-400.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  src: url("/once-upon-today/assets/fonts/cormorant-garamond-600.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  src: url("/once-upon-today/assets/fonts/cormorant-garamond-700.ttf") format("truetype");
}

:root {
  --paper: #f8f4ec;
  --paper-warm: #fffaf0;
  --ink: #20242c;
  --story-ink: #123f3f;
  --leaf: #4f8a67;
  --leaf-dark: #24523f;
  --coral: #e87461;
  --honey: #e5b84b;
  --sky: #6aa8c8;
  --mist: #ece7dd;
  --stone: #776f65;
  --line: rgba(91, 70, 45, .16);
  --surface: rgba(255, 252, 245, .78);
  --shadow: 0 18px 42px rgba(57, 41, 25, .12);
  color: var(--ink);
  background: var(--paper);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, .82), transparent 28%),
    radial-gradient(circle at 88% 5%, rgba(223, 238, 207, .48), transparent 31%),
    radial-gradient(circle at 12% 84%, rgba(232, 116, 97, .13), transparent 30%),
    linear-gradient(180deg, #fbf6ea 0%, #fffaf0 52%, #f3eadc 100%);
}

body::before,
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

body::before {
  inset: 0;
  opacity: .26;
  background-image: url("/once-upon-today/assets/backgrounds/storybook-workbench-rocket.png");
  background-position: right -180px top -180px;
  background-repeat: no-repeat;
  background-size: min(880px, 88vw) auto;
}

body::after {
  right: -130px;
  bottom: 5vh;
  width: 420px;
  height: 280px;
  opacity: .42;
  background:
    radial-gradient(circle at 52% 58%, rgba(229, 184, 75, .22), transparent 24%),
    radial-gradient(circle at 74% 40%, rgba(79, 138, 103, .18), transparent 28%);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 244, 236, .9);
  border-bottom: 1px solid rgba(91, 70, 45, .1);
  backdrop-filter: blur(18px);
}

.nav,
.wrap,
.footer-row {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--story-ink);
  font-size: 1.16rem;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--honey);
  box-shadow: 0 7px 16px rgba(57, 41, 25, .13);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  color: #405d57;
  font-weight: 850;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(229, 184, 75, .22);
  color: var(--story-ink);
}

.hero {
  min-height: calc(100vh - 154px);
  padding: 42px 0 12px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, 520px);
  align-items: center;
  gap: clamp(34px, 7vw, 86px);
}

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

h1,
h2 {
  color: var(--story-ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 5.35rem;
  line-height: .88;
}

h2 {
  margin-bottom: 12px;
  font-size: 4.5rem;
  line-height: .92;
}

.hero-copy,
.section-head p,
.closing p,
.legal-lead {
  color: #5f6d66;
  font-size: 1.22rem;
  line-height: 1.52;
}

.hero-copy {
  max-width: 610px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.button {
  min-height: 54px;
  border: 1px solid rgba(36, 82, 63, .12);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: linear-gradient(#ffffff24, #0000 32%), var(--leaf);
  color: #fffdf6;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(47, 83, 51, .24);
}

.button.secondary {
  background: rgba(255, 252, 245, .72);
  box-shadow: none;
  color: var(--story-ink);
}

.button.disabled {
  background: rgba(79, 138, 103, .28);
  box-shadow: none;
  color: rgba(18, 63, 63, .72);
  cursor: default;
}

.phone-stage {
  position: relative;
  min-height: 490px;
  display: grid;
  place-items: center;
}

.phone,
.mini-card,
.feature-phone,
.stack-phone {
  position: relative;
  background: linear-gradient(145deg, #333 0%, #050505 48%, #262626 100%);
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(57, 41, 25, .2);
}

.phone {
  z-index: 1;
  width: min(240px, 64vw);
  aspect-ratio: 553 / 1200;
  padding: 10px;
  border-radius: 54px;
}

.phone img,
.mini-card img,
.feature-phone img,
.stack-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone img {
  border-radius: 43px;
}

.mini-card {
  position: absolute;
  z-index: 0;
  width: min(126px, 29vw);
  aspect-ratio: 553 / 1200;
  padding: 6px;
  border-radius: 34px;
  box-shadow: 0 20px 46px rgba(57, 41, 25, .16);
}

.mini-card.one {
  left: 0;
  bottom: 62px;
  transform: rotate(-4deg);
}

.mini-card.two {
  right: 0;
  top: 68px;
  transform: rotate(3deg);
}

.mini-card img {
  border-radius: 28px;
}

.section {
  padding: 86px 0;
}

.hero + .section {
  padding-top: 46px;
}

.section.alt {
  background: rgba(255, 250, 240, .76);
  border-top: 1px solid rgba(91, 70, 45, .08);
  border-bottom: 1px solid rgba(91, 70, 45, .08);
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

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

.feature {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-image {
  height: 520px;
  padding: 34px 26px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .58), transparent 28%),
    linear-gradient(145deg, #e9f1d7 0%, #fff1d1 54%, #f3d8cd 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.feature-phone {
  width: min(214px, 72%);
  aspect-ratio: 553 / 1200;
  padding: 7px;
  border-radius: 38px;
  box-shadow: 0 18px 38px rgba(57, 41, 25, .2);
}

.feature-phone img {
  border-radius: 31px;
}

.feature-body {
  padding: 22px;
}

.feature h3,
.proof-item h3,
.contact-card h2,
.panel h2 {
  color: var(--story-ink);
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.feature p,
.proof-item p,
.panel p,
.panel li,
.contact-card p {
  margin-bottom: 0;
  color: #647069;
  line-height: 1.52;
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.proof-list {
  display: grid;
  gap: 14px;
}

.proof-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .64);
}

.proof-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--coral);
  color: #fffaf0;
  display: grid;
  place-items: center;
  font-weight: 950;
}

.screen-stack {
  min-height: 560px;
  display: grid;
  place-items: center;
}

.stack-phone {
  width: min(275px, 58vw);
  aspect-ratio: 553 / 1200;
  padding: 8px;
  border-radius: 44px;
  box-shadow: 0 24px 54px rgba(57, 41, 25, .18);
}

.stack-phone img {
  border-radius: 36px;
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  background: var(--story-ink);
  color: #fffaf0;
}

.closing h2 {
  color: #fffaf0;
  margin-bottom: 8px;
}

.closing p {
  margin-bottom: 0;
  color: #e7efe6;
}

.download-note {
  margin-top: 10px;
  color: #f5e9cc;
  font-size: .96rem;
  font-weight: 800;
}

.legal-main {
  padding: 70px 0 84px;
}

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

.document-main {
  max-width: 760px;
}

.document-main h1 {
  font-size: 5.4rem;
}

.updated {
  color: #776f65;
  font-size: .98rem;
  font-weight: 850;
}

.summary,
.panel,
.contact-card,
.faq-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
}

.summary,
.panel {
  margin-top: 18px;
  padding: 24px;
}

.summary h2,
.panel h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.panel h3 {
  margin: 18px 0 7px;
  color: var(--leaf-dark);
  font-size: 1rem;
}

.summary ul,
.panel ul {
  margin: 0;
  padding-left: 20px;
  color: #647069;
  line-height: 1.55;
}

.summary li + li,
.panel li + li {
  margin-top: 8px;
}

.toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 245, .78);
  box-shadow: 0 14px 30px rgba(57, 41, 25, .1);
}

.toc strong {
  color: var(--story-ink);
}

.toc a {
  color: #54635e;
  font-weight: 800;
  text-decoration: none;
}

.support-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 380px);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.contact-card {
  padding: 24px;
}

.email {
  display: block;
  margin: 18px 0;
  padding: 15px 16px;
  border-radius: 8px;
  background: #dfeecf;
  color: var(--leaf-dark);
  font-size: 1.05rem;
  font-weight: 950;
  text-decoration: none;
}

.faq-list {
  margin-top: 44px;
  display: grid;
  gap: 14px;
}

.faq-row {
  padding: 22px;
}

.faq-row h2 {
  margin: 0 0 8px;
  color: var(--story-ink);
  font-size: 1.36rem;
}

footer {
  padding: 34px 0 46px;
  color: #647069;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

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

.footer-row a {
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 880px) {
  .hero,
  .proof,
  .closing,
  .support-hero,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

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

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

  .feature {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  }

  .feature-image {
    height: 100%;
    min-height: 280px;
  }

  .screen-stack {
    min-height: 500px;
    max-width: 430px;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 620px) {
  .nav {
    min-height: 64px;
  }

  .brand {
    font-size: 1.02rem;
  }

  .nav-links a {
    padding: 0 9px;
  }

  .hero {
    min-height: 0;
    padding: 42px 0 46px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: 3.16rem;
    line-height: .9;
  }

  .document-main h1 {
    font-size: 3.15rem;
  }

  .hero-copy,
  .section-head p,
  .closing p,
  .legal-lead {
    font-size: 1.02rem;
    line-height: 1.42;
  }

  .actions {
    margin-top: 22px;
    gap: 6px;
  }

  .button {
    min-height: 48px;
    padding: 0 13px;
  }

  h2 {
    font-size: 2.45rem;
  }

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

  .phone {
    width: 168px;
    padding: 7px;
    border-radius: 40px;
  }

  .phone img {
    border-radius: 33px;
  }

  .mini-card {
    width: 94px;
  }

  .mini-card.one {
    bottom: 32px;
  }

  .mini-card.two {
    top: 42px;
  }

  .feature {
    display: block;
  }

  .feature-image {
    height: 430px;
  }

  .section {
    padding: 62px 0;
  }

  .hero + .section {
    padding-top: 0;
  }

  .legal-main {
    padding: 48px 0 66px;
  }

  .closing,
  .summary,
  .panel,
  .contact-card,
  .faq-row {
    padding: 22px;
  }
}

@media (max-width: 460px) {
  .phone {
    width: 168px;
  }

  .mini-card {
    width: 94px;
  }
}
