:root {
  --glacier: #DDF3F5; --lagoon: #3FB8AF; --tide: #0B3C5D; --ink: #06141F; --coral: #F08A7E;
  --text: #F2FBFC; --sub: rgba(221,243,245,.7); --line: rgba(221,243,245,.14); --card: rgba(221,243,245,.07);
  --light: #EEF9FA; --light-ink: #0B2A3F; --light-sub: #4C6676;
  --serif: "New York", ui-serif, Georgia, serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; font-family: var(--serif); color: var(--text); line-height: 1.6;
  background: linear-gradient(180deg, #14567A 0%, var(--tide) 35%, var(--ink) 100%) fixed;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}
body.home { background: var(--ink); }
a { color: var(--lagoon); }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Nav: a translucent bar on the home page, plain on the documents. */
nav { display: flex; align-items: center; gap: 12px; padding: 20px 0; }
nav .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 1.2rem; font-weight: 600; }
nav .brand img { width: 32px; height: 32px; border-radius: 8px; }
nav .links { margin-left: auto; display: flex; gap: 22px; font-size: .9rem; }
nav .links a { color: var(--sub); text-decoration: none; }
nav .links a:hover { color: var(--text); }
.bar { position: sticky; top: 0; z-index: 10; background: rgba(6,20,31,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.bar nav { padding: 10px 0; }

/* Shared section type */
section { padding: 112px 0; }
.eyebrow { font-size: 1rem; font-weight: 600; color: var(--lagoon); margin: 0 0 10px; }
.headline { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 600; line-height: 1.06; letter-spacing: -.02em; margin: 0; }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--sub); max-width: 36em; margin: 20px auto 0; line-height: 1.45; }
.center { text-align: center; }
.light { background: var(--light); color: var(--light-ink); }
.light .lede, .light p { color: var(--light-sub); }
.light .eyebrow { color: #24857E; }

/* Hero: the day in four screenshots, dawn to night */
.hero { padding: 96px 0 0; overflow: hidden; background: radial-gradient(120% 60% at 50% 0%, #14567A 0%, var(--tide) 40%, var(--ink) 100%); }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 20px 50px -16px rgba(0,0,0,.7); }
.store { display: inline-block; margin-top: 32px; transition: transform .15s; }
.store img { display: block; height: 60px; width: auto; }
.store:hover { transform: translateY(-1px); }
.day { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 80px auto 0; max-width: 1180px; padding: 0 24px 112px; }
.day figure { margin: 0; text-align: center; }
.day figcaption { margin-top: 18px; font-size: .95rem; color: var(--sub); }
.day figcaption b { display: block; color: var(--text); font-size: 1.05rem; font-weight: 600; }
.phone { border-radius: 13.5% / 6.2%; box-shadow: 0 40px 80px -30px rgba(0,0,0,.85), 0 0 0 1px var(--line); }
@media (max-width: 820px) {
  .day { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; padding-bottom: 72px; scrollbar-width: none; }
  .day::-webkit-scrollbar { display: none; }
  .day figure { flex: 0 0 62%; scroll-snap-align: center; }
}

/* Paced to your day + Puff */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 64px; text-align: left; }
.story h3 { font-size: 1.5rem; font-weight: 600; margin: 0 0 10px; letter-spacing: -.01em; }
.story p { margin: 0; font-size: 1.1rem; line-height: 1.6; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 72px; }
.step { background: #fff; border-radius: 24px; padding: 28px; text-align: left; box-shadow: 0 1px 2px rgba(11,42,63,.06), 0 12px 32px -18px rgba(11,42,63,.25); }
.step .n { font-size: 2.6rem; font-weight: 300; color: #24857E; line-height: 1; }
.step h4 { font-size: 1.15rem; margin: 14px 0 6px; font-weight: 600; color: var(--light-ink); }
.step p { margin: 0; font-size: 1rem; }

/* Apple Watch + widget */
.devices { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-top: 64px; }
.tile { background: linear-gradient(180deg, rgba(221,243,245,.09), rgba(221,243,245,.03)); border: 1px solid var(--line); border-radius: 32px; padding: 44px 36px 0; overflow: hidden; display: flex; flex-direction: column; }
.tile h3 { font-size: 1.8rem; font-weight: 600; margin: 0 0 10px; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--sub); font-size: 1.05rem; }
.tile .art { margin-top: auto; padding-top: 40px; display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.watch { width: 44%; max-width: 200px; border-radius: 22%; box-shadow: 0 0 0 6px #1b1f24, 0 0 0 7px #3a4048, 0 30px 60px -20px rgba(0,0,0,.8); margin-bottom: 44px; }
.widget { width: 72%; max-width: 280px; border-radius: 24px; margin-bottom: 44px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }

/* Health + privacy */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; text-align: left; }
.pair .step { padding: 40px; }
.pair .glyph { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; }
.pair h3 { font-size: 1.6rem; margin: 20px 0 8px; font-weight: 600; color: var(--light-ink); }
.pair p { margin: 0; font-size: 1.08rem; }

.cta { padding: 112px 0; }
.cta .icon { width: 80px; height: 80px; border-radius: 18px; margin: 0 auto 24px; }

@media (max-width: 820px) {
  section { padding: 80px 0; }
  .story, .steps, .devices, .pair { grid-template-columns: 1fr; }
  .story { gap: 32px; }
}

/* Sections rise in as they scroll into view, where supported. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes rise { from { opacity: 0; transform: translateY(40px); } }
  }
}

/* Documents (privacy, terms, support) */
.doc { max-width: 720px; padding: 24px 0 64px; }
.doc h1 { font-weight: 400; font-size: 2.4rem; margin-bottom: 0; }
.doc .updated { color: var(--sub); margin-top: 4px; }
.doc h2 { font-size: 1.3rem; margin-top: 2em; }
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--sub); font-size: .9rem; display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--sub); }
footer { align-items: center; }
footer .legal { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }

/* Story art and themed step cards (dawn, noon, night as in the app) */
.art-sm { width: 120px; height: 100px; margin-bottom: 18px; }
.step .ic { width: 48px; height: 48px; display: block; }
.step.dawn { background: linear-gradient(160deg, #F3CDB8 0%, #E9DCD2 55%, #D7E9EE 100%); color: #104668; }
.step.noon { background: linear-gradient(160deg, #A9E2EA 0%, #CDEFF3 55%, #EEF9FA 100%); color: #0B3C5D; }
.step.night { background: linear-gradient(160deg, #2E2A55 0%, #13203F 55%, #06141F 100%); color: var(--text); }
.step.dawn h4, .step.noon h4 { color: inherit; }
.step.dawn p { color: #5A5F6E; } .step.noon p { color: #3F6474; }
.step.night h4 { color: var(--text); } .step.night p { color: var(--sub); }

/* Icon beside the heading, description full width below */
.story > div, .steps .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; align-content: start; }
.story > div > p, .steps .step > p { grid-column: 1 / -1; margin-top: 14px; }
.story .art-sm { width: 84px; height: 70px; margin: 0; }
.story h3, .steps .step h4 { margin: 0; }
.steps .step .ic { width: 44px; height: 44px; }
.pair .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; align-content: start; }
.pair .step h3 { margin: 0; }
.pair .step p { grid-column: 1 / -1; margin-top: 14px; }
@media (max-width: 820px) {
  footer { flex-direction: column; text-align: center; gap: 12px; }
  footer .legal { margin-left: 0; justify-content: center; }
}
