/* Infant+ marketing site
   The App Store slides' look: white, black heavy type with the key phrase in the scenes' red, and the
   app's own high-contrast scenes playing in every phone. Titles only. System SF font, no external deps. */

:root {
  color-scheme: light;

  --paper:      #ffffff;          /* the slides' background */
  --paper-2:    #f4f4f5;
  --ink:        #0a0a0a;          /* the scenes' black */
  --ink-dim:    #55565c;
  --ink-dimmer: #8a8b91;
  --line:       rgba(10, 10, 10, 0.09);

  --red:        #f2111a;          /* the slides' key phrase and the icon's swaddle */
  --red-deep:   #c90a12;

  --maxw: 1160px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Helvetica Neue",
          system-ui, "Segoe UI", Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Helvetica Neue",
          system-ui, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 650; font-size: 16px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(10, 10, 10, 0.22); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(10, 10, 10, 0.32); }
.btn-sm { font-size: 14.5px; padding: 9px 18px; }
.btn:focus-visible, .store-badge:focus-visible, .brand:focus-visible, .footer a:focus-visible {
  outline: 2px solid var(--red); outline-offset: 4px;
}

/* Apple's black badge, never recoloured */
.store-badge {
  display: inline-block; line-height: 0; border-radius: 9px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: transform .15s ease, box-shadow .2s ease;
}
.store-badge:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38); }
.store-badge img { height: 54px; width: auto; }
/* On black, a hairline keeps the black badge from melting into the page */
.hero .store-badge { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28); }
.hero .store-badge:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 750; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px var(--line), 0 2px 8px rgba(10, 10, 10, 0.12); }

/* ---------- Type ---------- */
h1, h2 { font-family: var(--display); margin: 0; }
.two-line { font-weight: 850; letter-spacing: -0.035em; line-height: 1.02; }
.two-line span { display: block; }
.hl { color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: #000;
  padding: 88px 0 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
/* Centered in the black that shows: the phone runs 150 px past the band */
.hero-copy { align-self: center; padding-bottom: 150px; }
/* "Calm them in seconds." is about 9.9 em wide: this keeps it on one line beside the phone */
.hero h1 { font-size: clamp(42px, 5.4vw, 70px); margin: 0 0 38px; }
.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

.hero-visual { position: relative; display: flex; justify-content: center; align-self: end; }
.phone.hero-phone { --pw: min(360px, 30vw); margin-bottom: -150px; z-index: 2; }

/* ---------- Phone (drawn around an iPhone 17 Pro screen recording) ----------
   The screen keeps the film's own proportions and the frame goes around it: a metal band (the
   border) and a black bezel (the padding), with corners concentric to the screen's. The Dynamic
   Island sits where iOS draws it on that phone; simulator recordings don't include one. */
.phone {
  --pw: 300px;
  --band: calc(var(--pw) * 0.011);
  --bezel: calc(var(--pw) * 0.034);
  --screen-r: calc(var(--pw) * 0.113);
  position: relative;
  flex: 0 0 auto;
  width: var(--pw);
  padding: var(--bezel);
  border: var(--band) solid transparent;
  border-radius: calc(var(--screen-r) + var(--bezel) + var(--band));
  background:
    linear-gradient(#060608, #060608) padding-box,
    linear-gradient(150deg, #8a8d96 0%, #3a3c43 22%, #5d6068 48%, #2a2c31 72%, #6f727a 100%) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 80px -20px rgba(0, 0, 0, 0.42),
    0 18px 36px -18px rgba(0, 0, 0, 0.32);
}
.phone .screen {
  position: relative; width: 100%;
  aspect-ratio: 720 / 1566;
  border-radius: var(--screen-r);
  overflow: hidden; background: #fff;
  transform: translateZ(0);
}
.phone .screen video, .phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .screen::after {
  content: ""; position: absolute; z-index: 3;
  left: 34.05%; top: 1.48%; width: 31.9%; height: 4.45%;
  border-radius: 999px; background: #000;
}
.dark .phone .screen { background: #000; }

/* A stack of screens that slide, as a swipe would */
.screen.pager .track { position: absolute; inset: 0; display: flex; transition: transform .7s cubic-bezier(.65, 0, .25, 1); }
.screen.pager .track > * { flex: 0 0 100%; display: block; }

/* ---------- Sections ---------- */
.section { padding: 128px 0; position: relative; }
.section.after-hero { padding-top: 200px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature.flip .feature-text { order: 2; }
.feature-text h2 { font-size: clamp(44px, 5.4vw, 76px); }
.feature-visual { display: flex; justify-content: center; }
.hero-grid > *, .feature > * { min-width: 0; }

.section-head { text-align: center; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(44px, 5.6vw, 80px); }

/* Black band: the app's dark theme */
.dark { background: #000; color: #fff; }
.dark .phone { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px rgba(255,255,255,.06), 0 40px 80px -20px rgba(0,0,0,.6); }

/* Two phones, the second set lower */
.pair { display: flex; gap: 28px; align-items: flex-start; }
.pair .phone { --pw: min(280px, 40vw); }
.pair .phone:nth-child(2) { margin-top: 80px; }

/* Three phones in a row, the middle one raised */
.trio { display: flex; justify-content: center; align-items: flex-end; gap: 32px; }
.trio .phone { --pw: min(290px, 28vw); }
.trio .phone:nth-child(2) { --pw: min(320px, 31vw); margin-bottom: 48px; }

/* ---------- Closer ---------- */
.closer {
  color: #fff; text-align: center;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
}
.closer .icon { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 34px; box-shadow: 0 18px 44px rgba(90, 0, 4, .45); }
.closer h2 { font-size: clamp(44px, 5.6vw, 80px); margin: 0 0 40px; }
.closer h2 .dk { color: #000; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 48px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-dim); }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.footer .fcol a { display: block; margin-bottom: 8px; }
.footer .fcol a:hover { color: var(--ink); }
.footer .fcol a.brand { display: flex; margin-bottom: 12px; color: var(--ink); }
.fine-print { font-size: 12.5px; color: var(--ink-dimmer); line-height: 1.6; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .screen.pager .track { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 56px; }
  .hero-grid, .feature { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { padding-bottom: 8px; text-align: center; }
  .hero .cta-row { justify-content: center; }
  .phone.hero-phone { --pw: min(320px, 76vw); margin-bottom: -130px; }
  .section.after-hero { padding-top: 180px; }
  .section { padding: 96px 0; }
  .feature-text { text-align: center; }
  .feature.flip .feature-text { order: 0; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .pair { gap: 14px; }
  .pair .phone { --pw: min(200px, 44vw); }
  .pair .phone:nth-child(2) { margin-top: 44px; }
  .trio { gap: 10px; }
  .trio .phone { --pw: 29vw; }
  .trio .phone:nth-child(2) { --pw: 33vw; margin-bottom: 24px; }
  .footer .cols { grid-template-columns: 1fr; }
}
