:root {
  --bg: #f8f2e3;
  --bg-soft: #f2ece5;
  --surface: #ffffff;
  --surface-alt: #ede0d4;
  --text: #3d2b1f;
  --muted: #8b7355;
  --accent: #a67847;
  --accent-strong: #8e6534;
  --accent-soft: #e9d7c2;
  --border: #ead8ae;
  --shadow: 0 18px 40px -22px rgba(61, 43, 31, 0.28);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 242, 227, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(234, 216, 174, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
  /* The logo PNG ships with a white plate around the artwork — multiply
     blends that white into whatever section background is behind it, so the
     mark looks transparent everywhere it appears. */
  mix-blend-mode: multiply;
}

.foot-brand .brand-mark {
  height: 72px;
}

/* Loyalty stamps (cups) use the same logo asset — same blend trick. */
.cup img {
  mix-blend-mode: multiply;
}

.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 19px;
  /* Logo image already contains the JoyBow wordmark, hide redundant text */
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--text);
}

.open-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
}

.open-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6c8e72;
  box-shadow: 0 0 0 4px rgba(108, 142, 114, 0.18);
}

.open-pill.closed .dot {
  background: #c8635a;
  box-shadow: 0 0 0 4px rgba(200, 99, 90, 0.18);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--text);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

/* Higher-specificity selector so .nav-links a:hover (which sets a dark
   color) doesn't win over us — keep the CTA text white in every state. */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus,
.nav-links a.nav-cta:active {
  color: #fff;
}

.nav-cta:hover {
  background: #2a1d14;
  text-decoration: none;
}

@media (max-width: 820px) {
  .nav-links a:not(.open-pill):not(.nav-cta),
  .nav-links .open-pill {
    display: none;
  }
}

/* ---------- Mobile nav (hamburger + slide-down panel) ---------- */
/* The button lives inside .nav-links (injected by app.js) so the existing
   flex layout positions it next to "Get the app" without any header rewrite. */
.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: 4px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(61, 43, 31, 0.06);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.nav-toggle-line {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
}

.nav-toggle-line:nth-child(1) { top: 13px; }
.nav-toggle-line:nth-child(2) { top: 19px; }
.nav-toggle-line:nth-child(3) { top: 25px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }
}

/* Slide-down panel sits below the sticky header (which is z-index 50,
   height 84px). pointer-events:none when closed so it never blocks taps. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(248, 242, 227, 0.98);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  padding: calc(84px + 20px) 24px 32px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 480px;
  margin: 0 auto;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
  border-bottom: 1px solid rgba(234, 216, 174, 0.55);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  background: var(--accent-soft);
  text-decoration: none;
}

.mobile-menu a.active {
  color: var(--accent-strong);
}

.mobile-menu a.open-pill {
  align-self: flex-start;
  background: var(--accent-soft);
  padding: 8px 14px;
  margin-top: 12px;
  font-size: 13px;
  border-radius: 999px;
  border-bottom: none;
}

.mobile-menu a.nav-cta {
  align-self: stretch;
  justify-content: center;
  background: var(--text);
  color: #fff;
  padding: 14px 20px;
  margin-top: 12px;
  border-radius: 999px;
  border-bottom: none;
}

.mobile-menu a.nav-cta:hover,
.mobile-menu a.nav-cta:focus-visible {
  background: #2a1d14;
  color: #fff;
}

@media (min-width: 821px) {
  .mobile-menu {
    display: none !important;
  }
}

body.menu-open {
  overflow: hidden;
}

/* ---------- Hero (shared) ---------- */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px -10% auto -10%;
  height: 480px;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(233, 215, 194, 0.7) 0%,
    rgba(248, 242, 227, 0) 60%
  );
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.04;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-strong);
}

.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: #fff;
  padding: 12px 20px 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease;
}

.store-badge:hover {
  background: #2a1d14;
  text-decoration: none;
  transform: translateY(-1px);
}

.store-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.store-logo svg {
  width: 22px;
  height: 22px;
  display: block;
}

.store-badge .small {
  font-size: 11px;
  line-height: 1;
  opacity: 0.78;
  margin-bottom: 3px;
}

