@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-variable.woff2') format('woff2');
}

:root {
  --bg: #080b14;
  --bg-2: #0c1220;
  --surface: #111827;
  --surface-2: #151e31;
  --surface-3: #1a2439;
  --text: #f1ece2;
  --text-2: #d8d3ca;
  --muted: #9aa4b8;
  --muted-2: #778196;
  --lav: #c9b8ff;
  --lav-2: #a58cf5;
  --mint: #93e5c4;
  --amber: #f1c87a;
  --coral: #ff9b85;
  --line: rgba(226, 232, 240, 0.12);
  --line-strong: rgba(226, 232, 240, 0.22);
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1240px;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 55% at 76% -8%, rgba(104, 84, 168, 0.31), transparent 60%),
    radial-gradient(ellipse 50% 40% at 8% 22%, rgba(40, 86, 92, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(52, 46, 92, 0.25), transparent 65%),
    var(--bg);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--lav);
  color: var(--bg);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--lav);
  outline-offset: 3px;
}

.container {
  width: min(100% - 56px, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 830px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--lav);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.skip-link:focus {
  top: 12px;
}

h1,
h2,
h3 {
  font-weight: 400;
}

h1,
h2 {
  font-family: var(--serif);
  line-height: 0.97;
  letter-spacing: -0.02em;
}
h1 em,
h2 em {
  font-style: italic;
  color: var(--lav);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--lav);
}
.eyebrow > span {
  width: 25px;
  height: 1px;
  background: currentColor;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s, gap 0.2s;
}
.text-link .icon {
  width: 14px;
  height: 14px;
}
.text-link:hover {
  color: var(--lav);
  gap: 11px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.button .button__icon {
  width: 15px;
  height: 15px;
  transition: transform 0.25s;
}
.button:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
}
.button:hover .button__icon {
  transform: translateX(3px);
}
.button--primary {
  background: var(--lav);
  border-color: var(--lav);
  color: #13101f;
}
.button--primary:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.button--outline {
  border-color: var(--line-strong);
}
.button--small {
  min-height: 38px;
  padding: 0 15px;
  font-size: 9px;
}
.button--wide {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  background: rgba(8, 11, 20, 0.72);
  backdrop-filter: blur(16px);
  transition: background 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(8, 11, 20, 0.92);
  border-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.brand__mark {
  width: 33px;
  height: 33px;
  color: var(--lav);
}
.brand__mark svg {
  width: 100%;
  height: 100%;
}
.brand__word {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 0.9;
  color: var(--text);
}
.brand__word em {
  font-style: italic;
  color: var(--lav);
}
.brand__word span {
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-left: auto;
}
.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--lav);
  transition: width 0.25s;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.local-badge i,
.live-dot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(147, 229, 196, 0.1);
}
.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  transition: top 0.3s, transform 0.3s;
}
.menu-toggle span:first-child {
  top: 15px;
}
.menu-toggle span:last-child {
  top: 22px;
}
.menu-open .menu-toggle span:first-child {
  top: 19px;
  transform: rotate(45deg);
}
.menu-open .menu-toggle span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 75;
  padding: 112px 0 30px;
  overflow-y: auto;
  background: var(--bg);
}
.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  width: min(100% - 40px, var(--container));
  min-height: calc(100vh - 142px);
  margin: 0 auto;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}
