/* Moonap website: every page loads this file (scripts/website-shell.js). It styles the header, the footer and the other
   shared parts, and the whole of the home page and the query pages. The Academy, privacy, terms, contact and 404 pages
   add styles.css for their text. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body { margin: 0; } img { max-width: 100%; } [hidden] { display: none !important; }
:root {
  color-scheme: dark; /* single night look by choice: the site and the app are dark only */
  --night: #181534;
  --night-mid: #221E50;
  --night-card: #2B2858;
  --night-raised: #36336C;
  --line: #3A3770;
  --moonlight: #EFEFEF;
  --text-2: #D9D8EA;
  --muted: #AEABC7;
  --brand: #615AEC;
  --brand-text: #A5A1FA;
  --lilac: #D2B0FA;
  --star: #FECE53;
  --snore: #A453F0;
  --snore-soft: #D2B0FA;
  --talk: #5FA9FF;
  --cough: #FFB27A;
  --mint: #00E4AE;
  --font: 'Nunito', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-md: 16px;
  --r-lg: 28px;
}
*, *::before, *::after { box-sizing: border-box; }
body { background: var(--night); color: var(--moonlight); font-family: var(--font); font-size: 17px; line-height: 1.55; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h2, h3, .title { text-wrap: balance; }
a { color: var(--brand-text); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.accent { color: var(--lilac); }

/* ---- header ---- */
.head .wrap { display: flex; align-items: center; gap: 24px; padding-block: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: var(--moonlight); text-decoration: none; margin-right: auto; padding-block: 4px; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.head-nav { display: flex; align-items: center; gap: 22px; }
.head-nav a { color: var(--text-2); font-weight: 800; font-size: 16px; text-decoration: none; padding-block: 11px; }
.head-nav a:hover { color: var(--moonlight); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 100px; background: var(--brand); color: #F6F6F6; font-weight: 800; font-size: 16px; text-decoration: none; }
.btn:hover { background: #544DE0; }
.btn-outline { background: transparent; box-shadow: inset 0 0 0 2px var(--brand-text); color: var(--moonlight); }
.btn-outline:hover { background: var(--night-raised); }

/* ---- store buttons: the one action of the page ---- */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stores a { display: block; border-radius: 10px; }
.stores img { display: block; height: 52px; width: auto; }
[data-platform="ios"] .stores [data-store="android"], [data-platform="android"] .stores [data-store="ios"] { display: none; }
[data-platform] .stores img { height: 60px; }
.lock { display: flex; align-items: center; gap: 8px; margin: 14px 0 0 14%; font-size: 15px; font-weight: 700; color: var(--text-2); }
.lock svg { width: 18px; height: 18px; flex: none; color: var(--mint); }
.free { font-size: 15px; font-weight: 800; color: var(--text-2); margin-top: 12px; }

/* ---- hero ---- */
.hero { background: radial-gradient(60% 70% at 78% 40%, #2A1F5C 0%, transparent 70%); }
.hero .wrap { padding-block: 24px 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-text); }
.hero .title { font-size: clamp(38px, 6vw, 66px); line-height: 1.06; font-weight: 900; margin-top: 14px; }
.hero .sub { font-size: 20px; line-height: 1.45; font-weight: 600; color: var(--text-2); margin-top: 18px; max-width: 30em; }
.hero .stores { margin-top: 28px; }
.rating { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 20px; font-size: 15px; font-weight: 700; color: var(--muted); }
.rating .stars, .stars { color: var(--star); }
.qr { display: flex; align-items: center; gap: 14px; margin-top: 24px; color: var(--muted); font-size: 14px; font-weight: 700; line-height: 1.35; }
.qr img { width: 84px; height: 84px; border-radius: 8px; background: #fff; padding: 4px; }
.visual { position: relative; max-width: 480px; width: 100%; margin-inline: auto; }
.scene { border-radius: 200px 200px var(--r-lg) var(--r-lg); overflow: hidden; background: #1B1740; width: 74%; }
.scene svg { display: block; width: 100%; height: auto; }

.sc-eq { transform-box: fill-box; transform-origin: center; animation: eq 1.3s ease-in-out infinite; }
@keyframes eq { 50% { transform: scaleY(0.45); } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } .visual { max-width: 420px; } .qr { display: none; } .hero .hero-rating { margin-top: 10px; font-size: 14px; }
  .hero .wrap { padding-block: 8px 40px; } .hero .title { margin-top: 8px; } .hero .sub { font-size: 16px; line-height: 1.5; margin-top: 8px; } .hero .stores { margin-top: 18px; } .free { margin-top: 8px; }
  .eyebrow { font-size: 11.5px; letter-spacing: 0.06em; }
  .scene { width: 62%; height: 150px; margin-inline: auto; border-radius: 120px 120px 0 0; } .scene svg { margin-top: -52px; }
  .morning { margin: -34px 0 0; } .lock { margin-left: 0; justify-content: center; } }

/* ---- proof strip ---- */
.proof { background: var(--night-mid); }
.proof .wrap { padding-block: 28px; }
.proof-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; }

.stats { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.stats strong { display: block; font-size: 30px; line-height: 1.1; font-weight: 900; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-weight: 700; font-size: 14px; }
.proof blockquote { flex: 1; min-width: 260px; font-size: 19px; font-weight: 600; line-height: 1.4; }
.proof cite { display: block; font-style: normal; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---- sections ---- */
section > .wrap { padding-block: 60px; }
.sec-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; font-weight: 900; }

/* ---- shared story parts: a playable moment ---- */
.clip { display: flex; align-items: center; gap: 12px; background: var(--night-raised); border-radius: 100px; padding: 8px 18px 8px 8px; font-size: 15px; font-weight: 700; color: var(--text-2); }
.clip b { color: var(--moonlight); font-weight: 900; margin-right: 4px; }
.clip-t { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.play { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); flex: none; position: relative; }
.play::after { content: ""; position: absolute; left: 16px; top: 12px; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; margin-left: auto; min-width: 0; overflow: hidden; }
.wave i { width: 3px; border-radius: 2px; background: var(--talk); flex: none; }

/* ---- hero morning panel ---- */
.morning { position: relative; margin: -64px 0 0 14%; background: var(--night-card); border: 1px solid var(--night-raised); border-radius: 24px; padding: 18px 18px 16px; box-shadow: 0 22px 50px rgba(8, 6, 28, 0.65); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.m-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-head strong { font-size: 19px; font-weight: 900; color: var(--moonlight); }
.strip { display: block; width: 100%; height: auto; }
.kinds { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; font-weight: 700; color: var(--text-2); }
.kinds li::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; background: var(--snore); }
.kinds .k-talk::before { background: var(--talk); }
.kinds .k-cough::before { background: var(--cough); }
.kinds b { color: var(--moonlight); font-weight: 900; }

/* ---- the five questions ---- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.tile { background: var(--night-card); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); border-radius: var(--r-lg); padding: 14px 14px 26px; grid-column: span 2; display: flex; flex-direction: column; }
.t-snore, .t-talk { grid-column: span 3; }
.tile .q { font-size: 15px; font-weight: 800; color: var(--lilac); margin-top: 20px; padding-inline: 12px; }
.tile h3 { font-size: 24px; line-height: 1.18; font-weight: 900; margin-top: 4px; padding-inline: 12px; }
.tile .a { color: var(--text-2); margin-top: 8px; padding-inline: 12px; max-width: 34em; }
.viz { border-radius: 18px; background: linear-gradient(160deg, #1B1740, #2A2459); height: 250px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 22px; }
.t-snore .big { flex: none; }
.cap { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.num { font-size: 96px; line-height: 0.95; font-weight: 900; color: var(--moonlight); font-variant-numeric: tabular-nums; word-spacing: -0.18em; }
.num small { font-size: 26px; margin-left: 0; color: var(--snore-soft); }
.cap2 { font-size: 15px; font-weight: 700; color: var(--text-2); margin-top: 6px; }
.trend { flex: 1; min-width: 0; max-width: 250px; display: grid; gap: 6px; }
.tag { justify-self: end; background: var(--snore-soft); color: #2A1F5C; font-size: 13px; font-weight: 900; border-radius: 100px; padding: 3px 10px; }
.week { display: flex; align-items: flex-end; gap: 7px; height: 120px; }
.week i { flex: 1; border-radius: 7px 7px 3px 3px; background: var(--snore); opacity: 0.55; }
.week i:last-child { background: var(--snore-soft); opacity: 1; }
.days { display: flex; gap: 7px; font-size: 12px; font-weight: 800; color: var(--muted); }
.days span { flex: 1; text-align: center; }
.days span:last-child { color: var(--moonlight); }
.t-talk .viz { flex-direction: column; gap: 0; padding-bottom: 18px; }
.moonviz { height: 170px; aspect-ratio: 340 / 320; margin-top: -6px; }
.moonviz svg { display: block; width: 100%; height: 100%; overflow: visible; }

.dawn { background: linear-gradient(#2A1F5C 0%, #7A4FB0 45%, #E48AB0 72%, #F6B89E 100%); height: 200px; padding: 0; }
.dawn svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.clock { position: relative; font-size: 64px; font-weight: 900; line-height: 1; color: #fff; margin-top: -70px; font-variant-numeric: tabular-nums; text-shadow: 0 2px 18px rgba(42, 31, 92, 0.5); }
.clock small { font-size: 20px; margin-left: 0; }
.t-fall .viz, .t-week .viz { height: 200px; flex-direction: column; gap: 10px; }
.rain { width: 84px; height: 84px; flex: none; }
.rain svg { display: block; width: 100%; height: 100%; }
.fade { display: flex; align-items: center; gap: 5px; height: 44px; align-self: stretch; justify-content: center; }
.fade i { width: 5px; border-radius: 3px; background: var(--mint); flex: none; }
.fade-cap { display: flex; justify-content: space-between; align-self: stretch; font-size: 13px; font-weight: 800; color: var(--muted); }
.rings { display: flex; gap: 8px; align-self: stretch; justify-content: center; }
.rings span { --p: 50; flex: 1; max-width: 40px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: var(--muted); background: radial-gradient(closest-side, #221F4E 76%, transparent 78%), conic-gradient(var(--brand-text) calc(var(--p) * 1%), #3A3776 0); }
.rings .today { color: var(--moonlight); background: radial-gradient(closest-side, #221F4E 76%, transparent 78%), conic-gradient(var(--lilac) calc(var(--p) * 1%), #3A3776 0); }

.again { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 32px; }
.again p { font-size: 20px; font-weight: 800; }
.t-talk .viz { flex-direction: row; gap: 18px; padding: 18px 22px; }
.moonviz { height: 150px; margin: 0; flex: none; }
.named { display: grid; gap: 8px; flex: 1; min-width: 0; max-width: 260px; }
.named li { display: flex; align-items: center; gap: 10px; background: #3A3776; border-radius: 100px; padding: 6px 16px 6px 6px; font-size: 14px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.named b { font-weight: 900; color: var(--moonlight); }
.named b::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--talk); }
.named .k-cough b::before { background: var(--cough); }
.named .k-sneeze b::before { background: var(--mint); }
.named .play { width: 32px; height: 32px; }
.named .play::after { left: 13px; top: 9px; border-left-width: 10px; border-top-width: 7px; border-bottom-width: 7px; }
.named li span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.ring { position: relative; display: grid; justify-items: center; gap: 8px; width: 100%; padding: 0 22px; }
.clock { margin-top: 0; }
.slide { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 230px; background: rgba(24, 21, 52, 0.55); border-radius: 100px; padding: 5px 16px 5px 5px; font-size: 14px; font-weight: 800; color: #fff; }
.slide span { width: 34px; height: 34px; border-radius: 50%; background: #fff; flex: none; position: relative; }
.slide span::after { content: ""; position: absolute; left: 12px; top: 11px; width: 8px; height: 8px; border-right: 3px solid var(--brand); border-top: 3px solid var(--brand); transform: rotate(45deg); }
.snooze { font-size: 13px; font-weight: 800; color: #fff; background: rgba(24, 21, 52, 0.55); border-radius: 100px; padding: 4px 14px; }
.rain { width: 96px; height: 96px; }
.fade { height: 52px; gap: 6px; flex: none; }
.t-wake .viz, .t-fall .viz, .t-week .viz { height: 236px; }
.dawn { align-items: flex-start; }
.ring { padding-top: 26px; }
.fade i { width: 6px; }
.avg { text-align: center; }
.avg .num { font-size: 52px; }
.avg .num small { font-size: 22px; margin: 0 8px 0 2px; }
.avg .cap2 { margin-top: 2px; font-size: 14px; }
.rings span { max-width: 44px; font-size: 13px; }
@media (max-width: 980px) { .tile, .t-snore, .t-talk { grid-column: span 6; } .t-wake, .t-fall, .t-week { grid-column: span 3; } }
@media (max-width: 700px) { .bento { grid-template-columns: minmax(0, 1fr); } .tile, .t-snore, .t-talk, .t-wake, .t-fall, .t-week { grid-column: auto; } }
@media (max-width: 460px) { .t-snore .viz { flex-direction: column; height: auto; gap: 18px; align-items: stretch; } .trend { max-width: none; } .num { font-size: 80px; } .week { height: 90px; } .morning { margin-left: 0; padding: 16px 14px 14px; } .m-head { flex-wrap: wrap; gap: 2px 12px; } .kinds { font-size: 14px; gap: 4px 12px; } .clip { font-size: 14px; padding-right: 14px; } }

/* ---- tonight ---- */
.tonight { background: var(--night-mid); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--night-raised); color: var(--lilac); font-weight: 900; }
.steps h3 { font-size: 21px; font-weight: 900; margin-top: 12px; }
.steps p { color: var(--muted); margin-top: 4px; max-width: 26em; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* ---- reviews ---- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 48px; margin-top: 28px; }
.quotes blockquote { font-size: 19px; line-height: 1.45; font-weight: 600; margin-top: 4px; }
.quotes figcaption { color: var(--muted); font-weight: 700; font-size: 14px; margin-top: 8px; }
.quotes .stars { font-size: 14px; letter-spacing: 2px; }
@media (max-width: 900px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* ---- faq ---- */
.faq details { border-bottom: 1px solid var(--line); max-width: 760px; }
.faq summary { padding: 16px 0; font-weight: 800; font-size: 18px; cursor: pointer; }
.faq details p { color: var(--text-2); padding-bottom: 16px; max-width: 65ch; }
.faq .list { margin-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; align-items: start; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- ending ---- */
.ending { background: linear-gradient(var(--night), #211A48); text-align: center; }
.ending .wrap { padding-block: 72px 40px; }
.ending .title { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; font-weight: 900; }

.ending .stores { justify-content: center; margin-top: 28px; }

/* ---- sticky install bar (phones) ---- */
.sticky { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--night-card); border-top: 1px solid var(--line); align-items: center; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sticky img { width: 40px; height: 40px; border-radius: 10px; }
.sticky div { flex: 1; min-width: 0; line-height: 1.25; }
.sticky strong { display: block; font-weight: 900; }
.sticky span { display: block; font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .sticky { display: flex; } }

/* A hero card is one link: the card's call to action, stretched over the card. */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.yours { font-size: 14px; font-weight: 800; color: var(--brand-text); text-align: right; }
.stores img { border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); }
.named .play { background: transparent; box-shadow: inset 0 0 0 2px var(--brand-text); }
.named .play::after { border-left-color: var(--brand-text); }
.quotes .ph { display: none; }
.proof .stats strong { font-size: 40px; }
.t-snore .tag { justify-self: start; display: inline-block; margin-top: 12px; }
.week { position: relative; height: 150px; }
.week .usual { position: absolute; left: -4px; right: -4px; bottom: 60%; border-top: 2px dashed var(--muted); font-size: 11px; font-weight: 800; color: var(--muted); text-align: right; line-height: 1; padding-top: 3px; pointer-events: none; }
.again { justify-content: flex-start; gap: 16px 28px; }
.rings span { background: radial-gradient(closest-side, #221F4E 62%, transparent 65%), conic-gradient(var(--brand-text) calc(var(--p) * 1%), #3A3776 0); }
.rings .today { background: radial-gradient(closest-side, #221F4E 62%, transparent 65%), conic-gradient(var(--lilac) calc(var(--p) * 1%), #3A3776 0); }
.faq summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 12px; align-items: start; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 900; color: var(--brand-text); text-align: center; }
.faq details[open] summary::after { content: "–"; }

.ending .free { margin-top: 12px; }
.medical { font-size: 13px; color: var(--muted); margin: 22px auto 0; max-width: 62ch; }

@media (max-width: 720px) {
  .head .btn { display: none; }
  .quotes .ph { display: block; }
  .proof blockquote { display: none; }
  .proof .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .proof .stats strong { font-size: 22px; } .proof .stats span { font-size: 12px; }
  .proof .wrap { padding-block: 20px; }
  .again .stores { display: none; }
  .t-wake .viz, .t-fall .viz, .t-week .viz { height: auto; min-height: 0; padding-block: 22px; }
  .dawn { min-height: 210px !important; }
  .scene { height: 172px; } .scene svg { margin-top: -40px; }
  .ending .wrap { padding-block: 56px 32px; }
}

/* ---- facts and how it works ---- */
#how .steps p { color: var(--text-2); max-width: 30em; }

.facts-table { margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.facts-table div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts-table dt { color: var(--muted); font-weight: 800; font-size: 14px; padding-top: 2px; }
.facts-table dd { margin: 0; font-weight: 700; color: var(--moonlight); }
@media (max-width: 860px) { .facts-table { grid-template-columns: minmax(0, 1fr); } .facts-table div { grid-template-columns: 112px minmax(0, 1fr); } .hero .title { font-size: 31px; line-height: 1.1; } }
.fade i.dot { height: 5px !important; width: 5px; border-radius: 50%; opacity: 0.3; }
.again-trust { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.slide { margin-inline: auto; }
#facts .sec-title { margin-top: 0; }
.facts-lead { color: var(--text-2); max-width: 36em; margin-top: 14px; }
@media (max-width: 460px) { .m-head { flex-direction: column; align-items: flex-start; gap: 0 !important; } .named { padding-top: 22px; } }
.allfacts { margin-top: 4px; } .allfacts summary { cursor: pointer; padding: 14px 0; font-weight: 800; color: var(--brand-text); } .allfacts .facts-table { margin-top: 0; }
@media (min-width: 861px) { .hero .title { font-size: clamp(36px, 3.9vw, 52px); } .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); } .m-head { flex-wrap: nowrap; white-space: nowrap; } .kinds { flex-wrap: nowrap; white-space: nowrap; gap: 6px 14px; } .again { justify-content: center; text-align: center; flex-direction: column; } }
.medical { text-wrap: balance; }
.clip .clip-t { flex: none; } .clip .wave { flex: 0 1 90px; min-width: 0; }
.m-head { flex-direction: column; align-items: flex-start; gap: 0 !important; }
.steps h3 { line-height: 1.3; } #how .steps h3 { min-height: 2.6em; }
@media (min-width: 900px) { .faq-grid { display: block; } .faq .list { columns: 2; column-gap: 48px; margin-top: 24px; } .faq details { break-inside: avoid; max-width: none; } }
@media (max-width: 720px) { #how .steps h3 { min-height: 0; } }
.rings span { background: radial-gradient(closest-side, #221F4E 62%, transparent 65%), conic-gradient(var(--brand-text) calc(var(--p) * 1%), #2A2759 0); }
.rings .today { background: radial-gradient(closest-side, #221F4E 62%, transparent 65%), conic-gradient(var(--lilac) calc(var(--p) * 1%), #2A2759 0); }
#how .steps h3 { max-width: 15em; }
.tile .a { text-wrap: pretty; }
.named li.playing { padding: 10px 16px 10px 10px; align-items: center; }
.named li.playing .play { width: 40px; height: 40px; background: var(--brand); box-shadow: none; flex: none; }
.named li.playing .play::after { left: 16px; top: 12px; border-left: 12px solid #fff; border-top-width: 8px; border-bottom-width: 8px; }
.named .now { flex: 1; min-width: 0; display: grid; gap: 4px; } .named .now p { display: flex; gap: 8px; align-items: baseline; }
.named .now .wave { height: 20px; margin: 0; justify-content: flex-start; flex: none; } .named .wave i.dim { opacity: 0.35; }

.goal { align-self: stretch; } .goalbar { height: 8px; border-radius: 4px; background: #2A2759; position: relative; }
.goalbar i { position: absolute; inset: 0 10.4% 0 0; border-radius: 4px; background: var(--lilac); } .goalbar::after { content: ""; position: absolute; right: 0; top: -4px; width: 2px; height: 16px; background: #fff; border-radius: 1px; }
.goal-times { display: flex; font-size: 12px; font-weight: 800; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; } .goal-times .wake { margin-left: auto; margin-right: 12px; color: var(--text-2); } .goal-times .g { color: var(--moonlight); }
.rings .today { outline: 2px solid #fff; outline-offset: 2px; }
.t-week .viz { height: auto !important; min-height: 236px; }
.foot-stores { font-size: 14px; color: var(--muted); margin-top: 16px; } .foot-stores a { display: inline-block; padding: 12px 4px; color: var(--text-2); }
.named li { min-width: 0; } .named .now .wave { overflow: hidden; }
@media (max-width: 560px) { .named { width: 100%; }  }
.named { padding-top: 0 !important; }

.ending .rating { margin-top: 36px; }
.avg .num small { margin: 0; } .avg .num { word-spacing: -0.2em; }
@media (max-width: 720px) {
  .tile { padding-top: 22px; }
  .tile .q { order: 1; margin-top: 0; } .tile h3 { order: 2; } .tile .viz { order: 3; margin-top: 16px; } .tile .a { order: 4; margin-top: 14px; }
  .t-snore .viz { gap: 14px; } .week { height: 100px; } .num { font-size: 72px; }
  .t-talk .moonviz { display: none; } .t-talk .viz { padding: 16px; }
  .dawn { min-height: 184px !important; } .ring { padding-top: 16px; gap: 6px; } .clock { font-size: 56px; }
  .again { justify-content: center; text-align: center; } .again .stores { display: flex; }
  .proof .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quotes .dk { display: none; }
    
  section.tonight > .wrap { padding-block: 44px; }
}
@media (max-width: 460px) { .m-head { flex-wrap: nowrap; } .m-head span { font-size: 12.5px; white-space: nowrap; } .m-head strong { font-size: 17px; } }
@media (max-width: 560px) { .t-talk .viz { height: auto; flex-direction: column; gap: 6px; } .moonviz { height: 110px; } .named { max-width: none; align-self: stretch; flex: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- real screens: proof that the pictures above are the app ---- */
.phones-cap { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-text); margin-top: 44px; }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 28px; margin-top: 20px; }
.phones figure:has(img.cut) { align-self: flex-end; }
.phones figure { flex: 0 1 270px; margin: 0; }
.phones img { display: block; width: 100%; height: auto; border-radius: 30px; border: 6px solid #0F0D26; background: #0F0D26; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 18px 40px rgba(8, 6, 28, 0.55); }
.phones img.cut { border-radius: 30px 30px 14px 14px; }
.phones figcaption { margin-top: 14px; text-align: center; font-size: 15px; font-weight: 800; color: var(--text-2); }
.phones figcaption span { text-wrap: balance; display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
#jobs .phones + .again { margin-top: 44px; }
@media (min-width: 761px) { .phones-cap { text-align: center; } .spoke .phones figure { flex-basis: 236px; } }
@media (max-width: 760px) {
  .phones-cap { margin-top: 32px; }
  .phones { justify-content: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; margin-inline: -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phones figure { flex: 0 0 58%; scroll-snap-align: start; }
  .phones img { border-radius: 24px; border-width: 5px; }
  .phones figcaption { text-align: left; padding-left: 4px; }
}
.hero h1 { font: inherit; } .hero h1 > .eyebrow, .hero h1 > .title { display: block; }
@media (min-width: 721px) { .head { position: sticky; top: 0; z-index: 6; background: rgba(24, 21, 52, 0.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); } .head .wrap { padding-block: 10px; } }
@media (max-width: 720px) { .proof .stats { display: block; } .proof .stats li { display: flex; align-items: baseline; gap: 10px; } .proof .stats strong { font-size: 28px; } .proof .stats span { font-size: 15px; } }

/* ---- query pages ---- */
.spoke .hero-grid { align-items: center; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.spoke .hero .tile { grid-column: auto; padding: 16px; }
.spoke .hero .title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; }
.spoke .hero .sub { font-size: 19px; max-width: 32em; }
.spoke .hero .more { color: var(--muted); font-size: 15px; max-width: 46em; margin-top: 18px; }
.spoke .hero .viz { height: auto; min-height: 280px; }
.spoke .hero .viz:has(.rings) { flex-direction: column; gap: 14px; min-height: 240px; }
.spoke .hero .viz:has(.rings) .rings span { flex: 0 0 44px; }
.spoke .t-snore .trend { max-width: 300px; }
.clip.under { margin-top: 12px; background: #3A3776; }
.first-night { flex-direction: column; align-items: stretch; gap: 12px; }
.first-night .big { text-align: left; }
.updated { font-size: 13px; color: var(--muted); margin-top: 8px; }
.one-quote { max-width: 60em; }
.one-quote blockquote, .research-quote blockquote { font-size: 19px; font-weight: 600; line-height: 1.4; }
.one-quote figcaption, .research-quote figcaption { font-size: 14px; color: var(--muted); font-weight: 700; margin-top: 6px; }
.howto { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; margin-top: 28px; }
.howto li { counter-increment: s; font-weight: 600; color: var(--text-2); }
.howto li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--night-raised); color: var(--lilac); font-weight: 900; margin-bottom: 12px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; margin-top: 24px; }
.cols h3 { font-size: 18px; font-weight: 900; }
.cols ul { display: grid; gap: 8px; margin-top: 12px; }
.cols li { padding-left: 26px; position: relative; color: var(--text-2); }
.cols .yes li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 3px solid var(--mint); border-bottom: 3px solid var(--mint); transform: rotate(-45deg); }
.cols .no li::before { content: "–"; position: absolute; left: 4px; color: var(--muted); font-weight: 900; }
.body { color: var(--text-2); max-width: 36em; margin-top: 16px; }
.labels { display: grid; gap: 8px; margin-top: 16px; color: var(--text-2); }

ul.never { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 48px; max-width: 46em; font-weight: 700; font-size: 18px; }
ul.never li::before { content: "–"; color: var(--muted); font-weight: 900; margin-right: 10px; }

.lock-line { font-size: 15px; font-weight: 700; color: var(--text-2); margin-top: 6px; }
@media (max-width: 860px) {
  .spoke .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .spoke .hero .title { font-size: 29px; } .spoke .hero .sub { font-size: 16px; } .spoke .hero .rating { margin-top: 12px; }
  .spoke .hero .more { margin-top: 12px; }
  .spoke .hero .viz { min-height: 0; }
}
@media (max-width: 700px) {
  .cols, ul.never { grid-template-columns: minmax(0, 1fr); }
  .howto { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .howto li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: center; } .howto li::before { margin: 0; }
}

.spoke .hero-grid { grid-template-areas: "lead art" "more art"; align-items: start; row-gap: 0; }
.lead-wrap { grid-area: lead; align-self: end; } .more-wrap { grid-area: more; } .spoke .hero .tile { grid-area: art; align-self: center; }
.spoke .hero .tile > * { order: 0 !important; margin-top: 0; }
.spoke .hero .tile > .clip.under { margin-top: 12px; }
.one-quote blockquote { display: block !important; }
@media (max-width: 860px) { .spoke .hero-grid { grid-template-areas: "lead" "art" "more"; row-gap: 18px; } }

.spoke .hero .tile { position: relative; }
.spoke .hero .tile { align-self: start; margin-top: 34px; }
.spoke .hero .viz { min-height: 0; padding: 24px; }
.spoke .hero .more { color: var(--text-2); font-size: 17px; }
.spoke .yours { margin-top: 10px; padding-right: 6px; }
.spoke .hero .scene { width: 62%; height: 170px; margin: 0 auto -18px; border-radius: 120px 120px 0 0; position: relative; }
.spoke .hero .scene svg { margin-top: -46px; }
.spoke .hero .viz:has(.rings) .rings span { flex: 1 1 0; max-width: 44px; min-width: 0; }
.free-card { flex-direction: column; align-items: stretch; gap: 14px; }
.free-card ul { display: grid; gap: 10px; }
.free-card li { display: flex; justify-content: space-between; gap: 12px; background: var(--night-raised); border-radius: 14px; padding: 12px 16px; font-weight: 800; }
.free-card li span::before { content: ""; display: inline-block; width: 12px; height: 7px; border-left: 3px solid var(--mint); border-bottom: 3px solid var(--mint); transform: rotate(-45deg) translateY(-3px); margin-right: 12px; }
.free-card b { color: var(--mint); font-weight: 900; }
.spoke .proof .wrap { padding-block: 26px; } .spoke .proof { border-block: 1px solid var(--line); }
.spoke .again { justify-content: flex-start; align-items: center; margin-top: 28px; } .spoke .again .free { margin-top: 0; }
ul.never { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }

@media (max-width: 860px) { .spoke .hero .tile { margin-top: 0; } }
@media (max-width: 700px) { ul.never { grid-template-columns: minmax(0, 1fr); } .spoke .again { flex-direction: column; align-items: flex-start; gap: 8px; } .spoke .again .stores { display: flex; } }

.spoke .again .free { font-size: 15px; font-weight: 800; }
.free-card li { font-size: 16px; padding: 11px 14px; } .free-card { padding: 16px !important; }
.free-card li span { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; } .free-card li span::before { margin: 6px 0 0; }

ul.never { display: flex; flex-wrap: wrap; gap: 10px 12px; } ul.never li { background: var(--night-card); border-radius: 100px; padding: 8px 16px; font-size: 16px; } ul.never li::before { content: none; }
.spoke .ending .title { font-size: clamp(30px, 3.6vw, 46px); }
@media (min-width: 701px) { .howto { grid-template-columns: repeat(6, minmax(0, 1fr)); } .howto li:nth-child(5) { grid-column: span 2; } .howto:has(li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.spoke .hero .tile { align-self: center; margin-top: 0; }
.spoke .hero .viz:has(.rings) { min-height: 0; padding: 24px; gap: 12px; }
.free-card li { padding: 16px 16px; }
.spoke .hero .free { text-wrap: balance; }
@media (min-width: 701px) {
  .howto, .howto:has(li:nth-child(4):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 32px; }
  .howto:has(li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .howto li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; } .howto li::before { margin: 0; }
  .howto li:nth-child(5) { grid-column: span 2; }
}

.howto li { text-wrap: balance; }

.nw { white-space: nowrap; }
.spoke .yours { margin-top: 14px; }
@media (min-width: 701px) {
  .howto, .howto:has(li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 440px)); gap: 20px 56px; }
  .howto li:nth-child(5) { grid-column: auto; }
}

/* ---- owner's call: positive lists only ---- */
.cols.one { grid-template-columns: minmax(0, 1fr); } .cols.one h3 { display: none; } .cols.one ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 48px; margin-top: 0; font-size: 18px; }
@media (max-width: 700px) { .cols.one ul { grid-template-columns: minmax(0, 1fr); } }

/* ---- behaviour shared with the rest of the site (install.js, tracking.js) ---- */
.ending-rating { justify-content: center; }
.foot-legal { font-size: 13px; color: var(--muted); margin-top: 14px; }
.foot-legal button { background: none; border: 0; padding: 12px 0; color: var(--text-2); font-size: 13px; text-decoration: underline; }
/* The phone install bar gives way to the consent banner and to the closing store buttons. */
.has-consent-banner .sticky, .sticky.is-away { display: none; }
/* The QR code is for a computer: a tablet has its store button. */
[data-platform] .qr { display: none; }
.consent-banner { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 20; max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; background: var(--night-card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6); text-align: left; }
.consent-banner p { flex: 1 1 260px; font-size: 14px; }
.consent-banner a { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--brand-text); text-decoration: underline; }
.consent-actions { display: flex; gap: 8px; }
.consent-actions .btn { border: 0; padding: 0 18px; font-size: 15px; }

/* ---- the line above a query page's headline: a way home ---- */
.eyebrow a { display: inline-block; padding-block: 14px; margin-block: -14px; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---- research: what studies say on a query page's subject (and under an Academy article), with its sources ---- */
.research-quote { max-width: 36em; margin-top: 24px; padding-left: 18px; border-left: 3px solid var(--brand-text); }
.research-quote figcaption a { color: var(--muted); }
.sources-title { margin-top: 32px; }
.sources { list-style: decimal; padding-left: 1.4em; margin-top: 8px; max-width: 46em; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.sources li { padding-block: 4px; }
.sources a { color: var(--text-2); }

/* ---- read next: the other pages a query page points to; the research block before it shares its spacing ---- */
.research > .wrap, .related > .wrap { padding-block: 0 60px; }
.related-title, .sources-title { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-text); }
.related-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.related-list a { position: relative; display: grid; align-content: start; gap: 2px; height: 100%; min-height: 44px; padding: 16px 46px 16px 18px; background: var(--night-card); border-radius: var(--r-md); color: var(--text-2); text-decoration: none; }
.related-list strong { font-size: 18px; font-weight: 900; color: var(--moonlight); }
.related-list span { font-size: 15px; line-height: 1.4; }
.related-list a::after { content: "→"; position: absolute; right: 18px; top: 16px; color: var(--brand-text); font-weight: 900; }
.related-list a:hover { background: var(--night-raised); }
@media (max-width: 760px) { .research > .wrap, .related > .wrap { padding-block: 0 44px; } .related-list { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* ---- the Blog's page ---- */
.blog-lead { max-width: 760px; }

/* ---- the talk card on the narrowest phones: the time takes its own line ---- */
@media (max-width: 359px) { .named li.playing .now p { flex-wrap: wrap; row-gap: 0; } }

/* ---- footer: the site's pages in headed groups. It continues the ending's gradient. ---- */
.foot { background: linear-gradient(#211A48, #2A1F5C); text-align: center; }
.foot .wrap { padding-block: 8px 72px; }
.foot-nav { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: 28px 72px; text-align: left; }
.foot-group h3 { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-wrap: wrap; }
.foot-group ul { margin-top: 4px; }
.foot-group a { display: block; padding: 12px 0; font-size: 15px; line-height: 1.35; color: var(--text-2); text-decoration: none; }
.foot-group a:hover { color: var(--moonlight); text-decoration: underline; }
@media (max-width: 760px) { .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 24px 20px; } }
/* The phone install bar covers the bottom of the page. */
@media (max-width: 720px) { .foot .wrap { padding-bottom: 96px; } }
/* The closing store buttons of a page whose text is styled by styles.css. */
main + .ending .title { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; }
main + .ending .wrap { padding-block: 56px 40px; }
.ending-text { color: var(--text-2); max-width: 34em; margin: 10px auto 0; }

/* Moonap's own figures: the hero's share of nights as bars on a track (--w), and the page's findings, each a headline,
   a chart whose bars carry their values and a short "What it means". */
.viz:has(.dist) { gap: 20px; flex-wrap: wrap; }
.dist { flex: 1 1 190px; min-width: 0; max-width: 280px; display: grid; gap: 16px; }
.dist p { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; font-size: 14px; font-weight: 800; color: var(--text-2); }
.dist span { white-space: nowrap; }
.dist b { color: var(--moonlight); font-weight: 900; text-align: right; }
.dist i { grid-column: 1 / -1; height: 10px; border-radius: 6px; background: linear-gradient(var(--snore), var(--snore)) 0 0 / var(--w) 100% no-repeat, rgba(255, 255, 255, 0.08); }
.dist i.loud { background-image: linear-gradient(var(--snore-soft), var(--snore-soft)); }
.finding { max-width: 44em; margin-top: 32px; }
.finding + .finding { margin-top: 56px; }
.finding h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; font-weight: 900; }
.kicker { font-size: 18px; font-weight: 600; color: var(--text-2); margin-top: 8px; }
.chart-title { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-text); margin-top: 22px; }
.bars { display: grid; gap: 10px; margin-top: 12px; }
.bars li { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: 12px; font-weight: 800; background: var(--night-card); }
.bars i { position: absolute; inset: 0 auto 0 0; width: var(--w); z-index: -1; background: rgba(164, 83, 240, 0.55); }
.bars strong { color: var(--moonlight); font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
.finding .note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.takeaway { margin-top: 18px; padding-left: 16px; border-left: 3px solid var(--snore-soft); color: var(--text-2); }
.body.method { margin-top: 48px; font-size: 15px; color: var(--muted); }
@media (max-width: 460px) { .dist { max-width: none; } .bars li { padding: 10px 12px; font-size: 15px; } .kicker { font-size: 16px; } }

/* ---- ad clicks (tracking tags in the URL) hide the blocks of links to other pages: each carries the class nav ---- */
html[data-ad] .nav { display: none; }
html[data-ad] .foot-nav { display: block; }
html[data-ad] .foot-group h3 { text-align: center; }
html[data-ad] .foot-group ul { display: flex; justify-content: center; gap: 28px; }
