:root {
  --bg: #F7F5EE; --surface: #FFFFFF; --ink: #121A14; --muted: #59655B; --line: #E3E0D5;
  --green: #1F4D2E; --green-2: #2C5C39; --lime: #C8F169; --mango: #FFB23F; --coral: #FF6B4A;
  --on-green: #F7F5EE; --soft: #E6EFE3;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0E120F; --surface: #171C18; --ink: #EEF1EA; --muted: #9DA99F; --line: #283029;
          --green: #17361F; --green-2: #1F4D2E; --soft: #1C2A1F; --on-green: #EEF1EA; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header */
header.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 10px 16px; border-radius: 999px; }
.lang { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--green-2); color: var(--on-green); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--green); color: var(--on-green); border-radius: 28px;
  padding: 44px 28px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center; margin-top: 4px; }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,241,105,0.35), rgba(200,241,105,0) 70%); }
.hero > * { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
  font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(40px, 7.4vw, 76px); line-height: 0.98; letter-spacing: -0.035em; margin: 16px 0 14px; font-weight: 850; }
.hero h1 .hl { color: var(--lime); }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); margin: 0 0 22px; opacity: 0.92; max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--lime); color: #142012; text-decoration: none;
  font-weight: 800; padding: 13px 18px; border-radius: 14px; }
.store small { display: block; font-weight: 600; font-size: 12px; opacity: 0.75; line-height: 1.1; }
.store b { display: block; font-size: 17px; line-height: 1.15; }
.ghost { color: var(--on-green); font-weight: 700; text-decoration: none; padding: 12px 6px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding: 34px 20px; } .phone { margin: 6px auto 0; } }

/* Phone mockup (pure CSS, mirrors the app's Today screen) */
.phone { width: 270px; max-width: 100%; justify-self: center; background: #0B0F0C; border-radius: 42px; padding: 10px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35), inset 0 0 0 2px #2A322B; transform: rotate(3deg); }
.screen { background: #F5F7F2; color: #18201A; border-radius: 34px; padding: 16px 12px 14px; min-height: 500px; font-size: 12px; }
.screen .bar { display: flex; justify-content: space-between; font-weight: 700; font-size: 11px; padding: 0 8px 10px; }
.screen .ttl { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; margin: 2px 6px 10px; }
.today { background: #2C5C39; color: #fff; border-radius: 16px; padding: 12px; }
.today .ey { font-size: 9px; letter-spacing: 0.1em; font-weight: 800; opacity: 0.8; }
.today .meal { font-weight: 800; font-size: 15px; line-height: 1.15; margin: 4px 0 8px; }
.today .btn { background: #fff; color: #2C5C39; border-radius: 9px; text-align: center; font-weight: 800; padding: 7px; }
.today hr { border: 0; border-top: 1px solid rgba(255,255,255,0.25); margin: 10px 0; }
.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 9px; }
.ring { background: #fff; border: 1px solid #DAE1D7; border-radius: 13px; padding: 9px 4px; text-align: center; }
.ring i { display: block; width: 34px; height: 34px; margin: 0 auto 5px; border-radius: 50%;
  background: conic-gradient(#B97C0C var(--p), #DAE1D7 0); -webkit-mask: radial-gradient(circle 12px, transparent 98%, #000 100%); mask: radial-gradient(circle 12px, transparent 98%, #000 100%); }
.ring b { display: block; font-size: 12px; }
.ring span { color: #5B685D; font-size: 9px; }

/* Sections */
section.block { padding: 56px 0 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 800; color: var(--coral); margin: 0 0 8px; }
h2.big { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 850; }
p.sub { color: var(--muted); font-size: 18px; margin: 0 0 26px; max-width: 56ch; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.step .n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--lime); color: #142012; font-weight: 900; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile { border-radius: 22px; padding: 22px; background: var(--surface); border: 1px solid var(--line); grid-column: span 2; }
.tile h3 { margin: 6px 0 6px; font-size: 20px; letter-spacing: -0.015em; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tile .emo { font-size: 28px; }
.tile.wide { grid-column: span 4; }
.tile.green { background: var(--green-2); color: var(--on-green); border: 0; }
.tile.green p { color: var(--on-green); opacity: 0.85; }
.tile.mango { background: var(--mango); color: #2A1A00; border: 0; }
.tile.mango p { color: #2A1A00; opacity: 0.8; }
@media (max-width: 820px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide { grid-column: auto; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { background: var(--soft); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700; }
.tile.green .chip { background: rgba(255,255,255,0.14); color: var(--on-green); }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.015em; line-height: 1.3; font-weight: 700; }
.quote span { display: block; margin-top: 12px; font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.final { background: var(--ink); color: var(--bg); border-radius: 28px; padding: 40px 26px; text-align: center; margin: 56px 0 0; }
.final h2 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.02; margin: 0 0 10px; font-weight: 850; }
.final p { margin: 0 0 22px; opacity: 0.8; }

/* Text pages */
main.doc h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.02; letter-spacing: -0.03em; margin: 18px 0 10px; font-weight: 850; }
main.doc h2 { font-size: 21px; margin: 30px 0 8px; letter-spacing: -0.01em; }
main.doc h3 { font-size: 17px; margin: 22px 0 4px; }
main.doc p, main.doc li { color: var(--ink); }
main.doc ul { padding-left: 20px; }
main.doc li { margin: 6px 0; }
.meta { color: var(--muted); font-size: 14px; font-weight: 600; margin: 0; }
.note { background: var(--soft); border-radius: 16px; padding: 16px 18px; font-weight: 600; }
.note a, main.doc a { color: var(--green-2); font-weight: 700; }
@media (prefers-color-scheme: dark) { .note a, main.doc a { color: var(--lime); } }
.mailcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--green-2); color: var(--on-green);
  border-radius: 22px; padding: 22px; margin: 6px 0 10px; }
.mailcard b { font-size: 20px; letter-spacing: -0.01em; }
.mailcard a { background: var(--lime); color: #142012; text-decoration: none; font-weight: 800; padding: 11px 16px; border-radius: 12px; }

footer { color: var(--muted); font-size: 14px; padding: 34px 0 44px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer a { text-decoration: none; font-weight: 600; }
footer .flag { margin-left: auto; }
[lang="en"] .es, [lang="es"] .en { display: none; }
