/* ══════════════════════════════════════════════════════════════════
   Protein Matters — storefront kit v2 (post design-corpus overhaul)
   Inter for all UI incl. headings; Bodoni Moda ONLY at hero display
   scale via .display. One saturated accent (leaf) in chrome. All
   color literals live in :root.
   ══════════════════════════════════════════════════════════════════ */
:root {
  --bg:      #f4eede;   /* cream canvas */
  --surface: #fbf6ea;   /* ivory */
  --white:   #fdfbf5;   /* card ground (near-white ivory) */
  --fg:      #241f18;   /* ink */
  --taupe:   #8a7f6a;   /* brand taupe — large text / decorative only */
  --muted:   color-mix(in oklch, #8a7f6a 55%, #241f18); /* darkened taupe: ≥4.5:1 on cream for small text */
  --border:  #ddd3bf;   /* line */
  --accent:  #54b051;   /* leaf — CTAs + selected states ONLY */
  --forest:  #20402d;   /* brand panels: header, hero, footer */
  --coral:   #df5a3e;   /* error / over-budget + the single brand squiggle mark */
  --marigold:#f2bd1a;   /* rare semantic highlight (Most popular) */

  --accent-deep: color-mix(in oklch, var(--accent) 70%, var(--forest));
  --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
  --fg-soft:     color-mix(in oklch, var(--fg) 5%, transparent);
  --cream-70:    color-mix(in oklch, var(--bg) 72%, transparent);

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Bodoni Moda', Georgia, 'Times New Roman', serif;

  --fs-body: 15px;
  --container: 1200px;
  --gutter: 24px;
  --radius: 16px;       /* brand: cards */
  --radius-sm: 10px;
  --bw: 1.5px;
}

/* ─── base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
p { text-wrap: pretty; margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }

/* ─── type scale — Inter for everything ────────────────────────── */
h1, .h1 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
h2, .h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
h3, .h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.005em; line-height: 1.35; }
.display { /* hero-scale ONLY — the one serif moment per page */
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.01em;
}
.lead  { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.small { font-size: 13px; color: var(--muted); }
.kicker { font-size: 13px; font-weight: 650; color: var(--forest); letter-spacing: 0.01em; }
.num { font-variant-numeric: tabular-nums; }
.strike { text-decoration: line-through; color: var(--muted); font-weight: 400; }

/* ─── layout ───────────────────────────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(36px, 5vw, 72px); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2-1 { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-2-1, .split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ─── announcement bar ─────────────────────────────────────────── */
.announce {
  background: var(--fg); color: var(--bg);
  font-size: 13px; text-align: center; padding: 8px 16px;
}
.announce .num { font-weight: 650; }

/* ─── header (cream-on-forest, slim) ───────────────────────────── */
.topnav { position: sticky; top: 0; z-index: 40; background: var(--forest); color: var(--bg); }
.topnav-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.wordmark { display: inline-flex; flex: 0 0 auto; font-weight: 800; font-size: 12px; letter-spacing: 0.06em; line-height: 1; }
.wordmark b { background: var(--fg); color: var(--surface); padding: 5px 7px; font-weight: 800; }
.wordmark span { background: var(--surface); color: var(--fg); padding: 5px 7px; font-weight: 800; }
.topnav nav { display: flex; gap: 4px; }
.topnav nav a { font-size: 14px; color: var(--cream-70); padding: 8px 12px; border-radius: 8px; }
.topnav nav a:hover { color: var(--bg); text-decoration: none; background: color-mix(in oklch, var(--bg) 8%, transparent); }
.topnav nav a[aria-current="page"] { color: var(--bg); font-weight: 600; }
.nav-spacer { flex: 1; }
.loc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: var(--bw) solid color-mix(in oklch, var(--bg) 28%, transparent);
  color: var(--cream-70); border-radius: 999px; padding: 7px 14px; font-size: 13px; min-height: 38px;
}
.loc-chip:hover { border-color: var(--bg); color: var(--bg); }
.nav-signin { font-size: 14px; color: var(--cream-70); padding: 8px 6px; }
.nav-signin:hover { color: var(--bg); text-decoration: none; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--forest); border: 0;
  border-radius: 999px; padding: 9px 18px; min-height: 40px; font-size: 14px; font-weight: 650;
}
.cart-btn:hover { background: color-mix(in oklch, var(--accent) 88%, var(--fg)); text-decoration: none; }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 999px; background: var(--forest); color: var(--bg); font-size: 11.5px; font-weight: 700; }
.nav-burger { display: none; background: none; border: 0; color: var(--bg); width: 40px; height: 40px; font-size: 20px; }
@media (max-width: 880px) {
  .topnav nav { display: none; }
  .nav-burger { display: grid; place-items: center; }
  .loc-chip .loc-label { display: none; }
}
/* mobile nav drawer */
.nav-drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.nav-drawer.open { display: block; }
.nav-drawer .scrim { position: absolute; inset: 0; background: color-mix(in oklch, var(--fg) 45%, transparent); }
.nav-drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.nav-drawer .panel a { padding: 13px 10px; border-radius: 10px; font-size: 16px; font-weight: 550; }
.nav-drawer .panel a:hover { background: var(--fg-soft); text-decoration: none; }

