
:root {
  --bg: #f3eee4;
  --paper: #fffaf3;
  --ink: #1a1612;
  --muted: #6b6258;
  --accent: #1e4f3a;
  --accent-soft: #e4efe8;
  --line: #e4d9c8;
  --warn-bg: #f8ead3;
  --warn-ink: #6a3d0c;
  --ok: #1e4f3a;
  --shadow: 0 1px 2px rgba(26,22,18,.06), 0 8px 24px rgba(26,22,18,.06);
  --nav-h: 4.25rem;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.4;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 1rem);
}
a { color: var(--accent); }
.wrap { max-width: 40rem; margin: 0 auto; padding: 1rem 1rem 0; }
header.app {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin: .25rem 0 1rem;
}
header.app h1 { font-size: 1.35rem; margin: 0; letter-spacing: -.02em; }
header.app .jour { color: var(--muted); font-size: .95rem; font-weight: 600; }
.banner {
  background: var(--warn-bg); color: var(--warn-ink);
  border-radius: .85rem; padding: .75rem 1rem; margin: 0 0 1rem;
  font-size: .95rem;
}
.banner a { color: inherit; font-weight: 700; }
.meals { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
@media (max-width: 360px) { .meals { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border-radius: 1rem; padding: 1rem;
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 .65rem; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); font-weight: 700;
}
.big {
  font-size: 2.6rem; font-weight: 750; letter-spacing: -.04em;
  line-height: 1; color: var(--accent);
}
.big span { font-size: 1.1rem; font-weight: 650; margin-left: .15rem; }
.metrics { list-style: none; margin: .85rem 0 0; padding: 0; }
.metrics li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .35rem 0; border-top: 1px solid var(--line); font-size: 1rem;
}
.metrics .v { font-weight: 700; white-space: nowrap; }
td.num { white-space: nowrap; }
.table-wrap { background: var(--paper); border-radius: 1rem; box-shadow: var(--shadow); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
th, td { padding: .7rem .85rem; text-align: left; }
th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; background: transparent;
  border-bottom: 1px solid var(--line);
}
td { border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.veau { font-weight: 700; }
tr.total td { font-weight: 750; background: var(--accent-soft); }
.vide { color: var(--muted); }
.meta {
  margin: 1rem 0 0; color: var(--muted); font-size: .82rem;
}
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
ol.steps li {
  background: var(--paper); border-radius: 1rem; box-shadow: var(--shadow);
  padding: 1rem 1rem 1rem 3.1rem; margin: 0 0 .75rem; position: relative;
}
ol.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: .85rem; top: .95rem;
  width: 1.7rem; height: 1.7rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700;
  font-size: .9rem; display: flex; align-items: center; justify-content: center;
}
ol.steps h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
ol.steps p { margin: 0; color: var(--muted); }
.qty { color: var(--ink); font-weight: 700; }
section h2 { font-size: 1.05rem; margin: 1.25rem 0 .6rem; }
table.rules td:first-child { font-weight: 650; }
.note { color: var(--muted); font-size: .92rem; }
.unlock {
  min-height: 100dvh; display: flex; flex-direction: column;
  justify-content: center; padding: 2rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
  padding-bottom: 2rem;
}
.unlock-box { max-width: 22rem; margin: 0 auto; width: 100%; text-align: center; }
.unlock-box .mark {
  width: 4.5rem; height: 4.5rem; border-radius: 1.15rem;
  background: var(--accent); margin: 0 auto 1.2rem;
  display: grid; place-items: center;
}
.unlock-box h1 { margin: 0 0 .35rem; }
.unlock-box p { color: var(--muted); margin: 0 0 1.4rem; }
.unlock-box input {
  width: 100%; font-size: 1.6rem; letter-spacing: .35em; text-align: center;
  padding: .8rem; border-radius: .85rem; border: 1px solid var(--line);
  background: var(--paper); font-weight: 700;
}
.unlock-box button {
  width: 100%; margin-top: .75rem; padding: .9rem;
  border: 0; border-radius: .85rem; background: var(--accent);
  color: #fff; font-weight: 700; font-size: 1.05rem;
}
nav.tab {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding: .35rem .4rem env(safe-area-inset-bottom, 0px);
  background: rgba(255,250,243,.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  z-index: 20;
}
nav.tab a {
  text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 650;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .15rem; border-radius: .7rem;
}
nav.tab a.on { color: var(--accent); }
nav.tab svg { width: 1.45rem; height: 1.45rem; }
