/* =========================================================================
   Bernard Bakehouse & Kitchen — demo site styles
   Palette: built on the logo (navy, cherry red, cream), softened with
   pastels from her photos (butter, blush, lavender, blue gingham).
   ========================================================================= */

:root {
  --navy: #1F2B5B;
  --navy-2: #34427C;
  --cherry: #C9253C;
  --cherry-dk: #A01B2F;
  --cream: #FFF8EC;
  --cream-2: #FCEFD8;
  --butter: #FFEFB8;
  --butter-dk: #F5D873;
  --blush: #FCE1E1;
  --blush-dk: #F3B9BF;
  --lavender: #ECE7FB;
  --lavender-dk: #CFC5F2;
  --sky: #D7E6F8;
  --ink: #2A2946;
  --muted: #5E5B7A;
  --white: #FFFDF9;

  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sticker: 0 4px 0 var(--navy);
  --shadow-soft: 0 10px 30px -12px rgba(31, 43, 91, .25);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--cherry-dk); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; vertical-align: -.18em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }
.center { text-align: center; }

section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.section-title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); text-align: center; max-width: 20ch; margin-left: auto; margin-right: auto; text-wrap: balance; }
.section-sub { text-align: center; color: var(--muted); max-width: 52ch; margin: -.2em auto 1.8em; }

/* Scalloped top edge for coloured bands (echoes the logo badge) */
.band::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -15px; height: 16px;
  background: radial-gradient(circle at 16px 16px, var(--band) 15px, transparent 15.6px) 0 0 / 32px 16px repeat-x;
  pointer-events: none;
}
.band { background: var(--band); }
.band-butter { --band: var(--butter); }
.band-blush { --band: var(--blush); }
.band-lavender { --band: var(--lavender); }
.band-gingham {
  --band: #EEF4FC;
  background-color: var(--band);
  background-image:
    linear-gradient(90deg, rgba(160, 190, 235, .28) 50%, transparent 50%),
    linear-gradient(rgba(160, 190, 235, .28) 50%, transparent 50%);
  background-size: 36px 36px;
}

