:root {
  --cream: #fdf8f0;
  --paper: #fffdf9;
  --brown: #4a2a1f;
  --brown-2: #7a4b2e;
  /* brand board pastels */
  --peach: #ffc9a1;
  --lavender: #dcd3f5;
  --mint: #cde6c4;
  --pink: #ffd1dc;
  --sky: #c4e4f1;
  --butter: #ffe6a3;
  /* stronger tints for letters / sprinkles */
  --peach-d: #ffad7a;
  --lavender-d: #c3b2f0;
  --mint-d: #a9d99a;
  --pink-d: #ffadc2;
  --sky-d: #9fd3ea;
  --butter-d: #ffd86b;
  --orange: var(--peach-d);
  --orange-d: #e07b45;
  --yellow: var(--butter);
  --line: #ead9c6;
  --radius: 22px;
  --font: "Fredoka", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--brown);
  background:
    radial-gradient(circle, #e9dccb 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--cream);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; }
.mono { font-family: var(--mono); }
.small { font-size: 0.78rem; opacity: 0.7; }
code { font-family: var(--mono); }

.setup-banner {
  background: #ffe2c2; color: #7a3a10; text-align: center;
  padding: 8px 12px; font-size: 0.9rem; border-bottom: 2px dashed var(--orange-d);
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(253, 248, 240, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.4rem; }

/* WORDMARK — "Rollback!" multi-pastel letters with brown outline */
.wordmark {
  display: inline-flex; align-items: baseline; line-height: 1;
  font-family: var(--font); font-weight: 700; letter-spacing: -0.01em;
  -webkit-text-stroke: 0.1em var(--brown); paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--brown);
}
.wordmark span:nth-child(1) { color: var(--peach-d); }
.wordmark span:nth-child(2) { color: var(--butter-d); }
.wordmark span:nth-child(3) { color: var(--mint-d); }
.wordmark span:nth-child(4) { color: var(--pink-d); }
.wordmark span:nth-child(5) { color: var(--lavender-d); }
.wordmark span:nth-child(6) { color: var(--sky-d); }
.wordmark span:nth-child(7) { color: var(--peach-d); }
.wordmark span:nth-child(8) { color: var(--pink-d); }
.wordmark .bang {
  display: inline-block; width: 0.17em; height: 0.72em; margin-left: 0.1em;
  background: var(--brown); border-radius: 0.04em; align-self: center;
  -webkit-text-stroke: 0; text-shadow: none;
}
.brand .wordmark { font-size: 1.55rem; }
.lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.lockup .wordmark { font-size: clamp(3rem, 12vw, 5.5rem); }
.subline { font-family: var(--font); font-weight: 500; font-size: .8rem; letter-spacing: .5em; padding-left: .5em; }

/* PASTEL BAND (like the lid label) */
.band { display: grid; grid-template-columns: repeat(5, 1fr); margin: 30px 0 0; border-block: 2px dashed #c9a98f; }
.band div { padding: 16px 10px; text-align: center; font-weight: 700; font-size: clamp(.8rem, 1.6vw, 1.05rem); }
.band div:nth-child(1) { background: var(--peach); }
.band div:nth-child(2) { background: var(--lavender); }
.band div:nth-child(3) { background: var(--mint); }
.band div:nth-child(4) { background: var(--pink); }
.band div:nth-child(5) { background: var(--sky); }
@media (max-width: 560px) {
  .band { grid-template-columns: 1fr 1fr; }
  .band div:nth-child(5) { grid-column: span 2; }
}
.nav nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.nav nav a { text-decoration: none; font-weight: 500; }
.nav nav a:hover { color: var(--orange-d); }
.nav nav { align-items: center; }
.nav nav a.nav-cta {
  background: var(--brown); color: var(--cream); padding: 6px 16px; border-radius: 999px;
  box-shadow: 0 3px 0 #2b170c; transition: transform .12s, box-shadow .12s;
}
.nav nav a.nav-cta:hover { color: var(--cream); transform: translateY(-1px); }
.nav nav a.nav-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 #2b170c; }

.swirl, .roll svg { width: 36px; height: 36px; }
.swirl circle, .roll circle { fill: var(--peach); stroke: var(--brown); stroke-width: 5; }
.swirl path, .roll path { fill: none; stroke: var(--brown); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }

#top { scroll-margin-top: 100px; }
main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 40px); position: relative; z-index: 1; }

