:root {
  --night-950: #050819;
  --night-900: #080d2b;
  --night-850: #0d143b;
  --night-800: #141b4d;
  --ink: #11162f;
  --ink-soft: #555d78;
  --paper: #f7f8ff;
  --paper-blue: #eef1ff;
  --white: #ffffff;
  --line: #dfe3f2;
  --line-dark: rgba(255, 255, 255, 0.13);
  --cyan: #4ed9ff;
  --cyan-deep: #109ed3;
  --blue: #5797ff;
  --violet: #756cff;
  --violet-deep: #5145e7;
  --yellow: #ffd868;
  --coral: #ff8c93;
  --success: #2fc69d;
  --shadow-sm: 0 14px 34px rgba(20, 28, 75, 0.09);
  --shadow-card: 0 16px 42px rgba(20, 28, 75, 0.09), 0 4px 14px rgba(20, 28, 75, 0.04);
  --shadow-card-hover: 0 24px 58px rgba(20, 28, 75, 0.14), 0 6px 18px rgba(20, 28, 75, 0.05);
  --shadow-md: 0 24px 70px rgba(8, 13, 43, 0.18);
  --shadow-lg: 0 38px 100px rgba(0, 4, 31, 0.42);
  --radius-sm: 18px;
  --radius-md: 30px;
  --radius-lg: 44px;
  --display-tracking: -0.015em;
  --display-leading: 1.1;
  --shell: 1200px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito Sans", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

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

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

.section {
  padding-block: clamp(78px, 9vw, 132px);
}

.section-dark {
  position: relative;
  isolation: isolate;
  color: var(--white);
  background: var(--night-900);
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--night-900);
  background: var(--white);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--white);
  background: rgba(8, 13, 43, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

.header-inner {
  width: min(calc(100% - 48px), var(--shell));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(66, 75, 255, 0.24);
}

.brand-lockup-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  line-height: 1;
}

.brand-name {
  line-height: 0.95;
}

.brand-product {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.52em;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 26px rgba(0, 4, 31, 0.22);
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] > span:nth-of-type(2) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] > span:nth-of-type(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.app-store-badge-link {
  width: max-content;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
}

.app-store-badge {
  display: block;
  width: auto;
  max-width: none;
  height: 48px;
}

.app-store-badge-link--compact .app-store-badge {
  height: 40px;
}

.app-store-badge-link--compact {
  padding: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
}

.text-link-light {
  color: rgba(255, 255, 255, 0.82);
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--violet-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--cyan);
}

.hero {
  min-height: 790px;
  padding-block: clamp(72px, 8vw, 118px) clamp(98px, 10vw, 144px);
  background:
    radial-gradient(circle at 72% 18%, rgba(82, 100, 255, 0.22), transparent 31%),
    radial-gradient(circle at 7% 88%, rgba(33, 175, 255, 0.12), transparent 31%),
    linear-gradient(145deg, #060919 0%, #0b1236 54%, #070b28 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: center;
}

.hero-copy {
  padding-block: 28px;
}

.hero h1 {
  max-width: 11.5ch;
  margin-bottom: 26px;
  color: var(--white);
  font-size: clamp(3.4rem, 6.1vw, 5.85rem);
  font-weight: 900;
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
}

.hero h1 span {
  display: inline;
  color: transparent;
  background: linear-gradient(92deg, var(--cyan) 6%, #7cb6ff 45%, #9887ff 94%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lede {
  max-width: 57ch;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.hero-trust {
  margin: 29px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 610px;
}

.hero-shot {
  position: absolute;
  z-index: 3;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 38px 52px rgba(0, 4, 31, 0.42));
}

.hero-shot-front {
  width: min(49%, 315px);
  left: 12%;
  top: 1%;
  transform: rotate(-4.5deg);
}

.hero-shot-back {
  width: min(62.5%, 402px);
  right: -1%;
  top: 11%;
  transform: rotate(6deg);
  filter: saturate(0.92) brightness(0.84) drop-shadow(0 38px 52px rgba(0, 4, 31, 0.42));
}

.orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(83, 216, 255, 0.17);
  border-radius: 50%;
}

.orbit-one {
  inset: 2% -4% 4% 2%;
  transform: rotate(18deg);
}

.orbit-two {
  inset: 14% 3% 18% 10%;
  border-color: rgba(117, 108, 255, 0.24);
  transform: rotate(-14deg);
}

.aurora {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(90px);
  pointer-events: none;
}

.aurora-one {
  top: -180px;
  right: 4%;
  background: var(--violet);
}

.aurora-two {
  bottom: -220px;
  left: 2%;
  background: var(--cyan-deep);
}

.star-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image:
    radial-gradient(circle at 7% 18%, white 0 1px, transparent 1.6px),
    radial-gradient(circle at 18% 71%, var(--cyan) 0 1px, transparent 1.6px),
    radial-gradient(circle at 36% 10%, white 0 1px, transparent 1.6px),
    radial-gradient(circle at 49% 54%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 73% 28%, var(--cyan) 0 1px, transparent 1.6px),
    radial-gradient(circle at 91% 67%, white 0 1px, transparent 1.6px);
}

