@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* Amber is always caffeine, teal is always water — same as the app. */
:root {
  --ivory: #f6f1e9;
  --card: #fffdf9;
  --sunken: #f3ece2;
  --ink: #2b2019;
  --ink-muted: #7a6a5e;
  --hairline: #e6ddd0;
  --caffeine: #a8582a;
  --caffeine-soft: #f4e3d3;
  --water: #2e7f8a;
  --water-soft: #e1efef;
  --danger: #b5412f;
  --evening: #2b2019;
  --evening-ink: #f6f1e9;
  --evening-accent: #f0b27a;
  --radius: 22px;
  --shadow: 0 1px 0 rgba(43, 32, 25, 0.04), 0 18px 40px -24px rgba(43, 32, 25, 0.35);
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ivory: #15110e;
    --card: #211a15;
    --sunken: #2a221c;
    --ink: #f3eadf;
    --ink-muted: #a8998b;
    --hairline: #3a2f27;
    --caffeine: #e39a5e;
    --caffeine-soft: #3e2a1c;
    --water: #62b6c0;
    --water-soft: #1c3336;
    --danger: #e7775f;
    --evening: #0e0b09;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--caffeine); text-underline-offset: 3px; }
h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.4em;
  font-variation-settings: "SOFT" 50, "opsz" 96;
}
h1 { font-size: clamp(44px, 7.4vw, 84px); letter-spacing: -0.025em; }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
h3 { font-size: 22px; font-variation-settings: "SOFT" 50, "opsz" 24; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
}
.eyebrow.caf { color: var(--caffeine); }
.eyebrow.wat { color: var(--water); }
.caf { color: var(--caffeine); }
.wat { color: var(--water); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-muted); max-width: 34em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--ivory) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 16px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Buttons & form */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; font-size: 15px;
  padding: 0 20px; height: 46px; border-radius: 14px; border: 0;
  background: var(--ink); color: var(--ivory); text-decoration: none; cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; opacity: 0.85; }
.btn.small { height: 38px; font-size: 14px; padding: 0 14px; border-radius: 12px; }
.waitlist { display: flex; gap: 8px; max-width: 460px; flex-wrap: wrap; }
.waitlist input {
  flex: 1 1 220px; min-width: 0; height: 52px; padding: 0 16px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--hairline); border-radius: 14px;
}
.waitlist input:focus { outline: 2px solid var(--caffeine); outline-offset: 1px; }
.waitlist .btn { height: 52px; flex: 0 0 auto; }
@media (max-width: 480px) { .waitlist .btn { flex: 1 1 100%; } }
.form-note { font-size: 13px; color: var(--ink-muted); margin-top: 10px; min-height: 1.4em; }
.form-note.ok { color: var(--water); font-weight: 700; }
.form-note.err { color: var(--danger); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 .caf, .hero h1 .wat { font-style: italic; font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: 14px; color: var(--ink-muted); font-weight: 600; }
.badges span::before { content: "✓"; color: var(--water); font-weight: 800; margin-right: 6px; }
.hero-art { position: relative; display: flex; justify-content: center; min-height: 560px; }
.eclipse { position: absolute; width: 440px; height: 440px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.eclipse .c1, .eclipse .c2 { position: absolute; border-radius: 50%; width: 330px; height: 330px; }
.eclipse .c1 { background: var(--caffeine); left: 0; bottom: 0; opacity: 0.9; }
.eclipse .c2 { background: var(--water); right: 0; top: 0; box-shadow: 0 0 0 12px var(--ivory); }
@media (prefers-reduced-motion: no-preference) {
  .eclipse .c2 { animation: drift 9s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-16px, 14px); } }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 520px; }
  .eclipse { width: 360px; height: 360px; }
  .eclipse .c1, .eclipse .c2 { width: 270px; height: 270px; }
}

/* Phone frame around a full-screen screenshot */
.phone {
  position: relative; width: 290px; flex: 0 0 auto;
  border-radius: 46px; padding: 9px;
  background: #1b1512;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 40px 80px -30px rgba(43, 32, 25, 0.55), 0 12px 24px -12px rgba(43, 32, 25, 0.35);
}
.phone img { border-radius: 38px; width: 100%; height: auto; aspect-ratio: 1320 / 2868; }
.phone.tilt { transform: rotate(-3deg); }
@media (max-width: 420px) { .phone { width: 250px; } }

