@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* The page is one night, from dusk to first light. Sky colours follow lib/design/sky.dart in spirit;
   UI tokens follow DESIGN.md (night, onNight, glow, pine accent, sand). */
:root {
  --night: #0B1020; --night-blue: #1C2350; --midnight: #141A3A; --dusk: #3B3360; --dawn: #6E4E6B;
  --cream: #FFE6BF; --sand: #F8F3EC; --glow: #F2B872;
  --on-night: #EEF0F7; --on-night-muted: #B0B6CB;
  --text: #1E1B19; --text-muted: #5B544D;
  --pine: #1E4D47; --pine-light: #8FCBBF; --on-pine: #FFFFFF; --coral: #B2462C;
  --gutter: clamp(20px, 3vw, 40px); --max: 1180px;
  --r-md: 14px; --r-lg: 22px; --r-xl: 32px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  color-scheme: dark light;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--night); }
body { background: var(--night); color: var(--on-night); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--glow); text-underline-offset: .18em; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--cream); color: var(--night); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3, .serif { font-family: "Fraunces", Georgia, serif; font-weight: 400; }

/* bar */
.bar { position: absolute; inset: 0 0 auto; z-index: 10; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-night); text-decoration: none; font-family: "Fraunces", Georgia, serif; font-size: 21px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.bar ul { display: flex; gap: 26px; list-style: none; font-size: 15px; }
.bar ul a { color: var(--on-night); text-decoration: none; padding: 10px 0; }
.bar ul a:hover { color: var(--glow); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; background: var(--cream); color: var(--night); font: inherit; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: transform .12s var(--ease), background .2s var(--ease); }
.btn:hover { background: #FFF1D9; }
.btn:active { transform: scale(.98); }
.btn.pine { background: var(--pine); color: var(--on-pine); }
.btn.pine:hover { background: #24605A; }
.btn.ghost { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 2px rgba(238, 240, 247, .35); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--on-night); }
.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 999px; background: var(--midnight); color: var(--on-night); font-weight: 600; }
.soon::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--glow); }

/* hero: starlit night */
.sky { position: relative; overflow: hidden; background: var(--night); }
.sky .stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky .moon { position: absolute; left: 50%; top: 12%; width: clamp(60px, 7vw, 110px); height: auto; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: center; min-height: min(100svh, 940px); padding-top: 100px; padding-bottom: 150px; }
.hero h1 { font-size: clamp(3rem, 1.8rem + 5vw, 6.6rem); line-height: .96; letter-spacing: -0.03em; font-weight: 400; }
.hero .tag { margin-top: 18px; font-family: "Fraunces", Georgia, serif; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.25; color: var(--cream); }
.hero .lede { margin-top: 24px; max-width: 52ch; font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .fine { margin-top: 18px; font-size: 14px; color: var(--on-night-muted); max-width: 52ch; }
.phone { border-radius: 38px; overflow: hidden; background: var(--midnight); border: 9px solid var(--midnight); max-width: 340px; justify-self: center; }
.phone img { border-radius: 29px; }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(90px, 14vw, 200px); z-index: 1; }

/* night bands */
.band { position: relative; padding: clamp(96px, 11vw, 160px) 0; }
.band.b1 { background: var(--night-blue); }
.band.b2 { background: var(--midnight); }
.band.b3 { background: var(--dusk); }
.band.b4 { background: var(--dawn); }
.band.b5 { background: var(--cream); color: var(--text); }
.band.b5 a { color: var(--coral); }
.band h2 { font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch; }
.answer { margin-top: 20px; max-width: 60ch; font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); }
.muted { color: var(--on-night-muted); }
.b5 .muted { color: var(--text-muted); }

/* features: alternating screen and text */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(64px, 8vw, 120px); }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .shot { order: 2; }
.feature .shot { border-radius: var(--r-xl); overflow: hidden; max-width: 360px; justify-self: center; }
.feature h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); line-height: 1.12; letter-spacing: -0.015em; }
.feature p { margin-top: 14px; max-width: 54ch; }
.feature ul { margin-top: 16px; list-style: none; display: grid; gap: 10px; max-width: 54ch; }
.feature li { padding-left: 26px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--glow); }

/* live: breathe with the circle */
.breathe { margin-top: 36px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--night); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 40px); max-width: 640px; }
.orb-wrap { width: 150px; height: 150px; display: grid; place-items: center; }
.orb { width: 92px; height: 92px; border-radius: 50%; background: var(--glow); transform: scale(.7); transition: transform 4s cubic-bezier(.45, 0, .55, 1); }
.orb.in { transform: scale(1.35); }
.orb.out { transform: scale(.7); transition-duration: 6s; }
.breathe .cue { font-family: "Fraunces", Georgia, serif; font-size: 28px; line-height: 1.2; min-height: 1.2em; }
.breathe .sub { margin-top: 6px; color: var(--on-night-muted); font-size: 15px; min-height: 3em; }
.breathe .btn { margin-top: 16px; min-height: 48px; }

