:root {
  --bg: #0e0e10;
  --bg-raised: #18181b;
  --ink: #f4f4f2;
  --ink-dim: #a4a4ac;
  --line: #2a2a30;
  --lime: #c6ff3d;
  --lime-dim: #a8dd28;
  --lime-ink: #0e1a00;
  --orange: #ff5c1a;
  --font-head: "Anton", "Impact", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .brand, .jar-text { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; }
h1, h2 { line-height: 1; margin: 0 0 0.6rem; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
p { margin: 0 0 1rem; color: var(--ink-dim); }
a { color: var(--lime); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.center { text-align: center; }
.eyebrow { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); font-weight: 600; margin: 0 0 0.5rem; }
.eyebrow.center { text-align: center; }
section.section h2 { text-align: center; }
.section { padding: 5rem 0; }
.section.alt { background: var(--bg-raised); }

/* demo ribbon */
.demo-ribbon {
  background: var(--lime); color: var(--lime-ink); font-size: 0.82rem; font-weight: 600;
  padding: 0.55rem 1.2rem; display: flex; justify-content: center; align-items: center; gap: 1rem;
  text-align: center; flex-wrap: wrap;
}
.demo-ribbon-link { color: var(--lime-ink); text-decoration: underline; white-space: nowrap; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(14,14,16,0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; gap: 1.5rem; }
.brand { font-size: 1.4rem; color: #fff; text-decoration: none; letter-spacing: 0.02em; }
.brand-accent { color: var(--lime); }
.nav { display: flex; gap: 1.8rem; margin-left: auto; }
.nav a { color: var(--ink-dim); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav a:hover { color: var(--lime); }
.cart-btn { position: relative; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; margin-left: 1.2rem; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn:hover { border-color: var(--lime); color: var(--lime); }
.cart-count { position: absolute; top: -6px; right: -6px; background: var(--lime); color: var(--lime-ink); font-size: 0.68rem; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.cart-count[hidden] { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 860px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-raised); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
  .nav.open { max-height: 220px; }
  .nav a { padding: 0.9rem 1.5rem; border-top: 1px solid var(--line); }
  .nav-toggle { display: flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 700; padding: 0.8rem 1.5rem; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; text-transform: uppercase; letter-spacing: 0.03em; }
.btn-primary { background: var(--lime); color: var(--lime-ink); }
.btn-primary:hover { background: var(--lime-dim); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn.magnetic { will-change: transform; }

/* hero */
.hero { padding: 4.5rem 0 4rem; overflow: hidden; }
.hero-inner { display: flex; align-items: center; gap: 2.5rem; }
.hero-copy { flex: 1 1 380px; }
.hero-sub { max-width: 460px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-jar { flex: 0 0 240px; width: 240px; }
.hero-jar svg { width: 100%; height: auto; }
@media (max-width: 820px) { .hero-inner { flex-direction: column; text-align: center; } .hero-sub { margin: 0 auto 1rem; } .hero-actions { justify-content: center; } }

/* jar illustration */
.jar-shadow { fill: rgba(0,0,0,0.4); }
.jar-body { fill: #232326; stroke: var(--line); stroke-width: 2; }
.jar-band, .jar-lid, .jar-lid-top { fill: var(--lime); }
.jar-body-choc { fill: #2b1c14; }
.jar-band-choc { fill: var(--orange); }
.jar-text { fill: var(--ink); font-size: 20px; letter-spacing: 0.02em; font-family: var(--font-head); }
.jar-text-sub { fill: var(--lime); font-size: 16px; }
.jar-body-choc ~ .jar-text-sub { fill: var(--orange); }

/* trust bar */
.trust-bar { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.trust-inner { display: flex; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--ink-dim); font-weight: 500; }
.trust-item svg { width: 22px; height: 22px; color: var(--lime); flex-shrink: 0; }

/* shop tabs */
.shop-tabs { display: flex; justify-content: center; gap: 0.6rem; margin-top: 2rem; flex-wrap: wrap; }
.shop-tab { background: var(--bg-raised); border: 1px solid var(--line); color: var(--ink-dim); font-family: inherit; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.55rem 1.1rem; border-radius: 999px; cursor: pointer; }
.shop-tab.active { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }

/* cards */
.grid { display: grid; gap: 1.4rem; margin-top: 2.2rem; }
.shop-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.reviews-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem 1.3rem;
  position: relative; --mx: 50%; --my: 50%; transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), border-color 0.2s ease;
  will-change: transform;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: 14px; opacity: 0; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(198,255,61,0.10), transparent 70%);
  transition: opacity 0.35s ease;
}
.card:hover::after { opacity: 1; }
.card:hover { border-color: #3a3a42; }

/* product cards */
.product-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.product-jar { width: 100px; margin-bottom: 0.8rem; }
.product-jar svg { width: 100%; height: auto; }
.product-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--lime); margin-bottom: 0.3rem; }
.product-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-transform: none; color: var(--ink); margin: 0 0 0.2rem; }
.product-meta { font-size: 0.8rem; color: var(--ink-dim); margin-bottom: 0.6rem; }
.product-price { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); margin: 0 0 0.9rem; }
.add-to-cart { width: 100%; justify-content: center; }
.add-to-cart.added { background: var(--ink); color: var(--bg); }

/* bestseller */
.bestseller-inner { display: flex; align-items: center; gap: 3rem; }
.bestseller-jar { flex: 0 0 220px; width: 220px; }
.bestseller-jar svg { width: 100%; height: auto; }
.card-badge { display: inline-block; background: var(--orange); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 0.8rem; }
.bestseller-price { font-family: var(--font-head); font-size: 1.8rem; color: var(--ink); margin-bottom: 1.2rem; }
.bestseller-price span { font-family: var(--font-body); font-size: 0.9rem; color: var(--ink-dim); text-transform: none; }
@media (max-width: 820px) { .bestseller-inner { flex-direction: column; text-align: center; } }

/* reviews */
.reviews-note { color: var(--ink-dim); font-size: 0.85rem; margin-top: -1.6rem; margin-bottom: 2rem; }
.review { font-style: italic; }
.review cite { display: block; margin-top: 0.9rem; font-style: normal; font-size: 0.85rem; color: var(--ink); }

/* faq */
.faq-wrap { max-width: 760px; }
.faq-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; color: var(--lime); font-weight: 700; margin-right: 0.6rem; }
.faq-item[open] summary::before { content: "\2212"; }
.faq-item p { margin: 0.8rem 0 0; }

/* newsletter */
.newsletter { text-align: center; }
.newsletter-inner { max-width: 520px; }
.newsletter-form { display: flex; gap: 0.7rem; margin-top: 1.6rem; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1 1 240px; padding: 0.8rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-raised); color: var(--ink); font-family: inherit; font-size: 0.95rem; }
.newsletter-form input:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
.form-note { font-size: 0.85rem; color: var(--lime); background: rgba(198,255,61,0.08); padding: 0.7rem 0.9rem; border-radius: 10px; margin-top: 1rem; }

/* footer */
.site-footer { background: #000; color: #8a8a90; padding: 3rem 0 2rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { color: #fff; margin-bottom: 0.6rem; }
.footer-fine { max-width: 380px; font-size: 0.82rem; }
.footer-credit { font-size: 0.85rem; }
.footer-credit a { color: var(--lime); }

/* cart drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 30; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: var(--bg-raised);
  border-left: 1px solid var(--line); z-index: 31; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.cart-drawer-head h3 { margin: 0; font-family: var(--font-head); text-transform: uppercase; font-size: 1.2rem; }
.cart-close { background: none; border: none; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.cart-empty { color: var(--ink-dim); text-align: center; margin-top: 2rem; }
.cart-line { display: flex; gap: 0.8rem; align-items: center; }
.cart-line-jar { width: 44px; flex-shrink: 0; }
.cart-line-jar svg { width: 100%; height: auto; }
.cart-line-info { flex: 1; }
.cart-line-info h4 { margin: 0 0 0.2rem; font-size: 0.9rem; color: var(--ink); }
.cart-line-price { font-size: 0.82rem; color: var(--ink-dim); }
.cart-line-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.3rem; }
.cart-line-qty button { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; font-size: 0.85rem; line-height: 1; }
.cart-line-remove { background: none; border: none; color: var(--ink-dim); font-size: 0.78rem; text-decoration: underline; cursor: pointer; padding: 0; }
.cart-drawer-foot { padding: 1.2rem 1.4rem 1.5rem; border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 1rem; text-transform: uppercase; }
.live-warning { font-size: 0.8rem; line-height: 1.4; color: var(--orange); background: rgba(255,92,26,0.1); border: 1px solid rgba(255,92,26,0.35); border-radius: 8px; padding: 0.7rem 0.85rem; margin-bottom: 1rem; }
.cart-checkout-fields { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.cart-checkout-fields input { padding: 0.65rem 0.85rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: inherit; font-size: 0.9rem; }
.cart-checkout-fields input:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
.cart-checkout.loading { opacity: 0.7; pointer-events: none; }
.form-note.error { color: var(--orange); background: rgba(255,92,26,0.08); }
.cart-checkout { width: 100%; justify-content: center; }