.mobile-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 9vw, 3.1rem);
  line-height: 1;
}
.mobile-menu nav a .icon {
  width: 21px;
  height: 21px;
  color: var(--lav);
}
.mobile-menu__foot {
  margin-top: auto;
  padding-top: 35px;
}
.mobile-menu__foot p {
  margin-bottom: 16px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Stars & orbit ---------- */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.65;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 27% 62%, rgba(201, 184, 255, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 58% 17%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.5px),
    radial-gradient(circle at 74% 44%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 89% 24%, rgba(201, 184, 255, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 78%, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.5px),
    radial-gradient(circle at 94% 70%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px);
  background-size: 470px 470px, 610px 610px, 390px 390px, 720px 720px, 530px 530px, 680px 680px, 810px 810px;
}
.stars--page {
  opacity: 0.4;
}
.orbit {
  position: absolute;
  border: 1px solid rgba(201, 184, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.orbit--hero {
  width: min(80vw, 980px);
  height: min(80vw, 980px);
  top: -430px;
  right: -280px;
}
.orbit--hero::before,
.orbit--hero::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(201, 184, 255, 0.075);
  border-radius: 50%;
}
.orbit--hero::before {
  inset: 90px;
}
.orbit--hero::after {
  inset: 210px;
}
.orbit--hero span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lav);
  box-shadow: 0 0 14px 3px rgba(201, 184, 255, 0.4);
}
.orbit--hero span:nth-child(1) {
  left: 12%;
  top: 33%;
}
.orbit--hero span:nth-child(2) {
  right: 20%;
  top: 8%;
  width: 4px;
  height: 4px;
  opacity: 0.7;
}
.orbit--hero span:nth-child(3) {
  left: 31%;
  bottom: 4%;
  width: 3px;
  height: 3px;
  opacity: 0.55;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 58px 0 0;
  overflow: hidden;
}
.hero__aurora {
  position: absolute;
  width: 640px;
  height: 500px;
  right: 4%;
  top: 10%;
  background: radial-gradient(ellipse, rgba(165, 140, 245, 0.16), transparent 66%);
  filter: blur(30px);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(440px, 0.82fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
}
.hero__copy {
  padding-top: 62px;
}
.hero h1 {
  font-size: clamp(4.3rem, 7.2vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
}
.hero h1 em {
  display: inline-block;
  color: var(--lav);
}
.hero__lede {
  max-width: 500px;
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  max-width: 520px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero__meta .icon {
  width: 12px;
  height: 12px;
  color: var(--mint);
}
.hero__down {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 42px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--lav);
}
.hero__down .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s;
}
.hero__down:hover .icon {
  transform: translateX(4px);
}
.hero__tool {
  position: relative;
  z-index: 2;
}
.facts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts-strip > div {
  display: flex;
  flex-direction: column;
  min-height: 142px;
  padding: 24px 22px 22px;
  border-right: 1px solid var(--line);
}
.facts-strip > div:last-child {
  border-right: 0;
}
.facts-strip strong {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 0.9;
  color: var(--lav);
}
.facts-strip span {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-2);
}
.facts-strip small {
  margin-top: auto;
  padding-top: 10px;
  font-size: 8.5px;
  line-height: 1.45;
  color: var(--muted-2);
}

