/* Alarm Challenge — the app's design system, ported to the web.
   Colours are lifted from PhotoAlarm/UI/DesignSystem/Theme.swift so the site and the
   product cannot drift. The page's own idea is a sunrise: it opens at night, the sun comes
   up as you scroll, and everything after lives in daylight. */

:root {
  --canvas:   #F7F4EE;
  --surface:  #FFFDF9;
  --primary:  #6256D9;
  --primary-d:#4B42B8;
  --lavender: #E8E3FF;
  --accent:   #F28A4B;
  --ink:      #231F35;
  --ink-2:    #6B6580;
  --ink-3:    #9A94AD;
  --line:     #E7E1DA;
  --radius:   22px;
  --shadow:   0 1px 2px rgba(35,31,53,.05), 0 14px 36px -14px rgba(35,31,53,.16);

  /* Night is one visual world and does not flip with the theme. */
  --night-0:  #110E21;
  --night-1:  #1E1940;
  --night-2:  #2C2456;
  --night-ink:#F4F1FB;
  --night-ink-2:#B8B0D8;
  --dawn-1:   #6B4B8E;
  --dawn-2:   #E48E63;
  --dawn-3:   #F7C97A;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas:#16131F; --surface:#1F1B2B; --lavender:#2A2440;
    --ink:#F3F0FA; --ink-2:#ADA6BF; --ink-3:#7C748F; --line:#2E2840;
    --primary:#8F85F0; --primary-d:#A79EF5;
    --shadow:0 1px 2px rgba(0,0,0,.3), 0 14px 36px -14px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --canvas:#16131F; --surface:#1F1B2B; --lavender:#2A2440;
  --ink:#F3F0FA; --ink-2:#ADA6BF; --ink-3:#7C748F; --line:#2E2840;
  --primary:#8F85F0; --primary-d:#A79EF5;
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 14px 36px -14px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* The ambient light blobs bleed past the page edge by design. `clip` stops that turning
   into a sideways scroll without making the page a scroll container the way `hidden` does. */
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: Nunito, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 22px; }
.prose { max-width: 62ch; }
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.6rem, 6.6vw, 4.6rem); font-weight: 900; line-height: .98; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.12; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0; }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; color: var(--ink-2); }

/* ---------- header ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.06rem; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: .95rem; font-weight: 700; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--primary); }
.on-night .brand { color: var(--night-ink); }
.on-night .site-nav a { color: var(--night-ink-2); }
.on-night .site-nav a:hover { color: #fff; }

/* =========================================================
   NIGHT — the sky, the stars, the alarm going off
   ========================================================= */