/* "Owner to confirm" placeholder pills */
.tbc {
  display: inline-flex; align-items: center; gap: .3em;
  font-family: var(--font-body); font-weight: 700; font-size: .72rem; line-height: 1.5;
  letter-spacing: .01em; text-transform: none; font-style: normal;
  color: var(--cherry-dk); background: #fff;
  border: 1.5px dashed var(--cherry);
  border-radius: 999px; padding: .05em .65em; white-space: nowrap; vertical-align: .12em;
}
.tbc::before { content: "✎"; font-size: 1.05em; }
.placeholder-text { color: var(--cherry-dk); font-weight: 800; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--white); --btn-fg: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.1;
  text-decoration: none; color: var(--btn-fg); background: var(--btn-bg);
  border: 2.5px solid var(--navy); border-radius: 999px;
  padding: .8em 1.4em; cursor: pointer;
  box-shadow: var(--shadow-sticker);
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--navy); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.btn .ico { width: 1.25em; height: 1.25em; }
.btn-primary { --btn-bg: var(--cherry); --btn-fg: #fff; }
.btn-primary:hover { --btn-bg: var(--cherry-dk); }
.btn-ghost { --btn-bg: var(--white); }
.btn-ghost:hover { --btn-bg: var(--butter); }
.btn-lg { font-size: 1.12rem; padding: .95em 1.6em; }
.btn-sm { font-size: .9rem; padding: .55em 1em; box-shadow: 0 3px 0 var(--navy); white-space: nowrap; }
.btn-block { width: 100%; }
.btn-pill { --btn-bg: var(--cherry); --btn-fg: #fff; font-size: .95rem; padding: .6em 1.1em; box-shadow: 0 3px 0 var(--navy); }

/* ---------- 1. Ribbon ---------- */
.ribbon {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  background: var(--navy); color: var(--cream);
  font-size: .85rem; font-weight: 600; padding: .5rem 3rem .5rem 1rem; position: relative; text-align: center;
}
.ribbon p { margin: 0; }
.ribbon-paw { color: var(--blush-dk); }
.ribbon-close {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--cream); cursor: pointer;
  display: grid; place-items: center;
}
.ribbon-close:hover { background: rgba(255, 255, 255, .12); }
.ribbon.is-hidden { display: none; }

/* ---------- 2. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 236, .9);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px dashed rgba(31, 43, 91, .15);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 50%; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; line-height: 1; }
.brand-name small { display: block; font-size: .78rem; color: var(--cherry); font-weight: 600; margin-top: .2em; letter-spacing: .04em; }
.logo-fallback {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--navy); color: var(--cream); border: 3px solid var(--cherry);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
}
.footer-brand .logo-fallback { width: 72px; height: 72px; font-size: 1.4rem; }
.main-nav { display: flex; gap: .25rem; }
.main-nav a {
  font-family: var(--font-head); font-weight: 500; color: var(--navy); text-decoration: none;
  padding: .45em .8em; border-radius: 999px; transition: background-color .2s;
}
.main-nav a:hover { background: var(--blush); }
.nav-toggle { display: none; }

/* ---------- 3. Hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 8vw, 100px); overflow: hidden; }
.sprinkles {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(circle, var(--blush-dk) 3px, transparent 3.5px),
    radial-gradient(circle, var(--butter-dk) 3px, transparent 3.5px),
    radial-gradient(circle, var(--lavender-dk) 3px, transparent 3.5px);
  background-size: 140px 140px, 190px 190px, 230px 230px;
  background-position: 10px 20px, 80px 120px, 150px 40px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--cherry-dk);
  background: var(--white); border: 2px solid var(--navy); border-radius: 999px; padding: .3em .9em; margin-bottom: 1rem;
  box-shadow: 0 3px 0 var(--navy);
}
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 700; margin-bottom: .45em; text-wrap: balance; }
.squiggle {
  color: var(--cherry);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8c10-6 18-6 28 0s18 6 28 0 18-6 28 0 18 6 30 0' fill='none' stroke='%23F3B9BF' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 120px 12px repeat-x;
  padding-bottom: .12em;
}
.hero-sub { font-size: clamp(1.08rem, 1.6vw, 1.22rem); max-width: 34em; }
.hero-quote {
  font-family: var(--font-hand); font-size: clamp(1.45rem, 2.3vw, 1.75rem); color: var(--navy-2); line-height: 1.25;
  margin: .2em 0 1.1em; transform: rotate(-1.2deg); transform-origin: left;
}
.hero-quote em { font-style: normal; color: var(--cherry); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.4rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-weight: 700; font-size: .92rem; color: var(--navy-2); }
.hero-trust li { display: flex; align-items: center; gap: .35em; }
.hero-trust .ico { color: #fff; background: #3A9D6A; border-radius: 50%; padding: 3px; width: 1.25em; height: 1.25em; }

.hero-visual { position: relative; padding: 24px 0 40px; }
.hero-frame {
  position: relative; z-index: 1; width: min(100%, 370px); margin: 0 auto; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 46% 54% 44% 56% / 52% 44% 56% 48%;
  border: 4px solid var(--navy); box-shadow: 10px 12px 0 var(--blush-dk);
  background: var(--butter);
  animation: blob 14s ease-in-out infinite alternate;
}
@keyframes blob { to { border-radius: 54% 46% 52% 48% / 46% 54% 46% 54%; } }
.hero-frame > img, .hero-frame > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-frame > img { object-position: center 35%; }
.hero-snap {
  position: absolute; z-index: 2; margin: 0; width: clamp(110px, 13vw, 150px);
  background: #fff; padding: 7px 7px 0; border-radius: 6px; box-shadow: 0 10px 22px -10px rgba(31, 43, 91, .5);
}
.hero-snap > img, .hero-snap > .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.hero-snap .ph .tbc, .hero-snap .ph .ph-label { display: none; }
.hero-snap figcaption { font-family: var(--font-hand); font-weight: 700; font-size: 1.15rem; text-align: center; color: var(--navy); padding: .1rem 0 .25rem; }
.hero-snap-a { left: 0; top: 18%; transform: rotate(-8deg); animation: float 6s ease-in-out infinite; }
.hero-snap-b { right: 0; bottom: 22%; transform: rotate(7deg); animation: float 6s ease-in-out -3s infinite; }
@keyframes float { 50% { translate: 0 -8px; } }
.hero-credit { position: relative; z-index: 3; text-align: right; padding-left: 38%; font-size: .75rem; color: var(--muted); margin: .9rem 0 0; }
.sticker {
  position: absolute; z-index: 3; top: -8px; right: 4%; width: clamp(96px, 12vw, 132px); filter: drop-shadow(0 4px 0 var(--navy));
}
.sticker text { font-family: var(--font-head); font-weight: 600; font-size: 11.5px; fill: #fff; letter-spacing: .5px; }
.sticker-text { transform-origin: 60px 60px; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mascot {
  position: absolute; z-index: 4; left: -12px; bottom: 0; width: clamp(150px, 19vw, 220px); overflow: visible;
  filter: drop-shadow(0 6px 10px rgba(31, 43, 91, .15));
}
.m-tail { transform-origin: 168px 196px; animation: wag .38s ease-in-out infinite alternate; }
@keyframes wag { from { transform: rotate(-8deg); } to { transform: rotate(16deg); } }
.m-eyes { transform-origin: 120px 90px; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.m-head { transform-origin: 120px 140px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.mascot:hover .m-head { transform: rotate(-9deg); }
.m-flame { transform-origin: 45.5px 156px; animation: flicker .5s ease-in-out infinite alternate; }
@keyframes flicker { from { transform: scale(1, 1) rotate(-3deg); } to { transform: scale(.9, 1.1) rotate(3deg); } }

/* ---------- Photo placeholders ---------- */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  width: 100%; height: 100%; padding: 1rem; text-align: center;
  color: var(--navy); background-color: var(--ph-bg, var(--butter));
  background-image: radial-gradient(rgba(31, 43, 91, .09) 2px, transparent 2.5px);
  background-size: 18px 18px;
}
.ph svg { width: clamp(44px, 28%, 84px); height: auto; }
.ph-label { font-family: var(--font-hand); font-size: 1.35rem; line-height: 1.1; font-weight: 700; }
.ph .tbc { white-space: normal; text-align: center; max-width: 100%; }
.ph-1 { --ph-bg: var(--butter); } .ph-2 { --ph-bg: var(--blush); } .ph-3 { --ph-bg: var(--lavender); } .ph-4 { --ph-bg: var(--sky); }

/* ---------- 4. Promise ---------- */
.promise .section-title { max-width: 22ch; }
.badges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin: 2rem 0 2.2rem; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; }
.badge-seal { position: relative; width: clamp(92px, 11vw, 124px); aspect-ratio: 1; display: grid; place-items: center; }
.badge-bg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--white); stroke: var(--navy); stroke-width: 0; filter: drop-shadow(0 4px 0 var(--navy)); }
.badge-seal::after { content: ""; position: absolute; inset: 15%; border: 2px dashed var(--blush-dk); border-radius: 50%; }
.badge-icon { position: relative; width: 46%; fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.badge-icon .strike { stroke: var(--cherry); stroke-width: 3.2; }
.badge-icon circle { fill: var(--navy); }
.badge-tick {
  position: absolute; top: 4%; right: 2%; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cherry); color: #fff; border: 2.5px solid var(--navy);
}
.badge-tick .ico { width: 16px; height: 16px; }
.badge-label { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.02rem; line-height: 1.2; max-width: 11ch; }
.promise-pill {
  display: flex; width: fit-content; margin: 0 auto; align-items: center; gap: .5em; text-align: center;
  font-family: var(--font-head); font-weight: 600; color: var(--navy);
  background: var(--white); border: 2.5px solid var(--navy); border-radius: 999px; padding: .55em 1.3em; box-shadow: var(--shadow-sticker);
}
.promise-pill .ico { color: var(--cherry); }