/* ---------- Calculator ---------- */
.sleep-tool {
  position: relative;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(30, 40, 64, 0.88), rgba(13, 18, 32, 0.96)),
    var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sleep-tool::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(140deg, rgba(201, 184, 255, 0.4), transparent 35%, rgba(147, 229, 196, 0.12));
  opacity: 0.55;
}
.sleep-tool__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 16px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
}
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 11, 20, 0.55);
}
.mode-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.mode-tabs button.is-active {
  background: var(--lav);
  color: #13101f;
}
.sleep-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.time-field {
  padding: 14px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 11, 20, 0.38);
}
.time-field label {
  display: block;
  margin-bottom: 3px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.time-field__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.time-field input[type='time'] {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -0.03em;
  appearance: none;
}
.time-field input[type='time']::-webkit-calendar-picker-indicator {
  opacity: 0.45;
  filter: invert(1);
  cursor: pointer;
}
.time-field input[type='time']::-webkit-datetime-edit {
  padding: 0;
}
.time-field input[type='time']:focus {
  outline: 0;
}
.time-field:focus-within {
  border-color: var(--lav);
  box-shadow: 0 0 0 3px rgba(201, 184, 255, 0.08);
}
.time-field__tz {
  flex: 0 0 auto;
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.now-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.now-button .icon {
  width: 11px;
  height: 11px;
}
.now-button:hover {
  border-color: var(--lav);
  color: var(--lav);
}
.field-note {
  margin-top: 7px;
  font-size: 8.5px;
  line-height: 1.45;
  color: var(--muted-2);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field > span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.field select {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(8, 11, 20, 0.4);
  color: var(--text-2);
  font-size: 11px;
  outline: 0;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 18px, calc(100% - 10px) 18px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
.field select:focus {
  border-color: var(--lav);
}
.advanced {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 1px;
  cursor: pointer;
  list-style: none;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.advanced summary::-webkit-details-marker {
  display: none;
}
.advanced summary .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.25s;
}
.advanced[open] summary .icon {
  transform: rotate(180deg);
}
.advanced__body {
  display: grid;
  gap: 8px;
  padding: 2px 0 13px;
}
.advanced__body p {
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted-2);
}
.sleep-form > .button {
  margin-top: 1px;
}
.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 2px 8px;
}
.results-head p {
  font-size: 9.5px;
  color: var(--muted);
}
.results-head strong {
  color: var(--text-2);
  font-weight: 600;
}
.format-toggle {
  border: 0;
  background: transparent;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--lav);
  text-transform: uppercase;
}
.results {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.result-row {
  display: grid;
  grid-template-columns: 43px 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(8, 11, 20, 0.34);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.result-row:hover {
  transform: translateX(2px);
  border-color: var(--line-strong);
}
.result-row--best {
  border-color: rgba(201, 184, 255, 0.52);
  background: linear-gradient(90deg, rgba(201, 184, 255, 0.14), rgba(8, 11, 20, 0.34) 55%);
}
.result-row--in-range {
  border-color: rgba(147, 229, 196, 0.3);
}
.result-row--short,
.result-row--long {
  opacity: 0.64;
}
.result-row__cycle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border-right: 1px solid var(--line);
}
.result-row__cycle strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 0.9;
}
.result-row__cycle span {
  margin-top: 3px;
  font-size: 6.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.result-row__time {
  font-family: var(--serif);
  font-size: 1.43rem;
  line-height: 1;
  white-space: nowrap;
}
.day-tag {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 6.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.result-row__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.result-row__meta strong {
  font-size: 8.5px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
.result-row__meta span {
  font-size: 7.5px;
  color: var(--muted-2);
  white-space: nowrap;
}
.result-row__badge {
  justify-self: end;
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.result-row--best .result-row__badge {
  border-color: var(--lav);
  background: var(--lav);
  color: #13101f;
}
.result-row--in-range .result-row__badge {
  border-color: rgba(147, 229, 196, 0.5);
  color: var(--mint);
}
.result-row--short .result-row__badge,
.result-row--long .result-row__badge {
  color: var(--muted-2);
}
.results-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 11px 2px 0;
  font-size: 8px;
  line-height: 1.45;
  color: var(--muted-2);
}
.results-note .icon {
  width: 11px;
  height: 11px;
  margin-top: 1px;
  flex: 0 0 auto;
}
.results-note > span {
  flex: 1;
}
.results-note b {
  font-weight: 600;
  color: var(--text-2);
}
.copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 11px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.copy-button .icon {
  width: 12px;
  height: 12px;
}
.copy-button:hover {
  border-color: var(--lav);
  color: var(--lav);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 104px 0;
}
.section--surface {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.6), rgba(12, 18, 32, 0.35));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--tight {
  padding-top: 64px;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 44px;
  align-items: end;
  margin-bottom: 45px;
}
.section-head h2 {
  font-size: clamp(2.8rem, 4.4vw, 4.5rem);
}
.section-head__lede {
  padding-bottom: 7px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}
.section h2 {
  font-size: clamp(2.8rem, 4.3vw, 4.3rem);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}
.step {
  min-height: 300px;
  padding: 24px 25px 26px;
  background: var(--bg);
}
.step > span {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--lav);
}
.step h3 {
  margin: 54px 0 13px;
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1.05;
}
.step p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}
.needs-preview__grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.needs-preview__grid h2 {
  margin-bottom: 22px;
}
.needs-preview__grid p:not(.eyebrow):not(.table-note) {
  max-width: 380px;
  margin-bottom: 26px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}
.age-table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 11, 20, 0.3);
}
.age-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.age-table th {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.age-table td {
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
  color: var(--muted);
}
.age-table tr:last-child td {
  border-bottom: 0;
}
.age-table td strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
}
.age-table td span {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  color: var(--muted-2);
}
.age-table td:nth-child(2) {
  min-width: 105px;
  color: var(--mint);
  font-weight: 500;
  white-space: nowrap;
}
.table-note {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  line-height: 1.5;
  color: var(--muted-2);
}
.science-preview {
  overflow: hidden;
}
.science-preview__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}
.science-preview__grid h2 {
  margin-bottom: 22px;
}
.science-preview__grid p:not(.eyebrow) {
  max-width: 490px;
  margin-bottom: 17px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}
