/* 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);
  --sky: linear-gradient(180deg, #080A1F 0%, #10153C 26%, #262763 44%, #56397C 57%, #A65577 68%, #EC8866 78%, #FFBE85 88%, #FFE9CC 95%, #FFFBF5 100%);
  --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);
    --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(21, 26, 58, 0.66); }
@media (prefers-color-scheme: dark) { .hint { color: rgba(255, 255, 255, 0.6); } }

/* 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(--ink-3); }
.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; }
}