.store-badge .big {
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

/* Solid pill button (used on home hero) */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-solid:hover {
  background: var(--accent-strong);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-ghost:hover {
  background: var(--surface);
  text-decoration: none;
}

/* Hero visual: phone mockup (used on /how-it-works) */
.hero-visual {
  position: relative;
  height: 560px;
}

.blob {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 90%;
  height: 90%;
  background: radial-gradient(
      ellipse at 30% 30%,
      rgba(166, 120, 71, 0.18),
      transparent 60%
    ),
    radial-gradient(
      ellipse at 70% 70%,
      rgba(233, 215, 194, 0.55),
      transparent 60%
    );
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
}

.phone {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 280px;
  height: 560px;
  border-radius: 44px;
  background: #1a120c;
  padding: 14px;
  box-shadow: 0 35px 60px -25px rgba(61, 43, 31, 0.45),
    0 14px 24px -16px rgba(61, 43, 31, 0.4);
  z-index: 2;
}

.phone-screen {
  position: relative;
  background: var(--bg);
  border-radius: 32px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 18px;
}

/* Real-screenshot variant: the image already provides its own status bar /
   layout chrome, so let it bleed edge-to-edge and hide the synthetic notch. */
.phone--screenshot .phone-notch {
  display: none;
}

.phone--screenshot .phone-screen {
  padding: 0;
  background: #000;
}

.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #1a120c;
  border-radius: 999px;
}

.phone-greeting {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  line-height: 1.1;
  margin: 36px 0 4px;
  color: var(--text);
}

.phone-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.phone-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 6px 14px -10px rgba(61, 43, 31, 0.3);
}

.phone-card .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  margin-bottom: 6px;
}

.phone-card h4 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
}

.cups {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: center;
}

.cup {
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.6) rotate(-6deg);
  filter: grayscale(0.6);
  transition: opacity 480ms ease,
    transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 480ms ease;
}

.cup.filled {
  filter: none;
}

.reveal.visible .cup {
  opacity: 0.28;
  transform: scale(1) rotate(0);
}

.reveal.visible .cup.filled {
  opacity: 1;
}

.cup img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.cups .cup:nth-child(1) {
  transition-delay: 80ms;
}
.cups .cup:nth-child(2) {
  transition-delay: 180ms;
}
.cups .cup:nth-child(3) {
  transition-delay: 280ms;
}
.cups .cup:nth-child(4) {
  transition-delay: 380ms;
}
.cups .cup:nth-child(5) {
  transition-delay: 480ms;
}
.cups .cup:nth-child(6) {
  transition-delay: 580ms;
}

.progress-text {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.progress-text strong {
  color: var(--text);
}

.floating-card {
  position: absolute;
  bottom: 60px;
  left: -10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  transform: rotate(-4deg);
}

.floating-card .ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent-strong);
}

.floating-card .ttl {
  font-weight: 700;
  font-size: 14px;
}

.floating-card .sub {
  font-size: 12px;
  color: var(--muted);
}

.floating-card.right {
  bottom: auto;
  top: 90px;
  left: auto;
  right: -10px;
  transform: rotate(5deg);
}

@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-visual {
    height: 500px;
    order: -1;
  }
  .phone {
    width: 240px;
    height: 480px;
  }
}

/* ---------- Sections ---------- */
section {
  padding: 88px 0;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
  margin: 0 0 48px;
}

/* ---------- How it works ---------- */
.how {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: var(--accent-soft);
  opacity: 0.55;
  border-radius: 50%;
}

.step-num {
  position: relative;
  font-family: "Fraunces", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-strong);
  background: #fff;
  border: 1px solid var(--border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 10px -6px rgba(61, 43, 31, 0.25);
}

.step-icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  margin-bottom: 18px;
}

.step h3 {
  position: relative;
  font-size: 22px;
  margin-bottom: 8px;
}

.step p {
  position: relative;
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.step .small-note {
  position: relative;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reward feature ---------- */
.reward {
  background: var(--bg);
}

.reward-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.reward-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}

.reward-card .label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  margin-bottom: 8px;
}

