:root {
  --paper: #fff8ee;
  --cream: #fff1dc;
  --ink: #2b1b1b;
  --cocoa: #7a4a1e;
  --raspberry: #d7263d;
  --tangerine: #ff9e57;
  --lemon: #ffd166;
  --mint: #5ee0c0;
  --grape: #6a3cb5;
  --sky: #1f8ad6;
  --shadow: 0 14px 34px rgba(122, 74, 30, 0.14);
  --radius: 22px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(circle at 10% 10%, rgba(255, 209, 102, 0.25), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(215, 38, 61, 0.12), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(94, 224, 192, 0.18), transparent 45%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  font-size: 17px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--cocoa);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--raspberry);
}

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

.jar-shell {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* ---------- Header ---------- */

.jar-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 248, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px dashed rgba(122, 74, 30, 0.2);
}

.jar-topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.jar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cocoa);
}

.jar-brand img {
  width: 44px;
  height: 44px;
}

.jar-brand__name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: bold;
  letter-spacing: 0.01em;
}

.jar-brand__tag {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--raspberry);
}

.jar-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.jar-nav a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.jar-nav a:hover,
.jar-nav a:focus-visible {
  background: var(--lemon);
  color: var(--cocoa);
}

.jar-nav__toggle {
  display: none;
  border: 2px solid var(--cocoa);
  background: transparent;
  color: var(--cocoa);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Hero ---------- */

.pop-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 2.5rem;
}

.pop-hero__eyebrow {
  display: inline-block;
  background: var(--raspberry);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.pop-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

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

.pop-hero__lead {
  font-size: 1.15rem;
  max-width: 54ch;
  color: #4a3a32;
}

.pop-hero__actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-swirl {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(135deg, var(--raspberry), var(--tangerine));
  color: #fff;
  box-shadow: 0 10px 24px rgba(215, 38, 61, 0.28);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-swirl:hover,
.btn-swirl:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(215, 38, 61, 0.34);
}

.btn-swirl--ghost {
  background: #fff;
  color: var(--cocoa);
  box-shadow: 0 6px 18px rgba(122, 74, 30, 0.12);
  border: 2px solid var(--lemon);
}

.pop-hero__art {
  position: relative;
}

.pop-hero__art img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.pop-hero__sticker {
  position: absolute;
  left: -18px;
  bottom: 24px;
  background: var(--lemon);
  color: var(--cocoa);
  font-family: var(--serif);
  font-weight: bold;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  transform: rotate(-6deg);
  box-shadow: 0 8px 18px rgba(122, 74, 30, 0.2);
  font-size: 0.95rem;
}

/* ---------- Ticker ---------- */

.flavor-ticker {
  background: var(--cocoa);
  color: var(--cream);
  padding: 0.6rem 0;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1rem;
}

.flavor-ticker ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  animation: ticker-roll 38s linear infinite;
  width: max-content;
}

.flavor-ticker li::before {
  content: "●";
  color: var(--lemon);
  margin-right: 0.7rem;
}

@keyframes ticker-roll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Bento grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.3rem;
  padding: 3rem 0;
}

.bento__tile {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.bento__tile--wide {
  grid-column: span 4;
}

.bento__tile--half {
  grid-column: span 3;
}

.bento__tile--third {
  grid-column: span 2;
}

.bento__tile--full {
  grid-column: span 6;
}

.bento__tile--lemon {
  background: linear-gradient(145deg, #fff6d6, #ffe6a3);
}

.bento__tile--mint {
  background: linear-gradient(145deg, #e4fbf4, #bff3e4);
}

.bento__tile--grape {
  background: linear-gradient(145deg, #3a2460, #6a3cb5);
  color: #fdf6ff;
}

.bento__tile--grape h2,
.bento__tile--grape h3 {
  color: #ffe6a3;
}

.bento__tile--rose {
  background: linear-gradient(145deg, #ffe4ec, #ffc7d8);
}

.bento__kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--raspberry);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bento__tile--grape .bento__kicker {
  color: var(--mint);
}

.bento__tile h2 {
  font-size: 1.75rem;
}

.bento__tile h3 {
  font-size: 1.25rem;
}

.bento__figure {
  margin: 0 0 1rem;
}

.bento__figure img {
  border-radius: 16px;
  width: 100%;
}

.bento__figure figcaption {
  font-size: 0.82rem;
  color: #6b5a52;
  margin-top: 0.4rem;
  font-style: italic;
}

.bento__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.bento__big-number {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: bold;
  color: var(--raspberry);
  line-height: 1;
}

/* ---------- Flavor cards ---------- */

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.swatch {
  border-radius: 18px;
  padding: 1.1rem;
  color: #fff;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  box-shadow: inset 0 -40px 60px rgba(0, 0, 0, 0.18);
}

.swatch::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.15));
}

.swatch h4 {
  color: #fff;
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}

.swatch p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.95;
}

