:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #6b6560;
  --line: #e7e2da;
  --accent: #b45309;
  --accent-ink: #ffffff;
  --a: #2a78d6;
  --b: #eb6834;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .05);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171412; --surface: #211d1a; --text: #f3efe9; --muted: #a8a19a; --line: #3a342f;
    --accent: #f59e0b; --accent-ink: #1c1917; --shadow: none;
  }
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; background: var(--bg); }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: .2em 0 .4em; }
main { max-width: 1120px; margin: 0 auto; padding: 24px 16px 64px; }
section { margin: 48px 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--accent); font-weight: 600; margin: 0; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.ribbon { background: var(--text); color: var(--bg); font-size: .8rem; padding: 6px 16px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ribbon-variant { font-weight: 700; }

.site-header { display: flex; align-items: center; gap: 24px; padding: 14px 16px; max-width: 1120px; margin: 0 auto; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.site-header nav { display: flex; gap: 18px; flex: 1; }
.site-header nav a, .header-actions a { text-decoration: none; }
.site-header nav a:hover, .header-actions a:hover { text-decoration: underline; }
.header-actions { display: flex; gap: 16px; align-items: center; }
.count { display: inline-block; min-width: 1.4em; padding: 0 .35em; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; text-align: center; }

.button { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { filter: brightness(1.08); }
.button.big { padding: 14px 28px; font-size: 1.05rem; }
.button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.link-button { background: none; border: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; background: var(--surface); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.hero .art { width: 100%; height: auto; }
.deals { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--surface); border: 1.5px dashed var(--accent); border-radius: var(--radius); padding: 24px 28px; }
.deals h2 { margin: 0 0 4px; font-size: 1.3rem; }
.deals p { margin: 0; }
.newsletter { text-align: center; }
.newsletter form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.newsletter input { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); min-width: 260px; font: inherit; background: var(--surface); color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.card a { text-decoration: none; display: block; }
.card .art { width: 100%; height: auto; display: block; }
.card h3 { font-size: 1rem; margin: 10px 4px 4px; }
.price { font-weight: 700; margin: 0 4px; }
.price.big { font-size: 1.6rem; margin: 0 0 8px; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product > .art { width: 100%; height: auto; }
.perks { color: var(--muted); padding-left: 18px; }

.cart-line { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line .art { width: 72px; height: auto; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.totals { margin-left: auto; max-width: 320px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 800; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 18px; background: var(--surface); }
fieldset[disabled] { opacity: .5; }
legend { font-weight: 700; padding: 0 6px; }
label { display: block; margin: 0 0 12px; font-size: .92rem; }
label input, label select { display: block; width: 100%; margin-top: 4px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); font: inherit; background: var(--bg); color: var(--text); }
label.check { display: flex; gap: 8px; align-items: center; }
label.check input { width: auto; display: inline; margin: 0; }
aside { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }

.prose { max-width: 680px; }
.post-list li { margin: 8px 0; }

.modal { border: 0; border-radius: 16px; padding: 24px; width: min(420px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal::backdrop { background: rgba(0, 0, 0, .45); }
.modal h2 { margin-top: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); z-index: 30; display: flex; gap: 14px; align-items: center; }
.toast a { color: inherit; font-weight: 700; }
.toast[hidden] { display: none; }

.exit-offer { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: #fef3c7; color: #1c1917; padding: 14px 16px; display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; box-shadow: 0 6px 24px rgba(0, 0, 0, .15); }
.exit-offer .button { background: #b45309; color: #fff; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 16px; display: flex; gap: 32px; justify-content: space-between; align-items: center; flex-wrap: wrap; max-width: 1120px; margin: 0 auto; }
.site-footer p { margin: 4px 0 0; color: var(--muted); }
.site-footer nav { display: flex; gap: 16px; }

/* Booth panel */
.perf-panel { position: fixed; right: 12px; bottom: 12px; z-index: 50; width: 250px; background: rgba(20, 18, 16, .94); color: #f5f5f4; border-radius: 14px; font: 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.perf-panel header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; cursor: pointer; }
.perf-panel .badge { font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--a); }
.perf-panel.b .badge { background: var(--b); }
.perf-panel.v0 .badge { background: #57534e; }
.perf-panel dl { margin: 0; padding: 0 12px 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.perf-panel dt { color: #a8a29e; }
.perf-panel dd { margin: 0; text-align: right; font-weight: 700; }
.perf-panel.collapsed dl { display: none; }

/* Landing and results */
.landing main { max-width: 820px; padding-top: 64px; }
.lede { font-size: 1.15rem; color: var(--muted); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.choice { display: block; padding: 22px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; border-top: 6px solid var(--a); }
.choice.b { border-top-color: var(--b); }
.choice strong { display: block; font-size: 1.3rem; margin-bottom: 6px; }
.choice span { color: var(--muted); }

@media (max-width: 760px) {
  .hero, .product, .checkout, .choices { grid-template-columns: 1fr; }
  .hero { padding: 24px; }
  .deals { flex-direction: column; align-items: flex-start; }
  .site-header nav { order: 3; flex-basis: 100%; }
  .cart-line { grid-template-columns: 56px 1fr; }
  .perf-panel { width: auto; left: 12px; }
}