/* stamp-in animation (only when JS is on) */
.js .badge .badge-seal { opacity: 0; transform: scale(1.7) rotate(-14deg); }
.js .badge .badge-tick { opacity: 0; transform: scale(0); }
.js .badge .badge-label { opacity: 0; transform: translateY(8px); }
.js .badge.is-stamped .badge-seal { animation: stamp .5s cubic-bezier(.2, 1.4, .4, 1) forwards; animation-delay: var(--d, 0s); }
.js .badge.is-stamped .badge-tick { animation: pop .35s cubic-bezier(.2, 1.6, .4, 1) forwards; animation-delay: calc(var(--d, 0s) + .4s); }
.js .badge.is-stamped .badge-label { transition: opacity .4s, transform .4s; transition-delay: calc(var(--d, 0s) + .25s); opacity: 1; transform: none; }
@keyframes stamp { 60% { opacity: 1; transform: scale(.92) rotate(3deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes pop { to { opacity: 1; transform: scale(1); } }

/* ---------- 5. Menu ---------- */
.chips {
  display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem;
}
.chip {
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--navy); cursor: pointer;
  background: var(--white); border: 2px solid var(--navy); border-radius: 999px; padding: .5em 1.05em;
  transition: background-color .2s, transform .15s; white-space: nowrap;
}
.chip:hover { background: var(--blush); }
.chip[aria-selected="true"] { background: var(--navy); color: var(--cream); transform: translateY(-2px); box-shadow: 0 3px 0 var(--cherry); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: 1.4rem; }
.card {
  display: flex; flex-direction: column; background: var(--white);
  border: 2.5px solid var(--navy); border-radius: var(--radius); overflow: hidden;
  box-shadow: 6px 7px 0 var(--card-shadow, var(--blush-dk));
  transition: transform .2s ease, box-shadow .2s ease;
  animation: cardIn .45s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: var(--d, 0s);
}
.card:nth-child(4n+2) { --card-shadow: var(--butter-dk); }
.card:nth-child(4n+3) { --card-shadow: var(--lavender-dk); }
.card:nth-child(4n+4) { --card-shadow: #B9D0EE; }
.card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 8px 10px 0 var(--card-shadow, var(--blush-dk)); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.card-photo { position: relative; aspect-ratio: 4 / 3; border-bottom: 2.5px solid var(--navy); background: var(--butter); }
.card-photo > img, .card-photo > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-tag {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: var(--navy);
  background: var(--white); border: 2px solid var(--navy); border-radius: 999px; padding: .15em .7em;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.15rem 1.2rem; }
.card h3 { font-size: 1.3rem; margin-bottom: .3em; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 1rem; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.price-note {
  font-family: var(--font-hand); font-weight: 700; font-size: 1.35rem; line-height: 1; color: var(--navy);
  background: #FFF3A6; padding: .35em .6em .3em; transform: rotate(-3deg);
  box-shadow: 2px 3px 0 rgba(31, 43, 91, .18); position: relative; display: inline-flex; flex-direction: column; gap: .15em;
}
.price-note::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 34px; height: 12px; transform: translateX(-50%) rotate(2deg);
  background: rgba(207, 197, 242, .85);
}
.price-note small { font-family: var(--font-body); font-size: .58rem; white-space: nowrap; font-weight: 800; color: var(--cherry-dk); letter-spacing: .02em; }
.menu-note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 2rem; }

/* ---------- 6. Cake builder ---------- */
.builder-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.builder-steps { display: grid; gap: 1.1rem; }
.step {
  border: 2.5px solid var(--navy); border-radius: var(--radius); background: var(--white);
  padding: 1.1rem 1.25rem 1.3rem; margin: 0; box-shadow: var(--shadow-sticker); min-width: 0;
  transition: box-shadow .25s;
}
.step.is-done { box-shadow: 0 4px 0 var(--navy), 0 0 0 4px var(--blush-dk) inset; }
.step.is-missing { animation: nudge .45s ease; box-shadow: 0 4px 0 var(--cherry); border-color: var(--cherry); }
@keyframes nudge { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.step legend {
  float: left; width: 100%; padding: 0; margin-bottom: .9rem;
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--navy);
}
.step legend + * { clear: both; }
.step-num {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--butter); border: 2px solid var(--navy); font-size: 1rem; transition: background-color .25s, color .25s;
}
.step.is-done .step-num { background: var(--cherry); color: #fff; }
.step-help { font-size: .9rem; color: var(--muted); margin: .8rem 0 0; }
.lead-help { margin: .6rem 0 1rem; }
.lead-help.warn { color: var(--cherry-dk); font-weight: 700; }

.style-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; height: 100%;
  border: 2px solid rgba(31, 43, 91, .25); border-radius: var(--radius-sm); padding: .8rem .4rem .7rem;
  background: var(--cream); transition: border-color .2s, background-color .2s, transform .15s;
}
.opt-card svg { width: 54px; height: 54px; }
.opt-card b { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1rem; line-height: 1.1; }
.opt-card small { font-size: .78rem; color: var(--muted); line-height: 1.25; }
.opt:hover .opt-card { border-color: var(--navy); transform: translateY(-2px); }
.opt input:checked + .opt-card { border-color: var(--navy); background: var(--blush); box-shadow: 0 3px 0 var(--navy); }
.opt input:focus-visible + .opt-card { outline: 3px solid var(--cherry); outline-offset: 2px; }

.size-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.size-options .opt-card { flex-direction: row; padding: .55rem 1.1rem; border-radius: 999px; gap: .5rem; }
.size-options .opt-card small { font-size: .78rem; }

.field-row { display: grid; grid-template-columns: 1fr 120px; gap: .8rem; }
.field { display: grid; gap: .3rem; font-weight: 700; color: var(--navy); font-size: .95rem; }
.field + .field { margin-top: .2rem; }
.field em { font-style: normal; font-weight: 600; color: var(--muted); font-size: .85rem; }
.field input, .field textarea {
  font: inherit; font-weight: 600; color: var(--ink); width: 100%;
  background: var(--cream); border: 2px solid rgba(31, 43, 91, .3); border-radius: 12px; padding: .65em .85em;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px var(--blush-dk); }
#dog-name { font-family: var(--font-head); font-size: 1.15rem; }

.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary-card {
  background: var(--white); border: 2.5px solid var(--navy); border-radius: 28px;
  padding: 1.2rem 1.25rem 1.3rem; box-shadow: 8px 9px 0 var(--navy);
}
.summary-kicker { font-family: var(--font-hand); font-size: 1.6rem; font-weight: 700; color: var(--cherry); text-align: center; margin: 0; line-height: 1; }
.cake-preview { width: 100%; max-width: 330px; margin: .2rem auto .4rem; display: block; overflow: visible; }
.cake-preview .cake { transform-origin: 150px 250px; }
.cake-preview [hidden] { display: none; }
.cake-preview .cake.pop { animation: cakePop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes cakePop { from { transform: scale(.7); opacity: .3; } }
.cake-name { font-family: var(--font-hand); font-weight: 700; font-size: 34px; fill: var(--navy); }
.cake-name-sm { font-size: 26px; }
.topper-text { font-family: var(--font-head); font-weight: 600; font-size: 15px; fill: #fff; letter-spacing: .3px; }
.topper { animation: bob 2.6s ease-in-out infinite; transform-origin: 150px 40px; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-1.2deg); } }
.summary-list { margin: 0 0 .9rem; display: grid; gap: 0; }
.summary-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 2px dotted rgba(31, 43, 91, .18); }
.summary-list dt { font-weight: 700; color: var(--muted); font-size: .92rem; }
.summary-list dd { margin: 0; font-family: var(--font-head); font-weight: 600; color: var(--navy); text-align: right; }
.summary-list dd.empty { color: rgba(31, 43, 91, .38); font-weight: 500; }
.summary-lead { display: flex; align-items: center; justify-content: center; gap: .4em; flex-wrap: wrap; font-size: .92rem; font-weight: 700; color: var(--navy-2); text-align: center; margin-bottom: .9rem; }
.summary-help { font-size: .85rem; color: var(--muted); text-align: center; margin: .7rem 0 0; }
.summary-help.warn { color: var(--cherry-dk); font-weight: 700; }
#builder-send { font-size: 1.05rem; text-align: center; }

