/* Clearer Breath landing page.
   Dawn Sky palette and Zilla Slab type, taken from the app (Dawn Sky + Zilla C spec).
   Motion follows the app's CalmMotion tokens: eased out, slow, never a bounce,
   and a plain 0.3 s crossfade when the visitor prefers reduced motion.
   Zilla Slab is self-hosted (SIL OFL 1.1, see fonts/OFL.txt). No third-party requests. */

@font-face { font-family: "Zilla Slab"; src: url("fonts/ZillaSlab-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("fonts/ZillaSlab-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* Dawn Sky, light */
  --bg-start: #E7F0F7;
  --bg-mid: #D9E6F0;
  --bg-end: #CDDCE8;
  --paper: #F6FAFD;
  --ink: #1C3344;
  --secondary: #3E5A6C;
  --accent: #2A5A72;
  --rule: #B7C7D4;
  --button-fill: #1C3344;
  --button-label: #F6FAFD;
  --inhale: #D4A07A;
  --exhale: #5A8FA8;
  --hold: #8A90B8;
  --orb-box: #5B8FB0;
  --orb-478: #4A8A9A;
  --orb-even: #6A9BB8;
  --orb-sigh: #8A90B8;

  /* CalmMotion curves */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.25, 1);
  --ease-breath: cubic-bezier(0.37, 0, 0.63, 1);

  --display: "Zilla Slab", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --radius: 18px;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-start: #0C1218;
    --bg-mid: #101820;
    --bg-end: #141C26;
    --paper: #2A3A4C;
    --ink: #E8F1F7;
    --secondary: #A3B8C8;
    --accent: #8EC4DC;
    --rule: #4A6578;
    --button-fill: #E8F1F7;
    --button-label: #0C1218;
    --inhale: #E0B090;
    --exhale: #7EB8D4;
    --hold: #A0A8D0;
    --orb-box: #7EB8D4;
    --orb-478: #5A9BB0;
    --orb-even: #8AB0C8;
    --orb-sigh: #A0A8D0;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-mid) 48%, var(--bg-end) 100%);
  min-height: 100vh;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--button-fill); color: var(--button-label); padding: 10px 16px; border-radius: 10px; z-index: 50; transition: top 0.2s; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.4vw + 0.6rem, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 3rem); }
