:root {
  --green: #1D5C2E; --green-deep: #133F1F; --leaf: #3E8E4E; --lime: #B5E550; --lime-deep: #8FC22E;
  --mint: #F4F8EE; --mint-2: #E4EFD6; --ink: #14261A; --ink-soft: #4F6B55; --white: #FFFFFF; --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Nunito', system-ui, sans-serif; background: var(--mint); color: var(--ink); line-height: 1.5; font-weight: 500; }
body.has-bar { padding-bottom: 96px; }
.display { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 700; line-height: 1.02; letter-spacing: -.01em; }
.wrap { max-width: 480px; margin: 0 auto; padding: 0 18px; }
button { font: inherit; cursor: pointer; border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
[hidden] { display: none !important; }
a { color: inherit; }

/* Header */
header { background: var(--white); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--mint-2); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 38px; width: auto; display: block; }
.logo .display { font-size: 22px; color: var(--green); }
.header-links { display: flex; gap: 10px; align-items: center; }
.header-links a, .header-links button { color: var(--green); font-weight: 800; font-size: 13px; text-decoration: none; background: none; }
.lang { display: flex; background: var(--mint-2); border-radius: 999px; padding: 3px; }
.lang a { text-decoration: none; }
.lang button { background: transparent; color: var(--ink-soft); font-weight: 800; font-size: 13px; padding: 5px 11px; border-radius: 999px; }
.lang button[aria-pressed="true"] { background: var(--green); color: var(--white); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%); color: var(--white); padding: 28px 0 26px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--hero-img) center / cover no-repeat; filter: saturate(.8); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,92,46,.3), rgba(19,63,31,.95)); }
.hero .wrap { position: relative; z-index: 1; text-align: center; }
.kicker { display: inline-block; background: rgba(181,229,80,.18); color: var(--lime); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(38px, 10.5vw, 50px); margin: 6px auto 0; max-width: 12ch; }
.hero p { margin: 12px auto 0; font-size: 16px; max-width: 32ch; color: rgba(255,255,255,.88); }
.hero-cta { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 17px; padding: 14px 24px; border-radius: 999px; box-shadow: 0 4px 0 var(--lime-deep); text-decoration: none; }
.hero-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--lime-deep); }
.hero-secondary { display: block; margin-top: 12px; color: rgba(255,255,255,.85); font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* WhatsApp bubble: the product scene */
.wa-scene { margin: 26px auto 0; max-width: 340px; text-align: left; }
.wa-bubble { position: relative; background: #DCF8C6; color: #111; border-radius: 12px; padding: 10px 12px 8px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 14px; line-height: 1.45; }
.wa-bubble .from { font-weight: 800; color: var(--green); font-size: 12px; margin-bottom: 2px; }
.wa-bubble .time { text-align: right; font-size: 11px; color: #5b7a5e; margin-top: 4px; }
.wa-bubble .time::after { content: " ✓✓"; color: #34B7F1; }
/* WhatsApp quick reply buttons under the bubble */
.wa-buttons { display: grid; gap: 4px; margin-top: 4px; }
.wa-buttons span { display: block; background: #fff; color: #128C7E; font-weight: 800; font-size: 14px; text-align: center; padding: 9px 10px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.wa-bubble b { font-weight: 800; }
.parent-scene { margin-top: 18px; max-width: 100%; }
.parent-scene .wa-bubble { box-shadow: 0 6px 16px rgba(20,38,26,.12); }
.wa-caption.dark { color: var(--ink-soft); }
.wa-caption { margin-top: 12px; text-align: center; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.7); letter-spacing: .04em; text-transform: uppercase; }

/* Sections */
section { padding: 30px 0; }
h2.display { font-size: 32px; text-align: center; color: var(--green); }
.sub { color: var(--ink-soft); margin: 4px auto 0; font-size: 15px; text-align: center; max-width: 34ch; }

/* Week */
.days { display: grid; gap: 6px; margin-top: 18px; }
.days button { background: var(--white); border-radius: 12px; padding: 10px 0 8px; font-weight: 800; font-size: 13px; color: var(--ink-soft); border: 2px solid transparent; line-height: 1.1; }
.days button small { display: block; font-size: 11px; font-weight: 700; margin-top: 2px; opacity: .7; }
.days button[aria-selected="true"] { border-color: var(--green); color: var(--green); }
.days button.today small { color: var(--leaf); opacity: 1; }
.plate-card { margin-top: 14px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(20,38,26,.08); }
.plate-art { height: 200px; display: grid; place-items: center; position: relative; background: var(--mint-2); }
.plate-art svg { width: 190px; height: 190px; }
.plate-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.members-tag { position: absolute; top: 12px; left: 12px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.plate-body { padding: 16px 18px 18px; }
.plate-body h3 { font-size: 26px; color: var(--green); }
.plate-body .desc { color: var(--ink-soft); margin-top: 4px; font-size: 15px; }
.macros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.macros div { background: var(--mint); border-radius: 12px; padding: 8px 4px; text-align: center; }
.macros b { display: block; font-family: 'Fredoka', sans-serif; font-size: 20px; color: var(--green); line-height: 1; }
.macros span { font-size: 11px; font-weight: 800; color: var(--ink-soft); }
.macros div.prot { background: var(--lime); } .macros div.prot b, .macros div.prot span { color: var(--ink); }
.nutri-note { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--leaf); display: flex; gap: 8px; align-items: flex-start; }
.nutri-note::before { content: "✓"; background: var(--green); color: var(--white); border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; font-size: 11px; flex: none; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags span { border: 2px solid var(--mint-2); color: var(--ink-soft); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.price-line { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.price-line .member { font-size: 26px; color: var(--green); }
.price-line .walk { color: var(--ink-soft); font-size: 14px; text-decoration: line-through; }
.price-line .tag { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.swaps { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--mint-2); }
.swaps p { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips span { background: var(--mint-2); color: var(--ink); font-size: 13px; font-weight: 800; padding: 6px 11px; border-radius: 999px; }
.cutoff { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.cutoff b { color: var(--green); }

/* Steps */
.steps { margin-top: 18px; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--lime); display: grid; place-items: center; font-size: 22px; }
.step h4 { font-size: 17px; font-weight: 800; }
.step p { color: var(--ink-soft); font-size: 15px; margin-top: 2px; }

/* Plans */
.toggle { display: flex; justify-content: center; margin-top: 16px; }
.toggle a { text-decoration: none; }
.toggle-inner { display: inline-flex; background: var(--white); border-radius: 999px; padding: 4px; }
.toggle-inner span { padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--ink-soft); }
.toggle-inner span.on { background: var(--green); color: var(--white); }
.plans { margin-top: 14px; display: grid; gap: 12px; }
.plan { background: var(--white); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; border: 2px solid transparent; text-align: left; width: 100%; }
.plan.best { border-color: var(--lime); }
.plan h3 { font-size: 24px; color: var(--green); }
.plan .each { color: var(--ink-soft); font-size: 14px; }
.plan .total { font-size: 26px; color: var(--green); text-align: right; }
.plan .save { grid-column: 1 / -1; font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.plan .save b { color: var(--green); }

/* Parents */
.parents { background: var(--white); border-radius: var(--radius); padding: 20px 18px; margin-top: 16px; }
.parents ol { list-style: none; display: grid; gap: 12px; margin-top: 14px; }
.parents li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 15px; }
.parents li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.parrain { margin-top: 14px; background: var(--green); color: var(--white); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.parrain .display { font-size: 22px; color: var(--lime); }
.parrain p { font-size: 14px; margin-top: 2px; opacity: .9; }
.parrain .badge { font-family: 'Fredoka', sans-serif; font-size: 34px; color: var(--lime); }

/* Punch card & banner */
.perk { margin-top: 18px; background: var(--white); border-radius: var(--radius); padding: 18px; position: relative; border: 2px dashed var(--mint-2); }
.perk-head { text-align: center; }
.perk-head .display { font-size: 24px; color: var(--green); }
.perk-head p { font-size: 13px; font-weight: 800; color: var(--ink-soft); margin-top: 2px; }
.stamps { display: grid; gap: 10px; margin: 14px 8px 0; }
.stamps i { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--green); background: var(--mint); font-style: normal; }
.stamps i.f { background: var(--green); }
.stamps i.f svg { width: 60%; height: 60%; }
.stamps i.free { border-color: var(--lime); background: var(--lime); color: var(--ink); font-family: 'Fredoka', sans-serif; font-size: 12px; font-weight: 700; }
.perk-foot { margin-top: 12px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; }
.perk-foot b { color: var(--green); }
.banner { margin-top: 18px; background: var(--lime); color: var(--ink); border-radius: var(--radius); padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; box-shadow: 0 4px 0 var(--lime-deep); }
.banner .display { font-size: 22px; color: var(--green-deep); }
.banner p { font-size: 14px; font-weight: 700; margin-top: 2px; }
.banner a { background: var(--green); color: var(--white); text-decoration: none; font-weight: 800; font-size: 14px; padding: 10px 14px; border-radius: 999px; white-space: nowrap; }

/* Footer */
footer { padding: 26px 0 10px; color: var(--ink-soft); font-size: 13px; text-align: center; }
footer .loc { font-weight: 800; color: var(--ink); }
footer .powered { margin-top: 14px; font-size: 12px; opacity: .75; }

/* Sticky bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(244,248,238,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--mint-2); padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; }
.bar .from { font-size: 13px; color: var(--ink-soft); font-weight: 700; line-height: 1.2; }
.bar .from b { display: block; font-size: 18px; color: var(--ink); }
.bar button { background: var(--green); color: var(--white); font-weight: 800; font-size: 16px; padding: 13px 22px; border-radius: 999px; box-shadow: 0 3px 0 var(--green-deep); }

/* Sheet & forms */
.scrim { position: fixed; inset: 0; background: rgba(20,38,26,.55); z-index: 40; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--mint); border-radius: 22px 22px 0 0; padding: 12px 18px calc(24px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; box-shadow: 0 -10px 40px rgba(0,0,0,.25); animation: up .28s ease-out; max-height: 92vh; overflow: auto; }
@keyframes up { from { transform: translateY(40px); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none } }
.grab { width: 44px; height: 5px; border-radius: 3px; background: var(--mint-2); margin: 0 auto 14px; }
.sheet h3 { font-size: 28px; text-align: center; color: var(--green); }
.sheet .sub { margin-bottom: 14px; }
.field { margin-top: 12px; }
.field label { display: block; font-size: 13px; font-weight: 800; color: var(--ink-soft); margin-bottom: 5px; }
.field input, .field select { width: 100%; font: inherit; font-size: 17px; font-weight: 700; padding: 13px 14px; border-radius: 12px; border: 2px solid var(--mint-2); background: var(--white); color: var(--ink); }
.field input:focus { border-color: var(--green); outline: none; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick.three { grid-template-columns: 1fr 1fr 1fr; }
.pick button { background: var(--white); border: 2px solid var(--mint-2); border-radius: 12px; padding: 12px 6px; font-weight: 800; color: var(--ink); font-size: 14px; }
.pick button[aria-pressed="true"] { border-color: var(--green); color: var(--green); }
.primary { margin-top: 18px; width: 100%; background: var(--green); color: var(--white); font-weight: 800; font-size: 17px; padding: 15px; border-radius: 999px; box-shadow: 0 3px 0 var(--green-deep); }
.note { margin-top: 10px; font-size: 13px; color: var(--ink-soft); text-align: center; }

/* Member pages */
.card { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: 0 8px 24px rgba(20,38,26,.08); margin-top: 14px; }
.card h3 { font-size: 22px; color: var(--green); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--mint-2); }
.row:first-of-type { border-top: 0; }
.row .d { font-weight: 800; font-size: 15px; }
.row .s { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.btn { display: inline-block; text-align: center; background: var(--green); color: var(--white); font-weight: 800; font-size: 15px; padding: 11px 18px; border-radius: 999px; box-shadow: 0 3px 0 var(--green-deep); text-decoration: none; }
.btn.ghost { background: var(--white); color: var(--green); border: 2px solid var(--green); box-shadow: none; }
.btn.lime { background: var(--lime); color: var(--ink); box-shadow: 0 3px 0 var(--lime-deep); }
.btn.wa { background: #25D366; color: var(--white); box-shadow: 0 3px 0 #1da851; }
.btn.sm { font-size: 13px; padding: 8px 14px; }
.btn.block { display: block; width: 100%; }
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--mint-2); color: var(--ink); }
.pill.ok { background: #DDF3E1; color: #1C6B32; }
.alert { margin: 14px 0 0; background: #DDF3E1; color: #1C6B32; border-radius: 12px; padding: 12px 14px; font-weight: 800; font-size: 14px; }
.alert.err { background: #FBE0E2; color: #8E0E17; }
.alert.dev { background: #E8E4FF; color: #3B2E8C; }
.credits-big { text-align: center; padding: 18px 0 6px; }
.credits-big .display { font-size: 64px; color: var(--green); line-height: 1; }
.credits-big p { font-weight: 800; color: var(--ink-soft); }
.code-box { margin: 12px auto 0; background: var(--white); border-radius: var(--radius); padding: 14px; border: 2px dashed var(--mint-2); text-align: center; }
.code-box .display { font-size: 40px; color: var(--green); letter-spacing: .04em; }
.code-box p { font-size: 12px; color: var(--ink-soft); font-weight: 800; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.slots label { display: block; position: relative; }
.slots input { position: absolute; opacity: 0; }
.slots span { display: block; text-align: center; background: var(--white); border: 2px solid var(--mint-2); border-radius: 12px; padding: 10px 2px; font-weight: 800; font-size: 14px; }
.slots input:checked + span { border-color: var(--green); color: var(--green); }
.slots input:focus-visible + span { outline: 3px solid var(--lime); }
.slots.one { grid-template-columns: 1fr; }
.dayrow { display: flex; gap: 6px; flex-wrap: wrap; }
.dayrow label { position: relative; }
.dayrow input { position: absolute; opacity: 0; }
.dayrow span { display: inline-block; padding: 7px 10px; border-radius: 999px; border: 2px solid var(--mint-2); font-weight: 800; font-size: 13px; background: var(--white); }
.dayrow input:checked + span { border-color: var(--green); background: var(--green); color: var(--white); }
.kid { margin-top: 14px; }
.kid .top { display: flex; justify-content: space-between; align-items: center; }
.kid .top .display { font-size: 24px; color: var(--green); }
.kid .bal { font-family: 'Fredoka', sans-serif; font-size: 28px; color: var(--green); }
.kid details { margin-top: 10px; }
.kid summary { cursor: pointer; font-weight: 800; font-size: 13px; color: var(--ink-soft); }
section.tight { padding: 18px 0; }
