/* Home page v2 */

/* ---------- hero ---------- */
.hero { overflow: hidden; }
.hero-grid { display: grid; gap: 8px; padding-top: 20px; padding-bottom: 32px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 24px; padding-top: 48px; padding-bottom: 64px; } }
.hero-title { position: relative; margin: 14px 0 22px; padding-bottom: .2em; }
.hero-title .line { display: block; overflow: hidden; padding-top: .04em; }
.hero-title .display { display: block; white-space: nowrap; font-size: clamp(3.6rem, 17vw, 6.8rem); }
.hero-script {
  display: block; position: relative; z-index: 2; width: max-content; margin: -.42em 0 0 auto;
  font-size: clamp(2.6rem, 11vw, 4.6rem); line-height: 1; transform: rotate(-6deg); transform-origin: left center;
  color: var(--orange); text-shadow: 0 3px 0 var(--cream), 0 -3px 0 var(--cream);
}
@media (min-width: 960px) { .hero-script { margin-left: 3.2em; margin-right: 0; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; text-decoration: none; color: var(--ink-soft); }
.stars { color: var(--orange); letter-spacing: 2px; font-size: 1rem; }

.hero-art { position: relative; aspect-ratio: 1 / .92; width: 100%; max-width: 600px; margin: 0 auto; order: -1; }
@media (min-width: 960px) { .hero-art { order: 0; } }
.hero-art .disc { position: absolute; inset: 10% 8% 2% 12%; border-radius: 50%; background: var(--orange); }
.hero-art .c { position: absolute; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-cookie); will-change: transform; }
.hero-art .c1 { width: 58%; left: 22%; top: 16%; z-index: 2; }
.hero-art .c2 { width: 40%; left: 0; top: 2%; z-index: 1; }
.hero-art .c3 { width: 42%; right: 0; bottom: 0; z-index: 3; }
.sticker {
  position: absolute; z-index: 4; left: 4%; bottom: 10%; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; background: var(--gold); color: var(--ink); line-height: 1.2;
  transform: rotate(-12deg); box-shadow: 0 6px 14px rgba(80,48,21,.18);
}

/* one-time entrance */
.intro { animation: rise 760ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.hero-title .display.intro { animation-name: lineUp; }
.hero-script { animation: wipe 700ms var(--ease-out) 420ms both; }
.hero-art .disc { animation: pop 700ms var(--ease-out) 80ms both; }
.hero-art .c1 { animation: drop 800ms var(--ease-out) 200ms backwards; }
.hero-art .c2 { animation: drop 800ms var(--ease-out) 280ms backwards; }
.hero-art .c3 { animation: drop 800ms var(--ease-out) 360ms backwards; }
.sticker { animation: stick 600ms var(--ease-out) 700ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-28px) rotate(-10deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes stick { from { opacity: 0; transform: rotate(-30deg) scale(.6); } to { opacity: 1; transform: rotate(-12deg); } }

/* ---------- flavours band ---------- */
.wave-green-top { margin-top: 8px; }
.flavours { background: var(--green); padding: 24px 0 40px; }
.flav-head { text-align: center; }
.flav-head .script { font-size: clamp(2rem, 6vw, 3.4rem); color: var(--ink); display: block; line-height: 1; margin-bottom: -.12em; transform: rotate(-4deg); }
.flav-head .h2 { font-size: clamp(3.6rem, 13vw, 8rem); color: var(--ink); line-height: .9; }
.flav-head .mono { margin: 12px 0 0; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; max-width: 920px; margin: 34px auto 30px; }
.pill {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 24px; border-radius: 999px;
  background: #fff; color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 2px var(--ink);
  font: 400 clamp(1.15rem, 3vw, 1.6rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em;
  transform: rotate(var(--r, 0deg)); transition: transform 200ms var(--ease-out), background-color 160ms ease;
}
.pill-script { font: 400 clamp(1.2rem, 3vw, 1.6rem)/1 var(--font-script); text-transform: none; background: var(--gold); }
.pill-round { background: var(--cream); }
@media (hover: hover) and (pointer: fine) { .pill:hover { transform: rotate(0deg) scale(1.06); } }
.pill:active { transform: rotate(var(--r, 0deg)) scale(.97); }
.js .pills .pill { opacity: 0; }
.js .pills.in .pill { animation: fall 900ms cubic-bezier(.34, 1.4, .64, 1) both; animation-delay: calc(var(--d) * 55ms); }
@keyframes fall {
  0% { opacity: 0; transform: translateY(-160px) rotate(calc(var(--r) * -2)); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotate(var(--r)); }
}
.flav-foot { text-align: center; margin: 0; }

/* ---------- favourites ---------- */
.section { margin-top: 80px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head .script, .h2 .script { font-size: .62em; vertical-align: .1em; margin-left: .1em; display: inline-block; transform: rotate(-4deg); }
.text-link { color: var(--green-deep); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .text-link:hover { text-decoration: underline; } }
.best-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 760px) { .best-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; } }
.best { display: flex; flex-direction: column; padding: 16px; }
.best-img { display: block; aspect-ratio: 1; }
.best-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-cookie); transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .best:hover .best-img img { transform: rotate(-8deg) scale(1.04); } }
.best-info { padding: 16px 2px 14px; flex: 1; }
.best-info .h3 { font: 400 1.35rem/1.05 var(--font-display); text-transform: uppercase; color: var(--cocoa-deep); }
.best-info .price { margin: 6px 0 0; }
.best .btn { min-height: 44px; padding: 0 12px; }