/* ─── buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; min-height: 44px; border-radius: 999px;
  border: var(--bw) solid transparent; font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: color-mix(in oklch, var(--forest) 72%, var(--fg)); }
.btn-primary:hover { background: color-mix(in oklch, var(--accent) 88%, var(--fg)); }
.btn-forest { background: var(--forest); color: var(--bg); }
.btn-forest:hover { background: color-mix(in oklch, var(--forest) 88%, var(--fg)); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-outline:hover { background: var(--fg-soft); }
.btn-quiet { background: transparent; color: var(--forest); border-color: transparent; padding-inline: 10px; text-decoration: underline; text-underline-offset: 3px; }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
/* on-forest variants */
.on-forest { border-color: color-mix(in oklch, var(--bg) 45%, transparent); color: var(--bg); }
.on-forest:hover { border-color: var(--bg); background: color-mix(in oklch, var(--bg) 8%, transparent); }

/* ─── cards & panels ───────────────────────────────────────────── */
.card { background: var(--white); border: var(--bw) solid var(--border); border-radius: var(--radius); padding: 24px; }
.panel-forest { background: var(--forest); color: var(--bg); border-radius: 24px; padding: clamp(28px, 4vw, 56px); }
.panel-forest .lead { color: var(--cream-70); }
.panel-forest h1, .panel-forest h2, .panel-forest .display { color: var(--bg); }

/* ─── photo placeholder (solid tinted panel, not dashed) ───────── */
.photo {
  background: color-mix(in oklch, var(--forest) 9%, var(--surface));
  border-radius: var(--radius); aspect-ratio: 4/3;
  display: grid; place-items: center;
  color: color-mix(in oklch, var(--forest) 55%, var(--muted));
  font-size: 12px; font-weight: 550; text-align: center; padding: 8px;
}
.photo.wide { aspect-ratio: 16/9; }
.photo.tall { aspect-ratio: 4/5; }
.photo.sq { aspect-ratio: 1/1; }
.panel-forest .photo { background: color-mix(in oklch, var(--bg) 10%, transparent); color: var(--cream-70); border-radius: 16px; }

/* ─── badges (semantic only) ───────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 650; letter-spacing: 0.02em; }
.badge-new { background: var(--accent-soft); color: var(--accent-deep); }
.badge-bestseller { background: color-mix(in oklch, var(--marigold) 26%, transparent); color: color-mix(in oklch, var(--fg) 75%, var(--marigold)); }
.badge-soldout { background: var(--fg-soft); color: var(--muted); }
.badge-popular { background: var(--marigold); color: var(--fg); }
.badge-status { background: var(--accent-soft); color: var(--accent-deep); }

/* ─── price lockup ─────────────────────────────────────────────── */
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .rs { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.price .cr { font-size: 12px; color: var(--muted); }

/* ─── product card (menu grid) ─────────────────────────────────── */
.pcard { background: var(--white); border: var(--bw) solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s ease; }
.pcard:hover { border-color: color-mix(in oklch, var(--forest) 45%, var(--border)); }
.pcard .photo { border-radius: 0; aspect-ratio: 4/3; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-body h3 { font-size: 15px; }
.pcard .macros { font-size: 12.5px; color: var(--muted); }
.pcard .macros b { color: var(--fg); font-weight: 650; }
.pcard footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.pcard .badge { position: absolute; margin: 10px; }
.pcard-media { position: relative; }
.pcard.soldout .photo { opacity: .5; }
.pcard.soldout footer .btn { pointer-events: none; opacity: .45; }
.add-btn { min-height: 38px; padding: 7px 16px; border-radius: 999px; border: var(--bw) solid var(--fg); background: var(--white); font-size: 13.5px; font-weight: 650; }
.add-btn:hover { background: var(--fg); color: var(--white); }
.add-btn.added { background: var(--accent); border-color: var(--accent); color: var(--forest); }

/* ─── filter chips / day tabs ──────────────────────────────────── */
.chip-rail { display: flex; gap: 8px; overflow-x: auto; padding-block: 4px; scrollbar-width: none; }
.chip-rail::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 8px 16px; min-height: 40px; display: inline-flex; align-items: center;
  border-radius: 999px; border: var(--bw) solid var(--border); background: var(--white);
  font-size: 13.5px; font-weight: 550;
}
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--forest); color: var(--bg); border-color: var(--forest); }
.chip[disabled] { opacity: .45; cursor: not-allowed; }

