/* Dinner Plan: mobile-first, system fonts, no external requests. Light only (K-212). */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1b1d1f;
  --muted: #62666d;
  --rule: #e7e4dc;
  --accent: #2f6b4f;
  --accent-ink: #ffffff;
  --accent-soft: #e6f0ea;
  --warm: #b4532a;
  --warm-soft: #fbeee6;
  --lock: #8a8f98;
  --radius: 14px;
  --measure: 640px;
  --bar: 84px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }

/* header / footer */
.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { font-weight: 700; letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); display: inline-grid; place-items: center; }
.brand-mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; }
.by { font-size: 13px; color: var(--muted); }
footer { border-top: 1px solid var(--rule); margin-top: 48px; padding: 20px 0 40px; color: var(--muted); font-size: 13px; }
footer p { margin: 0 0 6px; }
footer a { color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* type */
h1 { font-size: clamp(30px, 8vw, 42px); line-height: 1.1; letter-spacing: -0.025em; margin: 24px 0 14px; text-wrap: balance; }
h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 10px; }
h3 { font-size: 17px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: #33363a; }
.muted { color: var(--muted); font-size: 15px; }
.small { font-size: 13px; color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650; font-size: 18px;
  text-decoration: none; cursor: pointer; width: 100%;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--rule); font-weight: 600; font-size: 16px; min-height: 48px; }
.btn.warm { background: var(--warm); }
.btn-row { display: flex; gap: 10px; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; }
.stack > * + * { margin-top: 12px; }
section { margin-top: 36px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin-bottom: 14px; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 6px; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* hero example */
.example { margin-top: 22px; }
.example .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.example .row:first-of-type { border-top: 0; }
.example .day { color: var(--muted); width: 38px; flex: none; }
.example .name { flex: 1; }
.example .t { color: var(--muted); white-space: nowrap; }
/* Acilis: en-GB tarayicida ulke gelene kadar (ulke-bekle.js, en cok 1,5 sn) */
.ulke-bekle main { visibility: hidden; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.total strong { font-size: 30px; letter-spacing: -0.02em; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin: 0 4px 4px 0; }
.badge.warm { background: var(--warm-soft); color: var(--warm); }
.est { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--warm); }

/* quiz */
.quiz-top { position: sticky; top: 0; background: var(--bg); padding: 12px 0 10px; z-index: 5; }
.progress { height: 6px; background: var(--rule); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width 0.25s ease; }
.step-count { font-size: 13px; color: var(--muted); margin-top: 8px; }
.quiz-body { padding-bottom: calc(var(--bar) + 120px); min-height: 60vh; }
.q h2 { font-size: 26px; margin: 18px 0 8px; }
.q .help { color: var(--muted); font-size: 15px; margin-bottom: 18px; min-height: 1.5em; }
.options { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--rule);
  background: var(--surface); font: inherit; font-size: 18px; text-align: left; cursor: pointer; color: var(--text);
}
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.opt .mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--rule); flex: none; }
.opt[aria-checked="true"] .mark, .opt[aria-pressed="true"] .mark { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, transparent 50%); }
.opt.multi .mark { border-radius: 6px; }
.opt.multi[aria-pressed="true"] .mark { background: var(--accent); box-shadow: inset 0 0 0 3px var(--accent-soft); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 26px 0 8px; }
.stepper button { width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid var(--rule); background: var(--surface); font-size: 30px; line-height: 1; cursor: pointer; color: var(--text); }
.stepper output { font-size: 56px; font-weight: 700; min-width: 70px; text-align: center; letter-spacing: -0.03em; }

/* fixed bottom band: primary button always in the same place (K-282) */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(251, 250, 247, 0.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--rule);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.bar-inner { max-width: var(--measure); margin: 0 auto; display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; }
.bar-inner.single { grid-template-columns: 1fr; }
.bar .back { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); font-size: 22px; cursor: pointer; color: var(--text); }
.bar .back[hidden] { display: block; visibility: hidden; }
.bar-note { height: 18px; font-size: 12px; color: var(--muted); text-align: center; margin: 0 auto 6px; max-width: var(--measure); overflow: hidden; }