h3 { font-size: 1.45rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.kicker { font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--secondary); font-weight: 400; margin-bottom: 0.9rem; }
.lede { font-size: clamp(1.15rem, 0.6vw + 1.05rem, 1.4rem); color: var(--secondary); max-width: 34em; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.small { font-size: 0.95rem; color: var(--secondary); }

/* Header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 400; letter-spacing: -0.01em; }
.brand img { border-radius: 22.5%; box-shadow: 0 4px 14px rgba(28, 51, 68, 0.2); }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); font-size: 1rem; }
.top nav a { color: var(--secondary); text-decoration: none; font-weight: 400; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
.top nav .nav-cta { color: var(--button-label); background: var(--button-fill); padding: 8px 16px; border-radius: 999px; }
.top nav .nav-cta:hover { color: var(--button-label); text-decoration: none; opacity: 0.9; }
@media (max-width: 620px) { .top nav a:not(.nav-cta) { display: none; } .top nav .nav-cta { font-size: 0.95rem; } }

/* Hero */
.hero { position: relative; padding: clamp(104px, 14vw, 150px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.sky { position: absolute; inset: -20% -10%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(126, 184, 212, 0.34), transparent 70%),
    radial-gradient(50% 45% at 14% 88%, rgba(212, 160, 122, 0.30), transparent 70%);
  animation: sky-drift 60s var(--ease-breath) infinite alternate; }
@keyframes sky-drift { from { transform: translate3d(-2.5%, -1.5%, 0); } to { transform: translate3d(2.5%, 1.5%, 0); } }
.hero-grid { position: relative; z-index: 1; width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { margin-bottom: 0.45em; }
.hero-copy .lede { margin-bottom: 1.6em; }

/* Coming soon (pre-launch) and App Store badge (launch day) */
.soon { margin: 0 0 0.35rem; }
.soon-line {
  font-weight: 400;
  font-size: clamp(1.2rem, 0.35vw + 1.1rem, 1.45rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.2em;
}
.note { margin: 0; font-size: 0.95rem; color: var(--secondary); }
.center .note { text-align: center; }
.closing .note { margin: 0.15em 0 0; }

.badge { display: inline-block; border-radius: 10px; transition: transform 0.12s var(--ease-out); }
.badge:active { transform: scale(0.97); }
.store .note { margin-left: 0; margin-top: 0.8em; }

.facts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--secondary); font-weight: 400; font-size: 1rem; }
.facts li { position: relative; padding-left: 18px; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--inhale); }

/* Hero art: painting with a breathing ring, and the real session screen */
.hero-art { position: relative; padding: 0 0 0 clamp(0px, 4vw, 40px); }
.painting { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 30px 70px rgba(12, 18, 24, 0.28); background: #0C1218; }
.painting > img { width: 100%; height: 100%; object-fit: cover; }
.orb { position: absolute; inset: 0; }
.ring { position: absolute; left: 56%; top: 56%; width: 46%; aspect-ratio: 1; margin: -23% 0 0 -23%; border-radius: 50%; border: 1.5px solid rgba(246, 250, 253, 0.55); animation: ring-breathe 11s var(--ease-breath) infinite; }
.ring.r2 { width: 58%; margin: -29% 0 0 -29%; border-color: rgba(246, 250, 253, 0.32); animation-delay: -0.4s; }
.ring.r3 { width: 70%; margin: -35% 0 0 -35%; border-color: rgba(246, 250, 253, 0.18); animation-delay: -0.8s; }
@keyframes ring-breathe { 0%, 100% { transform: scale(0.84); opacity: 0.55; } 50% { transform: scale(1.1); opacity: 1; } }
.word { position: absolute; left: 0; right: 0; top: 7%; text-align: center; color: #F6FAFD; font-size: 1.5rem; font-weight: 300; letter-spacing: 0.01em; text-shadow: 0 2px 18px rgba(12, 18, 24, 0.55); opacity: 0; }
.word.in { animation: word-in 11s var(--ease-breath) infinite; }
.word.out { animation: word-out 11s var(--ease-breath) infinite; }
@keyframes word-in { 0% { opacity: 0; } 8%, 42% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes word-out { 0%, 50% { opacity: 0; } 58%, 92% { opacity: 1; } 100% { opacity: 0; } }
.phone { position: absolute; left: clamp(-24px, -3vw, 0px); bottom: -6%; width: 34%; min-width: 118px; border-radius: 12% / 5.6%; padding: 2.2%; background: #0C1218; box-shadow: 0 26px 56px rgba(12, 18, 24, 0.38), 0 0 0 1.5px rgba(138, 160, 176, 0.35) inset; }
.phone img { border-radius: 10.4% / 4.8%; aspect-ratio: 660 / 1434; width: 100%; height: auto; object-fit: cover; }

/* Styles strip */
.styles { padding: 8px var(--gutter) clamp(40px, 6vw, 72px); }
.chips { list-style: none; margin: 0 auto; padding: 0; width: min(var(--max), 100%); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.chip { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 16px 16px 18px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.chip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--exhale)); }
.chip b { font-weight: 400; font-size: 1.2rem; }
.chip span { color: var(--secondary); font-weight: 400; font-size: 0.9rem; line-height: 1.35; }
.c-box { --c: var(--orb-box); } .c-478 { --c: var(--orb-478); } .c-even { --c: var(--orb-even); }
.c-long { --c: var(--exhale); } .c-sigh { --c: var(--orb-sigh); } .c-wake { --c: var(--inhale); }
@media (max-width: 960px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Features */
.features { padding: clamp(48px, 8vw, 104px) 0; }
.features h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.card { display: grid; grid-template-columns: 38% 1fr; background: var(--paper); border: 1px solid var(--rule); border-radius: 24px; overflow: hidden; box-shadow: 0 14px 40px rgba(28, 51, 68, 0.08); }
.card img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.card-body { padding: clamp(20px, 2.4vw, 32px); align-self: center; }
.card h3 { margin-bottom: 0.5em; }
.card p { margin: 0; color: var(--secondary); font-size: 1.02rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .card { grid-template-columns: 1fr; } .card img { height: 220px; object-position: 50% 30%; } }

/* Apple Watch: always dusk, like the Watch itself */
.watch { background: linear-gradient(180deg, #0C1218 0%, #101820 50%, #141C26 100%); color: #E8F1F7; padding: clamp(56px, 9vw, 120px) 0; --accent: #8EC4DC; --secondary: #A3B8C8; }
.watch a { color: #8EC4DC; }
.watch-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.watch h2 { margin-bottom: 0.5em; }
.watch .kicker { color: #A3B8C8; }
.watch p { color: #A3B8C8; }
.ticks { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: #A3B8C8; font-size: 1.05rem; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 10px; height: 10px; border-radius: 50%; background: #7EB8D4; box-shadow: 0 0 0 5px rgba(126, 184, 212, 0.18); }
.ticks b { color: #E8F1F7; font-weight: 400; }
.watch-art {
  --watch-size: min(240px, 62vw);
  display: grid;
  place-items: center;
}
@media (min-width: 861px) {
  .watch-art { --watch-size: 280px; }
}
/* Case and bands are in normal flow: the bands are flex children (pseudos),
   not absolutely positioned outside the box, so they cannot cover the copy. */
.wristwatch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--watch-size);
}
.wristwatch::before,
.wristwatch::after {
  content: "";
  display: block;
  flex: none;
  width: 72%;
  height: calc(var(--watch-size) * 0.22);
  background: linear-gradient(180deg, #1c2a36, #131d26);
}
.wristwatch::before { border-radius: 36px 36px 0 0; margin-bottom: -8px; }
.wristwatch::after { border-radius: 0 0 36px 36px; margin-top: -8px; }
.face {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  box-sizing: border-box;
  padding: 5%;
  border-radius: 22% / 18%;
  background: linear-gradient(180deg, #0C1218, #141C26);
  box-shadow: 0 0 0 3px #26323E, 0 0 0 9px #141C26, 0 28px 60px rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}
.ring-w { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; border: 3px solid #7EB8D4; transform: scale(0.88); transition: transform 4s var(--ease-in-out), border-color 1.2s var(--ease-in-out); }
.watch[data-phase="in"] .ring-w { transform: scale(1.06); border-color: #E0B090; }
.watch[data-phase="out"] .ring-w { transform: scale(0.88); border-color: #7EB8D4; transition-duration: 6s, 1.2s; }
.w-phase { position: relative; display: block; height: 1.4em; width: 100%; margin-top: -14%; font-size: clamp(1.05rem, 4.6vw, 1.45rem); color: #E8F1F7; font-weight: 400; }
/* Outgoing word fades fully before the incoming word fades in. */
.w-phase span { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s var(--ease-in-out); transition-delay: 0s; }
.watch:not([data-phase]) .wp-out,
.watch[data-phase="out"] .wp-out,
.watch[data-phase="in"] .wp-in {
  opacity: 1;
  transition-delay: 0.4s;
}
.w-count { display: block; position: absolute; left: 0; right: 0; top: 52%; font-size: clamp(1.8rem, 8vw, 2.9rem); color: #E8F1F7; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.w-bpm { position: absolute; left: 0; right: 0; bottom: 9%; font-size: 0.95rem; color: #A3B8C8; font-weight: 400; font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 860px) {
  .watch-grid { grid-template-columns: 1fr; gap: 28px; }
  .watch-art { order: -1; }
}

/* Privacy */
.privacy { padding: clamp(56px, 8vw, 104px) 0; }
.privacy h2 { margin-bottom: 0.6em; }
.plain { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 4px; }
.plain li { padding: 16px 0; border-top: 1px solid var(--rule); color: var(--secondary); }
.plain li:last-child { border-bottom: 1px solid var(--rule); }
.plain b { color: var(--ink); font-weight: 400; display: block; font-size: 1.25rem; margin-bottom: 2px; }

/* Closing */
.closing { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 120px); }
.closing-icon { margin: 0 auto 22px; border-radius: 22.5%; box-shadow: 0 14px 34px rgba(28, 51, 68, 0.25); }
.closing h2 { margin-bottom: 0.4em; }
.closing .lede { margin-inline: auto; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 32px 0 48px; color: var(--secondary); font-size: 0.98rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 14px; }
.foot nav a { color: var(--ink); }
.foot p { margin: 0 0 8px; }
.foot .tiny { font-size: 0.85rem; font-weight: 400; opacity: 0.85; }

/* Arrive: rise 8 px, clear a 6 px blur, 0.6 s, 0.06 s stagger (CalmMotion). */
@keyframes arrive { from { opacity: 0; transform: translateY(8px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
html.js .arrive { animation: arrive 0.6s var(--ease-out) both; }
html.js .arrive:nth-child(2) { animation-delay: 0.06s; }
html.js .arrive:nth-child(3) { animation-delay: 0.12s; }
html.js .arrive:nth-child(4) { animation-delay: 0.18s; }
html.js .arrive:nth-child(5) { animation-delay: 0.24s; }
html.js .hero-art.arrive { animation-delay: 0.12s; }
html.js .reveal { opacity: 0; transform: translateY(8px); filter: blur(6px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; filter: none; }
html.js .cards .reveal:nth-child(2n) { transition-delay: 0.06s; }

/* Reduce Motion: no rise, blur, scale, stagger or drift. Plain 0.3 s crossfades. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky, .ring, .word.in, .word.out { animation: none; }
  .ring { transform: scale(1); opacity: 0.8; }
  .word.out { display: none; }
  .word.in { opacity: 1; }
  .word.in::after { content: ""; }
  html.js .arrive { animation: fade 0.3s ease-in-out both; animation-delay: 0s !important; }
  html.js .reveal { transform: none; filter: none; transition: opacity 0.3s ease-in-out; transition-delay: 0s !important; }
  .ring-w { transition: none; }
  .w-phase span { transition: none; }
  .watch[data-phase] .ring-w { transform: scale(0.97); }
  .badge { transition: none; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { padding: 0 0 7%; max-width: 460px; margin-inline: auto; width: 100%; }
  .phone { left: -4px; }
}