/* ─── search ───────────────────────────────────────────────────── */
.search { display: flex; align-items: center; gap: 8px; background: var(--white); border: var(--bw) solid var(--border); border-radius: 999px; padding: 0 8px 0 16px; min-height: 44px; flex: 1; max-width: 420px; }
.search input { border: 0; background: none; flex: 1; font: inherit; font-size: 14px; color: var(--fg); outline: none; min-width: 0; }
.search input::placeholder { color: var(--muted); }

/* ─── stepper ──────────────────────────────────────────────────── */
.stepper { display: inline-flex; align-items: center; border: var(--bw) solid var(--border); border-radius: 999px; background: var(--white); }
.stepper button { width: 38px; height: 38px; border: 0; background: none; font-size: 17px; border-radius: 999px; color: var(--fg); }
.stepper button:hover { background: var(--fg-soft); }
.stepper .qty { min-width: 30px; text-align: center; font-size: 14px; font-weight: 600; }

/* ─── forms ────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .textarea, select.input {
  width: 100%; padding: 11px 14px; min-height: 46px;
  border: var(--bw) solid var(--border); border-radius: 12px;
  background: var(--white); color: var(--fg); font: inherit; font-size: 15px;
}
.input:focus, .textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent-deep); }
.field .error { display: none; font-size: 12.5px; color: var(--coral); font-weight: 550; }
.field.invalid .input { border-color: var(--coral); }
.field.invalid .error { display: block; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; border-radius: 999px; border: var(--bw) solid var(--fg); background: var(--white); font-size: 15px; font-weight: 600; }
.oauth-btn:hover { background: var(--fg-soft); }
.oauth-btn.apple { background: var(--fg); color: var(--surface); }
.divider-label { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; }
.divider-label::before, .divider-label::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

/* ─── checkout accordion steps ─────────────────────────────────── */
.ck-step { background: var(--white); border: var(--bw) solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ck-step + .ck-step { margin-top: 14px; }
.ck-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; width: 100%; background: none; border: 0; text-align: left; }
.ck-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; border: var(--bw) solid var(--border); font-size: 13px; font-weight: 650; flex: 0 0 28px; }
.ck-step[data-state="done"] .ck-num { background: var(--accent); border-color: var(--accent); color: var(--forest); }
.ck-step[data-state="current"] .ck-num { border-color: var(--forest); color: var(--forest); }
.ck-head h3 { flex: 1; font-size: 15.5px; }
.ck-head .summary-line { font-size: 13px; color: var(--muted); font-weight: 400; display: block; margin-top: 2px; }
.ck-change { font-size: 13.5px; font-weight: 600; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; }
.ck-body { padding: 4px 22px 24px; display: none; }
.ck-step[data-state="current"] .ck-body { display: block; }
.ck-step[data-state="locked"] { opacity: .55; }

/* ─── slot picker ──────────────────────────────────────────────── */
.day-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.slot-group { margin-top: 14px; }
.slot-group .small { margin-bottom: 8px; display: block; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .slot-grid { grid-template-columns: 1fr 1fr; } }
.slot {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; min-height: 58px;
  border: var(--bw) solid var(--border); border-radius: 12px; background: var(--white); text-align: left;
}
.slot .slot-name { font-size: 13.5px; font-weight: 650; }
.slot .slot-time { font-size: 12.5px; color: var(--muted); }
.slot[aria-pressed="true"] { border-color: var(--accent-deep); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-deep); }
.slot[disabled] { opacity: .4; cursor: not-allowed; }
.cutoff-line { font-size: 13px; color: var(--fg); background: var(--fg-soft); border-radius: 10px; padding: 9px 14px; display: inline-block; }

/* ─── payment methods ──────────────────────────────────────────── */
.pay-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: var(--bw) solid var(--border); border-radius: 12px; cursor: pointer; background: var(--white); }
.pay-option:has(input:checked) { border-color: var(--accent-deep); box-shadow: inset 0 0 0 1px var(--accent-deep); }
.pay-option .small { margin-left: auto; text-align: right; }
.pay-option + .pay-option { margin-top: 10px; }