/* HERO */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  padding: clamp(40px, 8vw, 96px) 0 40px;
}
.kicker { color: var(--brown-2); opacity: 0.75; font-size: 0.85rem; margin: 0 0 14px; }
.keys { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.key {
  display: inline-grid; place-items: center;
  font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.6rem);
  padding: 6px 26px; min-width: 1.6em;
  border: 4px solid var(--brown); border-radius: 18px;
  box-shadow: 0 8px 0 var(--brown);
  transform: translateY(-4px);
  transition: transform .12s, box-shadow .12s;
  cursor: pointer; user-select: none;
}
.key:active, .key.pressed { transform: translateY(2px); box-shadow: 0 2px 0 var(--brown); }
.key-ctrl { background: var(--lavender); }
.key-z { background: var(--butter); }
.tagline { font-weight: 700; font-size: 1.15rem; margin: 0 0 4px; }
.plus { font-size: 2.4rem; font-weight: 700; }
h1 { font-size: clamp(2.8rem, 8vw, 5rem); line-height: 1; margin: 18px 0 10px; letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 28px; line-height: 1.05; }
.lead { font-size: 1.2rem; margin: 0 0 26px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.status { margin-top: 26px; font-size: 0.8rem; display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #4caf50; box-shadow: 0 0 0 4px #4caf5033; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px #4caf5000; } }

.hero-art { display: flex; flex-direction: column; align-items: center; min-width: 0; }
/* shadow lives on the static wrapper so it doesn't rotate with the svg */
.roll.big { width: min(340px, 70vw); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 18px 0 #4a2a1822; line-height: 0; }
.roll.big svg { width: 100%; height: 100%; animation: spin 28s linear infinite; }
.roll.big circle { stroke-width: 3.5; fill: var(--butter); }
.roll.big path { stroke-width: 4.2; }
@keyframes spin { to { transform: rotate(-360deg); } }
.terminal {
  position: relative; align-self: flex-end; margin-top: -36px; width: min(280px, 100%);
  background: var(--brown); color: #fbead8; border-radius: 14px;
  padding: 14px 18px; font-size: 0.8rem;
  box-shadow: 0 10px 30px #4a2a1833;
}
.terminal p { margin: 0; }
.terminal .out { color: var(--yellow); margin-top: 6px; }

/* BUTTONS */
.btn {
  display: inline-block; text-decoration: none; font-family: var(--font);
  font-weight: 600; font-size: 1.05rem; border-radius: 999px;
  padding: 13px 26px; border: 3px solid var(--brown); cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.btn-dark { background: var(--brown); color: var(--cream); box-shadow: 0 5px 0 #2b170c; }
.btn-ghost { background: var(--paper); color: var(--brown); box-shadow: 0 5px 0 var(--brown); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--brown); }
.btn-full { width: 100%; margin-top: 8px; }
.send-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.send-row .btn { text-align: center; }
.btn-ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); color: #fff; box-shadow: 0 5px 0 var(--brown); }
@media (max-width: 560px) { .send-row { grid-template-columns: 1fr; } }
.btn[disabled] { opacity: .6; cursor: wait; }

/* SECTIONS */
.section { padding: clamp(48px, 8vw, 90px) 0 10px; }
.card {
  background: var(--paper); border: 3px solid var(--brown);
  border-radius: var(--radius); box-shadow: 0 8px 0 var(--brown);
}

/* MENU */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; }
.menu-card { padding: 28px; position: relative; overflow: hidden; border-top-width: 18px; }
.menu-card:nth-child(1) { border-top-color: var(--peach-d); }
.menu-card:nth-child(2) { border-top-color: var(--lavender-d); }
.menu-card .roll svg { width: 90px; height: 90px; }
.menu-card h3 { font-size: 2rem; margin: 14px 0 4px; }
.menu-card .tag { font-family: var(--mono); font-size: .75rem; background: var(--mint); padding: 3px 10px; border-radius: 999px; border: 2px solid var(--brown); }
.menu-card p { margin: 10px 0 18px; }
.menu-card .buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.menu-card .price { font-size: 1.5rem; font-weight: 700; }
.menu-card .add { padding: 8px 18px; font-size: .95rem; }

/* ROLLING REVIEWS */
.reviews h2 { margin-bottom: 18px; }
.reviews-cta { margin: 6px 0 0; text-align: center; }
.reviews-cta a { font-weight: 600; text-decoration: none; border-bottom: 2px dashed currentColor; }
.reviews-cta a:hover { color: var(--orange-d); }
.review-nudge {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 600; text-decoration: none;
  border: 2.5px dashed var(--brown); border-radius: 14px; background: var(--butter);
}
.review-nudge span { color: #e8a400; font-size: 1.3rem; line-height: 1; }
.review-nudge:hover { border-style: solid; }
.reviews-viewport {
  overflow: hidden; margin: 0 calc(-1 * clamp(16px, 5vw, 40px)); padding: 6px clamp(16px, 5vw, 40px) 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.reviews-track { display: flex; gap: 18px; }
.reviews-track.rolling { width: max-content; animation: reviews-roll var(--dur, 40s) linear infinite; }
/* two identical sets + one gap between them → move by half the track plus half a gap */
@keyframes reviews-roll { to { transform: translateX(calc(-50% - 9px)); } }
.reviews-viewport:hover .reviews-track, .reviews-viewport:focus-within .reviews-track { animation-play-state: paused; }
.reviews-track.still { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.reviews-track.still .rcard { scroll-snap-align: start; }
.rcard {
  flex: none; width: 300px; display: flex; flex-direction: column; gap: 10px;
  background: var(--paper); border: 3px solid var(--brown); border-top-width: 12px; border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--brown); padding: 16px 18px;
}
.rcard:nth-child(5n+1) { border-top-color: var(--peach-d); }
.rcard:nth-child(5n+2) { border-top-color: var(--lavender-d); }
.rcard:nth-child(5n+3) { border-top-color: var(--mint-d); }
.rcard:nth-child(5n+4) { border-top-color: var(--pink-d); }
.rcard:nth-child(5n+5) { border-top-color: var(--sky-d); }
.rstars { color: #e8a400; font-size: 1.2rem; letter-spacing: 2px; line-height: 1; }
.rstars span { color: var(--line); }
.rcard p { margin: 0; font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rname { margin-top: auto; font-weight: 600; }
.rmedia-row { display: flex; gap: 8px; }
.rmedia {
  position: relative; width: 72px; height: 72px; padding: 0; overflow: hidden; cursor: zoom-in;
  border: 2.5px solid var(--brown); border-radius: 12px; background: var(--cream);
}
.rmedia img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rmedia.video::after {
  content: "▶"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 1.2rem; background: #0004; text-shadow: 0 1px 4px #0008;
}
.rmedia .more { position: absolute; inset: 0; display: grid; place-items: center; background: #4a2a1fb3; color: #fff; font-weight: 700; }
.lightbox { padding: 0; border: 3px solid var(--brown); border-radius: 18px; background: var(--paper); max-width: 94vw; max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: #1e1511cc; }
.lightbox img { display: block; max-width: 92vw; max-height: 86vh; border-radius: 15px; }
.lightbox iframe { display: block; width: min(92vw, 720px); height: min(80vh, 720px); border: 0; border-radius: 15px; }
.lb-close {
  position: absolute; top: -14px; right: -14px; z-index: 1; width: 38px; height: 38px; border-radius: 50%;
  border: 2.5px solid var(--brown); background: var(--butter); color: var(--brown); font: 700 1.3rem/1 var(--font); cursor: pointer;
}
@media (max-width: 560px) { .rcard { width: 260px; } }
@media (prefers-reduced-motion: reduce) { .reviews-track.rolling { animation: none; } }

/* STEPS */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { background: var(--peach); border: 3px solid var(--brown); border-radius: var(--radius); padding: 22px; }
.steps li:nth-child(2) { background: var(--lavender); }
.steps li:nth-child(3) { background: var(--mint); }
.steps span { display: block; font-size: .85rem; opacity: .6; }
.steps strong { font-size: 1.3rem; }
.steps p { margin: 6px 0 0; }

/* ORDER */
.order { padding: clamp(20px, 4vw, 36px); max-width: 760px; }
.order-items { display: grid; gap: 12px; margin-bottom: 22px; }
.item-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border: 2px dashed var(--line); border-radius: 16px;
}
.item-row.active { border-style: solid; border-color: var(--orange-d); background: #fff4ea; }
.item-row .name { font-weight: 600; font-size: 1.15rem; }
.item-row .unit { font-family: var(--mono); font-size: .8rem; opacity: .7; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--brown);
  background: var(--yellow); font-size: 1.3rem; font-weight: 700; cursor: pointer; color: var(--brown);
  font-family: var(--font); line-height: 1;
}
.stepper button:first-child { background: var(--lavender); }
.stepper output { min-width: 34px; text-align: center; font-weight: 700; font-size: 1.2rem; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
label { display: block; font-weight: 600; margin-bottom: 14px; font-size: .95rem; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px;
  font: 400 1rem var(--font); color: var(--brown);
  padding: 12px 14px; border: 2.5px solid var(--brown); border-radius: 14px;
  background: var(--cream); outline: none;
}
.grid2 > label { min-width: 0; }

/* DELIVERY DATE CHIPS */
.dates { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.dates legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 8px; }
.date-chips { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.chip { position: relative; flex: 0 0 auto; margin: 0; cursor: pointer; scroll-snap-align: start; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: block; text-align: center; }
.chip .d1, .chip .d2 { padding: 0 16px; }
.chip .d1 { padding-top: 10px; font-weight: 700; font-size: 1rem; }
.chip .d2 { padding-bottom: 10px; font-size: .85rem; opacity: .75; }
.chip { border: 2.5px solid var(--brown); border-radius: 16px; background: var(--cream); box-shadow: 0 4px 0 var(--brown); transition: transform .1s, background .1s; }
.chip:has(input:checked) { background: var(--butter); transform: translateY(2px); box-shadow: 0 2px 0 var(--brown); }
.chip:has(input:focus-visible) { outline: 3px solid var(--orange-d); outline-offset: 2px; }
.dates.invalid .chip { border-color: #d0453b; }
.dates .small { margin: 2px 0 0; }
input:focus, select:focus, textarea:focus { border-color: var(--orange-d); box-shadow: 0 0 0 4px #f4a87c55; }
.invalid { border-color: #d0453b !important; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.summary { border-top: 2px dashed var(--line); margin-top: 10px; padding-top: 14px; }
#summary-lines { font-size: .85rem; opacity: .8; white-space: pre-line; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.3rem; margin: 6px 0 10px; }
.error { color: #c0392b; font-weight: 500; min-height: 1.2em; margin: 4px 0; }

/* PAYMENT STEP */
.pay > * + * { margin-top: 16px; }
.pay-head { display: flex; align-items: center; gap: 12px; font-size: .78rem; letter-spacing: .08em; color: var(--brown-2); }
.back {
  width: 40px; height: 40px; border-radius: 12px; border: 2.5px solid var(--brown);
  background: var(--peach); color: var(--brown); font-size: 1.2rem; font-weight: 700; cursor: pointer;
}
.progress { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px !important; }
.progress i { height: 6px; border-radius: 4px; background: var(--peach-d); }
.ref {
  text-align: center; padding: 18px; border: 3px solid var(--brown); border-radius: 18px;
  background: var(--butter); box-shadow: 0 5px 0 var(--brown);
}
.ref span { display: block; font-size: .9rem; }
.ref strong { display: block; font-size: clamp(1.8rem, 7vw, 2.4rem); letter-spacing: .12em; margin: 2px 0; }
.acct { border: 2.5px solid var(--brown); border-radius: 18px; background: var(--lavender); padding: 14px 18px; }
.acct-method { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 6px; }
.acct-method svg { width: 30px; height: 30px; }
.acct-method circle { fill: var(--butter); stroke: var(--brown); stroke-width: 6; }
.acct-method path { fill: none; stroke: var(--brown); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.acct-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-top: 1.5px dashed #b9a6e6; }
.acct-row span { font-size: .85rem; opacity: .75; min-width: 120px; }
.acct-row b { font-size: 1.05rem; }
.copy {
  font: 600 .8rem var(--font); color: var(--brown); background: var(--paper);
  border: 2px solid var(--brown); border-radius: 999px; padding: 3px 12px; cursor: pointer;
}
.copy:active { transform: translateY(1px); }
.amount { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 2px dashed var(--line); padding-top: 16px; }
.amount span { font-weight: 600; flex: 1 1 100%; margin-bottom: -6px; }
.amount strong { font-size: 1.7rem; }
.small-note { font-size: .85rem; opacity: .75; margin-top: 4px !important; }
.please { border: 2px dashed var(--orange-d); background: #fff1e6; border-radius: 14px; padding: 12px 16px; font-size: .95rem; }
.please > b:first-child { color: var(--orange-d); }
.pay-label { margin-bottom: 0; }
.drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; text-align: center;
  border: 2.5px dashed #c9a98f; border-radius: 18px; padding: 22px 16px; background: var(--cream); font-weight: 400;
}
.drop:hover, .drop.has-file { border-color: var(--brown); background: var(--mint); }
.drop-icon { font-size: 1.8rem; line-height: 1; color: var(--orange-d); font-weight: 700; }
.drop small { opacity: .7; }
.drop img { max-width: 160px; max-height: 200px; border-radius: 10px; border: 2px solid var(--brown); margin-top: 8px; }
.howto { margin: 0; padding: 14px 18px 14px 40px; border: 2.5px dashed #c9a98f; border-radius: 18px; background: var(--cream); }
.howto li { margin: 4px 0; }
.howto li::marker { font-family: var(--mono); font-weight: 600; color: var(--orange-d); }
.checknote { background: var(--sky); border-radius: 14px; padding: 10px 16px; font-size: .9rem; }
.linkish { background: none; border: 0; font: 500 .9rem var(--font); color: var(--brown-2); text-decoration: underline; cursor: pointer; padding: 0; display: block; margin-left: auto; margin-right: auto; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 800px; }
.faq details:nth-child(5n+1) { --tint: var(--peach); }
.faq details:nth-child(5n+2) { --tint: var(--lavender); }
.faq details:nth-child(5n+3) { --tint: var(--mint); }
.faq details:nth-child(5n+4) { --tint: var(--pink); }
.faq details:nth-child(5n+5) { --tint: var(--sky); }
.faq details { border-left: 14px solid var(--tint) !important; }
.faq details { background: var(--paper); border: 2.5px solid var(--brown); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.3rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; }
.faq summary::after { transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details[open] p { animation: faq-in .3s ease-out; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
/* smooth height where supported (Chrome/Edge); elsewhere it just opens */
:root { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) {
  .faq details::details-content, .faq summary::after { transition: none; }
  .faq details[open] p { animation: none; }
}

/* FOOTER */
.footer { text-align: center; padding: 70px 20px 40px; position: relative; z-index: 1; }
.footer p { margin: 6px 0; }
.footer .lockup { margin-bottom: 14px; }
.footer .lockup .wordmark { font-size: clamp(2.6rem, 9vw, 4rem); }
.to-top { font-weight: 600; text-decoration: none; border-bottom: 2px dashed currentColor; }
.to-top:hover { color: var(--orange-d); }

/* MOST POPULAR STICKER */
.popular {
  position: absolute; top: 18px; right: 18px; transform: rotate(6deg);
  background: var(--pink); color: var(--brown); border: 2.5px solid var(--brown); border-radius: 999px;
  padding: 4px 12px; font-weight: 700; font-size: .85rem; box-shadow: 0 3px 0 var(--brown); white-space: nowrap;
}
.menu-card:nth-child(2) .popular { background: var(--butter); transform: rotate(-5deg); }
.opt { font-weight: 400; font-size: .82rem; opacity: .7; }
.done-email { margin-top: 6px; font-size: .9rem; }

/* MENU CARD COUNTER */
.card-stepper { background: var(--butter); border: 2.5px solid var(--brown); border-radius: 999px; padding: 3px; box-shadow: 0 4px 0 var(--brown); }
.card-stepper output { min-width: 30px; }
.card-stepper button { width: 34px; height: 34px; }
.roll.spin-once svg { animation: spin-once .6s cubic-bezier(.3,.7,.3,1); }
@keyframes spin-once { from { transform: rotate(0); } to { transform: rotate(-360deg); } }

/* SPRINKLE BURST */
.burst { position: fixed; z-index: 60; width: 14px; height: 5px; border-radius: 3px; pointer-events: none; }

/* FIELD HINTS + VALID TICK */
.field-error { display: block; color: #c0392b; font-weight: 500; font-size: .8rem; margin-top: 4px; min-height: 0; }
.field-error:empty { display: none; }
label.valid input {
  border-color: #3c9a4c; padding-right: 42px;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23a9d99a' stroke='%234a2a1f' stroke-width='2'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%234a2a1f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 22px;
}

/* ORDER CONFIRMED */
.done-head { text-align: center; }
.done-head h3 { font-size: clamp(2rem, 7vw, 2.6rem); margin: 4px 0 6px; }
.done-head p { margin: 0 auto; max-width: 460px; }
.done-head .kicker { margin: 10px 0 0; }
.done-roll { width: 86px; height: 86px; margin: 0 auto; }
.done-roll svg { width: 100%; height: 100%; animation: spin-once 1s cubic-bezier(.3,.7,.3,1); }
.done-roll circle { fill: var(--mint); }
.done-summary { border: 2.5px solid var(--brown); border-radius: 18px; background: var(--lavender); padding: 14px 18px; }
.done-summary .mono { font-size: .9rem; line-height: 1.6; }
.done-summary .total { border-top: 1.5px dashed #b9a6e6; margin: 10px 0 4px; padding-top: 8px; }
.done-when { font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; }
.timeline li { position: relative; padding: 0 0 18px 36px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--brown); background: var(--paper); box-sizing: border-box;
}
.timeline li::after { content: ""; position: absolute; left: 10px; top: 26px; bottom: 0; border-left: 2.5px dashed #c9a98f; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%234a2a1f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.timeline li.now::before { background: var(--butter); box-shadow: 0 0 0 5px #ffe6a388; animation: pulse-now 1.8s infinite; }
@keyframes pulse-now { 50% { box-shadow: 0 0 0 9px #ffe6a300; } }
.timeline b { display: block; }
.timeline span { font-size: .9rem; opacity: .75; }
.timeline li:not(.done):not(.now) { opacity: .6; }
.checknote a { font-weight: 600; }

/* STICKY CART BAR */
.cartbar {
  position: fixed; z-index: 40; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 14px; background: var(--paper);
  border: 3px solid var(--brown); border-radius: 20px; box-shadow: 0 6px 0 var(--brown), 0 14px 30px #4a2a1f33;
  animation: cb-in .25s ease-out;
}
.cartbar .cb-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cartbar .cb-icon svg { width: 38px; height: 38px; display: block; }
.cartbar .cb-icon circle { fill: var(--peach); stroke: var(--brown); stroke-width: 6; }
.cartbar .cb-icon path { fill: none; stroke: var(--brown); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.cartbar b { display: block; font-size: 1.05rem; line-height: 1.1; }
.cartbar .mono { font-size: .85rem; opacity: .8; }
.cartbar .btn { padding: 10px 18px; font-size: 1rem; white-space: nowrap; box-shadow: 0 4px 0 #2b170c; }
.cartbar.bump { animation: cb-bump .35s ease-out; }
@keyframes cb-in { from { transform: translate(-50%, 120%); } }
@keyframes cb-bump { 40% { transform: translate(-50%, -6px) scale(1.03); } }
body.has-cartbar { padding-bottom: 96px; }
body.has-cartbar .toast.show { transform: translate(-50%, -84px); }
@media (prefers-reduced-motion: reduce) { .cartbar, .cartbar.bump, .roll.spin-once svg, .done-roll svg, .timeline li.now::before { animation: none; } }

/* FLOATING WHATSAPP BUTTON */
.wa-fab {
  position: fixed; z-index: 39; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px;
  background: #25d366; color: var(--brown); font-weight: 600; text-decoration: none;
  border: 3px solid var(--brown); border-radius: 999px; box-shadow: 0 5px 0 var(--brown);
  transition: transform .15s, box-shadow .15s, bottom .25s;
}
.wa-fab svg { width: 26px; height: 26px; fill: var(--brown); flex: none; }
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--brown); }
.wa-fab:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--brown); }
body.has-cartbar .wa-fab { bottom: 96px; }
@media (max-width: 560px) {
  .wa-fab { padding: 12px; }
  .wa-fab span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-fab { transition: none; } }

/* AI CHAT */
.wa-fab.chat-fab { background: var(--peach-d); }
.wa-fab.chat-fab svg circle { fill: var(--peach-d); }
.chat {
  position: fixed; z-index: 45; right: 16px; bottom: 16px;
  width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100dvh - 90px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 3px solid var(--brown); border-radius: 22px;
  box-shadow: 0 8px 0 var(--brown), 0 18px 40px #4a2a1f44;
  animation: chat-in .22s ease-out;
}
@keyframes chat-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--butter); border-bottom: 2.5px solid var(--brown); }
.chat-head b { display: block; line-height: 1.2; }
.chat-head small { font-size: .7rem; opacity: .7; }
.chat-head > div { flex: 1; min-width: 0; }
.chat-avatar svg { width: 34px; height: 34px; display: block; }
.chat-avatar circle { fill: var(--peach); stroke: var(--brown); stroke-width: 6; }
.chat-avatar path { fill: none; stroke: var(--brown); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.chat-close { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--brown); background: var(--paper); color: var(--brown); font: 700 1.3rem/1 var(--font); cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: .95rem; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.msg.assistant { align-self: flex-start; background: var(--lavender); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: var(--brown); color: var(--cream); border-bottom-right-radius: 4px; }
.msg a { font-weight: 600; }
.msg.typing { display: flex; gap: 4px; padding: 13px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--brown); opacity: .4; animation: typing 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 40% { opacity: 1; transform: translateY(-3px); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat-chips button { font: 500 .82rem var(--font); color: var(--brown); background: var(--cream); border: 2px solid var(--brown); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.chat-chips button:hover { background: var(--butter); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 2px dashed var(--line); }
.chat-form input { margin: 0; padding: 10px 14px; border-radius: 999px; font-size: 16px; }
.chat-form button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brown); color: var(--cream); font: 700 1.2rem var(--font); cursor: pointer; }
.chat-human { display: block; text-align: center; font-size: .85rem; font-weight: 600; padding: 0 12px 12px; text-decoration: none; color: var(--brown-2); }
.chat-human:hover { text-decoration: underline; }
@media (max-width: 560px) { .chat { right: 12px; bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .chat, .msg.typing i { animation: none; } }

/* REVIEW PAGE (/review) */
.review-main { max-width: 760px; }
.review-intro { padding-bottom: 24px; }
.review-intro h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); margin: 0 0 12px; }
.review-intro .lead { margin: 0; }
.review-card fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.review-card legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stars { display: flex; gap: 6px; }
.stars label { margin: 0; cursor: pointer; position: relative; }
.stars input { position: absolute; opacity: 0; width: 0; height: 0; }
.stars span {
  display: grid; place-items: center; width: 52px; height: 52px; font-size: 2rem; line-height: 1;
  color: var(--line); background: var(--cream); border: 2.5px solid var(--brown); border-radius: 14px;
  box-shadow: 0 4px 0 var(--brown); transition: transform .1s, color .1s, background .1s;
}
.stars label:active span { transform: translateY(2px); box-shadow: 0 2px 0 var(--brown); }
.stars input:focus-visible + span { outline: 3px solid var(--orange-d); outline-offset: 2px; }
.stars[data-value="1"] label:nth-child(-n+1) span,
.stars[data-value="2"] label:nth-child(-n+2) span,
.stars[data-value="3"] label:nth-child(-n+3) span,
.stars[data-value="4"] label:nth-child(-n+4) span,
.stars[data-value="5"] label:nth-child(-n+5) span { color: #e8a400; background: var(--butter); }
.stars-field .small { margin: 8px 0 0; }
.stars-field.invalid .stars span { border-color: #d0453b; }
.roll-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rchip { margin: 0; cursor: pointer; }
.rchip input { position: absolute; opacity: 0; width: 0; height: 0; }
.rchip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-weight: 600;
  border: 2.5px solid var(--brown); border-radius: 999px; background: var(--cream); box-shadow: 0 3px 0 var(--brown);
}
.rchip i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--brown); }
.rchip input:checked + span { background: var(--mint); }
.rchip input:checked + span::after { content: "✓"; }
.rchip input:focus-visible + span { outline: 3px solid var(--orange-d); outline-offset: 2px; }
.files-field { margin-bottom: 16px; }
.files-label { font-weight: 600; font-size: .95rem; margin: 0 0 8px; }
.files-field .drop { padding: 18px 16px; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin-top: 10px; }
.file-grid:empty { display: none; }
.thumb { position: relative; margin: 0; aspect-ratio: 1; border: 2.5px solid var(--brown); border-radius: 14px; overflow: hidden; background: var(--cream); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .badge { position: absolute; left: 6px; bottom: 6px; background: var(--brown); color: var(--cream); font-size: .7rem; padding: 2px 7px; border-radius: 999px; }
.thumb button {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--brown); background: var(--paper); color: var(--brown); font: 700 1rem/1 var(--font); cursor: pointer;
}
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
label.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--brown); }
.review-done .send-row { margin-top: 18px; }
.review-done .checknote { margin-top: 16px; }
.review-page .footer { padding-top: 40px; }
@media (max-width: 360px) { .stars span { width: 46px; height: 46px; font-size: 1.7rem; } }

/* TOAST */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px);
  background: var(--brown); color: var(--cream); padding: 12px 22px; border-radius: 999px;
  font-weight: 500; transition: transform .3s; z-index: 50; max-width: 90vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast.undo { cursor: pointer; background: var(--lavender); color: var(--brown); border: 2.5px solid var(--brown); box-shadow: 0 4px 0 var(--brown); }

/* FALLING LEAVES */
.leaves { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.leaf { position: absolute; top: -40px; opacity: .8; animation: fall linear infinite; }
.leaf.sprinkle { width: 16px; height: 6px; border-radius: 4px; }
.leaf svg { width: 22px; height: 22px; fill: none; stroke-width: 2; stroke-linecap: round; }
@keyframes fall {
  to { transform: translateY(110vh) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .leaf, .roll.big svg, .dot { animation: none; }
  .leaf { display: none; }
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .terminal { align-self: center; margin-top: -24px; }
}
@media (max-width: 560px) {
  /* hero: small roll beside the terminal so the menu comes sooner */
  .hero { padding: 32px 0 8px; gap: 22px; }
  .lead { margin-bottom: 20px; }
  .cta-row { gap: 10px; }
  .cta-row .btn { padding: 11px 18px; font-size: .98rem; }
  .status { margin-top: 18px; }
  .hero-art { flex-direction: row; align-items: center; gap: 14px; }
  .roll.big { width: 104px; flex: none; box-shadow: 0 8px 0 #4a2a1822; }
  .terminal { align-self: center; margin-top: 0; width: auto; flex: 1; }
  .band { margin-top: 18px; }

  /* menu: two compact cards side by side */
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .menu-card { padding: 14px; border-top-width: 12px; display: flex; flex-direction: column; }
  .menu-card .roll svg { width: 54px; height: 54px; }
  .menu-card h3 { font-size: 1.35rem; margin: 8px 0 4px; }
  .menu-card .tag { font-size: .62rem; padding: 2px 7px; }
  .menu-card p { font-size: .85rem; line-height: 1.4; margin: 8px 0 12px; flex: 1; }
  .menu-card .buy { flex-direction: column; align-items: stretch; gap: 8px; }
  .menu-card .price { font-size: 1.2rem; }
  .menu-card .add { width: 100%; }
  .menu-card .card-stepper { justify-content: space-between; }
  .popular { top: 10px; right: 8px; font-size: .68rem; padding: 2px 8px; }

  .grid2 { grid-template-columns: 1fr; }
  .nav { padding: 12px 14px; }
  .nav nav { gap: 14px; }
  .nav nav a { font-size: .95rem; }
  .nav nav a.nav-cta { padding: 5px 13px; }
  .brand .wordmark { font-size: 1.3rem; }
  .brand .swirl { width: 30px; height: 30px; }
  .key { padding: 4px 18px; }
}
@media (max-width: 360px) {
  .nav nav { gap: 10px; }
  .nav nav a.nav-cta { padding: 4px 10px; }
  .menu-grid { grid-template-columns: 1fr; }
  .nav nav a { font-size: .85rem; }
  .brand .wordmark { font-size: 1.1rem; }
  .brand { gap: 6px; }
}

/* DARK MODE — follows the phone/computer setting.
   Pastels turn into deep tints so light text stays readable on them; the roll
   icons and the WhatsApp button keep their light colours and dark outlines. */
:root { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --cream: #1e1511;
    --paper: #2a1d17;
    --brown: #f4e4d0;
    --brown-2: #e0b48f;
    --peach: #6b3f2a;
    --lavender: #45395f;
    --mint: #34503a;
    --pink: #63384a;
    --sky: #2f4a5a;
    --butter: #6a5428;
    --line: #4a3529;
  }
  :root:not([data-theme="light"]) body {
    background: radial-gradient(circle, #3a2a21 1px, transparent 1.4px) 0 0 / 22px 22px, var(--cream);
  }
  :root:not([data-theme="light"]) .nav { background: rgba(30, 21, 17, 0.88); }
  :root:not([data-theme="light"]) .btn-dark,
  :root:not([data-theme="light"]) .cartbar .btn,
  :root:not([data-theme="light"]) .nav nav a.nav-cta { box-shadow: 0 5px 0 #a8896c; }
  :root:not([data-theme="light"]) .nav nav a.nav-cta { box-shadow: 0 3px 0 #a8896c; }
  :root:not([data-theme="light"]) .terminal { background: #120c09; color: #fbead8; box-shadow: 0 10px 30px #0008; }
  :root:not([data-theme="light"]) .terminal .out { color: var(--butter-d); }
  :root:not([data-theme="light"]) .item-row.active { background: #3a2619; }
  :root:not([data-theme="light"]) .please { background: #3a2619; }
  :root:not([data-theme="light"]) .error,
  :root:not([data-theme="light"]) .field-error { color: #ff9a8a; }
  :root:not([data-theme="light"]) .invalid { border-color: #ff7a6a !important; }
  /* keep the original light colours inside the roll icons and the WhatsApp button */
  :root:not([data-theme="light"]) .swirl,
  :root:not([data-theme="light"]) .roll,
  :root:not([data-theme="light"]) .cb-icon,
  :root:not([data-theme="light"]) .acct-method svg,
  :root:not([data-theme="light"]) .chat-avatar,
  :root:not([data-theme="light"]) .wa-fab {
    --brown: #4a2a1f; --peach: #ffc9a1; --butter: #ffe6a3; --mint: #cde6c4; --pink: #ffd1dc;
  }
  :root:not([data-theme="light"]) .wa-fab { border-color: #1e1511; box-shadow: 0 5px 0 #0009; }
  :root:not([data-theme="light"]) .roll.big { box-shadow: 0 18px 0 #0006; }
  :root:not([data-theme="light"]) .timeline li.done::before { background-color: var(--mint-d); }
  :root:not([data-theme="light"]) .timeline li.now::before { box-shadow: 0 0 0 5px #ffd86b44; }
}
