@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/dmserif-latin.woff2") format("woff2"); }

:root {
  --cream: #f6f2e7; --paper: #fff; --green: #174a31; --green-dark: #0f2f20; --green-soft: #e3efe6; --ochre: #d98a2b; --ochre-soft: #fbefdc;
  --ink: #14231a; --mute: #5f6f64; --line: rgba(20, 35, 26, .14); --warn: #8a4b08;
  --radius: 16px; --tab-h: 66px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 "Inter", system-ui, sans-serif; color: var(--ink); background: var(--cream); }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, .brand span:last-child { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--mute); } .small { font-size: .88rem; } .mt { margin-top: 14px; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* top bar + shell */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; padding-top: calc(12px + env(safe-area-inset-top)); background: rgba(246, 242, 231, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.15rem; }
.logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--green); color: var(--cream); font-family: "DM Serif Display", Georgia, serif; font-size: 1.05rem; }
.sync { font-size: .78rem; color: var(--mute); }
#view { display: block; max-width: 760px; margin: 0 auto; padding: 22px 18px calc(var(--tab-h) + 40px + env(safe-area-inset-bottom)); outline: none; }
.page-head { margin-bottom: 18px; }
.page-head h1, .detail h1, .login h1 { font-size: clamp(1.9rem, 6vw, 2.5rem); line-height: 1.1; color: var(--green-dark); }
.lead { margin-top: 8px; color: var(--mute); }
.eyebrow { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ochre); margin-bottom: 10px; }
.h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 700; margin: 26px 0 10px; }
.back { display: inline-block; margin-bottom: 14px; color: var(--green); font-weight: 600; text-decoration: none; }
.empty { margin: 22px 0; padding: 22px; text-align: center; color: var(--mute); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }
.note { margin-top: 18px; padding: 14px 16px; background: var(--ochre-soft); border-radius: 12px; font-size: .95rem; }