/* pricing table */
.plans { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { background: rgba(11, 16, 32, .45); border-radius: var(--r-lg); padding: 28px; }
.plan h3 { font-size: 28px; line-height: 1.1; }
.plan .when { margin-top: 6px; color: var(--cream); font-weight: 600; }
.plan ul { margin-top: 16px; list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--pine-light); }

/* privacy facts */
.facts { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px var(--gutter); list-style: none; }
.facts b { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--cream); margin-bottom: 8px; }

/* who + safety */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); margin-top: 40px; }
.who h3 { font-size: 26px; }
.who ul { margin-top: 14px; list-style: none; display: grid; gap: 10px; }
.who li { padding-left: 26px; position: relative; }
.who li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--cream); }
.safety { margin-top: 56px; background: var(--night); color: var(--on-night); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.safety .dot { width: 54px; height: 54px; border-radius: 50%; background: var(--glow); }
.safety h3 { font-size: clamp(1.5rem, 1.2rem + .8vw, 2rem); line-height: 1.2; }
.safety p { margin-top: 10px; max-width: 64ch; }
.safety ul { margin-top: 14px; list-style: none; display: grid; gap: 6px; }
.band .safety a { color: var(--cream); }

/* comparison table */
.tbl { margin-top: 40px; overflow-x: auto; border-radius: var(--r-lg); background: rgba(11, 16, 32, .4); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 15px 22px; vertical-align: top; }
thead th { color: var(--cream); font-weight: 600; border-bottom: 1px solid rgba(255, 230, 191, .25); }
tbody tr + tr th, tbody tr + tr td { border-top: 1px solid rgba(238, 240, 247, .12); }
tbody th { font-weight: 600; }

/* faq on the cream band */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: 0 clamp(32px, 5vw, 80px); }
.faq h2 { grid-column: 1 / -1; margin-bottom: 40px; }
.faq dl { grid-column: 2; }
.faq dl > div + div { margin-top: 36px; }
.faq dt { font-family: "Fraunces", Georgia, serif; font-size: 24px; line-height: 1.25; }
.faq dd { margin-top: 8px; max-width: 62ch; }

/* footer: the sun comes up */
footer { position: relative; background: var(--cream); color: var(--text); overflow: hidden; padding: 40px 0 0; }
footer .sun { display: block; width: 100%; height: clamp(160px, 24vw, 320px); }
footer .cols { display: grid; grid-template-columns: 5fr 3fr 3fr; gap: var(--gutter); padding-top: 48px; padding-bottom: 48px; background: var(--pine); color: #F3EEE6; }
footer .base { background: var(--pine); }
footer .cols p { color: #D9E6E2; max-width: 44ch; margin-top: 12px; font-size: 15px; }
footer h2 { font-family: "Inter", system-ui, sans-serif; font-size: 15px; font-weight: 600; }
footer ul { list-style: none; margin-top: 12px; display: grid; gap: 6px; font-size: 15px; }
footer a { color: #FFFFFF; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .legal { padding-bottom: 32px; font-size: 13px; color: #CFE0DB; }
footer .brand { color: #FFFFFF; }

/* 404 */
.lost .wrap { min-height: 100svh; display: grid; align-content: center; position: relative; z-index: 2; padding-top: 80px; padding-bottom: 160px; }
.lost h1 { font-size: clamp(2.6rem, 1.8rem + 4vw, 5rem); line-height: 1.02; }
.lost p { margin-top: 18px; max-width: 46ch; color: var(--on-night-muted); }
.lost .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* entrances */
.js .rise > * { opacity: 0; transform: translateY(20px); transition: opacity .42s var(--ease), transform .42s var(--ease); }
.js .rise.in > * { opacity: 1; transform: none; }
.js .rise.in > :nth-child(2) { transition-delay: .07s; }
.js .rise.in > :nth-child(3) { transition-delay: .14s; }
.js .rise.in > :nth-child(n+4) { transition-delay: .21s; }
.twinkle circle:nth-child(3n) { animation: twinkle 5s ease-in-out infinite alternate; }
.twinkle circle:nth-child(4n) { animation: twinkle 7s ease-in-out 1s infinite alternate; }
@keyframes twinkle { from { opacity: 1; } to { opacity: .25; } }

/* Light preference: the last hours of the night become a bright sand morning. */
@media (prefers-color-scheme: light) {
  .band.b5 { background: var(--sand); }
}

@media (max-width: 900px) {
  .bar ul { display: none; }
  .faq dl { grid-column: 1; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 104px; padding-bottom: 120px; }
  .phone { max-width: 300px; margin-top: 16px; }
  .sky .moon { top: 84px; left: auto; right: 6%; width: 56px; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .shot { order: 0; }
  .feature .shot { max-width: 320px; justify-self: start; }
  .plans, .who, .faq { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 28px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .breathe { grid-template-columns: 1fr; justify-items: start; }
  .safety { grid-template-columns: 1fr; }
  th, td { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise > * { transition: opacity .2s; transform: none !important; }
  .twinkle circle { animation: none !important; }
  .orb, .orb.in, .orb.out { transform: scale(1); transition: opacity 1s; }
  .orb.out { opacity: .55; }
  .btn:active { transform: none; }
}

footer p a { text-decoration: underline; text-underline-offset: .18em; }