/* ---------- 7. How to order ---------- */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); margin: 2.2rem 0 2rem; counter-reset: none; position: relative; }
.how-step { position: relative; text-align: center; padding: 0 .5rem; }
.how-step:not(:last-child)::after {
  content: ""; position: absolute; top: 58px; right: calc(-1 * clamp(16px, 3vw, 40px) / 2 - 34px); width: 68px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 22'%3E%3Cg fill='%23F3B9BF'%3E%3Cellipse cx='8' cy='14' rx='5' ry='4'/%3E%3Cellipse cx='26' cy='8' rx='5' ry='4'/%3E%3Cellipse cx='44' cy='14' rx='5' ry='4'/%3E%3Cellipse cx='62' cy='8' rx='5' ry='4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.how-art { width: min(150px, 70%); height: auto; margin: 0 auto .6rem; display: block; }
.how-steam { animation: steam 2s ease-in-out infinite; }
@keyframes steam { 50% { transform: translateY(-3px); opacity: .5; } }
.how-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--cherry); color: #fff; font-family: var(--font-head); font-weight: 600; border: 2.5px solid var(--navy); margin-bottom: .5rem;
}
.how-step h3 { font-size: 1.3rem; margin-bottom: .3em; }
.how-step p { color: var(--muted); max-width: 26ch; margin: 0 auto; }
.info-chips { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-bottom: 2rem; }
.info-chips li {
  display: inline-flex; align-items: center; gap: .45em; flex-wrap: wrap; justify-content: center;
  background: var(--white); border: 2px solid var(--navy); border-radius: 999px; padding: .5em 1em;
  font-weight: 700; font-size: .93rem; color: var(--navy);
}
.info-chips .ico { color: var(--cherry); }

/* ---------- 8. Proof ---------- */
.quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin: 2.2rem 0 3.2rem; align-items: start; }
.quote { margin: 0; display: flex; flex-direction: column; }
.quote:nth-child(even) { margin-top: 2rem; }
.quote-photo {
  position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; width: 62%; margin: 0 0 -1.2rem .6rem; z-index: 1;
  border: 3px solid var(--navy); background: var(--butter); box-shadow: 0 4px 0 var(--navy);
}
.quote-photo > img, .quote-photo > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote-photo .ph { padding: .4rem; gap: .1rem; }
.quote-photo .ph-label { font-size: 1rem; }
.quote-photo .ph .tbc { display: none; }
.quote blockquote {
  position: relative; margin: 0; padding: 1.8rem 1.2rem 1.1rem;
  background: var(--white); border: 2.5px solid var(--navy); border-radius: 24px;
  font-family: var(--font-head); font-weight: 500; font-size: 1.12rem; line-height: 1.35; color: var(--navy);
}
.quote blockquote::after {
  content: ""; position: absolute; bottom: -14px; right: 34px; width: 24px; height: 24px; background: var(--white);
  border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: skewX(30deg) rotate(45deg);
}
.quote figcaption { text-align: right; padding: 1.1rem .8rem 0 0; font-weight: 700; font-size: .88rem; color: var(--muted); }
.gallery-title { text-align: center; font-size: 1.5rem; display: flex; justify-content: center; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.swipe-hint { font-family: var(--font-hand); color: var(--cherry); font-size: 1.3rem; font-weight: 700; }
.gallery {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem 20px 1.6rem;
  margin: 0 -20px; scrollbar-width: thin; scrollbar-color: var(--blush-dk) transparent; overscroll-behavior-x: contain;
}
.polaroid {
  flex: 0 0 clamp(190px, 24vw, 240px); scroll-snap-align: center; margin: 0;
  background: #fff; padding: 10px 10px 0; border-radius: 6px; box-shadow: 0 8px 18px -8px rgba(31, 43, 91, .35);
  transform: rotate(var(--r, -2deg)); transition: transform .25s;
}
.polaroid:nth-child(3n+2) { --r: 2deg; } .polaroid:nth-child(3n+3) { --r: -1deg; }
.polaroid:hover { transform: rotate(0) translateY(-4px); }
.polaroid > img, .polaroid > .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.polaroid .ph .tbc { font-size: .62rem; }
.polaroid figcaption { font-family: var(--font-hand); font-weight: 700; font-size: 1.35rem; text-align: center; color: var(--navy); padding: .3rem 0 .5rem; }
.press {
  display: flex; align-items: center; gap: 1.2rem;
  margin: 1.6rem auto 0; max-width: 760px; padding: 1rem 1.3rem; border-radius: 18px;
  background: rgba(255, 255, 255, .75); border: 2px dashed rgba(31, 43, 91, .3);
}
.press p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.press-clip, .press > .ph {
  flex: none; width: 120px; height: 120px; object-fit: cover; object-position: top; border-radius: 6px;
  background: #fff; padding: 4px; box-shadow: 0 6px 14px -6px rgba(31, 43, 91, .4); transform: rotate(-3deg);
}
.press > .ph .tbc { display: none; }
.press-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--muted); }
.press-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; color: var(--navy); font-weight: 700; }
.press-what { color: var(--muted); font-size: .95rem; }