.reward-card h3 {
  font-size: 26px;
  margin-bottom: 22px;
}

.reward-card .cups {
  gap: 12px;
  margin-bottom: 14px;
}

.reward-card .progress-bar {
  height: 6px;
  background: var(--accent-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.reward-card .progress-bar > i {
  display: block;
  height: 100%;
  width: 83.33%;
  background: var(--accent);
  border-radius: 999px;
}

.reward-card .progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.reward-card .progress-meta strong {
  color: var(--text);
}

.scan-note {
  margin-top: 24px;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.scan-note .ic {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
}

.scan-note strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

@media (max-width: 920px) {
  .reward-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- Inside JoyBow gallery ---------- */
.inside {
  background: var(--bg-soft);
}

.inside-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}

.tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-alt);
  color: #fff;
  isolation: isolate;
  font-weight: 600;
  font-size: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.18) 55%,
    rgba(0, 0, 0, 0.78) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.tile span {
  position: relative;
  z-index: 3;
}

.tile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.tile.t1 {
  grid-column: span 4;
  grid-row: span 2;
  background: linear-gradient(135deg, #c89863 0%, #6b4423 100%);
}

.tile.t2 {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(135deg, #e9c98b 0%, #a67847 100%);
}

.tile.t3 {
  grid-column: span 3;
  grid-row: span 1;
}

.tile.t4 {
  grid-column: span 3;
  grid-row: span 1;
}

/* ---------- Tile meta overlay (rich label) ---------- */
.tile-meta {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.tile-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.tile-cat svg {
  width: 12px;
  height: 12px;
}

.tile-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}

.tile-sub {
  font-size: 13.5px;
  line-height: 1.45;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.32);
  max-width: 380px;
  opacity: 0;
  max-height: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease;
}

.tile:hover .tile-sub,
.tile:focus-within .tile-sub {
  opacity: 1;
  max-height: 80px;
  transform: translateY(0);
}

/* ---------- Carousel ---------- */
.tile.carousel {
  background: #1a120c;
  padding: 0;
  display: block;
}

.tile.carousel > span {
  position: absolute;
  bottom: 18px;
  left: 20px;
  z-index: 4;
}

.carousel-track {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 800ms ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.carousel-arrow:hover {
  background: #fff;
}

.carousel-arrow:focus-visible {
  opacity: 1;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tile.carousel:hover .carousel-arrow,
.tile.carousel:focus-within .carousel-arrow {
  opacity: 1;
}

.carousel-arrow.prev {
  left: 12px;
}

.carousel-arrow.next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dots .dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.carousel-dots .dot.active {
  background: #fff;
  transform: scale(1.25);
}

.carousel-dots .dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 820px) {
  .carousel-arrow {
    opacity: 1;
    width: 32px;
    height: 32px;
  }
}

.tile.t3 {
  /* Background only used as a fallback while the carousel images load. */
  background: linear-gradient(135deg, #d4b483 0%, #8b6f47 100%);
}

@media (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
  }
  .tile.t1 {
    grid-column: span 4;
    grid-row: span 2;
  }
  .tile.t2 {
    grid-column: span 4;
    grid-row: span 2;
  }
  .tile.t3,
  .tile.t4 {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
    gap: 14px;
  }
  .tile.t1,
  .tile.t2,
  .tile.t3,
  .tile.t4 {
    grid-column: span 1;
    grid-row: span 1;
  }
  .tile-sub {
    opacity: 1;
    max-height: 80px;
    transform: none;
  }
  .family-deco > svg:first-child {
    width: 220px;
    height: 220px;
  }
}

/* ---------- Visit us ---------- */
.visit {
  background: var(--bg);
}

/* Map + hours — side-by-side row */
.visit-top {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  margin-top: 32px;
  align-items: stretch;
}

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 50px -28px rgba(61, 43, 31, 0.35);
  min-height: 460px;
  display: flex;
}

#map {
  flex: 1;
  width: 100%;
  min-height: 460px;
}

/* Info chips — 3 lightweight clickable cards */
.visit-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.visit-chip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background 0.25s ease;
}

