:root {
  --bg: #fbf6ee;
  --surface: #ffffff;
  --surface-2: #f4ede2;
  --ink: #23302f;
  --ink-2: #55615f;
  --line: #e4dccf;
  --teal: #1d5c58;
  --teal-2: #2a7a74;
  --teal-soft: #e2efed;
  --rose: #b44863;
  --rose-soft: #f8e6ea;
  --gold: #b0841f;
  --gold-soft: #f7eed6;
  --danger: #b3261e;
  --ok: #2f7a3e;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(35, 48, 47, .06), 0 6px 20px rgba(35, 48, 47, .06);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 68px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 var(--sans);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.15; margin: 0 0 .4em; color: var(--teal); letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--teal-2); }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(251, 246, 238, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font-family: var(--serif); font-size: 1.1rem; font-weight: 650; }
.brand small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); font-weight: 800; }
.topnav { display: none; margin-left: auto; gap: 4px; }
.topnav a { text-decoration: none; color: var(--ink-2); font-weight: 700; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
.topnav a[aria-current="page"], .topnav a:hover { background: var(--teal-soft); color: var(--teal); }
.lang {
  margin-left: auto; border: 1.5px solid var(--teal); background: transparent; color: var(--teal);
  font: 800 .85rem var(--sans); padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.topnav + .lang { margin-left: 8px; }

/* ---------- bottom nav ---------- */
.bottomnav {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); height: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--ink-2); font-size: .72rem; font-weight: 800; letter-spacing: .02em;
}
.bottomnav a svg { width: 24px; height: 24px; }
.bottomnav a[aria-current="page"] { color: var(--teal); }
.bottomnav a[aria-current="page"] svg { stroke: var(--rose); }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottomnav { display: none; }
  .topnav { display: flex; }
}

/* ---------- layout ---------- */
main { max-width: 980px; margin: 0 auto; padding: 20px 16px 48px; outline: none; }
.narrow { max-width: 680px; margin-inline: auto; }
.lede { font-size: 1.1rem; color: var(--ink-2); }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-bottom: .4em; display: block; }
.backlink { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; margin-bottom: 12px; font-size: .95rem; }