.cycle-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(201, 184, 255, 0.08), transparent 62%);
}
.cycle-art::before,
.cycle-art::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(201, 184, 255, 0.12);
  border-radius: 50%;
}
.cycle-art::before {
  inset: 34px;
}
.cycle-art::after {
  inset: 80px;
}
.cycle-art__ring {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(201, 184, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(201, 184, 255, 0.08);
}
.cycle-art__moon {
  position: absolute;
  top: -12px;
  width: 27px;
  height: 27px;
  color: var(--lav);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.cycle-art__moon .icon {
  width: 15px;
  height: 15px;
}
.cycle-art__label {
  font-family: var(--serif);
  font-size: 4.6rem;
  line-height: 0.8;
}
.cycle-art__label small {
  display: block;
  margin-top: 7px;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cycle-art__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-top: 34px;
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.cycle-art__legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.dot--lav {
  background: var(--lav);
}
.dot--deep {
  background: var(--lav-2);
}
.dot--mint {
  background: var(--mint);
}
.cycle-art > p {
  margin-top: 16px;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tip-card {
  min-height: 260px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.55);
}
.tip-card > span {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--lav);
}
.tip-card h3 {
  margin: 40px 0 10px;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.1;
}
.tip-card p {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-preview__grid {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: clamp(40px, 7vw, 100px);
}
.faq-preview__grid h2 {
  margin-bottom: 22px;
}
.faq-preview__grid > div:first-child > p:not(.eyebrow) {
  max-width: 330px;
  margin-bottom: 26px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.faq-list {
  border-top: 1px solid var(--line-strong);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: grid;
  grid-template-columns: 26px 1fr 21px;
  gap: 10px;
  align-items: start;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary > span {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--lav);
}
.faq-item summary strong {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-2);
}
.faq-item summary i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: transform 0.25s, background 0.25s;
}
.faq-item summary i .icon {
  width: 11px;
  height: 11px;
}
.faq-item[open] summary i {
  transform: rotate(180deg);
  background: var(--lav);
  color: var(--bg);
}
.faq-item__answer {
  padding: 0 24px 18px 36px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}
.faq-item__answer p + p {
  margin-top: 9px;
}
.faq-item__answer a {
  color: var(--lav);
  border-bottom: 1px solid rgba(201, 184, 255, 0.45);
}

/* ---------- Closing ---------- */
.closing {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(165, 140, 245, 0.21), transparent 65%);
  border-top: 1px solid var(--line);
}
.closing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 140%, rgba(147, 229, 196, 0.12), transparent 42%);
  pointer-events: none;
}
.closing--small {
  padding: 78px 0;
}
.closing__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.closing h2 {
  font-size: clamp(3.5rem, 6.4vw, 6.2rem);
  line-height: 0.94;
}
.closing__inner > p:not(.eyebrow) {
  max-width: 490px;
  margin: 22px 0 26px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Page hero & prose ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 38px 0 72px;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 400px;
  right: -80px;
  top: -200px;
  background: radial-gradient(ellipse, rgba(165, 140, 245, 0.15), transparent 66%);
  pointer-events: none;
}
.breadcrumb {
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.breadcrumb a:hover {
  color: var(--lav);
}
.breadcrumb li[aria-current] {
  color: var(--text-2);
}
.page-hero .eyebrow,
.page-hero h1,
.page-hero__lede {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(3.4rem, 6.1vw, 6.3rem);
  line-height: 0.98;
}
.page-hero__lede {
  max-width: 610px;
  margin-top: 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}
.prose {
  font-size: 14.5px;
  line-height: 1.8;
}
.prose h2 {
  margin: 48px 0 17px;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.05;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 28px 0 9px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.1;
}
.prose p {
  margin-bottom: 16px;
  color: var(--muted);
}
.prose > p:first-of-type {
  font-size: 16px;
  color: var(--text-2);
}
.prose a {
  color: var(--lav);
  border-bottom: 1px solid rgba(201, 184, 255, 0.4);
}
.prose a:hover {
  border-color: var(--lav);
}
.prose ul,
.prose ol {
  margin: 0 0 18px;
}
.prose ul li,
.prose ol li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 20px;
  color: var(--muted);
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lav);
}
.prose ol {
  counter-reset: item;
}
.prose ol li {
  counter-increment: item;
  padding-left: 28px;
}
.prose ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.08em;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--lav);
}
.prose .age-table-wrap {
  margin: 24px 0;
}
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.stage-grid article {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.55);
}
.stage-grid span {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--lav);
}
.stage-grid h3 {
  margin: 22px 0 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
}
.stage-grid p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}
.two-col-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 22px 0;
}
.check-list li,
.cross-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 7px;
  color: var(--muted);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mint);
}
.cross-list li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: var(--coral);
}
.callout {
  margin: 25px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.55);
}
.callout--lav {
  border-color: rgba(201, 184, 255, 0.25);
  background: linear-gradient(100deg, rgba(201, 184, 255, 0.1), rgba(17, 24, 39, 0.35));
}
.callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--lav);
}
.callout p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.65;
}
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.source-list {
  display: flex;
  flex-direction: column;
  margin: 22px 0;
  border-top: 1px solid var(--line);
}
.source-list a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.source-list > a > span {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--lav);
}
.source-list strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
}
.source-list strong .icon {
  width: 11px;
  height: 11px;
  color: var(--lav);
}
.source-list small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  color: var(--muted-2);
}
.faq-group {
  margin-bottom: 36px;
}
.faq-group__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-strong);
}
.faq-group__head h2 {
  margin: 0;
  font-size: 1.8rem;
}
.faq-group__head > span {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--lav);
}