/* ---------- 9. Story ---------- */
.story-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.story-photos { position: relative; padding: 0 12% 14% 0; }
.story-zeus {
  position: relative; aspect-ratio: 4 / 5; border-radius: 200px 200px 28px 28px; overflow: hidden;
  border: 4px solid var(--navy); box-shadow: 10px 12px 0 var(--butter-dk); background: var(--butter);
}
.story-mom {
  position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--navy); background: var(--blush); box-shadow: 0 5px 0 var(--navy);
}
.story-zeus > img, .story-zeus > .ph, .story-mom > img, .story-mom > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-mom .ph { padding: .5rem; } .story-mom .ph-label { font-size: 1.1rem; } .story-mom .ph .tbc { font-size: .6rem; }
.cto-badge {
  position: absolute; left: -14px; top: 18px; width: clamp(104px, 12vw, 130px); aspect-ratio: 1;
  display: grid; place-items: center; transform: rotate(-10deg); filter: drop-shadow(0 4px 0 var(--cherry));
  animation: wobble 5s ease-in-out infinite;
}
.cto-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cto-badge span {
  position: relative; text-align: center; color: var(--cream); font-family: var(--font-head); font-weight: 500;
  font-size: clamp(.68rem, .9vw, .78rem); line-height: 1.1; max-width: 70%; text-transform: uppercase; letter-spacing: .03em;
}
.cto-badge b { display: block; font-family: var(--font-hand); font-size: 1.9em; text-transform: none; letter-spacing: 0; color: #FFD2D8; line-height: 1; }
@keyframes wobble { 50% { transform: rotate(-4deg) scale(1.03); } }
.story-copy .section-title { text-align: left; margin-left: 0; max-width: 16ch; }
.story-copy p { font-size: 1.1rem; max-width: 36em; }
.story-sign { font-family: var(--font-hand); font-size: 1.7rem !important; line-height: 1.2; color: var(--cherry); margin-top: 1rem; }

/* ---------- 10. Community ---------- */
.event-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin: 2rem 0 2rem; }
.event-chips li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--white); border: 2.5px solid var(--navy); border-radius: 20px; padding: .8rem 1.3rem;
  box-shadow: var(--shadow-sticker); min-width: 170px;
}
.event-chips li:nth-child(odd) { transform: rotate(-1.5deg); } .event-chips li:nth-child(even) { transform: rotate(1.5deg); }
.event-chips b { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.1rem; }
.event-chips span { font-size: .85rem; color: var(--muted); font-weight: 700; }
.community-photos { display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap; margin: 0 0 2rem; }
.community-photos .polaroid { flex-basis: clamp(200px, 26vw, 260px); }
.js .community-photos .polaroid.reveal.is-in { transform: rotate(var(--r, -2deg)); }
.shelter {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; text-align: center;
  max-width: 760px; margin: 0 auto; padding: 1rem 1.4rem; border-radius: 22px; background: var(--white); border: 2px dashed var(--navy);
}
.shelter p { margin: 0; }
.shelter-ico { width: 36px; height: 36px; color: var(--cherry); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } 60% { transform: scale(1); } }

/* ---------- 11. FAQ ---------- */
.faq-item {
  background: var(--white); border: 2.5px solid var(--navy); border-radius: 18px; margin-bottom: .9rem;
  box-shadow: 0 3px 0 var(--navy); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--navy);
  padding: 1rem 3.4rem 1rem 1.2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--butter); border: 2px solid var(--navy); font-size: 1.2rem; line-height: 1; transition: transform .25s, background-color .25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--blush); }
.faq-item p { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--muted); }