.sky {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 100%, var(--night-2) 0%, var(--night-1) 45%, var(--night-0) 100%);
  color: var(--night-ink);
  padding-bottom: 96px;
}
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.sky > .wrap { position: relative; z-index: 1; }
.hero { display: grid; gap: 44px; padding-block: 40px 20px; align-items: center; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.1fr .9fr; gap: 64px; padding-block: 56px 30px; } }
.hero > * { min-width: 0; }
.hero .eyebrow { color: #C9C1FF; }
.hero h1 { margin: 14px 0 20px; color: #fff; }
.hero .lede { color: var(--night-ink-2); margin-bottom: 30px; max-width: 46ch; }
.status {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.1); color: #E9E4FF; border: 1px solid rgba(255,255,255,.16);
  padding: 9px 17px; border-radius: 999px; font-weight: 700; font-size: .93rem;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(242,138,75,.25); }

/* The alarm card. It tilts toward the cursor, and dawns when solved. */
.alarm-wrap { perspective: 1200px; justify-self: center; width: 100%; max-width: 420px; }
.alarm {
  position: relative; overflow: hidden; border-radius: 32px; padding: 34px 26px 28px;
  background: linear-gradient(168deg, #262052 0%, #3B2F6E 55%, #5A478F 100%);
  color: #fff; display: grid; gap: 18px; justify-items: center; text-align: center;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.14);
  transition: background 1.2s ease, transform .18s ease;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.alarm.solved { background: linear-gradient(168deg, #4B3F8F 0%, #A2679A 55%, #F0A05E 100%); }
.alarm-eyebrow { font-size: .68rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: #BDB2FF; }
.alarm.solved .alarm-eyebrow { color: #FFE2C4; }
.clock { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.clock b { font-size: clamp(3.2rem, 11vw, 4.6rem); font-weight: 900; letter-spacing: -.035em; line-height: 1; }
.clock i { font-style: normal; font-size: 1.05rem; font-weight: 700; opacity: .72; }
.bell { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.bell svg { width: 56px; height: 56px; z-index: 2; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); }
.alarm-q { display: grid; gap: 12px; justify-items: center; width: 100%; }
.alarm-q p { font-size: .94rem; color: #D6CFF5; }
.sum { font-size: 2.1rem; font-weight: 900; letter-spacing: -.02em; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.choice {
  font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; min-width: 76px;
  padding: 12px 18px; border-radius: 14px; color: #fff;
  background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.28);
  transition: background .16s, transform .16s, border-color .16s;
}
.choice:hover { background: rgba(255,255,255,.24); }
.choice.wrong { border-color: #FF9A9A; background: rgba(255,120,120,.22); }
.choice.right { border-color: #9BE8C0; background: rgba(120,230,170,.28); }
.plates { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.plate { cursor: pointer; padding: 10px; border-radius: 20px; background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.26); transition: background .16s, transform .16s, border-color .16s; }
.plate img { width: 72px; height: 72px; display: block; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); }
.plate:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.plate.wrong { border-color: #FF9A9A; background: rgba(255,120,120,.22); }
.plate.right { border-color: #9BE8C0; background: rgba(120,230,170,.28); }
.stepbar { width: min(260px, 100%); height: 10px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.stepbar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #C9C1FF, #fff); transition: width .25s cubic-bezier(.2,.8,.2,1); }
.choice.wide { min-width: 180px; }
.alarm-done { display: grid; gap: 6px; justify-items: center; }
.alarm-done b { font-size: 1.5rem; font-weight: 900; }
.alarm-done span { color: #FFE9D4; font-size: .93rem; }
.again { font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; background: none; border: 0; color: #FFE9D4; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }

/* =========================================================
   HORIZON — the sun comes up as you scroll through
   ========================================================= */
.horizon {
  position: relative; overflow: hidden; height: clamp(320px, 52vh, 560px);
  background: linear-gradient(180deg, var(--night-0) 0%, var(--night-2) 28%, var(--dawn-1) 52%, var(--dawn-2) 72%, var(--dawn-3) 88%, var(--canvas) 100%);
}
.horizon .sun {
  position: absolute; left: 50%; bottom: 22%;
  width: clamp(200px, 30vw, 360px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #FFF3C4 0%, #FFD36A 45%, #F7A24B 100%);
  /* --rise runs 0 → 1 as the band scrolls through the viewport. */
  transform: translate(-50%, calc((1 - var(--rise, 0)) * 85%));
}
.horizon .sun::before {
  /* Rays: a soft conic wheel, turning. */
  content: ""; position: absolute; inset: -70%; border-radius: 50%; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255,226,150,.22) 0 7deg, transparent 7deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 72%); mask: radial-gradient(circle, #000 30%, transparent 72%);
}
.horizon .sun::after {
  /* Glow: breathes. */
  content: ""; position: absolute; inset: -45%; border-radius: 50%; z-index: -2;
  background: radial-gradient(circle, rgba(255,214,120,.55) 0%, rgba(242,138,75,.28) 40%, transparent 70%);
}
.horizon .cloud {
  position: absolute; height: 46px; width: 200px; border-radius: 999px; z-index: 1;
  background: radial-gradient(60px 30px at 30% 60%, rgba(255,255,255,.9), transparent 70%),
              radial-gradient(70px 36px at 60% 45%, rgba(255,255,255,.85), transparent 70%),
              radial-gradient(50px 26px at 85% 65%, rgba(255,255,255,.8), transparent 70%);
  filter: blur(1px); opacity: .55; pointer-events: none;
}
.horizon .c1 { top: 34%; left: -220px; transform: scale(1.1); }
.horizon .c2 { top: 50%; left: -260px; transform: scale(.8); opacity: .4; }
.horizon .c3 { top: 42%; left: -240px; transform: scale(1.35); opacity: .3; }
.horizon .hills {
  position: absolute; inset: auto 0 0 0; height: 46%;
  background:
    radial-gradient(60% 100% at 20% 100%, var(--primary-d) 0 62%, transparent 63%),
    radial-gradient(55% 100% at 78% 100%, #6B5DD6 0 60%, transparent 61%),
    radial-gradient(90% 100% at 50% 100%, var(--primary) 0 70%, transparent 71%);
  opacity: .9;
}
.horizon .hills::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, transparent, var(--canvas)); }
.horizon .say {
  position: absolute; inset: 0 0 auto 0; padding-top: clamp(28px, 6vh, 64px); text-align: center; z-index: 2;
  font-weight: 900; font-size: clamp(1.4rem, 3.4vw, 2.3rem); color: #fff; letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}

/* =========================================================
   DAY
   ========================================================= */
.day { position: relative; isolation: isolate; }
.day .glow {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  width: clamp(320px, 46vw, 640px); aspect-ratio: 1; filter: blur(40px); opacity: .55;
}
.day .g1 { top: 6%; left: -18%; background: radial-gradient(circle, var(--lavender), transparent 68%); }
.day .g2 { top: 48%; right: -20%; background: radial-gradient(circle, rgba(242,138,75,.28), transparent 68%); }
section { padding-block: 64px; position: relative; }
.sec-head { display: grid; gap: 12px; margin-bottom: 38px; max-width: 60ch; margin-inline: auto; text-align: center; justify-items: center; }

.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: step; content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }

/* Five steps on one line, our plates instead of emoji, a dashed thread between them. */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: flow; position: relative; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(5, 1fr); }
  .flow::before { content: ""; position: absolute; top: 46px; left: 10%; right: 10%; border-top: 2px dashed var(--line); z-index: 0; }
}
.flow-step { position: relative; z-index: 1; display: grid; gap: 6px; justify-items: center; text-align: center; counter-increment: flow; }
.flow-step img { width: 92px; height: 92px; object-fit: contain; padding: 10px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.flow-step b { font-weight: 800; margin-top: 4px; }
.flow-step b::before { content: counter(flow) " · "; color: var(--primary); }
.flow-step span { font-size: .86rem; color: var(--ink-2); max-width: 22ch; line-height: 1.45; }

/* Before and after. What sits between the two phones is the thing the app is selling:
   the two minutes that passed. So it is drawn as a span of time, not an arrow. */
.pair { display: grid; grid-template-columns: 1fr; gap: 18px; justify-items: center; justify-content: center; align-items: center; margin-top: 64px; position: relative; }
/* Phones keep their size for as long as possible; the links between them give way first. */
@media (min-width: 720px) { .pair { grid-template-columns: minmax(0, 220px) minmax(64px, 1fr) minmax(0, 220px) minmax(64px, 1fr) minmax(0, 220px); gap: 14px; max-width: 1000px; margin-inline: auto; } }
@media (min-width: 900px) { .pair-phone figcaption { white-space: nowrap; } }
@media (min-width: 720px) and (max-width: 899px) { .pair-phone figcaption { font-size: .76rem; padding: 6px 12px; } .pair-time { font-size: .6rem; } }
.pair-phone { margin: 0; display: grid; gap: 16px; justify-items: center; width: min(220px, 100%); position: relative; isolation: isolate; }
/* A spotlight behind each phone, in the colour of its moment: the alarm's orange, the finish's green. */
.pair-phone::before { content: ""; position: absolute; z-index: -1; inset: 8% -28% 6%; border-radius: 50%; filter: blur(46px); opacity: .42; pointer-events: none; background: radial-gradient(circle, var(--accent), transparent 70%); }
.pair-phone:nth-child(3)::before { background: radial-gradient(circle, var(--primary), transparent 70%); opacity: .38; }
.pair-phone:last-child::before { background: radial-gradient(circle, #4E9B72, transparent 70%); opacity: .34; }
.pair-phone img { width: 100%; height: auto; border-radius: 30px; border: 1px solid var(--line); box-shadow: 0 34px 60px -30px rgba(35,31,53,.5); background: var(--surface); }
.pair-phone:first-child img { transform: rotate(-4deg); }
.pair-phone:nth-child(3) img { transform: translateY(-10px); }
.pair-phone:last-child img { transform: rotate(3deg); }
.pair-phone figcaption { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; box-shadow: var(--shadow); text-align: center; }
.pair-phone figcaption b { color: var(--primary); font-weight: 800; font-variant-numeric: tabular-nums; }
.pair-link { display: grid; justify-items: center; gap: 12px; width: 100%; }
.pair-time { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-align: center; line-height: 1.3; }
/* Each link runs from the colour of the phone it leaves to the colour of the one it reaches. */
.pair-track { position: relative; width: 100%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--primary)); opacity: .6; }
.pair-link:nth-child(4) .pair-track { background: linear-gradient(90deg, var(--primary), #4E9B72); }
.pair-track::before, .pair-track::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%); }
.pair-track::before { left: 0; background: var(--accent); }
.pair-track::after { left: 100%; background: var(--primary); }
.pair-link:nth-child(4) .pair-track::before { background: var(--primary); }
.pair-link:nth-child(4) .pair-track::after { background: #4E9B72; }
.pair-spark { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; opacity: 0; box-shadow: 0 0 0 3px rgba(98,86,217,.28), 0 0 20px 5px rgba(98,86,217,.6); }
@media (max-width: 719px) {
  .pair-link { grid-template-columns: auto auto; align-items: center; gap: 14px; width: auto; }
  .pair-time { order: 2; }
  .pair-track { width: 2px; height: 76px; background: linear-gradient(180deg, var(--accent), var(--primary)); }
  .pair-link:nth-child(4) .pair-track { background: linear-gradient(180deg, var(--primary), #4E9B72); }
  .pair-track::before { left: 50%; top: 0; }
  .pair-track::after { left: 50%; top: 100%; }
  .pair-spark { left: 50%; top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .pair-phone img { transition: transform .5s cubic-bezier(.2,.9,.3,1.2), box-shadow .5s ease; }
  .pair-phone:hover img { transform: rotate(0) translateY(-10px); box-shadow: 0 48px 70px -30px rgba(35,31,53,.6); }
  .pair-phone::before { animation: glow 5s ease-in-out infinite; }
  .pair-phone:last-child::before { animation-delay: -2.5s; }
  .pair-spark { animation: travel 2.8s cubic-bezier(.45,0,.2,1) infinite; }
  .pair-link:nth-child(4) .pair-spark { animation-delay: 1.4s; }
  @media (max-width: 719px) { .pair-spark { animation-name: travel-v; } }
}
@keyframes travel { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes travel-v { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* Dust in morning light. Fixed behind the daylight half; the script fades it in as the sun clears. */
#motes { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.day { z-index: 1; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); flex: 0 0 auto; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 0 18px; margin: 0; }
.faq details[open] p { animation: word .35s ease both; }

/* Real screenshots, as phones. Fan on desktop; a snapping strip on small screens. */
.screens { display: flex; gap: 18px; justify-content: center; align-items: flex-start; overflow-x: auto; padding: 14px 4px 22px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.screens::-webkit-scrollbar { display: none; }
.screen { flex: 0 0 clamp(150px, 17.5vw, 192px); margin: 0; scroll-snap-align: center; display: grid; gap: 10px; justify-items: center; }
.screen img { width: 100%; height: auto; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 30px 50px -28px rgba(35,31,53,.45); background: var(--surface); }
.screen figcaption { font-size: .82rem; font-weight: 700; color: var(--ink-2); text-align: center; line-height: 1.35; }
@media (min-width: 900px) { .screen:nth-child(2n) { margin-top: 34px; } }
@media (prefers-reduced-motion: no-preference) {
  .screen img { transition: transform .45s cubic-bezier(.2,.9,.3,1.2), box-shadow .45s ease; }
  .screen:hover img { transform: translateY(-8px) scale(1.03); box-shadow: 0 44px 64px -30px rgba(35,31,53,.55); }
}

/* Numbers strip. Each one is a real count from the source. */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding-block: 0 8px; max-width: 820px; margin-inline: auto; }
.num { display: grid; gap: 4px; padding: 22px; border-radius: 18px; background: var(--lavender); text-align: center; justify-items: center; position: relative; }
.num::after { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--primary); margin-top: 6px; transform: scaleX(0); transform-origin: center; }
.num.seen::after { transform: scaleX(1); transition: transform .6s cubic-bezier(.2,.8,.2,1) .9s; }
.num b { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 900; letter-spacing: -.03em; color: var(--primary-d); font-variant-numeric: tabular-nums; line-height: 1; }
.num span { font-size: .86rem; font-weight: 700; color: var(--ink-2); }

/* Flex, not grid, so an odd last row centres itself instead of hugging the left. */
.missions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.mission { flex: 0 1 172px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 14px; text-align: center; display: grid; gap: 9px; justify-items: center; }
.mission img { width: 76px; height: 76px; object-fit: contain; }
.mission b { font-size: .95rem; font-weight: 800; }
.mission span { font-size: .8rem; color: var(--ink-2); line-height: 1.4; }

/* The 39 objects as a ribbon. Two rows, opposite directions, seamless. */
.ribbon-wrap { position: relative; overflow: hidden; padding-block: 8px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ribbon { display: flex; gap: 14px; width: max-content; padding-block: 8px; }
.ribbon + .ribbon { margin-top: 6px; }
.ribbon img { width: 92px; height: 92px; padding: 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .ribbon { animation: slide 70s linear infinite; }
  .ribbon.rev { animation-direction: reverse; animation-duration: 84s; }
  .ribbon-wrap:hover .ribbon { animation-play-state: paused; }
}
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-wrap { overflow-x: auto; mask-image: none; -webkit-mask-image: none; } }

/* The one bold band. */
.band { background: var(--primary); color: #fff; border-radius: 30px; padding: clamp(34px, 5vw, 60px); display: grid; gap: 22px; position: relative; overflow: hidden; text-align: center; justify-items: center; }
.band::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -20%; top: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); pointer-events: none; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.10) 50%, transparent 60%); transform: translateX(-100%); pointer-events: none; }
.band h2 { color: #fff; }
.band .eyebrow { color: #C9C2FF; }
.band p { color: #E4E0FA; max-width: 58ch; }
.band-grid { text-align: left; width: 100%; }
.band-grid { display: grid; gap: 18px; margin-top: 6px; }
@media (min-width: 760px) { .band-grid { grid-template-columns: repeat(3, 1fr); } }
.band-grid div { border-top: 1px solid rgba(255,255,255,.28); padding-top: 14px; }
.band-grid b { display: block; font-size: 1rem; margin-bottom: 4px; }
.band-grid span { color: #CFC9F2; font-size: .92rem; }

/* Tones — the bars play at their measured level. */
.tones { display: grid; gap: 10px; }
.tone { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 15px 18px; }
.meter { display: flex; gap: 3px; align-items: flex-end; height: 28px; }
.meter i { width: 6px; border-radius: 3px; background: var(--primary); opacity: .2; transform-origin: bottom; }
.meter i.on { opacity: 1; }
.tone-db { font-variant-numeric: tabular-nums; font-size: .84rem; color: var(--ink-3); font-weight: 800; }
.tone b { font-weight: 800; }
.tone span { display: block; font-size: .87rem; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .tone.seen .meter i.on { animation: play 1.4s ease-in-out infinite alternate; }
  .tone.seen .meter i:nth-child(2) { animation-delay: .15s; } .tone.seen .meter i:nth-child(3) { animation-delay: .3s; }
  .tone.seen .meter i:nth-child(4) { animation-delay: .45s; } .tone.seen .meter i:nth-child(5) { animation-delay: .6s; }
}
@keyframes play { from { transform: scaleY(.55); } to { transform: scaleY(1); } }

/* Badges float, each on its own beat. */
.badges { display: flex; gap: 18px 22px; flex-wrap: wrap; align-items: flex-start; justify-content: center; }
.badge { text-align: center; width: 112px; }
.badge img { width: 84px; height: 84px; margin-inline: auto; filter: drop-shadow(0 12px 18px rgba(35,31,53,.22)); }
.badge span { display: grid; margin-top: 8px; font-size: .78rem; font-weight: 700; color: var(--ink-3); line-height: 1.3; }
.badge span b { font-size: .88rem; font-weight: 800; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .badge img { animation: float 4.6s ease-in-out infinite; }
  .badge:nth-child(2) img { animation-delay: -.7s; } .badge:nth-child(3) img { animation-delay: -1.4s; } .badge:nth-child(4) img { animation-delay: -2.1s; }
  .badge:nth-child(5) img { animation-delay: -2.8s; } .badge:nth-child(6) img { animation-delay: -3.5s; } .badge:nth-child(7) img { animation-delay: -4.2s; }
  .badge:hover img { animation-play-state: paused; transform: translateY(-8px) rotate(-5deg) scale(1.08); transition: transform .4s cubic-bezier(.2,.9,.3,1.4); }
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(2deg); } }

.plans { display: grid; gap: 14px; max-width: 960px; margin-inline: auto; }
@media (min-width: 740px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 5px; align-content: start; }
.plan.pick { border-color: var(--primary); border-width: 2px; box-shadow: 0 18px 40px -22px rgba(98,86,217,.55); }
.plan b { font-size: .95rem; font-weight: 800; }
.plan .price { font-size: 1.7rem; font-weight: 900; letter-spacing: -0.03em; }
.plan .note { font-size: .82rem; color: var(--ink-2); }
.tag { justify-self: start; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-bottom: 3px; }

/* ---------- legal pages ---------- */
.legal { padding-block: 34px 70px; }
.legal h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); margin-bottom: 8px; }
.legal section { padding-block: 0; margin-top: 30px; }
.legal h2 { font-size: 1.18rem; margin-bottom: 7px; }
.legal p { color: var(--ink-2); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 30px 46px; margin-top: 44px; display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--primary); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .alarm.ringing .bell svg { animation: shake .82s ease-in-out infinite; transform-origin: 50% 18%; }
  .alarm.ringing .ring { animation: pulse 2.4s ease-out infinite; }
  .alarm.ringing .ring:nth-child(2) { animation-delay: .8s; }
  .alarm.ringing .ring:nth-child(3) { animation-delay: 1.6s; }
  .alarm.ringing .clock b { animation: breathe 2.4s ease-in-out infinite; }
  .choice:active { transform: scale(.94); }
  .choice.wrong, .plate.wrong { animation: nope .4s ease; }
  .alarm.solved .alarm-done { animation: rise .6s cubic-bezier(.2,.9,.3,1.3) both; }
  .mission, .plan, .step { transition: transform .22s ease, box-shadow .22s ease; }
  .mission:hover, .plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .mission img { transition: transform .38s cubic-bezier(.2,.9,.3,1.3); }
  .mission:hover img { transform: scale(1.12) rotate(-4deg); }
  /* Reveals are applied by script; with no JS nothing is ever hidden. */
  .js-reveal { opacity: 0; transform: translateY(20px); }
  .js-reveal.seen { opacity: 1; transform: none; transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.3,1); }
  .hero h1 .w { display: inline-block; animation: word .7s cubic-bezier(.2,.8,.2,1) both; }
  .hero h1 .w:nth-child(2) { animation-delay: .08s; } .hero h1 .w:nth-child(3) { animation-delay: .16s; }
  .hero h1 .w:nth-child(4) { animation-delay: .24s; } .hero h1 .w:nth-child(5) { animation-delay: .32s; }
}
@keyframes shake { 0%,100% { transform: rotate(0); } 15% { transform: rotate(13deg); } 30% { transform: rotate(-11deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
@keyframes pulse { 0% { transform: scale(.72); opacity: .65; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes breathe { 0%,100% { opacity: 1; } 50% { opacity: .78; } }
@keyframes nope { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes word { from { opacity: 0; transform: translateY(.35em); } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance, after the headline words. */
  .hero .eyebrow, .hero .lede, .hero .status { animation: word .7s cubic-bezier(.2,.8,.2,1) both; }
  .hero .eyebrow { animation-delay: 0s; } .hero .lede { animation-delay: .42s; } .hero .status { animation-delay: .55s; }
  .alarm-wrap { animation: card .9s cubic-bezier(.2,.8,.2,1) .25s both; }
  .status::before { animation: dot 2s ease-in-out infinite; }
  /* Sun. */
  .horizon .sun::before { animation: turn 90s linear infinite; }
  .horizon .sun::after { animation: glow 4.5s ease-in-out infinite; }
  .horizon .c1 { animation: drift 58s linear infinite; }
  .horizon .c2 { animation: drift 74s linear infinite; animation-delay: -30s; }
  .horizon .c3 { animation: drift 96s linear infinite; animation-delay: -60s; }
  .horizon .say { animation: word 1.2s ease .2s both; }
  /* Day ambience. */
  .day .g1 { animation: wander 38s ease-in-out infinite alternate; }
  .day .g2 { animation: wander 46s ease-in-out infinite alternate-reverse; }
  .band::before { animation: sheen 7s ease-in-out infinite; }
  .plan.pick { animation: pickglow 3.6s ease-in-out infinite; }
  .mission img { animation: bob 6s ease-in-out infinite; }
  .flow-step img { transition: transform .35s cubic-bezier(.2,.9,.3,1.3); }
  .flow-step:hover img { transform: translateY(-4px) rotate(-3deg); }
  .mission:nth-child(2n) img { animation-delay: -1.5s; } .mission:nth-child(3n) img { animation-delay: -3s; } .mission:nth-child(5n) img { animation-delay: -4.5s; }
  .mission:hover img { animation-play-state: paused; }
  .brand img { transition: transform .4s cubic-bezier(.2,.9,.3,1.4); }
  .brand:hover img { transform: rotate(-8deg) scale(1.08); }
}
@keyframes card { from { opacity: 0; transform: translateY(26px) scale(.97); } }
@keyframes dot { 0%,100% { box-shadow: 0 0 0 4px rgba(242,138,75,.25); } 50% { box-shadow: 0 0 0 8px rgba(242,138,75,.08); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes glow { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes drift { to { transform: translateX(calc(100vw + 300px)); } }
@keyframes wander { to { transform: translate(14%, 10%); } }
@keyframes sheen { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
@keyframes pickglow { 0%,100% { box-shadow: 0 18px 40px -22px rgba(98,86,217,.55); } 50% { box-shadow: 0 22px 48px -18px rgba(98,86,217,.8); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .horizon .c1 { left: 12%; } .horizon .c2 { left: 58%; } .horizon .c3 { left: 36%; }
}
