/* Mittlo, colors match the app's theme tokens (src/theme/tokens.ts). */
:root {
  --bg: #FFF8EC;
  --surface: #FFFFFF;
  --muted: #F6EEDF;
  --border: #EADFCB;
  --text: #3A2418;
  --text-2: #7A6556;
  --text-3: #A8957F;
  --accent: #FFC928;
  --accent-soft: #FFF1BF;
  --primary: #4A2C1D;
  --on-primary: #FFF8EC;
  --protein: #E8775A;
  --fiber: #6BAF5B;
  --fat: #3E9C8A;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Nunito", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1E1611; --surface: #2A1F18; --muted: #33261D; --border: #3E2F24;
    --text: #FBF1E3; --text-2: #C3AE99; --text-3: #8F7B68;
    --accent-soft: #4A3A12; --primary: #FBF1E3; --on-primary: #3A2418;
    --protein: #F08C70; --fiber: #86C374; --fat: #5DB7A4;
  }
}
:root[data-theme="dark"] {
  --bg: #1E1611; --surface: #2A1F18; --muted: #33261D; --border: #3E2F24;
  --text: #FBF1E3; --text-2: #C3AE99; --text-3: #8F7B68;
  --accent-soft: #4A3A12; --primary: #FBF1E3; --on-primary: #3A2418;
  --protein: #F08C70; --fiber: #86C374; --fat: #5DB7A4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p a, .contact a, .policy a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; font-weight: 700; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: fixed; top: -60px; left: 12px; background: var(--accent); color: #3A2418; padding: 10px 16px; border-radius: 999px; z-index: 10; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--round); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { border-radius: 10px; }
nav { display: flex; gap: 22px; font-weight: 700; font-size: 15px; }
nav a { text-decoration: none; color: var(--text-2); }
nav a:hover { color: var(--text); }

/* Type */
.eyebrow { font-family: var(--round); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); margin: 0 0 10px; }
.section-title { font-family: var(--round); font-weight: 800; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; text-wrap: balance; }
.body { color: var(--text-2); font-size: 18px; margin: 0 0 1em; max-width: 56ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.narrow { max-width: 52ch; }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--round); font-weight: 900; font-size: clamp(46px, 7.4vw, 92px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 22px; }
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: 6%; height: 30%; background: var(--accent); border-radius: 999px; z-index: -1; transform: rotate(-1.5deg); }
.lede { font-size: 20px; color: var(--text-2); max-width: 46ch; margin: 0 0 30px; }
.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--primary); color: var(--on-primary); border-radius: 16px; padding: 11px 22px 11px 18px; cursor: default; user-select: none; }
.store-badge.small { padding: 9px 18px 9px 14px; border-radius: 14px; margin-top: 6px; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-text small { font-size: 12px; font-weight: 600; opacity: .85; }
.store-text strong { font-family: var(--round); font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.store-badge.small .store-text strong { font-size: 18px; }
.soon-pill { background: var(--accent-soft); color: var(--text); font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 999px; }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; }
.sun { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 70%); }
.mitty-hero { position: relative; width: 88%; margin: 6% auto 0; animation: bob 5s ease-in-out infinite; }
.bubble { position: absolute; max-width: 62%; padding: 12px 16px; border-radius: 20px; font-size: 15px; font-weight: 600; line-height: 1.4; box-shadow: 0 10px 30px rgba(74, 44, 29, .12); }
.b-user { top: 4%; left: -2%; background: var(--primary); color: var(--on-primary); border-bottom-left-radius: 6px; }
.b-mitty { bottom: 6%; right: -2%; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-bottom-right-radius: 6px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.5deg); } }

/* Never ask */
.never { background: var(--primary); color: var(--on-primary); padding: 56px 0; }
.never-title { font-family: var(--round); font-weight: 800; font-size: clamp(22px, 3vw, 28px); text-align: center; margin: 0 0 22px; }
.never-list { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.never-list li { font-family: var(--round); font-weight: 800; font-size: clamp(20px, 3vw, 28px); padding: 10px 22px; border-radius: 999px; border: 2px solid color-mix(in srgb, var(--on-primary) 30%, transparent); }
.never-list s { text-decoration-color: var(--accent); text-decoration-thickness: 4px; }
.never-note { text-align: center; margin: 24px auto 0; max-width: 48ch; opacity: .85; font-size: 18px; }

/* How */
.how { padding: 88px 0 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 22px 26px 28px; }
.card img { width: 150px; margin: 0 auto 6px; }
.card h3 { font-family: var(--round); font-weight: 800; font-size: 23px; margin: 0 0 8px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--text-2); }