.proof-strip {
  color: var(--white);
  background: #111843;
}

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

.proof-grid > div {
  min-height: 102px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 12px 30px rgba(0, 4, 31, 0.12);
}

.proof-grid strong {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 1.02rem;
}

.proof-grid span {
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.85rem;
  line-height: 1.45;
}

.problem-section {
  background: var(--paper);
}

.section-heading {
  margin-bottom: clamp(40px, 6vw, 70px);
}

.section-heading h2,
.feature-sticky h2,
.faq-intro h2,
.final-cta h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4.2vw, 4.15rem);
  font-weight: 900;
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
}

.section-heading-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.64fr);
  gap: clamp(42px, 8vw, 104px);
  align-items: end;
}

.section-heading-split > p,
.section-heading-centered > p,
.feature-sticky > p:not(.eyebrow):not(.microcopy),
.faq-intro > p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.72;
}

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

.question-card {
  min-height: 290px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.question-card > span {
  margin-bottom: auto;
  color: var(--violet-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.question-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.15;
}

.question-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.question-card-accent {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 13, 43, 0.96) 0%, rgba(8, 13, 43, 0.75) 56%, rgba(8, 13, 43, 0.25) 100%),
    url("/assets/figma/parent-baby-hero.jpg") 68% center / cover no-repeat;
}

.question-card-accent > span {
  color: var(--cyan);
}

.question-card-accent p {
  color: rgba(255, 255, 255, 0.72);
}

.features-section {
  background: var(--white);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: start;
}

.feature-sticky {
  position: sticky;
  top: 120px;
}

.feature-sticky h2 {
  margin-bottom: 22px;
}

.feature-sticky .app-store-badge-link {
  margin-top: 30px;
}

.microcopy {
  max-width: 49ch;
  margin: 17px 0 0;
  color: #747b93;
  font-size: 0.78rem;
  line-height: 1.55;
}

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

.bento-card {
  min-height: 250px;
  padding: 30px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.bento-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  line-height: 1.2;
}