.swatch--cherry { background: linear-gradient(160deg, #ff6f91, #b3122a); }
.swatch--grape { background: linear-gradient(160deg, #b58cff, #4b2a8a); }
.swatch--orange { background: linear-gradient(160deg, #ffcf8a, #ff6a00); }
.swatch--blueraz { background: linear-gradient(160deg, #7fe0ff, #0f6fb8); }
.swatch--lemonlime { background: linear-gradient(160deg, #e6ff8a, #4a9a1a); }
.swatch--cream { background: linear-gradient(160deg, #ffe6b0, #c58a4a); }
.swatch--rootbeer { background: linear-gradient(160deg, #a8703a, #4a2a10); }
.swatch--butterscotch { background: linear-gradient(160deg, #ffd166, #c67a1a); }
.swatch--cotton { background: linear-gradient(160deg, #ffd9e8, #ff6fb0); }
.swatch--watermelon { background: linear-gradient(160deg, #ff8fa3, #3f8f2a); }
.swatch--mystery { background: linear-gradient(160deg, #ff9e57, #6a3cb5); }
.swatch--sourapple { background: linear-gradient(160deg, #c6f29a, #2e7d12); }

/* ---------- Chip filters ---------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.chip {
  border: 2px solid rgba(122, 74, 30, 0.25);
  background: #fff;
  color: var(--cocoa);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--raspberry);
}

.chip.is-lit {
  background: var(--cocoa);
  color: var(--cream);
  border-color: var(--cocoa);
}

/* ---------- Pairing explorer widget ---------- */

.pairing-lab {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.pairing-lab__result {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 1.3rem;
  border: 2px dashed rgba(122, 74, 30, 0.25);
  min-height: 220px;
}

.pairing-lab__result h3 {
  margin-bottom: 0.4rem;
}

.pairing-lab__badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--lemon);
  color: var(--cocoa);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.pairing-lab__list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.pairing-lab__list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(122, 74, 30, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.pairing-lab__list li:last-child {
  border-bottom: 0;
}

.pairing-lab__list strong {
  color: var(--raspberry);
}

/* ---------- Bowl mixer widget ---------- */

.bowl-mixer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.bowl-mixer__panel {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.bowl-mixer__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.bowl-mixer .chip {
  background: rgba(255, 255, 255, 0.1);
  color: #fdf6ff;
  border-color: rgba(255, 255, 255, 0.35);
}

.bowl-mixer .chip.is-lit {
  background: var(--lemon);
  color: var(--cocoa);
  border-color: var(--lemon);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.stepper button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--mint);
  color: var(--cocoa);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.stepper output {
  font-family: var(--serif);
  font-size: 2rem;
  min-width: 3ch;
  text-align: center;
}

.mix-bars {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}

.mix-bars li {
  margin-bottom: 0.7rem;
}

.mix-bars__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.mix-bars__track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.mix-bars__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lemon), var(--tangerine));
  transition: width 0.4s ease;
}

.mix-bars__fill--10 { width: 25%; }
.mix-bars__fill--15 { width: 37.5%; }
.mix-bars__fill--20 { width: 50%; }
.mix-bars__fill--25 { width: 62.5%; }
.mix-bars__fill--30 { width: 75%; }

.bowl-mixer__total {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-top: 0.8rem;
  color: #ffe6a3;
}

/* ---------- Timeline / steps ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.steps li {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 1.1rem 1.1rem 1.1rem 3.4rem;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--raspberry);
  color: #fff;
  font-family: var(--serif);
  font-weight: bold;
  display: grid;
  place-items: center;
}

/* ---------- FAQ ---------- */

.faq details {
  background: #fff;
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.7rem;
  box-shadow: 0 4px 14px rgba(122, 74, 30, 0.08);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--cocoa);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.faq details p {
  margin: 0.6rem 0 0;
}

/* ---------- Pull quote ---------- */

.pull-quote {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--cocoa);
  border-left: 6px solid var(--tangerine);
  padding-left: 1.2rem;
  margin: 1rem 0;
}

/* ---------- Footer ---------- */

.jar-footer {
  background: var(--ink);
  color: #e9dccd;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.jar-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.jar-footer h4 {
  color: var(--lemon);
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

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

.jar-footer li {
  margin-bottom: 0.4rem;
}

.jar-footer a {
  color: #fff;
  text-decoration: none;
}

.jar-footer a:hover {
  color: var(--lemon);
  text-decoration: underline;
}

.jar-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: #fff;
}

.jar-footer__brand img {
  width: 36px;
  height: 36px;
}

.jar-footer__fine {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.82rem;
  color: #b9a899;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Consent banner ---------- */

.crumb-notice {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  width: min(680px, 92vw);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(43, 27, 27, 0.25);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 50;
  border: 2px solid var(--lemon);
}

.crumb-notice p {
  margin: 0;
  font-size: 0.92rem;
  flex: 1;
}

.crumb-notice[hidden] {
  display: none !important;
}

/* ---------- Legal / inner pages ---------- */

.leaf-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding: 3rem 0;
}

.leaf-page__aside {
  position: sticky;
  top: 90px;
  align-self: start;
}

.leaf-page__aside img {
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.leaf-page__aside nav a {
  display: block;
  padding: 0.4rem 0;
  text-decoration: none;
  color: var(--cocoa);
  border-bottom: 1px dashed rgba(122, 74, 30, 0.2);
}

.leaf-page__body {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.leaf-page__body h1 {
  font-size: 2.4rem;
}

.leaf-page__body h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
}

.leaf-page__meta {
  font-size: 0.85rem;
  color: #6b5a52;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-cards div {
  background: var(--cream);
  border-radius: 16px;
  padding: 1.2rem;
}

.contact-cards strong {
  display: block;
  color: var(--raspberry);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.3rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .pop-hero,
  .bento__split,
  .pairing-lab,
  .bowl-mixer,
  .leaf-page {
    grid-template-columns: 1fr;
  }

  .bento__tile--wide,
  .bento__tile--half,
  .bento__tile--third {
    grid-column: span 6;
  }

  .jar-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .leaf-page__aside {
    position: static;
  }

  .jar-nav__toggle {
    display: inline-block;
  }

  .jar-nav {
    display: none;
    width: 100%;
  }

  .jar-nav.is-open {
    display: block;
  }

  .jar-nav ul {
    flex-direction: column;
    padding-bottom: 0.8rem;
  }

  .jar-topbar__row {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .jar-footer__grid {
    grid-template-columns: 1fr;
  }

  .crumb-notice {
    flex-direction: column;
    align-items: stretch;
  }

  .leaf-page__body {
    padding: 1.5rem;
  }
}
