/* ===== MorningHater landing page ===== */
:root {
  --night: #141833;
  --night-2: #1d2246;
  --ink: #1b1d2a;
  --muted: #5d6075;
  --cream: #fbf7f1;
  --cream-2: #f3ece2;
  --amber: #ff9f43;
  --orange: #ff6b3d;
  --sun: linear-gradient(135deg, #ffc46b 0%, #ff8a4c 55%, #ff5e3a 100%);
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(20, 24, 51, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; }
h1, h2 { font-family: "Fraunces", Georgia, serif; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.narrow { width: min(780px, 92%); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.8em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  background: var(--sun);
  color: #fff;
  font: 600 1rem "Inter", sans-serif;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 25px -10px rgba(255, 107, 61, 0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(255, 107, 61, 0.9); }
.btn-small { padding: 0.6em 1.1em; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 24, 51, 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; }
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; font-size: 1.15rem; }
.logo strong { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) { text-decoration: none; opacity: 0.85; font-size: 0.95rem; }
.nav-links a:not(.btn):hover { opacity: 1; }

/* ===== Hero ===== */
.hero {
  background: radial-gradient(120% 80% at 80% 100%, #4a2f55 0%, transparent 60%),
              linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: #fff;
  padding: 5rem 0 6rem;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero .lead { font-size: 1.15rem; color: #d6d8ea; max-width: 34em; }
.glow { background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }

.signup { display: flex; gap: 0.6rem; margin-top: 1.8rem; max-width: 520px; }
.signup input {
  flex: 1; min-width: 0;
  padding: 0.95em 1.2em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 1rem "Inter", sans-serif;
  background: #fff; color: var(--ink);
}
.signup input:focus { outline: none; border-color: var(--amber); }
.signup-center { margin-left: auto; margin-right: auto; }
.form-note { font-size: 0.85rem; opacity: 0.75; margin-top: 0.8rem; }
.form-msg { font-weight: 600; min-height: 1.2em; margin: 0.6rem 0 0; }
.form-msg.ok { color: #3fbf7f; }
.form-msg.err { color: #ff6b6b; }

.badges { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.badges li {
  font-size: 0.82rem; font-weight: 600;
  padding: 0.45em 0.95em; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Hero illustration */
.hero-art { position: relative; height: 380px; }
.sun {
  position: absolute; right: 8%; top: 4%;
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--sun);
  filter: blur(2px);
  box-shadow: 0 0 120px 40px rgba(255, 140, 70, 0.35);
  animation: rise 6s ease-in-out infinite alternate;
}
@keyframes rise { from { transform: translateY(30px); } to { transform: translateY(-10px); } }
.bed {
  position: absolute; left: 0; right: 0; bottom: 40px;
  height: 150px; border-radius: 22px;
  background: #e4e6f0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.bed-pillow { position: absolute; left: 6%; top: 18px; width: 28%; height: 50px; border-radius: 16px; background: #fff; z-index: 3; }
.bed-cover { position: absolute; left: 0; right: 0; top: 0; height: 100%; background: linear-gradient(180deg, #f6efe6, #e9dccb); z-index: 1; }
.bed-heat {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(60% 90% at 60% 70%, rgba(255, 140, 70, 0.75), transparent 70%);
  animation: warm 3.5s ease-in-out infinite alternate;
}
@keyframes warm { from { opacity: 0.25; } to { opacity: 0.95; } }
.clock {
  position: absolute; left: 4%; top: 12%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border-radius: 16px; padding: 0.8rem 1.2rem;
  display: flex; flex-direction: column;
}
.clock-time { font: 700 2rem "Inter", sans-serif; letter-spacing: 0.04em; }
.clock-label { font-size: 0.8rem; color: var(--amber); }

/* ===== Sections ===== */
.section { padding: 5.5rem 0; }
.section.alt { background: var(--cream-2); }
.problem h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.step { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.step-num {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--sun); color: #fff; font-weight: 700;
  margin-bottom: 1rem;
}
.step p { color: var(--muted); margin: 0; }

.design-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.design-art svg { width: 100%; height: auto; }
.svg-label { font: 600 13px "Inter", sans-serif; fill: var(--ink); }
.layer-top { animation: float 4s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 1rem; color: var(--muted); }
.checklist li strong { color: var(--ink); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--sun); color: #fff; font-size: 0.8rem; font-weight: 700;
  display: grid; place-items: center;
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.feature { background: #fff; border-radius: var(--radius); padding: 1.75rem; border: 1px solid #ece4d8; }
.feature .icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.feature p { color: var(--muted); margin: 0; }

.safety-grid { display: grid; gap: 1rem; margin: 2rem 0; }
.safety-item { background: #fff; border-radius: var(--radius); padding: 1.5rem 1.75rem; border-left: 4px solid var(--amber); }
.safety-item p { margin: 0; color: var(--muted); }
.callout {
  background: #fff4e8; border: 1px solid #ffd2a6;
  border-radius: var(--radius); padding: 1.25rem 1.5rem; font-size: 0.95rem;
}

/* Waitlist */
.waitlist { background: linear-gradient(180deg, var(--night-2), var(--night)); color: #fff; }
.waitlist .muted { color: #c9cbe0; }
.price-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius); padding: 2rem; margin: 2rem auto 0; max-width: 520px;
}
.price-row { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-bottom: 1rem; }
.price-label { display: block; font-size: 0.85rem; color: #c9cbe0; }
.price { font: 700 2.8rem "Fraunces", serif; }
.price.strike { text-decoration: line-through; opacity: 0.5; font-size: 2rem; }
.price-divider { width: 1px; height: 60px; background: rgba(255, 255, 255, 0.2); }

/* Mission + roadmap */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.roadmap { list-style: none; padding: 0; margin: 0; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: #e2d8ca; }
.roadmap li { position: relative; display: flex; gap: 1.2rem; padding-bottom: 1.6rem; }
.roadmap .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); border: 3px solid #d4c7b5; z-index: 1; margin-top: 2px; }
.roadmap li.done .dot { background: var(--orange); border-color: var(--orange); }
.roadmap li.current .dot { background: #fff; border-color: var(--orange); box-shadow: 0 0 0 6px rgba(255, 107, 61, 0.2); }
.roadmap p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.92rem; }

/* FAQ */
.faq { margin-top: 2rem; }
.faq details { background: #fff; border-radius: 14px; margin-bottom: 0.75rem; padding: 1.1rem 1.4rem; border: 1px solid #ece4d8; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.8rem 0 0; color: var(--muted); }

/* Footer */
.footer { background: var(--night); color: #fff; padding: 2.5rem 0; }
.footer .muted { color: #9ea1bb; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { text-decoration: none; opacity: 0.8; }
.footer-links a:hover { opacity: 1; }

/* ===== Stats ===== */
.stats-section { background: var(--night); color: #fff; }
.stats-section .eyebrow { color: var(--amber); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
}
.stat-num {
  display: block; font: 700 3rem "Fraunces", serif; line-height: 1; margin-bottom: 0.6rem;
  background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat p { margin: 0; color: #c9cbe0; font-size: 0.95rem; }
.stat strong { color: #fff; }
sup a { color: var(--orange); text-decoration: none; font-weight: 700; font-size: 0.75em; margin-left: 1px; }

/* ===== Is this you ===== */
.for-you-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.fit-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.fit-card h3:not(:first-child) { margin-top: 1.4rem; }
.fit-card p { margin: 0; }

/* ===== Science ===== */
.science { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.sci-card { background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid #ece4d8; }
.sci-num { display: block; font: 700 1rem "Inter", sans-serif; color: var(--orange); letter-spacing: 0.1em; margin-bottom: 0.8rem; }
.sci-card p { color: var(--muted); margin: 0; }
.science-note {
  margin: 2rem auto 0; max-width: 780px; text-align: center;
  background: #fff4e8; border: 1px solid #ffd2a6; border-radius: var(--radius);
  padding: 1.1rem 1.5rem; font-size: 0.95rem;
}

/* ===== Comparison table ===== */
.table-wrap { overflow-x: auto; margin: 2rem 0 1rem; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 0.9rem 1rem; text-align: center; border-bottom: 1px solid #f0e9df; font-size: 0.95rem; }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--ink); }
.compare thead th { font-weight: 700; background: #faf6f0; }
.compare td { color: var(--muted); }
.compare .hl { background: #fff4e8; color: var(--orange); font-weight: 700; }
.compare thead .hl { background: var(--orange); color: #fff; }
.compare tr:last-child td { border-bottom: 0; }

/* ===== Sources ===== */
.sources { padding: 3rem 0; background: var(--cream); border-top: 1px solid #ece4d8; }
.sources ol { padding-left: 1.2rem; color: var(--muted); font-size: 0.85rem; }
.sources li { margin-bottom: 0.4rem; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .for-you-grid, .science { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .design-grid, .mission-grid { grid-template-columns: 1fr; }
  .hero-art { height: 300px; order: -1; }
  .steps, .features { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-inner .logo, .footer-links { justify-content: center; }
}
@media (max-width: 520px) {
  .signup { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .nav .btn { width: auto; }
  .hero { padding: 3rem 0 4rem; }
  .section { padding: 4rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}

