/* Morning Unlock. Tokens and rules follow DESIGN.md. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --dawn: #FFF9EC;
  --cream: #FFF3D6;
  --butter: #FDE7A3;
  --noon: #FAD25A;
  --paper: #FFFCF3;
  --ink: #2A1C0D;
  --ink-2: #6A543A;
  --line: rgba(42, 28, 13, .14);
  --sun: #FF9D1E;
  --sun-deep: #F57C14;
  --gold: #B98A2F;
  --leaf: #2DB36A;
  --dusk: #2B2146;
  --night: #1D1733;
  --moon: #F4EBD6;
  --moon-2: #C9BEDF;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;

  --r1: 10px; --r2: 18px; --r3: 28px;
  --shadow: 0 18px 40px -18px rgba(120, 72, 10, .35);

  --h1: clamp(2.5rem, 1.5rem + 4.6vw, 4.6rem);
  --h2: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  --h3: clamp(1.25rem, 1.15rem + .4vw, 1.45rem);
  --gutter: 20px;
  --sec: 72px;
}
@media (min-width: 720px) { :root { --gutter: 40px; --sec: 112px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--dawn);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.sprite { position: absolute; }

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -.022em;
  text-wrap: balance;
}
h1 { font-size: var(--h1); line-height: 1.02; }
h2 { font-size: var(--h2); line-height: 1.08; }
h3 { font-size: var(--h3); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.lede { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 34rem; }
.fine { font-size: .9375rem; line-height: 1.55; color: var(--ink-2); }
.eyebrow { font-size: .9375rem; font-weight: 600; letter-spacing: .01em; color: var(--ink-2); }

.wrap { width: 100%; max-width: calc(1120px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--dawn); padding: 10px 16px; border-radius: var(--r1); }
.skip:focus { top: 12px; }

p a, dd a, .foot-legal a {
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
p a:hover, dd a:hover, .foot-legal a:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--dawn) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.stuck { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; margin-right: auto; min-height: 44px; }
.site-nav { display: none; gap: var(--s6); }
.site-nav a { text-decoration: none; font-size: 1rem; font-weight: 500; color: var(--ink-2); padding: 10px 0; }
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  background: var(--ink); color: var(--dawn); border-radius: 999px;
  text-decoration: none; font-size: 1rem; font-weight: 600;
  transition: transform .15s;
}
.nav-cta:hover { transform: translateY(-1px); }
@media (min-width: 860px) { .site-nav { display: flex; } }

/* ---------- App Store badge ---------- */
.store-badge { display: inline-block; border-radius: 12px; transition: transform .15s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 56px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--dawn) 0%, #FFF1CC 52%, #FFE2A0 100%);
  margin-top: -69px; padding-top: 69px;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; gap: var(--s7);
  padding-top: var(--s7);
}
.hero-copy { position: relative; z-index: 2; max-width: 36rem; }
.hero-copy h1 { margin-top: var(--s3); }
.hero-copy .lede { margin-top: var(--s5); color: var(--ink); opacity: .86; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s4) var(--s5); margin-top: var(--s6); }
.cta-note { font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }

.hero-sun {
  position: absolute; z-index: 0;
  width: 560px; height: 560px;
  left: 50%; margin-left: -280px; bottom: -150px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #FFB940 0%, #FF9A1E 55%, #FF8A1A 100%);
  box-shadow:
    0 0 0 70px rgba(255, 176, 56, .20),
    0 0 0 150px rgba(255, 186, 70, .12),
    0 0 0 240px rgba(255, 196, 90, .07),
    0 0 120px 60px rgba(255, 170, 50, .35);
}
.hero-phone { position: relative; z-index: 1; display: flex; justify-content: center; margin-bottom: -150px; }
.hero-phone .phone { position: relative; z-index: 1; }
.hero-hill { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; width: 100%; height: 70px; fill: var(--cream); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; gap: var(--s6); padding-top: var(--s8); }
  .hero-copy { padding-top: var(--s6); padding-bottom: 200px; }
  .hero-phone { margin-bottom: -110px; }
  .hero-sun { width: 500px; height: 500px; margin-left: -250px; bottom: -110px; }
  .hero-hill { height: 120px; }
}
@media (min-width: 1200px) {
  .hero-sun { width: 640px; height: 640px; margin-left: -320px; bottom: -190px; }
}