/* Trust strip */
.strip { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 22px 0; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; font-weight: 700; font-size: 15px; color: var(--ink-muted); }
.strip b { color: var(--ink); }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature.flip .feature-art { order: -1; }
.feature-art { display: flex; justify-content: center; position: relative; }
.feature-art::before {
  content: ""; position: absolute; inset: 8% 4%; border-radius: 40px; z-index: -1;
}
.feature-art.caf-bg::before { background: var(--caffeine-soft); }
.feature-art.wat-bg::before { background: var(--water-soft); }
.feature-art.ink-bg::before { background: var(--sunken); }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.points .dot {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: 16px; background: var(--card); border: 1px solid var(--hairline);
}
.points b { display: block; font-size: 16px; }
.points span { color: var(--ink-muted); font-size: 15px; }
.quote {
  margin-top: 26px; padding: 16px 18px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--hairline); font-weight: 700; font-size: 15px;
  display: flex; gap: 12px; align-items: center;
}
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-art { order: 0; }
  .feature + .feature { margin-top: 80px; }
}

/* Calculator */
.calc-section { background: var(--evening); color: var(--evening-ink); }
.calc-section .eyebrow { color: var(--evening-accent); }
.calc-section .lede { color: #cbbcae; }
.calc { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: stretch; }
.calc-controls, .calc-result {
  background: #372a21; border: 1px solid #4a3a2f; border-radius: var(--radius); padding: 24px;
}
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #cbbcae; }
.field select, .field input {
  height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--evening-ink);
  background: #2b2019; border: 1px solid #5a4838; border-radius: 12px; width: 100%;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, #cbbcae 50%), linear-gradient(135deg, #cbbcae 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px;
}
.field input::-webkit-calendar-picker-indicator { filter: invert(0.8); }
.field select:focus, .field input:focus { outline: 2px solid var(--evening-accent); outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-result { display: flex; flex-direction: column; }
.verdict { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; margin-bottom: 8px; }
.big { font-family: "Fraunces", Georgia, serif; font-size: clamp(48px, 7vw, 72px); font-weight: 600; line-height: 1; color: var(--evening-accent); font-variation-settings: "opsz" 144; }
.big small { font-size: 0.4em; margin-left: 4px; }
.verdict-text { font-weight: 700; font-size: 17px; }
.verdict-text.good { color: #7fd0b4; }
.verdict-text.bad { color: #f39a83; }
.calc-sub { color: #cbbcae; font-size: 15px; margin: 0 0 14px; }
.chart { width: 100%; height: auto; margin-top: auto; }
.chart text { font-family: "Manrope", sans-serif; font-size: 11px; fill: #a8998b; }
.calc-foot { font-size: 13px; color: #a8998b; margin: 14px 0 0; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

/* Grid of small cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card .ic { font-size: 24px; margin-bottom: 12px; display: block; }
.card h3 { font-size: 20px; margin-bottom: 6px; }
.card p { color: var(--ink-muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Honest science */
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.honest .card { box-shadow: none; }
.honest .card.water { background: var(--water-soft); border-color: transparent; }
.honest .card.caffeine { background: var(--caffeine-soft); border-color: transparent; }
@media (max-width: 760px) { .honest { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--caffeine); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--ink-muted); }

/* Final CTA */
.cta { text-align: center; }
.cta .waitlist { margin: 26px auto 0; }
.cta .form-note { text-align: center; }
.cta img.app-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 24px; box-shadow: var(--shadow); }

/* Footer */
footer { border-top: 1px solid var(--hairline); padding: 36px 0 48px; font-size: 14px; color: var(--ink-muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
footer a { color: var(--ink-muted); }
.fine { width: 100%; font-size: 13px; margin: 8px 0 0; }

/* Long-form pages (privacy, support) */
.doc { max-width: 720px; padding: 56px 20px 80px; margin: 0 auto; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); }
.doc h2 { font-size: 26px; margin-top: 44px; }
.doc p, .doc li { color: var(--ink); }
.doc .updated { color: var(--ink-muted); font-size: 14px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }

.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
