/* macromoose.com — same palette and type as the app (src/index.css). */
:root {
  --cream: #FBF7F0;
  --sunk: #F3EDE3;
  --line: #ECE4D7;
  --ink: #1B2420;
  --muted: #5F675F;
  --pine: #1F4D3A;
  --night: #0F1A15;      /* the mountain / dark sections */
  --night-card: #17251E;
  --mint: #7FC4A1;       /* pine in dark mode */
  --night-ink: #EEF1EC;
  --night-muted: #A3AEA6;
  --tan: #C9A36B;
  --tan-light: #D9B785;
  --protein: #E2668B;
  --carbs: #F0B84A;
  --fat: #6F9AE0;
  --danger: #C2412D;
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", ui-rounded, -apple-system, system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; border-radius: 6px; }

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

/* ── Header ───────────────────────────────── */
.site-head { padding: 22px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -0.02em; color: var(--pine); }
.brand svg { width: 44px; height: 36px; }
.head-link { font-weight: 800; font-size: 16px; text-decoration: none; color: var(--pine); padding: 10px 18px; border-radius: 999px; background: var(--sunk); }
.head-link:hover { background: var(--line); }

/* ── Hero ─────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-top: 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(46px, 7vw, 84px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--pine);
  margin: 0 0 24px;
}
.hero .lede { font-size: 21px; color: var(--muted); max-width: 30ch; margin: 0 0 32px; }
.hero .phone { justify-self: center; margin-bottom: -150px; }

/* The mountain: rises out of the hero and becomes the dark section below. */
.range { position: relative; z-index: 1; margin-top: -120px; color: var(--night); }
.range svg { width: 100%; height: auto; }
.flag-pole { stroke: var(--night); stroke-width: 5; stroke-linecap: round; }
.flag { fill: var(--tan); }
.snow { fill: var(--cream); opacity: 0.9; }
@media (prefers-reduced-motion: no-preference) {
  .flag-pole { stroke-dasharray: 80; stroke-dashoffset: 80; animation: pole 0.7s 0.5s ease-out forwards; }
  .flag { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: unfurl 0.5s 1.15s cubic-bezier(.3,1.6,.5,1) forwards; }
}
@keyframes pole { to { stroke-dashoffset: 0; } }
@keyframes unfurl { to { transform: scaleX(1); } }

/* ── Waitlist form ────────────────────────── */
.join { display: grid; grid-template-columns: 1fr auto; gap: 10px; max-width: 480px; }
.join.full { grid-template-columns: 1fr 1fr; max-width: 560px; }
.join.full .wide { grid-column: 1 / -1; }
.field {
  font: inherit; font-size: 17px; font-weight: 700;
  width: 100%; padding: 16px 18px; border-radius: 16px;
  border: 2px solid transparent; background: var(--sunk); color: var(--ink);
}
.field::placeholder { color: #8C938C; }
.field:focus { outline: none; border-color: var(--pine); background: #fff; }
textarea.field { resize: vertical; min-height: 96px; }
.btn {
  font: inherit; font-size: 17px; font-weight: 900; cursor: pointer;
  padding: 16px 26px; border-radius: 16px; border: 0;
  background: var(--pine); color: var(--cream);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; cursor: default; }
.form-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.form-msg { font-size: 16px; font-weight: 800; margin: 12px 0 0; min-height: 1.5em; }
.form-msg.ok { color: var(--pine); }
.form-msg.err { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Phone frame ──────────────────────────── */
.phone {
  width: min(320px, 78vw);
  aspect-ratio: 390 / 900;
  border-radius: 52px;
  padding: 11px;
  background: #1c2420;
  box-shadow: 0 0 0 2px #2d3833, 0 40px 80px -30px rgba(15, 26, 21, .55);
  position: relative;
}
.phone .screen {
  height: 100%; border-radius: 42px; overflow: hidden;
  background: var(--screen, var(--night)); padding-top: 46px; position: relative;
}
.phone .screen::before { /* Dynamic Island */
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 26px; border-radius: 20px; background: #000;
}
.phone img { width: 100%; height: auto; }
.phone.light { --screen: #FBF7F0; }

/* ── Dark: the mountain's body ────────────── */
.night { background: var(--night); color: var(--night-ink); padding: 40px 0 120px; }
.night h2, .founder h2, .signup h2 {
  font-size: clamp(34px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 900; margin: 0 0 18px;
}
.night h2 { color: #fff; }
.night p { color: var(--night-muted); max-width: 44ch; margin: 0 0 14px; }
.night .intro { text-align: center; padding: 60px 0 40px; }
.night .intro p { margin-inline: auto; font-size: 20px; }
.night .intro h2 { font-size: clamp(38px, 5.4vw, 64px); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; }
.feature .phone { justify-self: center; background: #0a110e; box-shadow: 0 0 0 2px #26372E, 0 40px 90px -30px rgba(0,0,0,.8); }
.feature.flip .copy { order: 2; }
.feature .copy { max-width: 470px; }
.feature.flip .copy { justify-self: end; }
.macros { display: flex; gap: 8px; margin: 0 0 20px; }
.macros i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: baseline; color: var(--night-ink); font-weight: 700; }
.facts li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); transform: translateY(-2px); }

/* ── Founder note ─────────────────────────── */
.founder { padding: 110px 0 40px; }
.founder .wrap { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; max-width: 860px; }
.founder .moose { width: 120px; color: var(--tan); }
.founder h2 { color: var(--pine); }
.founder p { max-width: 58ch; margin: 0 0 16px; color: #3b433e; }
.founder .sig { font-weight: 900; color: var(--pine); }
.nots { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.nots li { background: var(--sunk); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 800; color: var(--pine); }

/* ── Sign-up ──────────────────────────────── */
.signup { padding: 80px 0 110px; }
.signup .panel { background: #fff; border: 2px solid var(--line); border-radius: 36px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.signup h2 { color: var(--pine); }
.signup p { color: var(--muted); margin: 0 0 14px; max-width: 40ch; }
.signup .field { background: var(--cream); }
.signup .field:focus { background: #fff; }

/* ── Footer ───────────────────────────────── */
.site-foot { border-top: 2px solid var(--line); padding: 36px 0 48px; font-size: 15px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { font-weight: 800; color: var(--pine); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }

/* ── Plain pages (privacy) ────────────────── */
.doc { padding: 40px 0 90px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1; letter-spacing: -0.03em; font-weight: 900; color: var(--pine); margin: 20px 0 10px; }
.doc h2 { font-size: 24px; font-weight: 900; color: var(--pine); margin: 40px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #3b433e; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .updated { color: var(--muted); font-size: 15px; }

/* ── Small screens ────────────────────────── */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero { padding-top: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: left; }
  .hero .lede { font-size: 19px; }
  .hero .phone { margin-bottom: 0; width: min(280px, 74vw); }
  .range { margin-top: 8px; }
  .range svg { height: 150px; }
  .join { grid-template-columns: 1fr; }
  .join.full { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; padding: 44px 0; }
  .feature.flip .copy { order: 0; justify-self: start; }
  .night .intro { padding: 40px 0 10px; }
  .founder { padding-top: 80px; }
  .founder .wrap { grid-template-columns: 1fr; gap: 16px; }
  .founder .moose { width: 84px; }
  .signup .panel { grid-template-columns: 1fr; gap: 20px; border-radius: 28px; }
  .head-link { padding: 9px 14px; font-size: 15px; }
}