.visit-chip:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 14px 30px -22px rgba(166, 120, 71, 0.45);
}

.visit-chip:hover .visit-chip-ic {
  background: var(--accent);
  color: #fff;
}

.visit-chip-ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.visit-chip-body {
  min-width: 0;
}

.visit-chip-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

.visit-chip-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.visit-chip-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: 0.01em;
  width: 100%;
}

.visit-chip-action .arrow {
  transition: transform 0.25s ease;
}

.visit-chip:hover .visit-chip-action .arrow {
  transform: translateX(4px);
}

/* Opening hours — connected card with vertical day list */
.hours-block {
  display: flex;
  flex-direction: column;
}

.hours-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.hours-title {
  font-family: "Fraunces", "Inter", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.hours-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px -28px rgba(61, 43, 31, 0.25);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hours-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  border-collapse: collapse;
  flex: 1;
}

.hours-table tbody {
  display: contents;
}

.hours-table tr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: transparent;
  border-bottom: 1px solid var(--border);
  flex: 1;
  transition: background 0.25s ease;
}

.hours-table tr:last-child {
  border-bottom: 0;
}

.hours-table td {
  padding: 0;
  border: 0;
}

.hours-table td:first-child {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--muted);
}

.hours-table td:nth-child(2) {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.hours-table tr.today {
  background: var(--accent-soft);
}

.hours-table tr.today td:first-child,
.hours-table tr.today td:nth-child(2) {
  color: var(--accent-strong);
}

/* Today-row hours that have been narrowed by an admin-defined closure. */
.hours-table .hours-cell-reduced {
  color: var(--accent-strong);
  font-style: italic;
}

.hours-table .hours-cell-closed {
  color: #a5453a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 12px;
}

/* Visit pills — Follow + Delivery as two stacked sub-blocks */
.visit-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  margin-top: 32px;
}

.pill-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pill-block-title {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0;
}

.pill-block-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pill-block-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin: 4px 16px;
}

.social-pill,
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease, background 0.2s ease;
}

.social-pill:hover,
.platform-pill:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.social-pill svg {
  width: 16px;
  height: 16px;
}

.social-pill--fb svg {
  color: #1877f2;
}

.social-pill--ig svg {
  color: #e1306c;
}

.social-pill--fb:hover {
  border-color: #1877f2;
  box-shadow: 0 4px 10px -6px #1877f2;
}

.social-pill--ig:hover {
  border-color: #e1306c;
  box-shadow: 0 4px 10px -6px #e1306c;
}

.platform-pill {
  padding-left: 7px;
}

.platform-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  flex: none;
}

.platform-pill:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 10px -6px var(--brand);
}

@media (max-width: 920px) {
  .visit-top {
    grid-template-columns: 1fr;
  }
  .visit-map,
  #map {
    min-height: 360px;
  }
  .visit-chips {
    grid-template-columns: 1fr;
  }
  .hours-table tr {
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .pill-block-divider {
    display: none;
  }
}

@media (max-width: 540px) {
  .visit-map,
  #map {
    min-height: 300px;
  }
  .hours-table tr {
    padding: 12px 16px;
  }
}

/* ---------- Download / promo CTA ---------- */
.cta {
  padding: 48px 0 100px;
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, #3d2b1f 0%, #6b4423 100%);
  color: #fff;
  border-radius: 28px;
  padding: 56px 56px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.cta-card-text {
  flex: 1 1 380px;
  position: relative;
  z-index: 1;
}

.cta-qr {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px;
  border-radius: 22px;
  backdrop-filter: blur(6px);
}

.cta-qr canvas {
  width: 180px;
  height: 180px;
  border-radius: 14px;
  display: block;
}

.cta-qr-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.cta-card::before {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(
    circle,
    rgba(232, 200, 145, 0.25) 0%,
    transparent 70%
  );
}

.cta-card h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  max-width: 560px;
  margin-bottom: 14px;
}

.cta-card p {
  max-width: 520px;
  opacity: 0.8;
  margin: 0 0 28px;
  font-size: 16px;
}

.cta-card .cta-row {
  margin: 0;
}