/* loader */
.loader { text-align: center; padding: 60px 0; }
.loader ul { list-style: none; padding: 0; margin: 24px auto 0; text-align: left; display: inline-block; }
.loader li { margin: 10px 0; color: var(--muted); transition: color 0.3s; }
.loader li.done { color: var(--text); }
.loader li.done::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); margin: 0 auto; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } .progress > i { transition: none; } }

/* preview + plan */
.summary { margin-top: 8px; }
.summary .big { font-size: 40px; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.under { color: var(--accent); font-weight: 600; }
.over { color: var(--warm); font-weight: 600; }
.daycard { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; }
.daycard + .daycard { margin-top: 10px; }
.daycard .head { display: flex; gap: 12px; align-items: flex-start; }
.daycard .dow { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.daycard .meta { font-size: 14px; color: var(--muted); }
.daycard.locked .dow { background: #eef0f2; color: var(--lock); }
.daycard.locked .name { color: #4b4f55; }
.lock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--lock); margin-top: 4px; }
details.recipe { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
details.recipe summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; }
details.recipe summary::-webkit-details-marker { display: none; }
details.recipe summary::after { content: " +"; }
details.recipe[open] summary::after { content: " –"; }
.recipe ul, .recipe ol { padding-left: 20px; margin: 10px 0; }
.recipe li { margin-bottom: 6px; }
.tip { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: 15px; margin-top: 8px; }
.teaser { position: relative; overflow: hidden; }
.teaser .fake { height: 12px; border-radius: 6px; background: #e9e7e1; margin: 12px 0; }
.teaser .fake.s { width: 60%; } .teaser .fake.m { width: 78%; } .teaser .fake.l { width: 92%; }
.note { background: var(--warm-soft); color: #5b2c17; border-radius: 10px; padding: 10px 12px; font-size: 15px; }

/* paywall */
.offer { border: 2px solid var(--accent); border-radius: var(--radius); padding: 18px; background: var(--surface); cursor: pointer; display: block; }
.offer + .offer { margin-top: 10px; }
.offer.secondary-offer { border-color: var(--rule); }
.offer input { position: absolute; opacity: 0; pointer-events: none; }
.offer .price { font-size: 30px; font-weight: 750; letter-spacing: -0.02em; }
.offer .per { color: var(--muted); font-size: 15px; }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 15px; margin: 16px 0; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.renew { font-size: 14px; color: #33363a; background: #f3f1ec; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.err { color: #a12d14; font-size: 15px; min-height: 1.4em; margin-top: 8px; }

/* grocery list */
.aisle h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 22px 0 6px; }
.item { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--rule); }
.item input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.item .what { font-weight: 600; }
.item .sub { font-size: 13px; color: var(--muted); }
.item .price { font-variant-numeric: tabular-nums; color: #33363a; }
.item input:checked ~ div .what { text-decoration: line-through; color: var(--muted); }

/* consent banner */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,0.12); padding: 16px; max-width: 560px; margin: 0 auto; }
.cookie p { font-size: 14px; margin-bottom: 12px; }
.cookie .btn { min-height: 46px; font-size: 16px; }

/* legal */
.legal h1 { font-size: 30px; }
.legal h2 { font-size: 19px; margin-top: 28px; }
.legal li { margin-bottom: 8px; }

.testbanner { background: #fff4c2; border: 1px solid #e8d36a; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 12px 0; }

@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
  h1 { margin-top: 48px; }
}

@media print {
  .no-print, .bar, .cookie, footer, .top { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .daycard, .card { border: 1px solid #ccc; break-inside: avoid; }
  details.recipe { display: block; }
  details.recipe > * { display: block; }
  a { text-decoration: none; }
}
.item .what::first-letter { text-transform: uppercase; }
