/* Mealwake — mealwake.com. Same tokens as the app (Theme.swift). Light only, one coral accent. */
:root {
  --ink: #111114;
  --body: #4e4d53;
  --mute: #6c6b71;
  --line: #eeece8;
  --surface: #f6f5f2;
  --page: #fbfaf8;
  --coral: #ef532e;
  --coral-deep: #c23a18;
  --coral-tint: #fff0ea;
  --calm: #6f95f7;
  --calm-text: #3f68d6;
  --calm-tint: #eef3ff;
  --sand: #edb44a;
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --shadow-lg: 0 40px 80px -30px rgba(40, 24, 18, .28), 0 18px 36px -18px rgba(40, 24, 18, .18);
  --shadow-md: 0 18px 40px -18px rgba(40, 24, 18, .22), 0 2px 6px rgba(40, 24, 18, .05);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, "Inter", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(239, 83, 46, .45); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-deep); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.035em; line-height: 1.04; font-weight: 750; }
h1 { font-size: clamp(42px, 6.4vw, 78px); }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; font-weight: 700; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--body); line-height: 1.5; max-width: 34em; }
.coral { color: var(--coral); }
.muted { color: var(--mute); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 248, .82);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 2px 6px rgba(194, 58, 24, .25); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 550; color: var(--body); }
.nav-links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 650; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #26262b; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #dcd8d1; }
.btn svg { width: 20px; height: 20px; }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 14.5px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 120px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 79, .20), rgba(255, 122, 79, .06) 55%, transparent 72%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; position: relative; }
.hero h1 { margin-top: 18px; }
.hero .lede { margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--body); font-size: 15px; font-weight: 550; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--coral); flex: none; }