.bento-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.bento-wide {
  min-height: 210px;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.bento-wide h3 {
  margin-top: 0;
}

.bento-copy-only {
  grid-template-columns: 1fr;
}

.bento-purple {
  color: var(--white);
  background:
    radial-gradient(circle at 87% 12%, rgba(78, 217, 255, 0.28), transparent 27%),
    linear-gradient(145deg, #343199, #5950e3);
}

.bento-purple p {
  color: rgba(255, 255, 255, 0.74);
}

.feature-preview {
  width: 126px;
  max-height: 188px;
  justify-self: center;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(10, 14, 52, 0.18));
}

.screenshot-section {
  padding-block: clamp(82px, 9vw, 126px);
  background:
    radial-gradient(circle at 15% 14%, rgba(83, 91, 235, 0.22), transparent 25%),
    linear-gradient(160deg, #070a20, #0d143b 60%, #070a20);
}

.screenshot-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.screenshot-heading h2 {
  max-width: 15ch;
}

.rail-controls {
  display: flex;
  gap: 10px;
}

.rail-button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 4, 31, 0.2);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.rail-button:hover,
.rail-button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.screenshot-rail {
  width: 100%;
  padding: 5px max(24px, calc((100vw - var(--shell)) / 2)) 24px;
  display: grid;
  grid-auto-columns: minmax(270px, 332px);
  grid-auto-flow: column;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}

.screenshot-card {
  margin: 0;
  scroll-snap-align: start;
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 642 / 1389;
  object-fit: cover;
  border: 0;
  border-radius: 30px;
  background: linear-gradient(145deg, #1a225c, #0a0f31);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.screenshot-card figcaption {
  margin-top: 18px;
  padding-inline: 4px;
}

.screenshot-card strong,
.screenshot-card span {
  display: block;
}

.screenshot-card strong {
  margin-bottom: 4px;
  font-size: 1.03rem;
}

.screenshot-card span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.87rem;
  line-height: 1.5;
}

.how-section {
  background: var(--paper);
}

.section-heading-centered {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.section-heading-centered > p:not(.eyebrow) {
  max-width: 62ch;
  margin: 22px auto 0;
}

.steps-list {
  margin: 0 0 54px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
}

.step-card {
  padding: 30px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.step-number {
  width: 44px;
  height: 44px;
  margin-bottom: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--violet-deep);
  font-weight: 900;
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.step-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.how-callout {
  min-height: 520px;
  padding: clamp(38px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  gap: 48px;
  align-items: center;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 75% 22%, rgba(78, 217, 255, 0.2), transparent 30%),
    linear-gradient(145deg, var(--night-900), #252465);
  overflow: hidden;
}

.how-callout h3 {
  max-width: 13ch;
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
}

.how-callout p:not(.eyebrow) {
  max-width: 50ch;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.04rem;
}

.how-callout > img {
  width: min(100%, 360px);
  max-height: none;
  justify-self: center;
  object-fit: contain;
  filter: drop-shadow(0 32px 46px rgba(0, 4, 31, 0.4));
  transform: rotate(2deg);
}

.guides-section {
  background: var(--white);
}

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

.guide-card {
  min-height: 280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.guide-card:hover,
.guide-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.guide-card-featured {
  min-height: 340px;
  grid-column: span 2;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 9, 31, 0.98) 0%, rgba(7, 11, 38, 0.86) 46%, rgba(7, 11, 38, 0.2) 100%),
    url("/assets/generated/sleep-rhythm-guide.avif") 67% center / cover no-repeat;
}

.guide-kicker {
  width: max-content;
  padding: 7px 12px;
  margin-bottom: 26px;
  border-radius: 999px;
  color: var(--violet-deep);
  background: rgba(81, 69, 231, 0.09);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-card-featured .guide-kicker {
  color: var(--cyan);
  background: rgba(7, 11, 38, 0.55);
}

.guide-card h3 {
  margin-bottom: 11px;
  font-size: 1.38rem;
  line-height: 1.2;
}

.guide-card p {
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

.guide-card-featured p {
  max-width: 52%;
  color: rgba(255, 255, 255, 0.72);
}

.card-link {
  margin-top: auto;
  color: var(--violet-deep);
  font-weight: 850;
}

.guide-card-featured .card-link {
  color: var(--white);
}

.faq-section {
  background: var(--paper-blue);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(48px, 9vw, 116px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 120px;
}

.faq-intro h2 {
  margin-bottom: 22px;
}

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

.faq-item {
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  padding: 24px 72px 24px 26px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 22px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--violet-deep);
  background: rgba(81, 69, 231, 0.1);
  font-size: 1.35rem;
  transition: transform 180ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item > div {
  padding: 0 72px 26px 26px;
}

.faq-item p {
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.faq-item a:not(.app-store-badge-link) {
  width: max-content;
  padding: 7px 12px;
  display: inline-flex;
  border-radius: 999px;
  color: var(--violet-deep);
  background: rgba(81, 69, 231, 0.09);
  font-weight: 850;
  text-decoration: none;
}

.final-cta {
  padding-block: clamp(72px, 9vw, 112px) 36px;
  background:
    radial-gradient(circle at 84% 20%, rgba(92, 99, 255, 0.23), transparent 30%),
    linear-gradient(145deg, #070a20, #111946);
}

.final-cta-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
}

.final-cta-inner > img {
  border-radius: 28px;
  box-shadow: 0 24px 52px rgba(82, 70, 241, 0.32);
}

.final-cta h2 {
  max-width: 17ch;
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.5vw, 3.35rem);
}

.final-cta-inner p:not(.eyebrow) {
  max-width: 58ch;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.67);
}

.aurora-cta {
  top: -180px;
  right: 10%;
  background: var(--violet);
}

.site-footer {
  padding-block: 66px 28px;
  color: rgba(255, 255, 255, 0.7);
  background: var(--night-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(140px, 0.55fr));
  gap: 46px;
}

.footer-brand .brand {
  color: var(--white);
}

.footer-brand p {
  max-width: 31ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer nav strong {
  margin-bottom: 5px;
  color: var(--white);
  font-size: 0.88rem;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.87rem;
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--cyan);
}

.footer-bottom {
  margin-top: 54px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
}

.cookie-banner {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 18px;
  width: min(calc(100% - 28px), 980px);
  padding: 14px;
  transform: translateX(-50%);
  border-radius: 30px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 64px rgba(5, 8, 25, 0.24), 0 6px 18px rgba(5, 8, 25, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner-copy {
  min-width: 0;
  padding-left: 8px;
  display: grid;
  gap: 2px;
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.45;
}

.cookie-banner-copy strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
}

.cookie-banner-copy a {
  margin-left: 0.18em;
  color: var(--violet-deep);
  font-weight: 850;
  text-underline-offset: 0.16em;
}

.cookie-banner-dismiss {
  min-width: 94px;
  min-height: 46px;
  padding: 0 22px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  box-shadow: 0 12px 28px rgba(81, 69, 231, 0.25);
  font-weight: 900;
  cursor: pointer;
}

.cookie-banner-dismiss:hover {
  filter: brightness(1.06);
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 16px;
    border-radius: 26px;
  }

  .cookie-banner-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .cookie-banner-copy {
    padding-left: 0;
  }

  .cookie-banner-dismiss {
    width: 100%;
  }
}

/* Guide pages */
.guide-page {
  background: var(--white);
}

.guide-page .site-header {
  min-height: 78px;
  padding-inline: max(24px, calc((100vw - var(--shell)) / 2));
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(8, 13, 43, 0.96);
}

.guide-page .site-header > nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.guide-page .site-header > nav > a:not(.app-store-badge-link) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.guide-page .site-header > nav > a:not(.app-store-badge-link):hover,
.guide-page .site-header > nav > a:not(.app-store-badge-link):focus-visible {
  color: var(--white);
}

.guide-main {
  background: var(--white);
}

.breadcrumbs {
  width: min(calc(100% - 48px), 980px);
  margin: 0 auto;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.guide-main > .breadcrumbs {
  padding-block: 22px;
}

.breadcrumbs ol {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #9ca3b9;
}

.breadcrumbs a {
  color: #454d6a;
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--cyan);
}

.guide-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(68px, 8vw, 112px) max(24px, calc((100vw - 980px) / 2));
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(86, 98, 255, 0.24), transparent 31%),
    linear-gradient(145deg, #070a20, #121a4b);
  overflow: hidden;
}

.guide-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 440px;
  height: 440px;
  right: -130px;
  bottom: -280px;
  border: 1px solid rgba(78, 217, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(117, 108, 255, 0.06), 0 0 0 130px rgba(78, 217, 255, 0.03);
}

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

.guide-hero > .eyebrow,
.guide-hero > h1,
.guide-hero > .lede,
.guide-hero > .guide-meta {
  max-width: 980px;
}

.guide-hero > h1 {
  max-width: 16ch;
}

.guide-hero > .lede {
  max-width: 68ch;
}

.guide-hero .eyebrow,
.guide-hero-kicker {
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-hero h1 {
  max-width: 16ch;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 6vw, 5.25rem);
  font-weight: 900;
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
}

.guide-hero > .shell > p:not(.eyebrow),
.guide-hero-inner > p:not(.eyebrow):not(.guide-hero-kicker),
.guide-deck {
  max-width: 68ch;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.72;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: rgba(255, 255, 255, 0.49);
  font-size: 0.79rem;
}

.guide-layout {
  width: min(calc(100% - 48px), 1080px);
  margin-inline: auto;
  padding-block: clamp(60px, 8vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(48px, 8vw, 88px);
  align-items: start;
}

.guide-article {
  min-width: 0;
  color: #20263e;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.03rem;
  line-height: 1.82;
}

.guide-article > :first-child {
  margin-top: 0;
}

.guide-article h2,
.guide-article h3,
.guide-article h4 {
  color: var(--ink);
  font-family: var(--font);
}

.guide-article h2 {
  margin: 58px 0 18px;
  padding-top: 3px;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  letter-spacing: -0.012em;
  line-height: 1.18;
}

.guide-article h3 {
  margin: 36px 0 12px;
  font-size: 1.38rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.guide-article p,
.guide-article ul,
.guide-article ol {
  margin-bottom: 21px;
}

.guide-article li + li {
  margin-top: 8px;
}

.guide-article a {
  color: #4237ce;
  font-weight: 650;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.quick-answer,
.note,
.safe-sleep,
.medical-note {
  margin: 0 0 34px;
  padding: 24px 26px;
  border: 0;
  border-radius: 28px;
  background: #f2f5ff;
  box-shadow: var(--shadow-card);
}

.quick-answer strong:first-child,
.quick-answer h2:first-child,
.note strong:first-child,
.safe-sleep strong:first-child,
.medical-note strong:first-child {
  display: block;
  margin: 0 0 8px;
  color: var(--violet-deep);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.quick-answer h2:first-child {
  padding: 0;
}

.quick-answer p:last-child,
.note p:last-child,
.safe-sleep p:last-child,
.medical-note p:last-child {
  margin-bottom: 0;
}

.safe-sleep {
  background: #fff9e8;
}

.safe-sleep-note {
  background: #fff9e8;
}

.safe-sleep-note h2:first-child,
.safe-sleep-note strong:first-child {
  color: #8a6510;
}

.safe-sleep strong:first-child {
  color: #8a6510;
}

.medical-note {
  background: #fff4f6;
}

.data-table {
  width: 100%;
  margin: 28px 0 38px;
  border-collapse: separate;
  border-spacing: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-size: 0.92rem;
  line-height: 1.5;
}

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

.data-table th {
  color: var(--ink);
  background: var(--paper-blue);
  font-family: var(--font);
  font-weight: 850;
}

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

.source-list {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.source-list h2,
.source-list h3 {
  margin-top: 0;
  font-size: 1.16rem;
}

.source-list li + li {
  margin-top: 10px;
}

.guide-aside {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.guide-aside > img {
  width: min(100%, 330px);
  max-height: none;
  padding: 14px;
  justify-self: center;
  object-fit: contain;
  border: 0;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 22%, #f1f3ff, #ffffff 72%);
  box-shadow: var(--shadow-card);
}

.guide-aside > h2 {
  margin: 3px 0 0;
  font-size: 1.25rem;
  line-height: 1.25;
}

.guide-aside > p {
  margin: -8px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.58;
}

.guide-aside nav,
.guide-aside > div,
.guide-aside-card,
.on-this-page {
  padding: 22px;
  border: 0;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.guide-aside strong,
.guide-aside h2,
.guide-aside h3 {
  display: block;
  margin: 0 0 13px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 900;
}

.guide-aside nav a,
.guide-aside-card a,
.on-this-page a {
  display: block;
  padding-block: 5px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
  text-decoration: none;
}

.guide-aside nav a:hover,
.guide-aside nav a:focus-visible,
.guide-aside-card a:hover,
.guide-aside-card a:focus-visible,
.on-this-page a:hover,
.on-this-page a:focus-visible {
  color: var(--violet-deep);
}

.guide-cta {
  width: min(calc(100% - 48px), 1080px);
  margin: 58px 0 0;
  padding: 34px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border-radius: 36px;
  color: var(--white);
  background:
    radial-gradient(circle at 84% 10%, rgba(78, 217, 255, 0.23), transparent 28%),
    linear-gradient(145deg, var(--night-800), var(--violet-deep));
  box-shadow: var(--shadow-md);
}

.guide-main > .guide-cta {
  margin: 0 auto clamp(70px, 8vw, 110px);
  grid-template-columns: minmax(0, 1fr) auto;
}

.guide-main > .guide-cta > .app-store-badge-link {
  align-self: center;
}

.guide-cta .app-store-badge {
  width: auto;
  height: 48px;
}

.guide-cta h2,
.guide-cta h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 1.55rem;
}

.guide-cta p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.guide-cta a {
  color: var(--white);
}

.related-guides {
  width: min(calc(100% - 48px), 1080px);
  margin: 0 auto clamp(70px, 8vw, 110px);
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.related-guides h2 {
  margin-bottom: 24px;
  font-size: 1.8rem;
}

.related-guides-grid,
.related-guides ul,
.related-grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.related-grid a {
  min-height: 140px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 0;
  border-radius: 26px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.related-grid a strong,
.related-grid a span {
  display: block;
}

.related-grid a span {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
}

.related-grid a:hover,
.related-grid a:focus-visible {
  color: var(--violet-deep);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.guide-page .site-footer {
  padding-inline: max(24px, calc((100vw - var(--shell)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.guide-page .site-footer > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.guide-page .site-footer > nav {
  flex-direction: row;
}

.related-guides a {
  min-height: 120px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  border: 0;
  border-radius: 26px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  font-weight: 850;
  line-height: 1.35;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.related-guides a:hover,
.related-guides a:focus-visible {
  color: var(--violet-deep);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal[data-delay="1"] {
  transition-delay: 90ms;
}

.js .reveal[data-delay="2"] {
  transition-delay: 180ms;
}

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

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .header-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
    gap: 36px;
  }

  .hero-visual {
    min-height: 560px;
  }

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

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

  .feature-sticky,
  .faq-intro {
    position: static;
    max-width: 700px;
  }

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

  .final-cta-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .final-cta-inner > .app-store-badge-link {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
  .shell,
  .header-inner,
  .guide-hero .shell,
  .guide-hero-inner,
  .guide-layout,
  .related-guides {
    width: min(calc(100% - 36px), var(--shell));
  }

  .header-inner {
    min-height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 18px;
    right: 18px;
    margin: 0;
    padding: 13px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border: 0;
    border-radius: 28px;
    background: rgba(8, 13, 43, 0.98);
    box-shadow: var(--shadow-md);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 12px 13px;
    border-radius: 999px;
  }

  .primary-nav a:hover,
  .primary-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
  }

  .hero {
    padding-top: 64px;
  }

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

  .hero-copy {
    text-align: center;
  }

  .hero h1,
  .hero-lede {
    margin-inline: auto;
  }

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

  .hero-visual {
    width: min(100%, 620px);
    min-height: 590px;
    margin-inline: auto;
  }

  .hero-shot-front {
    width: min(47%, 295px);
  }

  .hero-shot-back {
    width: min(60%, 376px);
  }

  .section-heading-split {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
  }

  .question-grid,
  .steps-list {
    grid-template-columns: 1fr;
  }

  .question-card {
    min-height: 240px;
  }

  .screenshot-heading {
    align-items: start;
  }

  .how-callout {
    grid-template-columns: 1fr;
  }

  .how-callout > img {
    width: min(100%, 330px);
    max-height: none;
    transform: rotate(2deg);
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-aside {
    position: static;
    grid-row: 1;
  }

  .related-guides-grid,
  .related-guides ul,
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section {
    padding-block: 76px;
  }

  .brand {
    font-size: 1.18rem;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .guide-page .site-header {
    min-height: 68px;
    padding-inline: 16px;
    gap: 12px;
  }

  .guide-page .site-header > nav {
    margin-left: auto;
    gap: 0;
  }

  .guide-page .site-header > nav > a:not(.app-store-badge-link) {
    display: none;
  }

  .guide-page .site-header .app-store-badge-link {
    padding: 4px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4rem);
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-shot-front {
    width: min(55%, 245px);
  }

  .hero-shot-back {
    width: min(70%, 312px);
  }

  .hero-shot-front {
    left: 3%;
  }

  .hero-shot-back {
    right: 2%;
  }

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

  .proof-grid > div,
  .proof-grid > div:nth-child(2) {
    min-height: 100px;
  }

  .section-heading h2,
  .feature-sticky h2,
  .faq-intro h2 {
    font-size: 2.35rem;
  }

  .question-card,
  .bento-card,
  .step-card,
  .guide-card {
    padding: 24px;
  }

  .bento-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-card-featured {
    grid-column: auto;
    background-position: 64% center;
  }

  .guide-card-featured p {
    max-width: 72%;
  }

  .bento-wide {
    grid-template-columns: 1fr;
  }

  .screenshot-heading {
    flex-direction: column;
  }

  .screenshot-rail {
    grid-auto-columns: minmax(255px, 82vw);
    padding-inline: 18px;
  }

  .how-callout {
    padding: 34px 27px;
    border-radius: 34px;
  }

  .how-callout h3 {
    font-size: 2.2rem;
  }

  .faq-item summary {
    padding: 22px 66px 22px 22px;
  }

  .faq-item summary::after {
    right: 18px;
  }

  .faq-item > div {
    padding: 0 22px 24px;
  }

  .final-cta-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .final-cta-inner > .app-store-badge-link {
    grid-column: 1;
  }

  .final-cta h2,
  .final-cta-inner p {
    margin-inline: auto;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .guide-page .site-footer {
    padding-inline: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .guide-hero h1 {
    font-size: 2.75rem;
  }

  .guide-article {
    font-size: 1rem;
  }

  .data-table {
    display: block;
    overflow: visible;
    white-space: normal;
    background: transparent;
    box-shadow: none;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .data-table tbody {
    display: grid;
    gap: 14px;
  }

  .data-table tr {
    padding: 17px 19px;
    display: block;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-card);
  }

  .data-table tbody th {
    width: max-content;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 9px 14px;
    display: block;
    border: 0;
    border-radius: 999px;
    background: var(--paper-blue);
  }

  .data-table td {
    padding: 8px 0;
    display: grid;
    grid-template-columns: minmax(96px, 0.72fr) minmax(0, 1.28fr);
    gap: 12px;
    border: 0;
    white-space: normal;
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--violet-deep);
    font-family: var(--font);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.45;
    text-transform: uppercase;
  }

  .guide-cta {
    grid-template-columns: 1fr;
  }

  .guide-main > .guide-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .brand {
    gap: 10px;
    font-size: 1.12rem;
  }

  .guide-page .site-header {
    gap: 8px;
  }

  .guide-page .site-header .app-store-badge-link {
    padding: 2px;
  }

  .guide-page .site-header .app-store-badge {
    height: 34px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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