/* ---------- 12. Footer ---------- */
.site-footer { --band: var(--navy); position: relative; background: var(--navy); color: var(--cream); padding: 56px 0 24px; margin-top: 16px; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 16px;
  background: radial-gradient(circle at 16px 16px, var(--navy) 15px, transparent 15.6px) 0 0 / 32px 16px repeat-x;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand .brand-logo { width: 72px; height: 72px; background: var(--cream); }
.footer-brand p { margin: 0; font-size: .95rem; opacity: .9; }
.footer-brand strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.footer-links { display: grid; gap: .5rem; }
.footer-links a, .footer-links span { color: var(--cream); text-decoration: none; display: inline-flex; align-items: center; gap: .5em; flex-wrap: wrap; font-weight: 700; }
.footer-links a:hover { color: #FFD2D8; }
.footer-links .tbc { background: transparent; color: #FFD2D8; border-color: #FFD2D8; }
.footer-love { font-family: var(--font-hand); font-size: 1.7rem; line-height: 1.2; margin: 0; text-align: right; color: #FFD2D8; }
.footer-love .ico { color: var(--cream); }
.footer-credit { text-align: center; font-size: .8rem; opacity: .6; margin: 2.2rem 0 0; }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar { display: none; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, 1, .4, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .event-chips li.reveal.is-in:nth-child(odd) { transform: rotate(-1.5deg); }
.js .event-chips li.reveal.is-in:nth-child(even) { transform: rotate(1.5deg); }

/* Confetti canvas */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1020px) {
  .main-nav a { padding: .45em .55em; }
  .badges { grid-template-columns: repeat(5, 1fr); gap: .5rem; }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .quote:nth-child(even) { margin-top: 0; }
  .quote:nth-child(2), .quote:nth-child(4) { margin-top: 2rem; }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .header-cta { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--navy); cursor: pointer; box-shadow: 0 3px 0 var(--navy);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2.5px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .25s, background-color .25s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav {
    position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
    flex-direction: column; gap: .2rem; padding: .6rem;
    background: var(--white); border: 2.5px solid var(--navy); border-radius: 20px; box-shadow: 6px 7px 0 var(--blush-dk);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { font-size: 1.1rem; padding: .7em 1em; }
  .brand-logo { width: 48px; height: 48px; }
  .logo-fallback { width: 48px; height: 48px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-ctas, .hero-trust { justify-content: center; }
  .hero-quote { transform-origin: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; padding: 16px 0 30px; }
  .hero-frame { width: min(72%, 340px); }
  .mascot { width: clamp(120px, 34vw, 170px); }
  .badges { grid-template-columns: repeat(3, 1fr); row-gap: 1.4rem; }
  .builder-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .how-steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .how-step:not(:last-child)::after { top: auto; bottom: -1.8rem; right: 50%; transform: translateX(50%) rotate(90deg); width: 52px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-photos { max-width: 420px; margin: 0 auto; width: 100%; }
  .story-copy { text-align: center; }
  .story-copy .section-title { text-align: center; margin: 0 auto .5em; }
  .story-copy p { margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-brand { flex-direction: column; }
  .footer-love { text-align: center; }

  .mobile-bar {
    display: flex; gap: .6rem; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .65rem 14px calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(255, 248, 236, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 2px dashed rgba(31, 43, 91, .2);
    transform: translateY(110%); transition: transform .35s cubic-bezier(.2, 1, .4, 1);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { font-size: 1.1rem; padding: .85em 1em; }
  .mobile-ig {
    flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    color: var(--navy); background: var(--white); border: 2.5px solid var(--navy); box-shadow: var(--shadow-sticker);
  }
  .mobile-ig .ico { width: 26px; height: 26px; }
  body { padding-bottom: 88px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .ribbon { font-size: .78rem; }
  .brand-name { font-size: 1rem; }
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -20px 1.6rem; padding: 4px 20px 10px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .style-options { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 96px; }
  .quotes { grid-template-columns: 1fr; gap: 1.6rem; }
  .quote:nth-child(n) { margin-top: 0; }
  .quote-photo { width: 120px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .event-chips li { min-width: 0; flex: 1 1 140px; }
  .press { flex-direction: column; text-align: center; }
  .press p { justify-content: center; }
  .hero-snap { width: 96px; }
  .hero-snap figcaption { font-size: .95rem; }
}

@media (max-width: 380px) {
  .brand-name small { display: none; }
  .badges { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   Phones (≤767px): every unit fits the visible screen in one view.
   --avail-h = small viewport height − sticky header − sticky order bar − 16px.
   ========================================================================= */
.stepper-top, .stepper-nav, .opt-short, .lbl-short { display: none; }

@media (max-width: 767px) {
  :root {
    --header-h: 60px;
    --bar-h: 68px;
    --avail-h: calc(100vh - var(--header-h) - var(--bar-h) - 16px);
  }
  @supports (height: 100svh) {
    :root { --avail-h: calc(100svh - var(--header-h) - var(--bar-h) - 16px); }
  }
  html { scroll-padding-top: calc(var(--header-h) + 8px); }
  body { font-size: 1rem; padding-bottom: calc(var(--bar-h) + 8px); }
  section { padding: 44px 0; }
  .section-title { font-size: clamp(1.45rem, 6.6vw, 1.75rem); margin-bottom: .45em; max-width: 22ch; }
  .section-sub { font-size: .95rem; margin: -.1em auto 1rem; }
  .menu .section-sub, .builder .section-sub { display: none; }
  .band::before { top: -11px; height: 12px; background-size: 24px 12px; background-image: radial-gradient(circle at 12px 12px, var(--band) 11px, transparent 11.6px); }
  .site-footer::before { top: -11px; height: 12px; background-size: 24px 12px; background-image: radial-gradient(circle at 12px 12px, var(--navy) 11px, transparent 11.6px); }

  /* Ribbon + header */
  .ribbon { font-size: .75rem; padding: .4rem 2.6rem .4rem .8rem; }
  .header-inner { min-height: calc(var(--header-h) - 2px); gap: .75rem; }
  .brand-logo, .logo-fallback { width: 44px; height: 44px; }
  .nav-toggle { width: 44px; height: 44px; }

  /* Sticky order bar: exactly --bar-h tall */
  .mobile-bar {
    box-sizing: border-box; height: calc(var(--bar-h) + env(safe-area-inset-bottom));
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-bar .btn { height: 48px; padding: 0 1em; font-size: 1.05rem; }
  .mobile-ig { width: 48px; height: 48px; }

  /* Hero: one column, photo collage between the words and the buttons */
  .hero { padding: 14px 0 30px; }
  .hero-grid { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .hero-copy { display: contents; }
  .hero .eyebrow { order: 1; margin: 0; font-size: .85rem; padding: .25em .8em; }
  .hero h1 { order: 2; font-size: clamp(1.6rem, 7.4vw, 2rem); line-height: 1.1; margin: 0; }
  .hero-sub { order: 3; font-size: 1rem; line-height: 1.45; margin: 0; }
  .hero-quote { order: 4; font-size: 1.28rem; line-height: 1.15; margin: 0; transform: rotate(-1deg); }
  .hero-visual { order: 5; position: relative; width: 100%; max-width: 380px; height: 148px; margin: 0; padding: 0; }
  .hero-ctas { order: 6; width: 100%; display: flex; flex-wrap: nowrap; gap: 10px; margin: 0; }
  .hero-ctas .btn { flex: 0 0 auto; min-height: 48px; padding: .7em .9em; font-size: 1rem; white-space: nowrap; }
  .hero-ctas .btn-primary { flex: 1 1 auto; }
  .lbl-full { display: none; }
  .lbl-short { display: inline; }
  .hero-trust { display: none; }
  .hero-frame {
    position: absolute; left: 50%; top: 0; width: auto; height: 100%; aspect-ratio: 4 / 5; margin: 0;
    transform: translateX(-50%); border-width: 3px; box-shadow: 6px 7px 0 var(--blush-dk);
  }
  .hero-snap { width: 80px; padding: 5px 5px 0; }
  .hero-snap figcaption { font-size: .95rem; padding: 0 0 .1rem; line-height: 1.3; }
  .hero-snap-a { left: 1%; top: 2px; }
  .hero-snap-b { right: 1%; top: 6px; bottom: auto; }
  .hero-credit { position: absolute; right: 0; bottom: 0; width: 27%; margin: 0; padding: 0; font-size: .62rem; line-height: 1.25; text-align: right; }
  .sticker { width: 50px; top: -8px; right: auto; left: calc(50% + 30px); }
  .mascot { width: 84px; left: 17%; bottom: -8px; }

  /* Promise strip: a compact 3 + 2 grid of small stamps */
  .badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 6px; margin: 14px 0 16px; }
  .badge { width: calc((100% - 12px) / 3); gap: .3rem; }
  .badge-seal { width: 66px; }
  .badge-icon { stroke-width: 2.8; }
  .badge-tick { width: 22px; height: 22px; border-width: 2px; }
  .badge-tick .ico { width: 12px; height: 12px; }
  .badge-label { font-size: .85rem; max-width: 12ch; }
  .promise-pill { font-size: .88rem; padding: .5em 1em; box-shadow: 0 3px 0 var(--navy); }

  /* Menu: a swipeable row; each card fits whole, the next one peeks */
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -20px 10px; padding: 4px 20px 8px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { min-height: 44px; font-size: .95rem; padding: .4em .95em; }
  .menu-grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 -20px; padding: 4px 20px 14px; scroll-padding-inline: 20px; scrollbar-width: none;
  }
  .menu-grid::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 86%; scroll-snap-align: start; box-shadow: 4px 5px 0 var(--card-shadow, var(--blush-dk)); }
  .card:hover { transform: none; box-shadow: 4px 5px 0 var(--card-shadow, var(--blush-dk)); }
  .card-photo { aspect-ratio: 16 / 11; }
  .card-body { padding: .75rem .9rem .9rem; }
  .card h3 { font-size: 1.18rem; margin-bottom: .15em; }
  .card p { font-size: 1rem; line-height: 1.4; margin-bottom: .7rem; }
  .card-foot .btn { min-height: 44px; }
  .price-note { font-size: 1.25rem; }
  .menu-note { font-size: .9rem; margin-top: .9rem; }

  /* Cake builder: a fixed-height card, one step at a time */
  .builder-grid.is-stepper {
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    height: clamp(380px, calc(var(--avail-h) - 72px), 480px);
    background: var(--white); border: 2.5px solid var(--navy); border-radius: 24px;
    padding: 12px 14px 14px; box-shadow: 6px 7px 0 var(--navy);
  }
  .is-stepper .stepper-top { display: grid; gap: 8px; }
  .stepper-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
  .paw-progress { display: flex; gap: 6px; }
  .paw-progress li { display: grid; place-items: center; width: 24px; height: 24px; color: var(--lavender-dk); transition: color .25s, transform .25s; }
  .paw-progress .ico { width: 20px; height: 20px; }
  .paw-progress li.is-done { color: var(--navy); }
  .paw-progress li.is-current { color: var(--cherry); transform: scale(1.2) rotate(-10deg); }
  .stepper-label { margin: 0; font-weight: 800; font-size: .85rem; color: var(--muted); }
  .stepper-chip {
    margin: 0; padding: .3em .9em; border-radius: 999px; text-align: center;
    font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy);
    background: var(--blush); border: 2px dashed var(--blush-dk);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .stepper-chip.warn { color: var(--cherry-dk); background: #fff; border-color: var(--cherry); }
  .is-stepper[data-current="review"] .stepper-chip { display: none; }
  .is-stepper .builder-steps { display: block; flex: 1; min-height: 0; overflow-y: auto; }
  .is-stepper .step { display: none; border: 0; border-radius: 0; background: none; box-shadow: none; padding: 0; }
  .is-stepper .step.is-current { display: block; animation: stepIn .35s ease both; }
  .is-stepper .step.is-done, .is-stepper .step.is-missing { box-shadow: none; }
  @keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
  .is-stepper .step legend { font-size: 1.12rem; margin-bottom: .5rem; }
  .is-stepper .step-num { width: 28px; height: 28px; font-size: .9rem; }
  .is-stepper .style-options { grid-template-columns: 1fr 1fr; gap: 8px; }
  .is-stepper .style-options .opt-card { padding: .45rem .4rem; gap: .1rem; }
  .is-stepper .style-options .opt-card svg { width: 40px; height: 40px; }
  .is-stepper .style-options .opt-card small { font-size: .72rem; line-height: 1.2; }
  .is-stepper .size-options .opt-card { min-height: 44px; align-items: center; padding: .5rem 1.2rem; }
  .is-stepper .step-help { font-size: .85rem; margin-top: .6rem; }
  .is-stepper .lead-help { margin: .35rem 0 .45rem; font-size: .82rem; line-height: 1.35; }
  .is-stepper .step .field { gap: .2rem; }
  .field-row { grid-template-columns: 1fr 96px; align-items: end; }
  .field input, .field textarea { font-size: 16px; min-height: 48px; }
  .field textarea { min-height: 0; height: 58px; }
  .opt-long { display: none; }
  .opt-short { display: inline; }
  .is-stepper .summary { display: none; position: static; }
  .is-stepper[data-current="review"] .builder-steps { display: none; }
  .is-stepper[data-current="review"] .summary { display: block; flex: 1; min-height: 0; overflow-y: auto; }
  .is-stepper .summary-card { border: 0; border-radius: 0; background: none; box-shadow: none; padding: 0; }
  .is-stepper .summary-kicker { display: none; }
  .is-stepper .cake-preview { width: auto; height: clamp(96px, calc(var(--avail-h) - 400px), 150px); max-width: none; margin: 0 auto 2px; }
  .is-stepper .summary-list { margin-bottom: .4rem; }
  .is-stepper .summary-list > div { padding: .15rem 0; }
  .is-stepper .summary-list dd { font-size: .98rem; }
  .is-stepper .summary-lead { display: block; text-align: center; font-size: .85rem; line-height: 1.5; margin-bottom: 0; }
  .is-stepper #builder-send { display: none; }
  .is-stepper .summary-help { display: none; }
  .is-stepper .stepper-nav { display: flex; gap: 10px; }
  .stepper-nav .btn { min-height: 48px; padding: .6em .85em; font-size: 1rem; white-space: nowrap; }
  .stepper-nav #step-next, .stepper-nav #builder-send-m { flex: 1; }
  .stepper-nav [hidden] { display: none !important; }

  /* How to order: a tight vertical list, all three steps in one view */
  .how-steps { grid-template-columns: 1fr; gap: 18px; margin: 14px 0 18px; }
  .how-step {
    display: grid; grid-template-columns: 76px 1fr; column-gap: 14px; align-items: center;
    text-align: left; padding: 0;
  }
  .how-art { grid-row: 1 / span 2; width: 76px; margin: 0; }
  .how-num { position: absolute; left: 52px; top: -6px; width: 26px; height: 26px; font-size: .85rem; border-width: 2px; margin: 0; }
  .how-step h3 { grid-column: 2; font-size: 1.08rem; margin: 0; align-self: end; }
  .how-step p { grid-column: 2; margin: 2px 0 0; max-width: none; font-size: .95rem; line-height: 1.4; align-self: start; }
  .how-step:not(:last-child)::after { top: auto; bottom: -20px; left: 27px; right: auto; width: 22px; height: 18px; transform: rotate(90deg); }
  .info-chips { gap: .5rem; margin-bottom: 1.4rem; }
  .info-chips li { display: block; text-align: center; font-size: .85rem; padding: .4em .85em; }
  .info-chips li .ico { margin-right: .2em; }

  /* Testimonials: a swipeable row of speech bubbles */
  .quotes {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 14px -20px 26px; padding: 4px 20px 22px; scroll-padding-inline: 20px; scrollbar-width: none;
  }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 80%; scroll-snap-align: start; }
  .quote:nth-child(n) { margin-top: 0; }
  .quote-photo { width: 92px; margin: 0 0 -1rem .6rem; border-width: 2.5px; box-shadow: 0 3px 0 var(--navy); }
  .quote blockquote { font-size: 1.02rem; padding: 1.5rem 1rem 1rem; border-radius: 20px; }
  .quote figcaption { padding-top: .9rem; font-size: .82rem; }
  .gallery-title { font-size: 1.2rem; margin-bottom: .2em; }
  .gallery { gap: 14px; padding: 8px 20px 18px; }
  .polaroid { flex-basis: 180px; padding: 8px 8px 0; }
  .polaroid figcaption { font-size: 1.2rem; }
  .press { padding: .9rem 1rem; gap: .7rem; }
  .press-clip, .press > .ph { width: 96px; height: 96px; }

  /* Meet Zeus: photos beside the headline, story underneath */
  .story-grid { grid-template-columns: 128px 1fr; column-gap: 16px; row-gap: 10px; align-items: start; }
  .story-copy { display: contents; }
  .story-photos { grid-column: 1; grid-row: 1 / span 2; position: relative; width: 128px; height: 166px; max-width: none; margin: 0; padding: 0; }
  .story-zeus {
    position: absolute; left: 0; top: 0; width: 112px; height: 148px; aspect-ratio: auto;
    border-radius: 64px 64px 16px 16px; border-width: 3px; box-shadow: 5px 6px 0 var(--butter-dk);
  }
  .story-zeus > img { object-position: center 30%; }
  .story-mom { width: 62px; right: -2px; bottom: 0; border-width: 3px; box-shadow: 0 3px 0 var(--navy); }
  .story-mom .ph { padding: .2rem; } .story-mom .ph svg { width: 22px; } .story-mom .ph-label { font-size: .75rem; } .story-mom .ph .tbc { display: none; }
  .cto-badge { width: 78px; left: -14px; top: auto; bottom: -6px; z-index: 1; }
  .cto-badge span { font-size: .5rem; }
  .story-copy .eyebrow { grid-column: 2; grid-row: 1; align-self: end; justify-self: start; margin: 0; font-size: .75rem; padding: .2em .6em; white-space: nowrap; box-shadow: 0 2px 0 var(--navy); }
  .story-copy .section-title { grid-column: 2; grid-row: 2; text-align: left; margin: 0; max-width: none; font-size: clamp(1.3rem, 5.8vw, 1.55rem); }
  .story-copy p { grid-column: 1 / -1; margin: 0; max-width: none; text-align: left; font-size: 1rem; line-height: 1.5; }
  .story-sign { font-size: 1.35rem !important; margin: 0 !important; }

  /* Community */
  .event-chips { gap: .55rem; margin: 14px 0 18px; }
  .event-chips li { flex: 1 1 140px; min-width: 0; padding: .5rem .8rem; box-shadow: 0 3px 0 var(--navy); }
  .event-chips b { font-size: .98rem; }
  .event-chips span { font-size: .78rem; }
  .community-photos { flex-wrap: nowrap; gap: 12px; margin-bottom: 18px; }
  .community-photos .polaroid { flex: 1 1 0; padding: 6px 6px 0; }
  .community-photos figcaption { font-size: 1.05rem; }
  .shelter { padding: .9rem 1rem; gap: .6rem; }

  /* FAQ */
  .faq-item { margin-bottom: .7rem; }
  .faq-item summary { font-size: 1.02rem; padding: .8rem 3.2rem .8rem 1rem; min-height: 48px; }
  .faq-item p { font-size: .98rem; padding: 0 1rem 1rem; }

  .site-footer { padding: 44px 0 20px; }
}

/* Landscape phones: wide and short, so the four cake styles sit in one row */
@media (max-width: 767px) and (orientation: landscape) {
  .is-stepper .style-options { grid-template-columns: repeat(4, 1fr); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .badge .badge-seal, .js .badge .badge-tick, .js .badge .badge-label { opacity: 1; transform: none; }
}