.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 32px 24px;
  background: linear-gradient(140deg, var(--teal) 0%, #24726c 60%, #2f857d 100%); color: #fdf6ec; margin-bottom: 24px;
}
.hero h1 { color: #fff; }
.hero p { color: #e4f0ee; max-width: 46ch; }
.hero .tag { font-family: var(--serif); font-style: italic; color: #f3cfd6; font-size: 1.05rem; margin: 0; }
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 176, 74, .35), transparent 65%);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; min-height: 132px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .12s ease;
}
.tile:hover { transform: translateY(-2px); }
.tile .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.tile .ic svg { width: 24px; height: 24px; }
.tile b { font-size: 1.02rem; line-height: 1.2; }
.tile small { color: var(--ink-2); font-size: .85rem; line-height: 1.3; }
.tone-rose .ic { background: var(--rose-soft); color: var(--rose); }
.tone-teal .ic { background: var(--teal-soft); color: var(--teal); }
.tone-gold .ic { background: var(--gold-soft); color: var(--gold); }
.tiles.home .tile.tone-rose:first-child { grid-column: 1 / -1; background: var(--rose-soft); border-color: #efcbd4; min-height: 0; flex-direction: row; align-items: center; }
.tiles.home .tile.tone-rose:first-child .ic { background: var(--rose); color: #fff; }
.tiles.home .tile.tone-rose:first-child b { font-size: 1.2rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card h3 { margin-bottom: .25em; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.banner { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-weight: 700; display: flex; gap: 10px; align-items: flex-start; }
.banner.warn { background: #fdecea; color: #7a1d17; }
.banner.info { background: var(--teal-soft); color: var(--teal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 800 1rem var(--sans); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  background: var(--rose); color: #fff; transition: filter .12s;
}
.btn:hover { filter: brightness(1.07); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.teal { background: var(--teal); }
.btn.gold { background: var(--gold); }
.btn.ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.hero .btn.ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: .85rem; }
.btn.block { width: 100%; }
.btn svg { width: 20px; height: 20px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- forms ---------- */
form.ct-form { display: grid; gap: 18px; }
.field label, .field legend { display: block; font-weight: 800; margin-bottom: 6px; font-size: .98rem; }
.field .req { color: var(--rose); margin-left: 2px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 50px;
  appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2355615f' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-2); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .88rem; font-weight: 700; margin-top: 4px; }
.choices { display: grid; gap: 8px; }
.choices.cols2 { grid-template-columns: 1fr; }
@media (min-width: 520px) { .choices.cols2 { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; line-height: 1.25;
}
.choice span::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #b9b1a4; background: #fff center/14px no-repeat;
}
.choice input[type=radio] + span::before { border-radius: 50%; }
.choice input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.choice input:checked + span::before {
  border-color: var(--teal); background-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.form-foot { display: grid; gap: 10px; }
.form-err { color: var(--danger); font-weight: 700; }

.success { text-align: center; padding: 32px 20px; }
.success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin: 0 auto 14px; }
.success .check svg { width: 34px; height: 34px; }

/* ---------- lists ---------- */
.daygroup { margin-bottom: 22px; }
.daygroup > h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.urgent { background: #fbe3e1; color: var(--danger); }
.pill.needed { background: var(--gold-soft); color: #7d5c10; }
.pill.stocked { background: #e4f1e6; color: var(--ok); }
.pill.online { background: var(--teal-soft); color: var(--teal); }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: .93rem; margin: 10px 0 14px; color: var(--ink-2); }
.meta dt { font-weight: 800; color: var(--ink); }
.meta dd { margin: 0; }
.classgrid { display: grid; gap: 12px; }
@media (min-width: 720px) { .classgrid { grid-template-columns: 1fr 1fr; } }
.classgrid .card { margin: 0; display: flex; flex-direction: column; }
.classgrid .card .btn { margin-top: auto; }

.needs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.needs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.needs li.lvl-stocked { opacity: .7; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters button { border: 1.5px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font: 700 .9rem var(--sans); cursor: pointer; color: var(--ink-2); }
.filters button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }

.event { display: grid; grid-template-columns: 64px 1fr; gap: 14px; }
.datebox { background: var(--rose-soft); color: var(--rose); border-radius: 12px; text-align: center; padding: 8px 0; height: fit-content; }
.datebox b { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.datebox small { font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.event .btns { display: flex; flex-wrap: wrap; gap: 8px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.seg button { border: 0; background: transparent; padding: 12px; border-radius: 999px; font: 800 .95rem var(--sans); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--teal); box-shadow: var(--shadow); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.amounts button { min-height: 56px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font: 800 1.15rem var(--sans); color: var(--ink); cursor: pointer; }
.amounts button[aria-pressed="true"] { border-color: var(--rose); background: var(--rose-soft); color: var(--rose); }
.quote { font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--teal); border-left: 3px solid var(--gold); padding-left: 14px; margin: 16px 0; }

.menu { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.menu a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line); }
.menu li:last-child a { border-bottom: 0; }
.menu a svg { width: 22px; height: 22px; color: var(--teal); }
.menu a::after { content: "›"; margin-left: auto; color: var(--ink-2); font-size: 1.4rem; }

.opp { display: block; text-decoration: none; color: inherit; }
.opp .card { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.opp .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; }
.opp .ic svg { width: 26px; height: 26px; }
.opp p { margin: 0 0 10px; color: var(--ink-2); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }

footer.site { text-align: center; color: var(--ink-2); font-size: .85rem; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
footer.site a { color: inherit; }
.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), #fff, var(--surface-2)); background-size: 200% 100%; animation: sh 1.2s infinite; margin-bottom: 12px; }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