/* ---------- Nap ---------- */
.nap-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.nap-notes h2 {
  margin-bottom: 20px;
}
.nap-notes > p:not(.eyebrow) {
  max-width: 430px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}
.nap-notes .check-list {
  margin: 18px 0 24px;
}
.results--naps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.nap-row {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 130px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(8, 11, 20, 0.34);
}
.nap-row > div {
  display: flex;
  flex-direction: column;
}
.nap-row strong {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-2);
}
.nap-row span {
  margin-top: 1px;
  font-size: 7px;
  color: var(--muted-2);
}
.nap-row > p {
  margin-top: auto;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.nap-time {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--lav);
}
.nap-row small {
  margin-top: 2px;
  font-size: 7px;
  color: var(--muted-2);
}
.nap-row--good {
  border-color: rgba(147, 229, 196, 0.25);
}
.nap-row--caution {
  opacity: 0.7;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 70px 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 14, 0.55);
}
.footer__top {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 8vw, 120px);
  padding-bottom: 45px;
  border-bottom: 1px solid var(--line);
}
.footer__tagline {
  margin: 32px 0 13px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 0.96;
}
.footer__tagline em {
  color: var(--lav);
}
.footer__desc {
  max-width: 330px;
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--muted);
}
.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 30px;
}
.footer__links > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__heading {
  margin-bottom: 7px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.footer__links a {
  font-size: 10.5px;
  color: var(--muted);
}
.footer__links a:hover {
  color: var(--text);
}
.footer__note {
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--muted-2);
}
.footer__mail {
  display: flex;
  gap: 4px;
  align-items: center;
  color: var(--lav) !important;
}
.footer__mail .icon {
  width: 11px;
  height: 11px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 19px;
  font-size: 8px;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}
.footer__bottom a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.footer__bottom a .icon {
  width: 10px;
  height: 10px;
}
.footer__bottom a:hover {
  color: var(--lav);
}