/* bottom tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; gap: 4px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: var(--green-dark); }
.tabs a { flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; color: #b9c9bd; text-decoration: none; font-size: .74rem; font-weight: 600; }
.tabs a.is-on { background: rgba(255, 255, 255, .12); color: #fff; }
.tabs .ic { width: 22px; height: 22px; }

/* cards & buttons */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 600; text-decoration: none; transition: background .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn.block { width: 100%; margin-top: 14px; }
.btn-primary { background: var(--green); color: #fff; } .btn-primary:hover { background: var(--green-dark); }
.btn-soft { background: var(--green-soft); color: var(--green-dark); } .btn-soft:hover { background: #d4e7d9; }
.btn-ghost { background: transparent; color: var(--mute); border-color: var(--line); }
.btn-done { background: var(--green-dark); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.round { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); }
.round.sm { width: 32px; height: 32px; } .round .ic { width: 16px; height: 16px; }
.ghost { display: inline-grid; place-items: center; padding: 6px 10px; border: 0; background: transparent; color: var(--mute); border-radius: 8px; font-size: .82rem; }
.ghost:hover { background: rgba(20, 35, 26, .06); }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }

/* plan */
.setup { display: grid; gap: 12px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper-l { flex: 1; font-weight: 600; }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; font-size: 1.1rem; }
.switch { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.switch input { width: 22px; height: 22px; accent-color: var(--green); }
.meter + .meter { margin-top: 12px; }
.meter-top { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; margin-bottom: 6px; }
.bar { height: 10px; border-radius: 99px; background: #e6e2d4; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ochre); border-radius: 99px; transition: width .3s; }
.meter.is-full .bar i { background: var(--green); }
.guide { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: .9rem; }
.guide.ok { background: var(--green-soft); color: var(--green-dark); } .guide.warn { background: var(--ochre-soft); color: var(--warn); }
.guide .ic { margin-top: 2px; }
.list { list-style: none; padding: 0; display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.item-main { flex: 1; min-width: 0; display: grid; }
.item-name { font-weight: 600; text-decoration: none; line-height: 1.3; }
.qty { display: flex; align-items: center; gap: 8px; font-size: .88rem; white-space: nowrap; }

/* recipes */
.search { width: 100%; min-height: 48px; padding: 0 16px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .88rem; font-weight: 600; text-decoration: none; }
.chip.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.grid { display: grid; gap: 12px; margin-top: 8px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
.rcard { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.rcard-body { text-decoration: none; display: grid; gap: 6px; }
.rcard h3 { font-size: 1.05rem; line-height: 1.3; }
.chip-cat { display: inline-block; width: fit-content; padding: 2px 10px; border-radius: 99px; background: var(--ochre-soft); color: var(--warn); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--mute); font-size: .85rem; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta.big { font-size: .95rem; margin: 10px 0 16px; }
.rcard .btn { align-self: flex-start; }

/* detail */
.detail h1 { margin-top: 8px; }
.portion { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portion > div:first-child { display: grid; }
.ingredients { list-style: none; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.ingredients li { padding: 11px 16px; }
.ingredients li + li { border-top: 1px solid var(--line); }
.steps { padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: .9rem; }

/* shopping list */
.shop { list-style: none; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.shop-row { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 0; }
.shop-row + .shop-row { border-top: 1px solid var(--line); }
.shop-row label { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 14px; cursor: pointer; min-width: 0; }
.shop-row input { width: 22px; height: 22px; flex: none; accent-color: var(--green); }
.shop-name { flex: 1; min-width: 0; }
.shop-qty { color: var(--mute); font-size: .92rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.shop-row.is-done .shop-name, .shop-row.is-done .shop-qty { text-decoration: line-through; color: #9aa59d; }
.shop.dim { opacity: .75; }

/* me */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.seg button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 600; }
.seg button.is-on { background: var(--green); border-color: var(--green); color: #fff; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 18px; }
.login-card { width: 100%; max-width: 440px; padding: 30px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 50px -24px rgba(15, 47, 32, .35); }
.login form { display: grid; gap: 12px; margin: 22px 0 6px; }
.login input[type=email] { min-height: 52px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fffdf8; }
.msg { min-height: 1.4em; margin: 10px 0 14px; font-size: .92rem; color: var(--green-dark); }
.login a { color: var(--green); font-weight: 600; }
.lang-float { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 14px; z-index: 40; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.lang-float button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .8rem; }
.lang-float button[aria-pressed="true"] { background: var(--green); color: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .top, .tabs, .row-actions, .ghost, .lang-float { display: none !important; } body { background: #fff; } }

/* header account link + 5 tabs */
.top-r { display: flex; align-items: center; gap: 10px; }
.me { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); text-decoration: none; }
.tabs a { max-width: 130px; font-size: .68rem; padding: 8px 2px; }
.bannerlink { text-decoration: none; margin: 0 0 14px; }

/* cooking mode */
.cplan { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 14px; }
.cstep { padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.cstep-head { display: flex; align-items: baseline; gap: 10px; }
.cstep-head b { flex: 1; line-height: 1.3; }
.cstep-t { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ochre); min-width: 38px; }
.cstep.is-next { opacity: .72; }
.cstep.is-done { opacity: .5; }
.cstep.is-done .cstep-head b { text-decoration: line-through; }
.cstep.is-current { border: 2px solid var(--green); padding: 16px; box-shadow: 0 10px 30px -18px rgba(15, 47, 32, .5); }
.cstep.is-current .cstep-head b { font-size: 1.15rem; }
.cbody { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.mini { margin: 12px 0 0; padding: 12px 12px 12px 30px; background: var(--cream); border-radius: 12px; display: grid; gap: 4px; font-size: .95rem; }
.checks { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.finish { border-color: var(--green); background: var(--green-soft); }
.cstep .btn.block { margin-top: 14px; }

/* timers */
.timerbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 29; display: grid; gap: 6px; padding: 8px 12px; max-width: 760px; margin: 0 auto; }
.timer { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; background: var(--green-dark); color: #fff; border-radius: 14px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.timer-l { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; font-size: .92rem; }
.timer b { font-variant-numeric: tabular-nums; font-size: 1.2rem; }
.timer.is-ring { background: var(--ochre); color: var(--green-dark); animation: ring .6s ease-in-out infinite alternate; }
.timer-x { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: inherit; }
@keyframes ring { from { transform: scale(1); } to { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .timer.is-ring { animation: none; } }

/* fridge */
.field { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; }
.lbl { display: block; margin: 12px 0 6px; font-size: .85rem; font-weight: 600; color: var(--mute); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fitem { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.fitem-main { display: grid; gap: 4px; flex: 1; min-width: 200px; }
.fitem-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag { display: inline-block; width: fit-content; padding: 2px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; }
.tag.ok { background: var(--green-soft); color: var(--green-dark); }
.tag.warn { background: var(--ochre-soft); color: var(--warn); }
.tag.bad { background: #fde7e4; color: #9b2c1f; }

/* free / pro */
.compare { display: grid; gap: 12px; margin-bottom: 14px; }
@media (min-width: 640px) { .compare { grid-template-columns: 1fr 1fr; } }
.card.pro { border: 2px solid var(--green); background: var(--green-soft); }
.checks.tight { margin-top: 8px; gap: 6px; }
.plans { display: grid; gap: 12px; margin: 6px 0 12px; }
.plans { max-width: 420px; }
.plan { position: relative; display: grid; gap: 6px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.plan.best { border: 2px solid var(--green); }
.plan .tag { justify-self: start; }
.plan .price { color: var(--mute); }
.plan .price span { font-family: "DM Serif Display", Georgia, serif; font-size: 2rem; color: var(--green-dark); }
.plan .btn.block { margin-top: 8px; }
.lockcard { text-align: center; }
.lockcard p { display: flex; gap: 8px; align-items: center; justify-content: center; }
.rcard.locked { opacity: .85; background: #fbf8ef; border-style: dashed; }
.chip.locked { color: var(--mute); gap: 6px; }
.guide.upsell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; }
.guide.upsell span { display: inline-flex; align-items: center; gap: 8px; }
