/* Hey Morn website. One idea: the page starts at night and ends in the morning. */

@font-face { font-family: "Inter Display"; font-weight: 500; font-display: swap; src: url("/fonts/inter-display-500.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 600; font-display: swap; src: url("/fonts/inter-display-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff") format("woff"); }

:root {
  --page: #FFFBF5;
  --surface: #FFFFFF;
  --tint: #FFF3E3;
  --ink: #151A3A;
  --ink-2: rgba(21, 26, 58, 0.74);
  --ink-3: rgba(21, 26, 58, 0.54);
  --line: rgba(21, 26, 58, 0.1);
  --accent: #FF9A2E;
  --accent-ink: #A84A06;
  --on-accent: #151A3A;
  --good: #136F48;
  --good-soft: rgba(19, 111, 72, 0.1);
  --off: #C6CBDA;
  --shadow: 0 1px 2px rgba(21, 26, 58, 0.04), 0 16px 40px -16px rgba(38, 66, 140, 0.18);
  /* The page goes from night to morning: --sky (the hero), then --sunrise (the claim), then --morning. */
  --sky: linear-gradient(180deg, #080A1F 0%, #10153C 30%, #262763 60%, #45337A 84%, #56397C 100%);
  --sunrise: linear-gradient(180deg, #56397C 0%, #8A4A78 34%, #A65577 52%, #EC8866 74%, #FFBE85 88%, #FFE9CC 100%);
  --morning: linear-gradient(180deg, #FFE9CC 0, #FFFBF5 360px);
  --claim-ink: #FFFFFF;
  --claim-dim: rgba(255, 255, 255, 0.62);
  --display: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", "Inter Display", -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0C0F24;
    --surface: #151936;
    --tint: #131731;
    --ink: #F2F0FA;
    --ink-2: rgba(242, 240, 250, 0.76);
    --ink-3: rgba(242, 240, 250, 0.56);
    --line: rgba(242, 240, 250, 0.12);
    --accent: #FFB45C;
    --accent-ink: #FFB45C;
    --on-accent: #12152B;
    --good: #7FE0B0;
    --good-soft: rgba(127, 224, 176, 0.12);
    --off: #3A3F63;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 16px 40px -16px rgba(0, 0, 0, 0.5);
    --sunrise: none;
    --morning: none;
    --claim-ink: var(--ink);
    --claim-dim: var(--ink-3);
    --sky: linear-gradient(180deg, #05061A 0%, #0D1136 28%, #232460 46%, #51367A 60%, #9A4F75 71%, #D97C66 80%, #8C4A6E 89%, #2A2148 95%, #0C0F24 100%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 18px/1 var(--display); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  font: 600 16px/1 var(--text); text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.98); }

/* The sky: the hero of the home page */
.sky { position: relative; background: var(--sky); color: #FFFFFF; overflow: hidden; }
.sky .brand { color: #FFFFFF; }
.sky .top nav a { color: rgba(255, 255, 255, 0.72); }
.sky .top nav a:hover { color: #FFFFFF; }
.stars { position: absolute; inset: 0 0 55% 0; pointer-events: none; opacity: 0.9;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 17% 61%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 27% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 44%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 62% 18%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 52%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 83% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 38%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 47% 7%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 4% 72%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 96% 70%, rgba(255,255,255,.45) 50%, transparent 51%);
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
.hero { position: relative; text-align: center; padding: clamp(48px, 9vw, 104px) 0 0; }
.hero h1 { font: 600 clamp(56px, 10.5vw, 132px)/0.94 var(--display); letter-spacing: -0.04em; }
.hero .lede { max-width: 33em; margin: 28px auto 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, 0.78); }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: 36px; }
.sky .btn { background: #FFB45C; color: #12152B; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: rgba(255, 255, 255, 0.78); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FFB45C; box-shadow: 0 0 0 4px rgba(255, 180, 92, 0.22); }

.stage { position: relative; display: grid; justify-items: center; padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 120px); }
.sun {
  position: absolute; left: 50%; top: calc(clamp(56px, 8vw, 96px) + 84px);
  width: min(540px, 128vw); aspect-ratio: 1; border-radius: 50%;
  translate: -50% 0;
  background: radial-gradient(circle closest-side, #FFF8E6 0%, #FFE9BC 52%, #FFD398 100%);
  isolation: isolate;
}
/* The glow of the sun. A gradient draws it, because a large blur can show hard edges. */
.sun::before {
  content: ""; position: absolute; z-index: -1; inset: -55%; border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(255, 220, 170, 0.75) 0%, rgba(255, 196, 140, 0.5) 46%, rgba(255, 176, 124, 0.22) 68%, rgba(255, 170, 120, 0) 100%);
}
.hint { position: relative; margin-top: 22px; padding: 0 24px; max-width: 36em; text-align: center; font-size: 14px; color: rgba(255, 255, 255, 0.78); }

/* The phone with the live demo */
.phone {
  position: relative; width: min(308px, 82vw); aspect-ratio: 308 / 640;
  padding: 9px; border-radius: 54px; background: #05060F;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.14) inset, 0 40px 80px -24px rgba(20, 12, 50, 0.6), 0 12px 28px -10px rgba(20, 12, 50, 0.45);
}
.screen {
  position: relative; height: 100%; border-radius: 45px; overflow: hidden;
  background: linear-gradient(180deg, #12152B 0%, #12152B 45%, #1A1E40 100%);
  color: #F2F0FA; font-family: var(--text);
}
.screen::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 11px; width: 86px; height: 25px; translate: -50% 0; border-radius: 20px; background: #05060F; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 62px 20px 24px; text-align: center; }
.view[hidden] { display: none; }
.view .grow { flex: 1; min-height: 8px; }
.mascot { position: relative; width: 128px; height: 128px; margin: 6px auto 12px; }
.mascot .halo { position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 180, 92, 0.35); }
.mascot svg { position: absolute; left: 14px; top: 34px; width: 100px; height: 62px; }
.ringing .halo { animation: ring 1.6s ease-in-out infinite; }
@keyframes ring { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.14); opacity: 0.55; } }
.p-label { font-size: 12px; color: rgba(242, 240, 250, 0.62); }
.p-time { font: 600 56px/1.1 var(--round); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.p-time small { font-size: 17px; font-weight: 600; color: rgba(242, 240, 250, 0.8); letter-spacing: 0; }
.p-name { font-size: 15px; color: rgba(242, 240, 250, 0.8); }
.p-title { font: 600 24px/1.15 var(--round); letter-spacing: -0.01em; text-align: left; }
.p-sub { font-size: 14px; color: rgba(242, 240, 250, 0.8); }
.p-note { margin-top: 12px; padding: 11px 12px; border: 1px solid rgba(242, 240, 250, 0.12); border-radius: 12px; background: #171B36; font-size: 11.5px; line-height: 1.45; color: rgba(242, 240, 250, 0.8); text-align: left; }
.p-note.alert { border-color: #FF6B5E; background: rgba(255, 107, 94, 0.1); color: #F2F0FA; }
.p-btn { width: 100%; min-height: 48px; border: 0; border-radius: 999px; background: #FFB45C; color: #12152B; font: 600 15px/1 var(--text); cursor: pointer; }
.p-btn:disabled { opacity: 0.55; cursor: default; }
.p-link { margin-top: 6px; min-height: 40px; border: 0; background: none; color: rgba(242, 240, 250, 0.8); font: 400 14px/1 var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dots { display: flex; gap: 6px; margin: 14px 0 0; }
.dots i { flex: 1; height: 4px; border-radius: 4px; background: rgba(242, 240, 250, 0.16); }
.dots i.on { background: #FFB45C; }
.problem { margin: 34px 0 20px; font: 600 46px/1 var(--round); font-variant-numeric: tabular-nums; }
.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.answers button { min-height: 56px; border: 1px solid rgba(242, 240, 250, 0.12); border-radius: 16px; background: #1D2242; color: #F2F0FA; font: 600 20px/1 var(--round); cursor: pointer; }
.answers button:hover { border-color: rgba(255, 180, 92, 0.7); }
.answers.wrong { animation: shake 0.32s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.feedback { min-height: 20px; margin-top: 12px; font-size: 13px; color: rgba(242, 240, 250, 0.62); }
.check { display: grid; place-items: center; width: 92px; height: 92px; margin: 18px auto 16px; border-radius: 50%; background: #7FE0B0; box-shadow: 0 0 0 16px rgba(127, 224, 176, 0.14); }
.check svg { width: 42px; height: 42px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.stats div { padding: 10px 4px; border-radius: 14px; background: #1D2242; }
.stats b { display: block; font: 600 20px/1.2 var(--round); font-variant-numeric: tabular-nums; }
.stats span { font-size: 10.5px; color: rgba(242, 240, 250, 0.62); }

/* Sections below the sky */
section.band { padding: clamp(72px, 10vw, 136px) 0; }
.band + .band { border-top: 1px solid var(--line); }
.claim { max-width: 21em; font: 500 clamp(28px, 4.2vw, 52px)/1.14 var(--display); letter-spacing: -0.03em; }
.claim span { color: var(--claim-dim); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
h2 { font: 600 clamp(32px, 4.4vw, 52px)/1.06 var(--display); letter-spacing: -0.035em; }
.intro { font-size: 18px; color: var(--ink-2); max-width: 34em; }

/* One morning, as a line of events */
.morning { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: clamp(40px, 6vw, 72px); }
.morning::before { content: ""; position: absolute; left: 0; right: 0; top: 43px; height: 2px; background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 52%, var(--good) 62%, var(--good) 100%); opacity: 0.55; border-radius: 2px; }
.morning li { position: relative; padding-right: 20px; }
.morning time { display: block; font: 600 20px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.morning i { display: block; position: relative; width: 16px; height: 16px; margin: 16px 0 20px; border-radius: 50%; background: var(--page); border: 2px solid var(--accent); }
.morning li.main i { background: var(--accent); box-shadow: 0 0 0 6px rgba(255, 154, 46, 0.2); }
.morning li.good i { background: var(--good); border-color: var(--good); }
.morning h3 { font: 600 17px/1.3 var(--text); }
.morning p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.aside { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-3); max-width: 46em; }

/* Missions */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.card { padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card .tile { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 28px; }
.card .tile svg { width: 30px; height: 30px; }
.t-wake { background: #FFEDB8; color: #7A4F00; } .t-plan { background: #D5E7FF; color: #1A57A8; }
.t-mind { background: #E7DFFC; color: #5338AE; } .t-body { background: #FFE1D0; color: #A93C14; }
@media (prefers-color-scheme: dark) {
  .t-wake { background: rgba(255, 214, 102, 0.16); color: #FFD666; } .t-plan { background: rgba(140, 194, 255, 0.18); color: #8CC2FF; }
  .t-mind { background: rgba(185, 168, 255, 0.18); color: #B9A8FF; } .t-body { background: rgba(255, 165, 131, 0.18); color: #FFA583; }
}
.card h3 { font: 600 20px/1.2 var(--display); letter-spacing: -0.02em; }
.card p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.card .plan { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* Task sets */
.setcard { padding: 8px 24px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.setcard header { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 0 14px; border-bottom: 1px solid var(--line); }
.setcard header b { font: 600 20px/1.2 var(--display); letter-spacing: -0.02em; }
.setcard header span { font-size: 14px; color: var(--ink-3); }
.setcard li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.setcard li:last-child { border-bottom: 0; }
.setcard li span { font-size: 14px; color: var(--ink-3); text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 48px; margin-top: clamp(36px, 5vw, 56px); }
.facts h3 { font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; padding-top: 20px; border-top: 2px solid var(--ink); }
.facts p { margin-top: 10px; color: var(--ink-2); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.plan-card { padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.plan-card.pro { background: var(--tint); border-color: transparent; }
.plan-card h3 { font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; }
.price { margin-top: 14px; font: 600 clamp(36px, 4vw, 48px)/1 var(--display); letter-spacing: -0.035em; }
.price small { font: 400 16px/1 var(--text); letter-spacing: 0; color: var(--ink-3); }
.plan-card .or { margin-top: 8px; font-size: 15px; color: var(--ink-3); }
.plan-card ul { margin-top: 24px; }
.plan-card li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.plan-card li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 6px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); rotate: -45deg; }
.fineprint { margin-top: 20px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); max-width: 60em; }

/* Questions */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font: 500 18px/1.35 var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--text); color: var(--ink-3); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 44em; }

/* Last words */
.dawn { text-align: center; padding: clamp(88px, 12vw, 160px) 0; background: radial-gradient(120% 90% at 50% 120%, #FFC98E 0%, #FFE7C7 38%, var(--page) 72%); }
@media (prefers-color-scheme: dark) { .dawn { background: radial-gradient(120% 90% at 50% 125%, #D97C66 0%, #5A3A72 34%, var(--page) 70%); } }
.dawn h2 { font-size: clamp(40px, 7vw, 88px); line-height: 0.98; letter-spacing: -0.045em; }
.dawn p { margin-top: 24px; color: var(--ink-2); }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 28px 0 44px; font-size: 14px; color: var(--ink-3); }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .push { margin-left: auto; }

/* Text pages: help, privacy, terms */
.doc { max-width: 68ch; padding: clamp(40px, 6vw, 72px) 0 96px; }
.doc h1 { font: 600 clamp(40px, 6vw, 64px)/1 var(--display); letter-spacing: -0.04em; }
.doc .date { margin-top: 16px; color: var(--ink-3); font-size: 15px; }
.doc h2 { margin-top: 48px; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.doc p, .doc ul { margin-top: 12px; color: var(--ink-2); }
.doc ul { padding-left: 20px; list-style: disc; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); font-weight: 600; }
.box { margin-top: 32px; padding: 22px 26px; border-radius: 20px; background: var(--tint); }
.box p { margin: 0; color: var(--ink); font-size: 18px; }

/* The sun rises when the reader scrolls. Browsers without this feature show the sun in place. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .sun { animation: sunrise linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    @keyframes sunrise { from { transform: translateY(120px); } to { transform: translateY(-36px); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ringing .halo, .answers.wrong { animation: none; }
  .btn { transition: none; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; }
  .morning { grid-template-columns: 1fr; gap: 0; padding-left: 4px; }
  .morning::before { left: 11px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent) 0%, var(--accent) 52%, var(--good) 62%, var(--good) 100%); }
  .morning li { display: grid; grid-template-columns: 24px 64px 1fr; column-gap: 12px; padding: 0 0 28px; }
  .morning li:last-child { padding-bottom: 0; }
  .morning i { grid-column: 1; grid-row: 1 / span 2; margin: 3px 0 0 4px; }
  .morning time { grid-column: 2; grid-row: 1 / span 2; font-size: 17px; line-height: 1.3; }
  .morning h3, .morning p { grid-column: 3; }
}
@media (max-width: 640px) {
  .top nav a.opt { display: none; }
  .top nav { gap: 18px; }
  .cards, .plans { grid-template-columns: 1fr; }
  .card .tile { margin-bottom: 20px; }
  footer .push { margin-left: 0; }
}

/* ---------- Version 1.1 of the home page (2026-11-22) ---------- */

/* Launch switch: <html data-live="false"> hides the App Store badge. "true" shows it. */
.store { display: none; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 12px; background: #000000; color: #FFFFFF; font: 600 16px/1 var(--text); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.store.art { padding: 0; background: none; box-shadow: none; line-height: 0; }
.store img { display: block; height: 52px; width: auto; }
[data-live="true"] .store { display: inline-flex; }
[data-live="true"] .soon { display: none; }
[data-live="false"] .live { display: none; }
[data-live="true"] .hero .btn { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.meta { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* The header stays at the top. It is clear over the sky and solid after the hero. */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.site-head .brand { color: #FFFFFF; }
.site-head nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-head nav a { color: rgba(255, 255, 255, 0.76); text-decoration: none; }
.site-head nav a:hover { color: #FFFFFF; }
.site-head.solid { background: color-mix(in srgb, var(--page) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-head.solid .brand { color: var(--ink); }
.site-head.solid nav a { color: var(--ink-2); }
.site-head.solid nav a:hover { color: var(--ink); }
.site-head .store, [data-live="true"] .site-head .store { display: none; }
.site-head .store img { height: 34px; }
[data-live="true"] .site-head.solid .store { display: inline-flex; min-height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; color: #FFFFFF; }
[data-live="true"] .site-head.solid .store.art { padding: 0; }
.sky { padding-top: 62px; }
section[id] { scroll-margin-top: 72px; }

/* Night to morning */
.band.sunrise { background: var(--sunrise); padding-bottom: clamp(200px, 30vw, 380px); }
.band.sunrise .claim { color: var(--claim-ink); }
.band.sunrise + .band { border-top: 0; }
.band.morning-band { background: var(--morning); }
@media (prefers-color-scheme: dark) { .band.sunrise { padding-bottom: clamp(72px, 10vw, 136px); } .band.sunrise + .band { border-top: 1px solid var(--line); } }

.dayclock { position: fixed; z-index: 30; right: 16px; bottom: 16px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font: 600 14px/1 var(--round); font-variant-numeric: tabular-nums; color: var(--ink); opacity: 0; translate: 0 8px; transition: opacity 0.3s ease, translate 0.3s ease; pointer-events: none; }
.dayclock.show { opacity: 1; translate: 0 0; }

/* One morning: the steps scroll, the phone stays */
.story { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 48px; margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.steps { position: relative; padding-left: 40px; --fill: 10px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 7px; top: 10px; width: 2px; border-radius: 2px; }
.steps::before { bottom: 0; background: var(--line); }
.steps::after { height: var(--fill); max-height: calc(100% - 10px); background: linear-gradient(180deg, var(--accent), var(--accent) 60%, var(--good)); transition: height 0.45s ease; }
.steps li { position: relative; min-height: 44vh; transition: opacity 0.3s ease; }
.steps li:last-child { min-height: 30vh; }
.steps li::before { content: ""; position: absolute; z-index: 1; left: -40px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--page); border: 2px solid var(--accent); transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.steps li.good::before { border-color: var(--good); }
.steps li.on::before, .steps li.past::before { background: var(--accent); }
.steps li.good.on::before, .steps li.good.past::before { background: var(--good); }
.steps li.on::before { box-shadow: 0 0 0 6px rgba(255, 154, 46, 0.2); }
.steps li.good.on::before { box-shadow: 0 0 0 6px var(--good-soft); }
.js .steps li { opacity: 0.36; }
.js .steps li.on { opacity: 1; }
.steps time { display: block; font: 600 20px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.steps li.good time { color: var(--good); }
.steps h3 { margin-top: 10px; font: 600 clamp(22px, 2.6vw, 30px)/1.15 var(--display); letter-spacing: -0.025em; }
.steps p { margin-top: 8px; font-size: 17px; color: var(--ink-2); max-width: 26em; }
.stick { position: sticky; top: 96px; display: grid; justify-items: center; }
.phone.small { width: 250px; padding: 7px; border-radius: 44px; }
.phone.small .screen { border-radius: 37px; }
.phone.small .screen::before { top: 9px; width: 70px; height: 20px; }
.sview { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 48px 16px 18px; text-align: center; opacity: 0; transition: opacity 0.35s ease; }
.sview.on { opacity: 1; }
.sview .grow { flex: 1; min-height: 6px; }
.sview .mascot { width: 96px; height: 96px; margin: 4px auto 10px; flex: none; }
.sview .mascot svg { left: 10px; top: 26px; width: 76px; height: 47px; }
.sview .p-time { font-size: 46px; }
.sview .p-btn { display: grid; place-items: center; min-height: 42px; font-size: 14px; }
.sview .p-link { display: grid; place-items: center; min-height: 32px; }
.sview .problem { margin: 28px 0 16px; font-size: 38px; }
.sview .answers span { display: grid; place-items: center; min-height: 48px; border: 1px solid rgba(242, 240, 250, 0.12); border-radius: 14px; background: #1D2242; font: 600 18px/1 var(--round); }
.sview .answers span.hit { background: #7FE0B0; color: #12152B; border-color: transparent; }
.sview .check { width: 76px; height: 76px; margin: 14px auto 14px; box-shadow: 0 0 0 12px rgba(127, 224, 176, 0.14); flex: none; }
.sview .check svg { width: 36px; height: 36px; }
.sview .stats b { font-size: 17px; }
.sview .stats span { font-size: 9.5px; }

/* Mission cards: a small picture of the proof */
.card { cursor: pointer; transition: translate 0.2s ease; }
.card.play { translate: 0 -3px; }
.card .viz { position: relative; display: grid; place-items: center; align-content: center; height: 88px; margin-bottom: 24px; border-radius: 18px; overflow: hidden; }
.viz b { font: 600 28px/1 var(--round); font-variant-numeric: tabular-nums; }
.viz small { margin-top: 4px; font-size: 12px; opacity: 0.8; }
.viz .ph { width: 26px; height: 46px; border: 3px solid currentColor; border-radius: 8px; }
.viz .code { width: 96px; height: 40px; background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px, currentColor 6px 7px, transparent 7px 11px, currentColor 11px 13px, transparent 13px 15px); }
.viz .scan { position: absolute; left: 18%; right: 18%; top: 24%; height: 2px; border-radius: 2px; background: #E5484D; opacity: 0; }
.card.play .ph { animation: tilt 0.5s ease-in-out infinite; }
.card.play .scan { opacity: 1; animation: scan 1.1s ease-in-out infinite alternate; }
@keyframes tilt { 25% { rotate: -13deg; } 75% { rotate: 13deg; } }
@keyframes scan { to { top: 74%; } }

/* Version 1.1 features */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.feat { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.feat h3 { font: 600 19px/1.2 var(--display); letter-spacing: -0.02em; }
.feat p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.feat .thumb { flex: none; width: 78px; border-radius: 15px; border: 3px solid #05060F; overflow: hidden; background: #05060F; }
.feat .thumb img { display: block; width: 100%; height: auto; }
.feat .mini { flex: none; width: 78px; padding-top: 6px; }
.feat .mini small { display: block; margin-top: 8px; font-size: 11px; color: var(--ink-3); }
.dots7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dots7 i { aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
.dots7 i.r { background: none; border: 1.5px dashed var(--ink-3); }
.weekbars { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.weekbars i { flex: 1; border-radius: 3px; background: var(--accent); }
.weekbars i.r { background: var(--off); }
.js [data-reveal] .feat { opacity: 0; translate: 0 16px; transition: opacity 0.5s ease, translate 0.5s ease; }
.js [data-reveal].in .feat { opacity: 1; translate: 0 0; }
[data-reveal].in .feat:nth-child(2) { transition-delay: 0.08s; }
[data-reveal].in .feat:nth-child(3) { transition-delay: 0.16s; }
[data-reveal].in .feat:nth-child(4) { transition-delay: 0.24s; }
[data-reveal].in .feat:nth-child(5) { transition-delay: 0.32s; }
[data-reveal].in .feat:nth-child(6) { transition-delay: 0.4s; }

/* Real screens of the app */
.strip { display: flex; gap: 24px; margin-top: clamp(32px, 4vw, 56px); padding: 8px max(24px, calc((100vw - 1120px) / 2)) 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(24px, calc((100vw - 1120px) / 2)); scrollbar-width: thin; }
.strip figure { flex: none; margin: 0; width: min(236px, 62vw); scroll-snap-align: start; }
.shot { border-radius: 38px; border: 7px solid #05060F; background: #05060F; overflow: hidden; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; border-radius: 31px; }
.strip figcaption { margin-top: 14px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }

/* Tester quotes (hidden until there are real ones) */
.quotes blockquote { margin: 0 0 28px; padding-left: 20px; border-left: 3px solid var(--accent); }
.quotes p { font: 500 22px/1.35 var(--display); letter-spacing: -0.015em; }
.quotes footer { margin-top: 8px; border: 0; font-size: 14px; color: var(--ink-3); }

/* Last words: the sun is up */
.dawn { position: relative; overflow: hidden; padding-bottom: clamp(190px, 24vw, 300px); }
.dawn .wrap { position: relative; z-index: 1; }
.dawn .actions { margin-top: 28px; }
.sunup { position: absolute; left: 50%; bottom: 0; width: min(460px, 86vw); aspect-ratio: 1; border-radius: 50%; translate: -50% 62%; background: radial-gradient(circle closest-side, #FFF8E6 0%, #FFE2A8 55%, #FFC477 100%); box-shadow: 0 0 120px 40px rgba(255, 196, 120, 0.45); }
.js .sunup { translate: -50% 100%; transition: translate 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .dawn.in .sunup { translate: -50% 62%; }

@media (prefers-reduced-motion: reduce) {
  .site-head, .steps::after, .steps li, .steps li::before, .sview, .card, .dayclock { transition: none; }
  .js [data-reveal] .feat { opacity: 1; translate: 0 0; transition: none; }
  .js .sunup { translate: -50% 62%; transition: none; }
  .card.play .ph, .card.play .scan { animation: none; }
  .dayclock { display: none; }
}

@media (max-width: 900px) {
  .feats { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .stick { order: -1; top: 62px; z-index: 2; margin-inline: -24px; padding: 10px 0 22px; background: linear-gradient(180deg, var(--page) 88%, transparent); }
  .stick .phone.small { transform: scale(0.6); transform-origin: top center; margin-bottom: -208px; }
  .steps { margin-top: 16px; }
  .steps li { min-height: 38vh; }
}
@media (max-width: 640px) {
  .site-head nav a.opt { display: none; }
  .site-head nav { gap: 18px; }
  .dayclock { right: 12px; bottom: 12px; }
}