/* Buddies */
.buddies { padding: 72px 0; }
.buddies-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; background: var(--muted); border-radius: 32px; padding: 48px; }
.buddy-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.buddy { background: var(--surface); border-radius: 24px; padding: 14px 10px 18px; text-align: center; border-top: 6px solid; }
.buddy img { width: 100%; max-width: 130px; margin: 0 auto; }
.buddy span { font-family: var(--round); font-weight: 800; font-size: 16px; }
.buddy.protein { border-color: var(--protein); }
.buddy.fiber { border-color: var(--fiber); }
.buddy.fat { border-color: var(--fat); }

/* Grow */
.grow { padding: 40px 0 72px; }
.stages { list-style: none; padding: 0; margin: 36px auto 0; display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 2vw, 24px); max-width: 860px; }
.stages li { flex: 1; position: relative; }
.stages li:nth-child(1) img { width: 60%; margin: 0 auto; }
.stages li:nth-child(2) img { width: 72%; margin: 0 auto; }
.stages li:nth-child(3) img { width: 84%; margin: 0 auto; }
.stages li:nth-child(4) img { width: 94%; margin: 0 auto; }
.stages li:not(:last-child)::after { content: ""; position: absolute; left: 70%; right: -30%; bottom: 8%; height: 4px; border-radius: 4px; background: var(--accent-soft); z-index: -1; }

/* Soon */
.soon { padding: 0 0 72px; }
.soon-box { display: flex; align-items: center; gap: 32px; background: var(--accent); color: #3A2418; border-radius: 32px; padding: 32px 48px; }
.soon-box img { width: 190px; flex-shrink: 0; }
.soon-box .body { color: #5A3A26; }
.soon-box .store-badge { background: #4A2C1D; color: #FFF8EC; }

/* Support */
.support { padding: 24px 0 80px; }
.faq { display: grid; gap: 12px; margin-top: 24px; max-width: 780px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 0 22px; }
summary { cursor: pointer; list-style: none; font-family: var(--round); font-weight: 800; font-size: 18px; padding: 18px 28px 18px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--text-3); }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 18px; color: var(--text-2); }
.contact { margin-top: 26px; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 28px 0 40px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot .brand { font-size: 17px; }
.disclaimer { color: var(--text-3); font-size: 14px; margin-top: 18px; }

/* Privacy page */
.policy { max-width: 760px; margin: 0 auto; padding: 32px 24px 80px; }
.policy h1 { font-family: var(--round); font-weight: 900; font-size: clamp(38px, 6vw, 58px); line-height: 1.05; letter-spacing: -.03em; margin: 8px 0 14px; }
.policy .updated { color: var(--text-3); font-size: 15px; margin: 0 0 28px; }
.policy .promise { background: var(--accent-soft); border-radius: 24px; padding: 22px 26px; margin: 0 0 34px; }
.policy .promise p { margin: 0; font-family: var(--round); font-weight: 800; font-size: 19px; line-height: 1.45; color: var(--text); }
.policy h2 { font-family: var(--round); font-weight: 800; font-size: 26px; letter-spacing: -.01em; margin: 40px 0 10px; }
.policy h3 { font-family: var(--round); font-weight: 800; font-size: 19px; margin: 24px 0 6px; }
.policy p, .policy li { color: var(--text-2); }
.policy li { margin: .35em 0; }
.policy strong { color: var(--text); }
.policy table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--border); }
.policy th { font-family: var(--round); color: var(--text); }
.policy td { color: var(--text-2); }
.table-scroll { overflow-x: auto; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-art { max-width: 420px; }
  .cards { grid-template-columns: 1fr; }
  .buddies-grid { grid-template-columns: 1fr; padding: 32px 22px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  nav { gap: 14px; font-size: 14px; }
  .top nav a[href="#how"] { display: none; }
  .hero { padding: 24px 0 48px; }
  .lede { font-size: 18px; }
  .bubble { font-size: 13px; max-width: 70%; }
  .b-user { left: 0; }
  .b-mitty { right: 0; }
  .buddy-list { gap: 8px; }
  .buddy span { font-size: 13px; }
  .soon-box { flex-direction: column; text-align: center; padding: 28px 20px; }
  .soon-box img { width: 140px; }
  .soon-box .body { margin-left: auto; margin-right: auto; }
  .policy { padding: 20px 16px 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mitty-hero { animation: none; }
}