.cta-card .store-badge {
  background: #fff;
  color: var(--text);
}

.cta-card .store-badge:hover {
  background: var(--bg);
}

.cta-card .store-logo {
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--border);
}

@media (max-width: 720px) {
  .cta-card {
    padding: 40px 28px;
  }
}

/* ---------- Café hero (home) ---------- */
.cafe-hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}

.cafe-hero::before {
  content: "";
  position: absolute;
  inset: -120px -10% auto -10%;
  height: 520px;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(233, 215, 194, 0.7) 0%,
    rgba(248, 242, 227, 0) 60%
  );
  z-index: 0;
}

.cafe-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.cafe-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  margin-bottom: 22px;
}

.cafe-hero h1 em {
  font-style: italic;
  color: var(--accent-strong);
}

.cafe-hero p.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 36px;
}

.cafe-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cafe-hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.cafe-hero-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
}

.cafe-hero-meta strong {
  color: var(--text);
}

.cafe-hero-visual {
  position: relative;
  height: 540px;
}

.cafe-hero-visual .photo {
  position: absolute;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #c89863 0%, #6b4423 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cafe-hero-visual .photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.cafe-hero-visual .photo.p1 {
  top: 0;
  right: 0;
  width: 78%;
  height: 64%;
  background: linear-gradient(135deg, #c89863 0%, #6b4423 100%);
}

.cafe-hero-visual .photo.p2 {
  bottom: 0;
  left: 0;
  width: 56%;
  height: 50%;
  background: linear-gradient(135deg, #efd7a8 0%, #a67847 100%);
  border: 6px solid var(--bg);
}

.cafe-hero-visual .badge-card {
  position: absolute;
  bottom: 10%;
  right: -14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  transform: rotate(3deg);
}

.cafe-hero-visual .badge-card .ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
}

.cafe-hero-visual .badge-card .ttl {
  font-weight: 700;
  font-size: 14px;
}

.cafe-hero-visual .badge-card .sub {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .cafe-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cafe-hero-visual {
    height: 420px;
    order: -1;
  }
}

/* ---------- App promo strip (home) ---------- */
.promo {
  background: var(--bg);
  padding: 56px 0;
}

.promo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow);
}

.promo-card h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 10px;
}

.promo-card p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 16px;
}

.promo-cups {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-width: 280px;
  margin-left: auto;
}

@media (max-width: 820px) {
  .promo-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .promo-cups {
    margin: 0;
  }
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.foot h4 {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 14px;
}

.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foot li {
  margin-bottom: 8px;
}

.foot a {
  color: var(--text);
  font-size: 14.5px;
  text-decoration: none;
}

.foot a:hover {
  color: var(--accent-strong);
}

.foot-brand p {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
  max-width: 320px;
}

.legal {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 820px) {
  .foot {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--text);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
}

/* ============================================================
   Polish & micro-animations
   Tasteful, low-key — turns off entirely under reduced motion.
   ============================================================ */

/* Live "Open" dot — soft heartbeat */
@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(108, 142, 114, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(108, 142, 114, 0);
  }
}
.open-pill:not(.closed) .dot {
  animation: livePulse 2.4s ease-out infinite;
}

@keyframes liveClosedPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(200, 99, 90, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(200, 99, 90, 0);
  }
}
.open-pill.closed .dot {
  animation: liveClosedPulse 2.6s ease-out infinite;
}

/* Floating cards & badge — gentle drift */
@keyframes floatA {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-7px) rotate(-4deg);
  }
}
@keyframes floatB {
  0%,
  100% {
    transform: translateY(0) rotate(5deg);
  }
  50% {
    transform: translateY(-6px) rotate(5deg);
  }
}
@keyframes floatC {
  0%,
  100% {
    transform: translateY(0) rotate(3deg);
  }
  50% {
    transform: translateY(-5px) rotate(3deg);
  }
}
.floating-card {
  animation: floatA 6.5s ease-in-out infinite;
}
.floating-card.right {
  animation: floatB 7.5s ease-in-out infinite 0.6s;
}
.cafe-hero-visual .badge-card {
  animation: floatC 7s ease-in-out infinite 0.3s;
}