.stage { position: relative; height: 640px; }
.stage .phone { position: absolute; left: 50%; top: 0; transform: translateX(-46%); }
.float { position: absolute; background: #fff; border-radius: 22px; box-shadow: var(--shadow-md); padding: 14px 16px; }
.float-meal { left: -34px; top: 84px; width: 286px; display: flex; gap: 12px; align-items: center; transform: rotate(-4deg); }
.float-meal img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.float-meal b { display: block; font-size: 15px; letter-spacing: -.01em; }
.float-meal small { color: var(--mute); font-size: 12.5px; }
.pills { display: flex; gap: 5px; margin-top: 7px; }
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--surface); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--calm); display: block; }
.pill.rough { background: var(--coral-tint); color: var(--coral-deep); }
.pill.rough i { background: var(--coral); }
.float-pattern { right: 0; top: 292px; width: 248px; transform: rotate(3deg); padding: 18px; }
.float-pattern .tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--coral-deep); }
.float-pattern p { font-weight: 700; font-size: 17px; line-height: 1.22; letter-spacing: -.02em; margin-top: 8px; }
.float-pattern .nums { display: flex; align-items: baseline; gap: 14px; margin-top: 10px; font-family: var(--rounded); font-weight: 750; }
.float-pattern .nums b { font-size: 34px; color: var(--coral); letter-spacing: -.03em; }
.float-pattern .nums span { font-size: 26px; color: #8e8b85; }
.float-pattern small { display: block; color: var(--mute); font-size: 12px; margin-top: 2px; }
.float-note { left: -20px; bottom: 28px; width: 304px; transform: rotate(-2deg); padding: 12px; background: rgba(255, 255, 255, .96); }

/* ---------- device frame ---------- */
.phone { width: 300px; aspect-ratio: 1320 / 2868; border-radius: 48px; background: #fff; position: relative; overflow: hidden;
  box-shadow: 0 0 0 9px #18181b, 0 0 0 10.5px #6f6f75, 0 0 0 11px #2a2a2d, var(--shadow-lg); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone::after { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 27px; border-radius: 16px; background: #000; }
.phone.sm { width: 260px; border-radius: 42px; }

/* ---------- notification mock ---------- */
.note { display: flex; gap: 11px; align-items: flex-start; }
.note .ic { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.note .top { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.note .top b { font-weight: 650; }
.note .top span { color: var(--mute); font-size: 12.5px; }
.note p { font-size: 13.5px; line-height: 1.32; color: #1d1d20; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.actions span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 12px; background: var(--surface);
  font-size: 11.5px; font-weight: 650; }
.actions svg { width: 17px; height: 17px; }
.actions .on { background: var(--coral); color: #fff; }

/* ---------- sections ---------- */
section { padding: clamp(72px, 9vw, 128px) 0; }
.section-head { max-width: 760px; }
.section-head h2 { margin-top: 14px; }
.section-head .lede { margin-top: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lede { margin-left: auto; margin-right: auto; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.step { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; font-family: var(--rounded); }
.step h3 { margin-top: 18px; }
.step p { color: var(--body); margin-top: 8px; font-size: 16px; }
.step .visual { margin-top: 24px; background: var(--surface); border-radius: 20px; padding: 18px; flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 210px; }
.voice-line { font-family: var(--display); font-size: 21px; font-weight: 650; line-height: 1.3; letter-spacing: -.02em; }
.voice-line u { text-decoration-color: var(--coral); text-decoration-thickness: 2.5px; text-underline-offset: 4px; }
.voice-line em { font-style: normal; color: #b5b2ac; }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; margin-top: 16px; }
.wave i { width: 3px; border-radius: 2px; background: var(--coral); display: block; animation: wave 1.1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 6px; opacity: .55; } 50% { height: 24px; opacity: 1; } }
.mini-card { background: #fff; border-radius: 18px; padding: 14px 15px; box-shadow: var(--shadow-md); }
.tag-chip { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .07em; padding: 4px 8px; border-radius: 7px; background: var(--calm-tint); color: #2f5bcb; }
.dots { display: flex; gap: 4px; align-items: center; margin-top: 10px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #e4e1db; display: block; }
.dots i.b { background: var(--coral); }
.dots small { margin-left: 8px; color: var(--mute); font-size: 12.5px; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 130px); }
.feature.flip .copy { order: 2; }
.feature .copy h2 { margin-top: 14px; }
.feature .copy .lede { margin-top: 18px; }
.ticks { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); }
.ticks svg { width: 22px; height: 22px; color: var(--coral); flex: none; margin-top: 1px; }
.ticks b { color: var(--ink); font-weight: 650; }
.shot { display: grid; place-items: center; position: relative; padding: 36px 0; }
.shot::before { content: ""; position: absolute; inset: 0; border-radius: 40px; background: linear-gradient(160deg, #fff4ee, #fde6db); }
.shot.calm::before { background: linear-gradient(160deg, #f1f5ff, #e3ebff); }
.shot.sand::before { background: linear-gradient(160deg, #fff8ea, #fbecd0); }
.shot .phone { position: relative; }

/* numbers band */
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat b { display: block; font-family: var(--rounded); font-size: clamp(36px, 4vw, 52px); font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--body); font-size: 15.5px; }

/* privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; }
.p-card { background: #fff; border-radius: 24px; padding: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.p-card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--coral-tint); color: var(--coral); display: grid; place-items: center; }
.p-card .ic svg { width: 22px; height: 22px; }
.p-card h3 { font-size: 18px; margin-top: 18px; }
.p-card p { color: var(--body); font-size: 15px; margin-top: 6px; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 52px; max-width: 920px; margin-left: auto; margin-right: auto; }
.plan { background: #fff; border-radius: 30px; padding: 32px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.plan.plus { box-shadow: inset 0 0 0 2px var(--coral), var(--shadow-md); background: linear-gradient(180deg, #fff, #fff7f3); }
.plan .name { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 18px; }
.badge { font-size: 12px; font-weight: 750; color: #fff; background: var(--coral-deep); padding: 4px 10px; border-radius: 999px; }
.price { margin-top: 18px; font-family: var(--rounded); font-weight: 750; font-size: 50px; letter-spacing: -.03em; line-height: 1; }
.price small { font-family: var(--font); font-size: 16px; font-weight: 550; color: var(--mute); letter-spacing: 0; }
.plan .sub { color: var(--body); margin-top: 10px; font-size: 15px; }
.plan ul { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; color: var(--body); }
.plan li svg { width: 20px; height: 20px; color: var(--coral); flex: none; margin-top: 2px; }
.fineprint { text-align: center; color: var(--mute); font-size: 13.5px; margin-top: 22px; }

/* faq */
.faq { max-width: 820px; margin: 48px auto 0; }
.faq details { background: #fff; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); padding: 0 24px; }
.faq details + details { margin-top: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 650; font-size: 17.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { color: var(--body); padding: 0 0 22px; }

/* closing */
.closing { text-align: center; }
.closing .card { background: linear-gradient(160deg, #ff7a4f, #e23f19); color: #fff; border-radius: 44px; padding: clamp(48px, 7vw, 88px) var(--gutter); position: relative; overflow: hidden; }
.closing .card::after { content: ""; position: absolute; inset: auto -120px -220px auto; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.closing img { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto; box-shadow: 0 10px 30px rgba(120, 30, 10, .35); }
.closing h2 { margin-top: 26px; color: #fff; }
.closing p { margin: 16px auto 0; max-width: 32em; color: rgba(255, 255, 255, .88); font-size: 18.5px; }
.closing .btn { margin-top: 30px; background: #fff; color: var(--ink); }

/* footer */
footer { padding: 56px 0 48px; color: var(--body); font-size: 14.5px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--mute); font-size: 13.5px; }

/* legal + support pages */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) 40px; }
.doc h1 { font-size: clamp(38px, 5vw, 56px); }
.doc .meta { color: var(--mute); margin-top: 14px; font-size: 15px; }
.doc .summary { margin-top: 28px; background: var(--coral-tint); border-radius: 22px; padding: 22px 24px; font-size: 17px; }
.doc h2 { font-size: 26px; margin-top: 44px; letter-spacing: -.02em; line-height: 1.2; }
.doc p, .doc li { color: var(--body); margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--coral-deep); }
.doc strong { color: var(--ink); }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.support-grid a { display: block; background: #fff; border-radius: 20px; padding: 20px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.support-grid b { display: block; font-size: 17px; }
.support-grid span { color: var(--body); font-size: 15px; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wave i { animation: none; height: 14px; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { height: 620px; max-width: 520px; margin: 10px auto 0; width: 100%; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
  .privacy-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .stage { height: 560px; }
  .phone { width: 250px; border-radius: 40px; }
  .float-meal { width: 236px; left: 0; top: 34px; }
  .float-meal img { width: 46px; height: 46px; }
  .float-pattern { width: 206px; right: 0; top: 196px; padding: 14px 15px; }
  .float-pattern p { font-size: 15.5px; }
  .float-pattern .nums b { font-size: 28px; }
  .float-note { width: calc(100% - 16px); left: 8px; bottom: 10px; }
  .privacy-grid, .plans, .support-grid { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > div:first-child { grid-column: 1 / -1; }
  .cta-row .btn { width: 100%; }
}