/* ---------- 404 ---------- */
.not-found {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 250px);
  padding: 70px 0;
  overflow: hidden;
}
.not-found h1 {
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.9;
}
.not-found p:not(.eyebrow) {
  max-width: 430px;
  margin: 22px 0 28px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

/* ---------- Quick links & charts ---------- */
.page-hero__meta {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.page-hero__meta a {
  color: var(--lav);
  border-bottom: 1px solid rgba(201, 184, 255, 0.35);
}
.popular {
  border-top: 1px solid var(--line);
}
.popular__grid {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}
.popular__grid h2 {
  font-size: clamp(2.4rem, 3.8vw, 3.7rem);
}
.popular__links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}
.popular__links a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 7px 14px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.popular__links a:hover {
  color: var(--lav);
}
.popular__links span {
  grid-row: 1 / span 2;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--lav);
}
.popular__links strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.1;
}
.popular__links em {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-style: normal;
  color: var(--muted);
}
.popular__links svg {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 15px;
  height: 15px;
  align-self: center;
  color: var(--lav);
}
.quick-table-wrap {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  background: rgba(17, 24, 39, 0.4);
  -webkit-overflow-scrolling: touch;
}
.quick-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 11px;
}
.quick-table th {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.quick-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text-2);
  font-family: var(--serif);
  font-size: 1.15rem;
}
.quick-table tr:last-child td {
  border-bottom: 0;
}
.quick-table td strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
}
.quick-table td span {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 6.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.quick-table td:first-child {
  color: var(--lav);
}
.source-inline {
  font-size: 9px !important;
  color: var(--muted-2) !important;
}
.source-inline a {
  color: var(--lav);
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
    gap: 42px;
  }
  .hero h1 {
    font-size: clamp(4rem, 7vw, 6.4rem);
  }
  .header__inner {
    gap: 20px;
  }
  .desktop-nav {
    gap: 20px;
  }
  .local-badge {
    display: none;
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .header__actions {
    margin-left: auto;
  }
  .hero {
    padding-top: 38px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero__copy {
    max-width: 720px;
    padding-top: 28px;
  }
  .hero h1 {
    font-size: clamp(4.2rem, 10vw, 7rem);
  }
  .hero__tool {
    width: min(100%, 600px);
  }
  .facts-strip {
    margin-top: 50px;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .section-head__lede {
    max-width: 600px;
    padding-bottom: 0;
  }
  .needs-preview__grid,
  .science-preview__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .cycle-art {
    width: min(100%, 430px);
    min-height: 400px;
    margin: 0 auto;
  }
  .faq-preview__grid,
  .popular__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .faq-preview__grid > div:first-child > p:not(.eyebrow) {
    max-width: 560px;
  }
  .nap-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .footer__bottom {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 36px, var(--container));
  }
  .section {
    padding: 72px 0;
  }
  .section--tight {
    padding-top: 48px;
  }
  .header__inner {
    min-height: 64px;
  }
  .brand__mark {
    width: 29px;
    height: 29px;
  }
  .brand__word {
    font-size: 17px;
  }
  .header__actions .button {
    display: none;
  }
  .hero {
    padding-top: 26px;
  }
  .hero__copy {
    padding-top: 16px;
  }
  .hero h1 {
    font-size: clamp(3.6rem, 15.5vw, 5.2rem);
    line-height: 0.9;
  }
  .hero__lede {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.7;
  }
  .hero__meta {
    flex-direction: column;
    gap: 7px;
    margin-top: 23px;
  }
  .hero__down {
    margin-top: 28px;
  }
  .sleep-tool {
    padding: 14px;
    border-radius: 16px;
  }
  .time-field {
    padding: 12px 12px 10px;
  }
  .time-field input[type='time'] {
    font-size: 2.65rem;
  }
  .time-field__tz {
    display: none;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .result-row {
    grid-template-columns: 34px 1fr auto;
    gap: 8px;
    padding: 8px;
    min-height: 55px;
  }
  .result-row__meta {
    display: none;
  }
  .result-row__time {
    font-size: 1.28rem;
  }
  .result-row__cycle strong {
    font-size: 1.2rem;
  }
  .result-row__badge {
    font-size: 6px;
    padding: 3px 5px;
  }
  .facts-strip {
    grid-template-columns: 1fr 1fr;
  }
  .facts-strip > div:nth-child(2) {
    border-right: 0;
  }
  .facts-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .facts-strip > div {
    min-height: 122px;
    padding: 18px 15px;
  }
  .facts-strip strong {
    font-size: 2.25rem;
  }
  .facts-strip span {
    font-size: 9px;
  }
  .facts-strip small {
    font-size: 7.5px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    min-height: 0;
    padding: 21px;
  }
  .step h3 {
    margin-top: 26px;
  }
  .section h2,
  .section-head h2 {
    font-size: clamp(2.5rem, 10vw, 3.4rem);
  }
  .needs-preview__grid h2 {
    margin-bottom: 16px;
  }
  .age-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .age-table {
    min-width: 600px;
  }
  .age-table--wide {
    min-width: 650px;
  }
  .tips-grid {
    grid-template-columns: 1fr;
  }
  .tip-card {
    min-height: 0;
  }
  .tip-card h3 {
    margin-top: 24px;
  }
  .cycle-art {
    min-height: 340px;
    width: min(100%, 340px);
  }
  .cycle-art__ring {
    width: 160px;
    height: 160px;
  }
  .cycle-art__label {
    font-size: 3.6rem;
  }
  .science-preview__grid p:not(.eyebrow) {
    font-size: 12.5px;
  }
  .page-hero {
    padding: 24px 0 48px;
  }
  .breadcrumb {
    margin-bottom: 32px;
  }
  .page-hero h1 {
    font-size: clamp(2.9rem, 12vw, 4.6rem);
  }
  .page-hero__lede {
    font-size: 13px;
  }
  .popular__links strong {
    font-size: 1.15rem;
  }
  .quick-table {
    font-size: 10px;
  }
  .prose {
    font-size: 13.5px;
  }
  .prose h2 {
    font-size: 2.1rem;
    margin-top: 38px;
  }
  .stage-grid,
  .two-col-list {
    grid-template-columns: 1fr;
  }
  .closing {
    padding: 70px 0;
  }
  .closing h2 {
    font-size: clamp(3rem, 13vw, 4.8rem);
  }
  .footer__links {
    grid-template-columns: 1fr 1fr;
  }
  .footer__links > div:last-child {
    grid-column: 1 / -1;
  }
  .footer__bottom {
    flex-direction: column;
  }
  .nap-notes h2 {
    font-size: 2.7rem;
  }
  .results--naps {
    grid-template-columns: 1fr 1fr;
  }
  .scroll-hint {
    display: block;
  }
}

@media (max-width: 440px) {
  .hero h1 {
    font-size: 3.2rem;
  }
  .hero__proof {
    gap: 6px;
  }
  .mode-tabs button {
    font-size: 9px;
  }
  .time-field input[type='time'] {
    font-size: 2.3rem;
  }
  .result-row {
    grid-template-columns: 31px 1fr auto;
  }
  .result-row__badge {
    max-width: 67px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .facts-strip > div {
    padding: 15px 12px;
  }
  .facts-strip strong {
    font-size: 2rem;
  }
  .results--naps {
    grid-template-columns: 1fr;
  }
  .nap-row {
    min-height: 112px;
  }
  .footer__links {
    grid-template-columns: 1fr;
  }
  .footer__links > div:last-child {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

[hidden] {
  display: none !important;
}

/* =========================================================
   Readability pass — minimum comfortable UI sizes
   ========================================================= */

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.13em;
}
.nav-link {
  font-size: 12px;
  letter-spacing: 0.08em;
}
.local-badge {
  font-size: 10.5px;
}
.text-link {
  font-size: 12px;
}
.button {
  font-size: 12.5px;
  letter-spacing: 0.07em;
}
.button--small {
  font-size: 11.5px;
}
.hero__meta {
  font-size: 11.5px;
  line-height: 1.5;
}
.hero__down {
  font-size: 11.5px;
}
.hero__lede {
  font-size: 17px;
  line-height: 1.7;
}
.section-head__lede {
  font-size: 15px;
  line-height: 1.65;
}
.step p {
  font-size: 14.5px;
  line-height: 1.65;
}
.step h3 {
  font-size: 2rem;
}
.facts-strip span {
  font-size: 13px;
}
.facts-strip small {
  font-size: 11px;
  line-height: 1.45;
}
.facts-strip strong {
  font-size: 3rem;
}
.age-table {
  font-size: 13.5px;
}
.age-table th {
  font-size: 10.5px;
}
.age-table td strong {
  font-size: 14px;
}
.age-table td span {
  font-size: 11px;
}
.table-note {
  font-size: 11.5px;
  line-height: 1.55;
}
.tip-card p {
  font-size: 14px;
  line-height: 1.65;
}
.faq-item summary strong {
  font-size: 15px;
}
.faq-item summary > span {
  font-size: 1.1rem;
}
.faq-item__answer {
  font-size: 14px;
  line-height: 1.75;
}
.closing__inner > p:not(.eyebrow) {
  font-size: 15px;
}
.breadcrumb ol {
  font-size: 11px;
}
.page-hero__lede {
  font-size: 16px;
  line-height: 1.7;
}
.page-hero__meta {
  font-size: 11.5px;
  line-height: 1.5;
}
.prose {
  font-size: 16px;
  line-height: 1.8;
}
.prose > p:first-of-type {
  font-size: 17px;
}
.stage-grid p {
  font-size: 13px;
}
.callout p {
  font-size: 13px;
}
.source-list strong {
  font-size: 13px;
}
.source-list small {
  font-size: 11px;
}
.popular__links strong {
  font-size: 1.5rem;
}
.popular__links em {
  font-size: 12px;
}
.quick-table {
  font-size: 13.5px;
}
.quick-table th {
  font-size: 10.5px;
}
.quick-table td strong,
.quick-table td {
  font-size: 1.3rem;
}
.quick-table td span {
  font-size: 10px;
}
.source-inline {
  font-size: 12px !important;
}
.footer__heading {
  font-size: 10.5px;
}
.footer__links a {
  font-size: 13px;
}
.footer__desc {
  font-size: 12.5px;
}
.footer__note {
  font-size: 12px;
}
.footer__bottom {
  font-size: 11px;
}
.footer__mail {
  font-size: 13px !important;
}

/* Calculator */
.sleep-tool__top {
  font-size: 10.5px;
}
.mode-tabs button {
  font-size: 12px;
}
.time-field label {
  font-size: 11px;
}
.time-field__tz {
  font-size: 10px;
}
.now-button {
  font-size: 10.5px;
}
.field-note {
  font-size: 11.5px;
  line-height: 1.5;
}
.field > span {
  font-size: 11px;
}
.field select {
  font-size: 14px;
  min-height: 46px;
}
.advanced summary {
  font-size: 11.5px;
}
.advanced__body p {
  font-size: 12px;
  line-height: 1.55;
}
.results-head p {
  font-size: 13px;
}
.format-toggle {
  font-size: 11px;
}
.result-row {
  min-height: 66px;
  grid-template-columns: 48px minmax(84px, 0.9fr) minmax(110px, 1.15fr) auto;
  gap: 12px;
  padding: 9px 11px 9px 8px;
}
.result-row__cycle strong {
  font-size: 1.55rem;
}
.result-row__cycle span {
  font-size: 9px;
}
.result-row__time {
  font-size: 1.65rem;
}
.day-tag {
  font-size: 9px;
}
.result-row__meta strong {
  font-size: 11.5px;
}
.result-row__meta span {
  font-size: 10.5px;
}
.result-row__badge {
  font-size: 9.5px;
  padding: 4px 7px;
}
.results-note {
  font-size: 11.5px;
  line-height: 1.55;
}
.copy-button {
  font-size: 11.5px;
  padding: 10px;
}
.results-head {
  padding-top: 18px;
}

/* Naps */
.nap-notes > p:not(.eyebrow) {
  font-size: 15px;
}
.nap-row {
  min-height: 150px;
  padding: 14px;
}
.nap-row strong {
  font-size: 13px;
}
.nap-row span {
  font-size: 10.5px;
}
.nap-row > p,
.nap-row small {
  font-size: 10.5px;
}
.nap-time {
  font-size: 1.9rem;
}
.results--naps .result-row__time {
  font-size: 1.55rem;
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .header__actions {
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .eyebrow {
    font-size: 11px;
  }
  .hero__lede {
    font-size: 15.5px;
  }
  .section-head__lede {
    font-size: 14.5px;
  }
  .prose {
    font-size: 15.5px;
  }
  .prose > p:first-of-type {
    font-size: 16.5px;
  }
  .facts-strip span {
    font-size: 12px;
  }
  .facts-strip small {
    font-size: 10.5px;
  }
  .result-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-template-areas:
      'cycle time badge'
      'cycle meta meta';
    gap: 4px 10px;
    min-height: 78px;
    padding: 9px 10px;
  }
  .result-row__cycle {
    grid-area: cycle;
  }
  .result-row__time {
    grid-area: time;
    font-size: 1.5rem;
  }
  .result-row__meta {
    grid-area: meta;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px 10px;
  }
  .result-row__meta strong,
  .result-row__meta span {
    font-size: 11px;
    white-space: nowrap;
  }
  .result-row__badge {
    grid-area: badge;
    font-size: 9px;
  }
  .sleep-tool__top {
    font-size: 10px;
  }
  .time-field input[type='time'] {
    font-size: 2.7rem;
  }
  .field select {
    min-height: 48px;
    font-size: 15px;
  }
  .mode-tabs button {
    min-height: 44px;
    font-size: 12.5px;
  }
  .nap-row {
    min-height: 128px;
  }
  .footer__links a {
    font-size: 14px;
  }
  .footer__bottom {
    font-size: 11.5px;
  }
}

/* Badge sizing & table scroll cues */
.result-row__cycle span {
  font-size: 11px;
}
.result-row__badge {
  font-size: 10.5px;
  text-overflow: clip;
  overflow: visible;
}
.day-tag {
  font-size: 10.5px;
}
.scroll-hint {
  display: none;
  margin: 18px 0 8px;
  font-size: 11.5px;
  color: var(--lav);
}
@media (max-width: 720px) {
  .result-row__badge {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 10px;
    padding: 4px 7px;
  }
  .scroll-hint {
    display: block;
  }
}

/* Remaining micro-labels */
.sleep-tool__top span {
  font-size: 11px;
}
.time-field__tz {
  font-size: 11px;
}
.result-row__meta span {
  font-size: 11px;
}
.result-row__badge {
  font-size: 11px;
}
.age-table th,
.quick-table th {
  font-size: 11px;
}
.quick-table td span {
  font-size: 11px;
}
.facts-strip small {
  font-size: 11.5px;
}
.footer__heading {
  font-size: 11px;
}
.mobile-menu__foot p {
  font-size: 11.5px;
}
.nap-row strong {
  font-size: 13px;
}
.nap-row span,
.nap-row > p,
.nap-row small {
  font-size: 11.5px;
}
.callout strong {
  font-size: 11px;
}
.cycle-art__label small {
  font-size: 11px;
}
@media (max-width: 720px) {
  .result-row__badge {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 11px;
    padding: 4px 8px;
  }
  .facts-strip small {
    font-size: 11.5px;
  }
  .mode-tabs button {
    font-size: 12.5px;
  }
}

.cycle-art__legend {
  font-size: 11.5px;
}
.cycle-art > p {
  font-size: 11.5px;
}