/* Hero blob — slow drift */
@keyframes blobDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(8px, -6px) scale(1.04);
  }
}
.blob {
  animation: blobDrift 12s ease-in-out infinite;
}

/* Phone mockup — subtle continuous tilt */
@keyframes phoneSway {
  0%,
  100% {
    transform: translateX(-50%) rotate(-3deg);
  }
  50% {
    transform: translateX(-50%) rotate(-2deg) translateY(-4px);
  }
}
.phone {
  animation: phoneSway 8s ease-in-out infinite;
}

/* Hover lift for content cards */
.step,
.promo-card,
.reward-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease,
    border-color 0.35s ease;
  will-change: transform;
}

.step:hover,
.promo-card:hover,
.reward-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -28px rgba(61, 43, 31, 0.35);
}

/* Step number — soft glow on hover */
.step:hover .step-num {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* Gallery tiles — gentle zoom-in on hover (skip the carousel tile) */
.tile {
  transition: transform 0.5s ease, box-shadow 0.4s ease;
}
.tile:not(.carousel):hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 22px 40px -22px rgba(61, 43, 31, 0.4);
}
.tile.carousel:hover {
  box-shadow: 0 22px 40px -22px rgba(61, 43, 31, 0.45);
}

/* Carousel images: slow zoom on the active slide for life */
@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}
.carousel-slide.active {
  animation: slowZoom 8s ease-out forwards;
}

/* Brand mark — gentle scale on hover */
.brand .brand-mark {
  transition: transform 0.3s ease;
}
.brand:hover .brand-mark {
  transform: rotate(-2deg) scale(1.04);
}

/* Buttons — subtle press feedback */
.btn-solid:active,
.nav-cta:active,
.btn.primary:active,
.store-badge:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.05s;
}

/* Stagger reveals for grouped children
   Each child still uses the .reveal IntersectionObserver, so this just
   shifts their transition-delay so they cascade in sequence. */
.steps > .reveal:nth-child(1) {
  transition-delay: 60ms;
}
.steps > .reveal:nth-child(2) {
  transition-delay: 180ms;
}
.steps > .reveal:nth-child(3) {
  transition-delay: 300ms;
}

.gallery > .reveal:nth-child(1),
.gallery .tile.t1 {
  transition-delay: 60ms;
}
.gallery > .reveal:nth-child(2),
.gallery .tile.t2 {
  transition-delay: 160ms;
}
.gallery > .reveal:nth-child(3),
.gallery .tile.t3 {
  transition-delay: 260ms;
}
.gallery > .reveal:nth-child(4),
.gallery .tile.t4 {
  transition-delay: 360ms;
}

/* Hero text → visual cascade */
.cafe-hero-inner > .reveal:first-child,
.hero-inner > .reveal:first-child {
  transition-delay: 80ms;
}
.cafe-hero-inner > .reveal.cafe-hero-visual,
.hero-inner > .reveal.hero-visual {
  transition-delay: 220ms;
}

/* Reward progress bar — fills in on reveal */
.reward-card .progress-bar > i {
  width: 0;
  transition: width 1100ms cubic-bezier(0.22, 0.8, 0.32, 1);
}
.reveal.visible .reward-card .progress-bar > i {
  width: 83.33%;
}

/* Section eyebrow — subtle slide-in accent */
@keyframes eyebrowSlide {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.reveal.visible .section-eyebrow,
.reveal.visible .hero-eyebrow {
  animation: eyebrowSlide 600ms ease-out both;
}

/* Decorative section divider — soft gradient line */
.inside,
.visit,
.how,
.reward {
  position: relative;
}
.inside::before,
.how::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 480px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-soft) 30%,
    var(--accent-soft) 70%,
    transparent
  );
  opacity: 0.7;
}

/* Focus rings — calm accent ring everywhere */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn-solid:focus-visible,
.nav-cta:focus-visible,
.btn.primary:focus-visible {
  outline-offset: 4px;
}

/* ============================================================
   Book a party — page styles
   ============================================================ */