/* ─── order summary ────────────────────────────────────────────── */
.summary { position: sticky; top: 80px; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-block: 5px; }
.summary .line.total { font-weight: 700; font-size: 16px; border-top: var(--bw) solid var(--border); margin-top: 8px; padding-top: 12px; }
.fee-progress { height: 6px; border-radius: 999px; background: var(--fg-soft); overflow: hidden; margin-top: 6px; }
.fee-progress i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* ─── credit meter ─────────────────────────────────────────────── */
.credit-meter .bar { height: 10px; border-radius: 999px; background: var(--fg-soft); overflow: hidden; border: 1px solid var(--border); }
.credit-meter .fill { height: 100%; width: 0%; background: var(--accent); border-radius: 999px; transition: width .2s ease; }
.credit-meter.over .fill { background: var(--coral); }
.credit-meter .nums { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ─── tier cards ───────────────────────────────────────────────── */
.tier-card { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--white); border: var(--bw) solid var(--border); border-radius: 20px; padding: 28px 24px 24px; text-align: left; }
.tier-card[aria-pressed="true"] { border-color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.tier-card.popular { border-color: var(--forest); }
.tier-card .badge-popular { position: absolute; top: -12px; left: 24px; }
.tier-card .tier-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.tier-card .tier-price { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.tier-card .tier-price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.tier-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.tier-card ul li { display: flex; gap: 8px; }
.tier-card ul li::before { content: "✓"; color: var(--accent-deep); font-weight: 700; }

/* ─── accordion (details/summary) ──────────────────────────────── */
.acc { border-top: 1px solid var(--border); }
.acc summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 2px; font-size: 14.5px; font-weight: 600; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 18px; color: var(--muted); }
.acc[open] summary::after { content: "−"; }
.acc .acc-body { padding: 0 2px 16px; font-size: 14px; color: var(--muted); }

/* ─── tables ───────────────────────────────────────────────────── */
.ds-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ds-table th, .ds-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.ds-table th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.ds-table .num-col { text-align: right; font-variant-numeric: tabular-nums; }

/* ─── macro strip (PDP) ────────────────────────────────────────── */
.macro-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--bw) solid var(--border); border-radius: 12px; overflow: hidden; background: var(--white); }
.macro-strip > div { padding: 12px 8px; text-align: center; }
.macro-strip > div + div { border-left: 1px solid var(--border); }
.macro-strip .val { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.macro-strip .lbl { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ─── account sidebar layout ───────────────────────────────────── */
.acct-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
@media (max-width: 880px) { .acct-layout { grid-template-columns: 1fr; } }
.acct-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; }
@media (max-width: 880px) { .acct-nav { flex-direction: row; overflow-x: auto; position: static; } }
.acct-nav button { text-align: left; padding: 11px 14px; border-radius: 10px; border: 0; background: none; font-size: 14.5px; font-weight: 550; color: var(--muted); white-space: nowrap; }
.acct-nav button:hover { background: var(--fg-soft); color: var(--fg); }
.acct-nav button[aria-current="true"] { background: var(--forest); color: var(--bg); font-weight: 600; }

/* ─── order tracker ────────────────────────────────────────────── */
.tracker { display: flex; align-items: center; gap: 0; margin-block: 8px; }
.tracker .t-step { flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; font-size: 11.5px; color: var(--muted); position: relative; }
.tracker .t-step i { width: 12px; height: 12px; border-radius: 999px; background: var(--border); }
.tracker .t-step.done i { background: var(--accent); }
.tracker .t-step.done { color: var(--fg); font-weight: 600; }
.tracker .t-step::before { content: ""; position: absolute; top: 5.5px; left: -50%; width: 100%; height: 1.5px; background: var(--border); z-index: -1; }
.tracker .t-step:first-child::before { display: none; }
.tracker .t-step.done::before { background: var(--accent); }

/* ─── modal ────────────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 60; background: color-mix(in oklch, var(--fg) 45%, transparent); display: none; align-items: center; justify-content: center; padding: 20px; }
.overlay.open { display: flex; }
.modal { width: min(460px, 100%); max-height: 88vh; overflow: auto; background: var(--surface); border-radius: 20px; padding: 28px; }
.modal-close { float: right; width: 36px; height: 36px; border-radius: 999px; border: var(--bw) solid var(--border); background: none; font-size: 14px; line-height: 1; }
.modal-close:hover { border-color: var(--fg); }
.tour-step { display: none; flex-direction: column; gap: 12px; }
.tour-step.active { display: flex; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--border); }
.tour-dots i.on { background: var(--forest); }

/* ─── footer (4 columns, forest) ───────────────────────────────── */
.pagefoot { margin-top: 56px; background: var(--forest); color: var(--cream-70); font-size: 13.5px; }
.pagefoot .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
@media (max-width: 880px) { .pagefoot .foot-grid { grid-template-columns: 1fr 1fr; } }
.pagefoot h4 { font-size: 13px; font-weight: 650; color: var(--bg); margin-bottom: 12px; }
.pagefoot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pagefoot a:hover { color: var(--bg); }
.foot-legal { border-top: 1px solid color-mix(in oklch, var(--bg) 18%, transparent); padding-block: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }

/* ─── misc ─────────────────────────────────────────────────────── */
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }
.notice { background: var(--fg-soft); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; }
.notice.err { background: color-mix(in oklch, var(--coral) 10%, transparent); color: color-mix(in oklch, var(--coral) 80%, var(--fg)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