/* ---------- Phone and app pieces ---------- */
.phone {
  width: 300px; flex: none;
  padding: 9px;
  background: #1B1511;
  border-radius: 50px;
  box-shadow: 0 0 0 1.5px #4A3D31 inset, 0 40px 70px -30px rgba(90, 50, 0, .55);
}
.phone-screen {
  position: relative;
  height: 632px;
  border-radius: 41px;
  overflow: hidden;
  background: linear-gradient(180deg, #FFF8E4 0%, #FFF1CB 60%, #FBDD85 100%);
  padding: 0 18px;
  font-size: 13px; line-height: 1.3;
}
.statusbar { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 6px 12px 0; font-weight: 700; font-size: 14px; }
.island { position: absolute; left: 50%; top: 11px; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #1B1511; }
.sb-right { display: flex; gap: 5px; align-items: center; }
.sb-wifi { width: 15px; height: 11px; border-radius: 12px 12px 3px 3px; background: var(--ink); clip-path: polygon(50% 100%, 0 28%, 18% 0, 82% 0, 100% 28%); }
.sb-batt { width: 24px; height: 12px; border-radius: 4px; background: var(--ink); }
.app-title { font-size: 23px; font-weight: 700; letter-spacing: -.02em; margin-top: 20px; }

.week { display: flex; justify-content: space-between; margin-top: 16px; padding: 0 2px; }
.week li { display: grid; justify-items: center; gap: 5px; font-size: 9.5px; font-weight: 600; color: var(--ink-2); }
.week b { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: rgba(255, 255, 255, .75); box-shadow: 0 0 0 1px var(--line); }
.week b svg { width: 14px; height: 14px; color: #fff; }
.week .done b { background: var(--gold); box-shadow: none; }
.week .today b { box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 4px var(--gold); }
.week .frozen b { background: #D9ECFA; box-shadow: none; }
.week .frozen b svg { color: #3F8FCB; }

.stats {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 16px; padding: 9px 12px;
  background: rgba(255, 252, 243, .85); border-radius: 12px; box-shadow: 0 0 0 1px var(--line);
  font-size: 11px; color: var(--ink-2); white-space: nowrap;
}
.stats span { display: inline-flex; align-items: center; gap: 5px; }
.stats strong { font-size: 17px; color: var(--ink); line-height: 1; }
.stats svg { width: 15px; height: 15px; }
.stats em { display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-weight: 700; font-size: 10px; color: #3F8FCB; background: #D9ECFA; border-radius: 99px; padding: 2px 6px 2px 4px; }
.stats em svg { width: 10px; height: 10px; }
.c-flame { color: #F0561D; }
.c-gold { color: #E0A21A; }

.home-sun { position: relative; width: 138px; height: 138px; margin: 16px auto 0; filter: drop-shadow(0 0 26px rgba(255, 170, 50, .6)); }
.home-sun svg { width: 100%; height: 100%; }
.verified { position: absolute; right: 18px; bottom: 22px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 3px var(--paper); filter: none; }
.verified svg { width: 16px; height: 16px; color: #fff; }
.pill-quiet { display: flex; align-items: center; gap: 5px; width: max-content; margin: 8px auto 0; padding: 4px 10px; font-size: 10px; font-weight: 600; color: var(--ink-2); background: rgba(255, 252, 243, .7); border-radius: 99px; }
.pill-quiet svg { width: 10px; height: 10px; }
.row-card { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; background: rgba(255, 252, 243, .88); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.row-card strong { display: block; font-size: 12.5px; }
.row-card small { display: block; font-size: 10px; color: var(--ink-2); }
.row-card .chev { width: 12px; height: 12px; margin-left: auto; color: var(--ink-2); opacity: .6; }
.face { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #FFE3B8; }
.face::before { content: ""; position: absolute; left: 8px; top: 10px; width: 3px; height: 3px; border-radius: 50%; background: var(--sun-deep); box-shadow: 9px 0 0 var(--sun-deep); }
.face::after { content: ""; position: absolute; left: 8px; top: 15px; width: 12px; height: 6px; border: 2px solid var(--sun-deep); border-top: 0; border-radius: 0 0 10px 10px; }
.wake-label { text-align: center; margin-top: 14px; font-size: 12px; color: var(--ink-2); }
.wake-time { text-align: center; font-size: 40px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tabbar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-around; align-items: center; height: 50px; background: rgba(255, 252, 243, .92); border-radius: 22px; box-shadow: 0 0 0 1px var(--line); }
.tabbar span { display: grid; place-items: center; width: 44px; height: 36px; border-radius: 14px; color: var(--ink); }
.tabbar svg { width: 20px; height: 20px; }
.tabbar .on { background: #FBE3A2; color: var(--gold); }

/* ---------- Sections ---------- */
section { position: relative; }
.how { background: var(--cream); padding: var(--s8) 0 var(--sec); }
.how > .wrap > h2 { max-width: 14ch; }

.steps { margin-top: var(--s7); display: grid; gap: var(--s7); }
.step { display: grid; gap: var(--s4); }
.step-time {
  font-family: var(--display); font-variation-settings: "SOFT" 100;
  font-size: 1.25rem; font-weight: 600; color: var(--sun-deep);
  display: flex; align-items: center; gap: 10px;
}
.step-time::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(255, 157, 30, .22); flex: none; }
.step-text p { margin-top: var(--s3); color: var(--ink-2); max-width: 30rem; }
.frag { margin-top: var(--s2); }

@media (min-width: 640px) {
  .step { grid-template-columns: minmax(0, 1fr) 340px; column-gap: var(--s6); align-items: center; }
  .step-time, .step-text { grid-column: 1; }
  .step-time { align-self: end; }
  .step-text { align-self: start; }
  .frag { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}
@media (min-width: 1000px) {
  .steps { gap: 0; }
  .step { grid-template-columns: 190px minmax(0, 1fr) 360px; align-items: center; padding: var(--s6) 0; position: relative; }
  .step-time { grid-column: 1; align-self: center; }
  .step-text { grid-column: 2; align-self: center; }
  .frag { grid-column: 3; grid-row: auto; }
  .step::before { content: ""; position: absolute; left: 5.500px; top: 0; bottom: 0; width: 1.500px; background: rgba(255, 157, 30, .35); }
  .step:first-child::before { top: 50%; }
  .step:last-child::before { bottom: 50%; }
  .step-time::before { position: relative; z-index: 1; }
}

.frag { background: var(--paper); border-radius: var(--r3); box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: var(--s5); max-width: 360px; width: 100%; }
.frag-label { font-size: .8125rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.frag-time { font-size: 3rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-bottom: var(--s4); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: var(--s2); }
.tile { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 26%; color: #fff; }
.tile > svg { width: 46%; height: 46%; }
.tile b { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #fff; box-shadow: 0 0 0 2.500px var(--paper); }
.tile b svg { width: 13px; height: 13px; }
.t1 { background: #E8574A; }
.t2 { background: #3D9BE9; }
.t3 { background: #D6559A; }
.t4 { background: #7A62D9; }
.tiles.locked .tile { background: #D9CDB4; color: #F6EEDC; }
.tiles.locked .tile b { background: var(--ink); }
.lock-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: var(--s5); padding: 10px 14px; background: var(--cream); border-radius: 999px; font-size: .9375rem; font-weight: 600; }
.lock-note svg { width: 16px; height: 16px; }
.frag-verify { padding: var(--s3); }
.viewfinder { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 11; }
.viewfinder svg { width: 100%; height: 100%; }
.vf-c { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; }
.vf-c.tl { left: 14px; top: 14px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.vf-c.tr { right: 14px; top: 14px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.vf-c.bl { left: 14px; bottom: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.vf-c.br { right: 14px; bottom: 14px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.verify-row { display: flex; align-items: center; gap: 12px; padding: 14px 10px 8px; }
.verify-row b { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--leaf); color: #fff; }
.verify-row b svg { width: 18px; height: 18px; }
.verify-row strong { display: block; font-size: 1.0625rem; line-height: 1.2; }
.verify-row small { display: block; font-size: .875rem; color: var(--ink-2); }

.proof { margin-top: var(--s7); padding-top: var(--s7); border-top: 1px solid var(--line); display: grid; gap: var(--s6); }
.proof p { color: var(--ink-2); max-width: 28rem; margin-top: var(--s3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s4); }
.chips li { padding: 7px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 1rem; font-weight: 500; }
@media (min-width: 860px) { .proof { grid-template-columns: 1.3fr 1fr; gap: var(--s8); } }

/* shared two-column layout */
.split { display: grid; gap: var(--s7); align-items: center; }
.split-text .lede { margin-top: var(--s5); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); }
  .streaks .streak-art { order: -1; }
}

.facts { margin-top: var(--s6); display: grid; }
.facts > div { padding: var(--s4) 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.facts dt { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; align-content: start; gap: 4px 8px; }
.facts dd { color: var(--ink-2); font-size: 1.0625rem; }
@media (min-width: 560px) { .facts > div { grid-template-columns: 11rem 1fr; gap: var(--s5); } }

/* ---------- Streaks ---------- */
.streaks { background: linear-gradient(180deg, var(--cream) 0%, var(--butter) 100%); padding: var(--s8) 0 var(--sec); }
.streak-art { position: relative; display: grid; justify-items: center; gap: var(--s7); }
.deck { position: relative; width: 210px; height: 280px; margin-top: var(--s4); }
.mcard { --tint: #B8996B; position: absolute; inset: 0; border-radius: 22px; background: linear-gradient(180deg, #FFFCF3, #FFEFC4); box-shadow: 0 0 0 2px var(--tint) inset, 0 0 0 1px var(--line), var(--shadow); }
.mcard span { position: absolute; left: 0; right: 0; top: 16px; text-align: center; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--tint) 72%, var(--ink)); }
.mcard.common { --tint: #B8996B; }
.mcard.uncommon { --tint: #599E73; }
.mcard.rare { --tint: #5C85CC; }
.mcard.c3 { transform: rotate(-13deg) translate(-46px, 10px); }
.mcard.c2 { transform: rotate(9deg) translate(44px, 6px); }
.mcard.c1 { transform: rotate(-2deg); display: grid; justify-items: center; align-content: center; gap: 10px; padding: 34px 22px 22px; }
.mcard.c1 svg { width: 108px; height: 108px; filter: drop-shadow(0 0 18px rgba(255, 170, 50, .5)); }
.mcard.c1 p { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.25rem; }
.mcard.c1 i { display: block; height: 7px; width: 78%; border-radius: 9px; background: rgba(42, 28, 13, .12); }
.mcard.c1 i:last-child { width: 52%; }
.streak-strip { width: 100%; max-width: 340px; background: var(--paper); border-radius: var(--r3); box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: var(--s4) var(--s4) var(--s4); }
.streak-strip .week { margin-top: 0; }
.streak-strip .week b { width: 32px; height: 32px; }
.streak-strip .week li { font-size: 11px; }
.streak-strip .stats { font-size: 12.500px; box-shadow: none; background: var(--cream); }

/* ---------- Friends ---------- */
.friends { background: linear-gradient(180deg, var(--butter) 0%, var(--noon) 100%); padding: var(--s8) 0 var(--sec); }
.ticks { margin-top: var(--s6); display: grid; gap: var(--s3); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ticks svg { flex: none; width: 22px; height: 22px; margin-top: 4px; padding: 4px; border-radius: 50%; background: var(--ink); color: var(--noon); }

.board { justify-self: center; width: 100%; max-width: 400px; background: linear-gradient(180deg, #FFF8E4, #FFF3D6); border-radius: 34px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -28px rgba(120, 72, 10, .55); padding: var(--s5) var(--s4) var(--s4); font-size: 13px; line-height: 1.3; }
.board .app-title { margin-top: 0; padding-left: 4px; }
.seg { display: flex; margin-top: 14px; padding: 4px; background: var(--paper); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); font-size: 11px; font-weight: 600; color: var(--ink-2); }
.seg span { flex: 1; text-align: center; padding: 8px 2px; border-radius: 10px; white-space: nowrap; }
.seg .on { background: #FBE3A2; color: var(--ink); }
.seg-sm { margin-top: 10px; }
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 8px; margin-top: 22px; padding: 0 10px; text-align: center; }
.podium small { display: block; margin: 5px 0 6px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.podium b { display: grid; place-items: center; border-radius: 12px 12px 4px 4px; font-size: 20px; }
.p1 b { height: 92px; background: #FBDD7A; color: #A9790F; }
.p2 b { height: 66px; background: #EBE3D0; color: #8D846F; }
.p3 b { height: 50px; background: #F9CFA0; color: #B8691C; }
.av { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; font-style: normal; font-weight: 700; font-size: 16px; color: #fff; box-shadow: 0 0 0 2.500px var(--paper); }
.p1 .av { width: 54px; height: 54px; font-size: 20px; box-shadow: 0 0 0 2.500px var(--paper), 0 0 0 5px #F2C230; }
.a1 { background: #E7813A; } .a2 { background: #5D8FD8; } .a3 { background: #C9638F; } .a4 { background: #4FA98A; } .a5 { background: var(--gold); }
.ranks { margin-top: 12px; display: grid; gap: 8px; }
.ranks li { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; background: var(--paper); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.ranks li > span { width: 14px; font-weight: 700; color: var(--ink-2); }
.ranks .av { width: 34px; height: 34px; margin: 0; font-size: 13px; }
.ranks p { font-weight: 700; font-size: 13.500px; }
.ranks small { display: block; font-weight: 500; font-size: 10.500px; color: var(--ink-2); }
.ranks em { font-style: normal; font-size: 9.500px; font-weight: 700; background: #FBE3A2; border-radius: 99px; padding: 2px 7px; margin-left: 4px; }
.ranks strong { margin-left: auto; font-size: 17px; color: var(--gold); }
.ranks .you { box-shadow: 0 0 0 1.500px var(--gold); }

/* ---------- Nights ---------- */
.nights { background: var(--dusk); color: var(--moon); }
.sunset { height: 220px; background: linear-gradient(180deg, var(--noon) 0%, #F9A94B 30%, #E06F52 55%, #8A4468 78%, var(--dusk) 100%); }
.nights-body { position: relative; padding: var(--s7) 0 var(--s8); background: linear-gradient(180deg, var(--dusk) 0%, var(--night) 100%); }
.stars { position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image:
    radial-gradient(1.500px 1.500px at 8% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 44%, #fff 50%, transparent 51%),
    radial-gradient(1.500px 1.500px at 37% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 51% 27%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 64% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 73% 52%, #fff 50%, transparent 51%),
    radial-gradient(1.500px 1.500px at 86% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 61%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 14% 78%, #fff 50%, transparent 51%),
    radial-gradient(1.500px 1.500px at 45% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 80% 90%, #fff 50%, transparent 51%);
}
.nights-body .wrap { position: relative; z-index: 1; }
.nights .lede { color: var(--moon-2); }
.facts-night > div { border-top-color: rgba(244, 235, 214, .18); }
.facts-night dd { color: var(--moon-2); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-style: normal; font-size: .75rem; font-weight: 700; letter-spacing: .02em; color: var(--night); background: var(--noon); }
.daybreak { height: 200px; background: linear-gradient(180deg, var(--night) 0%, #5A3A63 28%, #C97766 55%, #F6C489 78%, var(--dawn) 100%); }

.sleep { justify-self: center; width: 100%; max-width: 380px; color: var(--ink); background: var(--paper); border-radius: var(--r3); padding: var(--s5); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7), 0 0 60px -10px rgba(255, 200, 110, .25); }
.sleep-top { display: flex; align-items: center; gap: var(--s5); margin-bottom: var(--s5); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }
.ring { position: relative; flex: none; width: 104px; height: 104px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: #F3E7CC; }
.ring-fg { stroke: var(--sun); stroke-linecap: round; stroke-dasharray: 314.160; stroke-dashoffset: 69.100; }
.ring p { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring strong { font-size: 1.875rem; line-height: 1; }
.ring small { font-size: .75rem; color: var(--ink-2); }
.sleep-dur { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.sleep-span { font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 130px; margin-top: var(--s3); }
.bars span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.bars i { display: block; width: 100%; height: var(--h); border-radius: 8px; background: #F5D58A; }
.bars .best i { background: var(--sun); }

/* ---------- Price ---------- */
.price { padding: var(--s7) 0 var(--s8); }
.price-grid { display: grid; gap: var(--s6); align-items: center; }
.price .lede { margin-top: var(--s5); }
.premium { background: var(--cream); border-radius: var(--r3); padding: var(--s6); box-shadow: 0 0 0 1px var(--line); }
.premium-name { font-weight: 700; font-size: 1rem; letter-spacing: .01em; color: var(--sun-deep); }
.premium-price { margin-top: var(--s2); font-size: 1.25rem; color: var(--ink-2); }
.premium-price strong { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: clamp(2.800rem, 2rem + 3vw, 3.800rem); font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.premium-alt { font-size: 1.125rem; color: var(--ink-2); margin-top: var(--s2); }
.premium-alt strong { color: var(--ink); }
.premium .fine { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .price-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); } }

/* ---------- Questions ---------- */
.questions { padding: var(--s7) 0 var(--sec); }
.q-grid { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .q-grid { grid-template-columns: 1fr 1.600fr; gap: var(--s8); align-items: start; } .q-grid h2 { position: sticky; top: 100px; } }
.q-list details { border-top: 1px solid var(--line); }
.q-list details:last-child { border-bottom: 1px solid var(--line); }
.q-list summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; padding: var(--s3) 0; cursor: pointer; font-weight: 600; font-size: 1.1875rem; list-style: none; }
.q-list summary::-webkit-details-marker { display: none; }
.q-list summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px; border-right: 2.500px solid var(--ink); border-bottom: 2.500px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.q-list details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.q-list details p { padding: 0 var(--s6) var(--s5) 0; color: var(--ink-2); max-width: 38rem; }

/* ---------- Closing ---------- */
.closing { overflow: hidden; text-align: center; padding: var(--s8) 0 0; background: linear-gradient(180deg, var(--dawn) 0%, #FFEEC2 55%, #FFD98A 100%); }
.closing .wrap { position: relative; z-index: 2; display: grid; justify-items: center; gap: var(--s6); }
.closing-sun { --w: min(520px, 118vw); position: relative; z-index: 1; width: var(--w); height: var(--w); left: 50%; margin: var(--s6) 0 calc(var(--w) * -.385) calc(var(--w) * -.5); filter: drop-shadow(0 0 60px rgba(255, 168, 46, .6)); }
.closing-sun svg { width: 100%; height: 100%; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; background: var(--ink); color: var(--moon); padding: var(--s6) 0 var(--s7); }
.site-footer .wrap { display: grid; gap: var(--s4); }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; }
.site-footer nav a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.foot-legal { font-size: .875rem; line-height: 1.55; color: #C8B9A2; max-width: 46rem; }
@media (min-width: 860px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
  .foot-legal { grid-column: 1 / -1; }
}

/* ---------- Legal pages, 404 ---------- */
.legal-page { background: var(--dawn); }
.legal-page .site-header .wrap { justify-content: space-between; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 1rem; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.legal { padding: var(--s7) var(--gutter) var(--s9); }
.legal article { max-width: 44rem; margin-inline: auto; font-size: 1.0625rem; line-height: 1.65; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2.200vw, 3rem); line-height: 1.1; margin-bottom: var(--s4); }
.legal h2 { font-size: clamp(1.500rem, 1.300rem + .8vw, 1.875rem); line-height: 1.2; margin: var(--s7) 0 var(--s4); scroll-margin-top: 90px; }
.legal h3 { font-size: 1.1875rem; margin: var(--s6) 0 var(--s3); scroll-margin-top: 90px; }
.legal p { margin: var(--s4) 0; }
.legal p.lines { white-space: pre-line; }
.legal ul, .legal ol { margin: var(--s4) 0; padding-left: 1.400rem; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin: var(--s2) 0; padding-left: 2px; }
.legal li::marker { color: var(--ink-2); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
.legal a { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:hover { text-decoration-color: currentColor; }
.legal article > ol:first-of-type { columns: 2 16rem; column-gap: var(--s7); padding: var(--s5) var(--s5) var(--s5) calc(var(--s5) + 1.600rem); background: var(--cream); border-radius: var(--r2); box-shadow: 0 0 0 1px var(--line); font-size: 1rem; }
.legal article > ol:first-of-type li { break-inside: avoid; margin: 0 0 6px; }
.table-scroll { overflow-x: auto; margin: var(--s5) 0; border-radius: var(--r1); box-shadow: 0 0 0 1px var(--line); }
.legal table { width: 100%; border-collapse: collapse; font-size: 1rem; background: var(--paper); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--cream); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }
.notfound { padding: var(--s9) 0; min-height: 60vh; }
.notfound .lede { margin: var(--s5) 0 var(--s6); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-sun { animation: rise 1.800s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-phone { animation: settle 1.100s .15s cubic-bezier(.2, .7, .2, 1) both; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { from { transform: translateY(200px); } to { transform: none; } }
@keyframes settle { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