.party-hero {
  position: relative;
  padding: 64px 0 28px;
  overflow: hidden;
}

.party-hero::before {
  content: "";
  position: absolute;
  inset: -120px -10% auto -10%;
  height: 420px;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(233, 215, 194, 0.7) 0%,
    rgba(248, 242, 227, 0) 60%
  );
  z-index: 0;
}

.party-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.party-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.04;
  margin: 14px 0 18px;
}

.party-hero h1 em {
  font-style: italic;
  color: var(--accent-strong);
}

.party-hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0;
}

.party-form-section {
  padding: 32px 0 96px;
}

.party-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.party-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.party-form-hint {
  margin: 0 0 -4px;
  font-size: 12.5px;
  color: var(--muted);
}

.party-form-hint span {
  color: var(--accent-strong);
  font-weight: 700;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label,
.field .field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.field label span,
.field .field-label span {
  color: var(--accent-strong);
  margin-left: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"] {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}

.field input::placeholder {
  color: #b69b7e;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(166, 120, 71, 0.18);
}

.field input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #c8635a;
}

.field-hint {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.field-error {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #a5453a;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.radio-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill:hover {
  border-color: var(--accent);
}

.radio-pill:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.radio-pill:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
}

.consent input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent a {
  color: var(--accent-strong);
  font-weight: 600;
}

/* Honeypot — hidden from humans + assistive tech */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.party-form-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

#party-submit {
  align-self: flex-start;
  border: 0;
  font: inherit;
  cursor: pointer;
  /* `.btn-solid` already supplies look-and-feel; we just need to size +
     align the spinner relative to the label. */
  position: relative;
  min-width: 180px;
  justify-content: center;
}

#party-submit:disabled {
  opacity: 0.85;
  cursor: progress;
}

#party-submit .btn-spinner {
  display: none;
  animation: partySpin 0.85s linear infinite;
}

#party-submit.is-loading .btn-label,
#party-submit.is-loading .btn-arrow {
  visibility: hidden;
}

#party-submit.is-loading .btn-spinner {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@keyframes partySpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.party-form-tiny {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.party-form-tiny a {
  color: var(--accent-strong);
  font-weight: 600;
}

.party-form-status {
  margin: 6px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.party-form-status strong {
  font-weight: 700;
}

.party-form-status--success {
  background: rgba(108, 142, 114, 0.12);
  border-color: rgba(108, 142, 114, 0.4);
  color: #2f5a3a;
}

.party-form-status--error {
  background: rgba(200, 99, 90, 0.1);
  border-color: rgba(200, 99, 90, 0.4);
  color: #8a3a32;
}

.party-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 104px;
}

.party-aside-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 14px 30px -22px rgba(61, 43, 31, 0.25);
}

.party-aside-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.party-aside h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  margin: 0 0 4px;
}

.party-aside p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.party-aside a {
  color: var(--accent-strong);
  font-weight: 600;
}

@media (max-width: 920px) {
  .party-form-wrap {
    grid-template-columns: 1fr;
  }
  .party-aside {
    position: static;
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .party-aside-card {
    flex: 1 1 220px;
  }
}

@media (max-width: 560px) {
  .party-form {
    padding: 24px 20px 22px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .party-aside {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  #party-submit .btn-spinner {
    animation: none;
  }
}

/* Reduced motion: disable all decorative animation */
@media (prefers-reduced-motion: reduce) {
  .open-pill .dot,
  .floating-card,
  .floating-card.right,
  .cafe-hero-visual .badge-card,
  .blob,
  .phone,
  .carousel-slide.active {
    animation: none !important;
  }
  .reveal.visible .section-eyebrow,
  .reveal.visible .hero-eyebrow {
    animation: none !important;
  }
  .step:hover,
  .promo-card:hover,
  .reward-card:hover,
  .tile:not(.carousel):hover {
    transform: none;
  }
  .reward-card .progress-bar > i {
    transition: none;
    width: 83.33%;
  }
  /* Cups should still be visible without the pop-in animation */
  .cup {
    opacity: 0.28;
    transform: none;
    transition: none;
  }
  .cup.filled {
    opacity: 1;
  }
}