/* ---------- proof band ---------- */
.proof-band { margin-top: 88px; }
.proof-inner { background: var(--orange); padding: 32px 0 44px; }
.big-quote { margin: 0; text-align: center; }
.big-quote blockquote { margin: 0; }
.big-quote .h2 { color: var(--ink); font-size: clamp(2.8rem, 9vw, 6.4rem); max-width: 12ch; margin: 0 auto; }
.big-quote figcaption { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); margin-top: 6px; text-shadow: 0 1px 0 rgba(0,0,0,.15); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 40px auto 36px; max-width: 760px; text-align: center; }
.stat { display: block; font: 400 clamp(2.6rem, 8vw, 4.4rem)/1 var(--font-display); color: var(--ink); }
.stats .mono { display: block; margin-top: 6px; font-size: .72rem; }
.quotes { display: grid; gap: 12px; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.quote { margin: 0; padding: 22px; border-radius: var(--radius); background: var(--cream); }
.quote blockquote { margin: 0 0 12px; font: 600 1.05rem/1.4 var(--font-ui); }
.quote figcaption { color: var(--ink-soft); }

/* ---------- find us ---------- */
.find { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .find { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.find-list { list-style: none; padding: 0; margin: 22px 0 16px; display: grid; gap: 10px; }
.find-list li { display: flex; align-items: center; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.find .lead { margin: 0 0 22px; }
.find-art { position: relative; display: block; border-radius: 28px; background: #fff; box-shadow: var(--shadow-1); padding: 18px; }
/* (old svg mini-map rule removed) */
.find-tag { position: absolute; left: 22px; top: 20px; }
@media (hover: hover) and (pointer: fine) { .find-art:hover .mm-dot { transform: scale(1.25); } }
.mm-dot { transform-box: fill-box; transform-origin: center; transition: transform 200ms var(--ease-out); }
.js .find-art .mm-dot { opacity: 0; }
.js .find-art.in .mm-dot { animation: popdot 500ms var(--ease-out) both; animation-delay: calc(var(--k) * 22ms); }
@keyframes popdot { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }

/* ---------- wholesale ---------- */
.wholesale-card { display: grid; gap: 20px; align-items: center; padding: 32px; border-radius: 28px; background: var(--cocoa-deep); color: #fff; }
@media (min-width: 860px) { .wholesale-card { grid-template-columns: 1fr auto; padding: 48px; } }
.wholesale-card .h2 { color: #fff; }
.wholesale-card .script { color: var(--gold); }
.wholesale-card p { margin: 12px 0 0; opacity: .85; max-width: 36em; }

@media (prefers-reduced-motion: reduce) {
  .intro, .hero-title .display.intro, .hero-script, .hero-art .disc, .hero-art .c, .sticker { animation: fade 240ms ease both; }
  .js .pills.in .pill, .js .find-art.in .mm-dot { animation: fade 240ms ease both; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

/* v5: white words on the green Flavours band; cut-out cookie photos in the hero */
.flavours .flav-head .script, .flavours .flav-head .h2 { color: #fff; }
.flavours .flav-head .mono { color: #fff; font: 600 1.2rem/1.45 var(--font-ui); letter-spacing: 0; text-transform: none; }
.hero-art .c1 { width: 62%; left: 20%; top: 12%; }
.hero-art .c2 { width: 44%; left: -2%; top: -2%; }
.hero-art .c3 { width: 46%; right: -2%; bottom: -4%; }
.best-img img[src*="assets/cookies/"] { transform-origin: center; }
.flavours .flav-head .h2 { color: var(--ink); }

/* v8: no orange disc behind the hero cookies; louder price sticker */
.hero-art .disc { display: none; }
.sticker {
  left: 0; bottom: 6%; width: clamp(128px, 30vw, 156px); height: auto; aspect-ratio: 1; background: var(--orange); color: var(--ink);
  border-radius: 0; box-shadow: none; filter: drop-shadow(0 10px 16px rgba(80,48,21,.28));
  clip-path: polygon(50% 0%, 57.9% 10.5%, 69.8% 5%, 71.6% 18.1%, 84.6% 17.6%, 81.2% 30.3%, 93.4% 35.1%, 85.1% 45.3%, 95% 54.1%, 83.4% 60.4%, 89.1% 72.3%, 76.1% 74%, 75.4% 87.1%, 63.2% 82.5%, 57.1% 94.3%, 50% 83.2%, 42.9% 94.3%, 36.8% 82.5%, 24.6% 87.1%, 23.9% 74%, 10.9% 72.3%, 16.6% 60.4%, 5% 54.1%, 14.9% 45.3%, 6.6% 35.1%, 18.8% 30.3%, 15.4% 17.6%, 28.4% 18.1%, 30.2% 5%, 42.1% 10.5%);
  display: grid; place-items: center; text-align: center; transform: rotate(-12deg);
}
.st-in { display: grid; place-items: center; width: 74%; aspect-ratio: 1; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 6px var(--gold), inset 0 0 0 7.5px var(--ink); padding-top: 4px; }
.st-top { font: 400 clamp(.85rem, 2.6vw, 1rem)/1 var(--font-script); color: var(--cocoa-deep); transform: rotate(-4deg); }
.st-price { font: 400 clamp(1.9rem, 6vw, 2.35rem)/.95 var(--font-display); color: var(--ink); letter-spacing: .01em; }
.st-each { font: 500 .66rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-top: 2px; }
.sticker { animation: stick 600ms var(--ease-out) 700ms both, nudge 5s ease-in-out 2.2s infinite; }
@keyframes nudge {
  0%, 84%, 100% { transform: rotate(-12deg) scale(1); }
  88% { transform: rotate(-4deg) scale(1.08); }
  92% { transform: rotate(-16deg) scale(1.04); }
  96% { transform: rotate(-10deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .sticker { animation: fade 240ms ease both; } }
.st-in { width: 80%; gap: 1px; padding-top: 2px; }
.st-top { font-size: clamp(.78rem, 2.3vw, .9rem); }
.st-price { font-size: clamp(1.75rem, 5.4vw, 2.15rem); }
.st-each { font-size: .62rem; }
.sticker { clip-path: polygon(50.0% 0.0%, 57.5% 7.7%, 67.1% 3.0%, 71.5% 12.8%, 82.1% 11.7%, 82.9% 22.4%, 93.3% 25.0%, 90.4% 35.3%, 99.2% 41.3%, 93.0% 50.0%, 99.2% 58.7%, 90.4% 64.7%, 93.3% 75.0%, 82.9% 77.6%, 82.1% 88.3%, 71.5% 87.2%, 67.1% 97.0%, 57.5% 92.3%, 50.0% 100.0%, 42.5% 92.3%, 32.9% 97.0%, 28.5% 87.2%, 17.9% 88.3%, 17.1% 77.6%, 6.7% 75.0%, 9.6% 64.7%, 0.8% 58.7%, 7.0% 50.0%, 0.8% 41.3%, 9.6% 35.3%, 6.7% 25.0%, 17.1% 22.4%, 17.9% 11.7%, 28.5% 12.8%, 32.9% 3.0%, 42.5% 7.7%); }
.st-in { width: 78%; align-content: center; gap: 0; padding: 0; }
.st-top { font-size: clamp(.74rem, 2.2vw, .86rem); margin-bottom: 1px; }
.st-price { font-size: clamp(1.7rem, 5.2vw, 2.05rem); }
.st-each { margin-top: 3px; }

/* v11: real map preview */
.find-art { padding: 0; overflow: hidden; isolation: isolate; }
.mini-map { width: 100%; aspect-ratio: 16 / 10; min-height: 260px; background: #e8eef0; border-radius: 28px; }
.find-cover { position: absolute; inset: 0; z-index: 500; border-radius: 28px; }
.find-art .leaflet-control-attribution { z-index: 600; position: relative; font-size: 10px; }
.find-tag { z-index: 550; left: 16px; top: 16px; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(80,48,21,.18); pointer-events: none; }
.mm-label { background: var(--orange); color: var(--ink); border: 0; border-radius: 999px; font: 700 .78rem/1 var(--font-ui); letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.mm-label::before { display: none; }
.find-art::after { content: "Tap to explore"; position: absolute; right: 16px; bottom: 26px; z-index: 550; pointer-events: none;
  padding: 9px 14px; border-radius: 999px; background: var(--green-deep); color: #fff; font: 700 .8rem/1 var(--font-ui); letter-spacing: .05em; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) { .find-art::after { content: "Click to explore"; } .find-art { transition: transform 300ms var(--ease-out), box-shadow 300ms ease; } .find-art:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(80,48,21,.16); } }
.find-art .leaflet-container svg { max-width: none; }
.find-art .leaflet-control-attribution svg { display: none !important; }

/* v14: flavour pills add to the bag */
.flav-tip { margin: 6px 0 0; color: #fff; font: 600 .95rem/1.4 var(--font-ui); opacity: .92; }
.pill.pill-live { padding: 0; gap: 0; cursor: default; }
.pill-live .pill-btn, .pill-live .pill-step { border: 0; background: none; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pill-live .pill-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 18px 0 24px; border-radius: 999px; }
.pill-plus { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-deep); color: #fff; font: 700 1.2rem/1 var(--font-ui); transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pill-live .pill-btn:hover .pill-plus { transform: scale(1.12) rotate(90deg); } }
.pill-live.on { background: var(--cocoa-deep); color: #fff; box-shadow: none; }
.pill-live.on .pill-name { padding: 0 6px; }
.pill-qty { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; margin-right: 2px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 700 .95rem/1 var(--font-ui); letter-spacing: 0; animation: qpop 220ms var(--ease-out); }
.pill-step { width: 46px; min-height: 54px; display: inline-grid; place-items: center; font: 700 1.5rem/1 var(--font-ui) !important; text-transform: none; }
.pill-step:first-child { border-radius: 999px 0 0 999px; padding-left: 6px; }
.pill-step:last-child { border-radius: 0 999px 999px 0; padding-right: 6px; }
.pill-step:active, .pill-live .pill-btn:active { transform: scale(.92); }
.pill-live:active { transform: rotate(var(--r, 0deg)); }
@keyframes qpop { from { transform: scale(.6); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pill-qty { animation: none; } .pill-plus { transition: none; } }

/* v21: reviews section with the cut-out photo */
.proof-split { display: grid; gap: 28px; align-items: center; }
.proof-photo { position: relative; width: 100%; max-width: 380px; margin: -10px auto 0; transition: transform 400ms var(--ease-out); }
.proof-photo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(80,30,0,.28));
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
@media (hover: hover) and (pointer: fine) { .proof-photo:hover { transform: scale(1.02); } }
@media (max-width: 899px) { .proof-split { margin-bottom: 8px; } }
@media (min-width: 900px) {
  .proof-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; margin-bottom: 40px; align-items: end; }
  .proof-photo { max-width: 520px; margin-top: -40px; }
  .proof-copy { align-self: center; }
  .proof-copy .big-quote { text-align: left; }
  .proof-copy .big-quote .h2 { margin: 0; font-size: clamp(3.4rem, 6vw, 5.6rem); }
  .proof-copy .stats { margin: 32px 0 0; text-align: left; }
}
.big-quote .hl { color: #fff; }
@media (prefers-reduced-motion: reduce) { .proof-photo { transition: none; } }
