/* Pinch — modern spice store
   White and ink carry the page; colour comes from the spices themselves.
   Chilli red is the brand accent for actions. */
:root {
  --brand: #C8102E;
  --brand-deep: #950A21;
  --brand-soft: #FCE8EB;
  --brand-ink: #FFFFFF;

  --bg: #FFFFFF;
  --ink: #1B1512;
  --muted: #6F6661;
  --line: #ECE7E3;
  --steel: #C9CED3;

  --display: 'Anybody', 'Arial Black', sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --wrap: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }

/* Anybody's width axis is the voice of the brand: wide and heavy for
   headings, never for body copy. */
.logo, h1, h2 { font-family: var(--display); font-stretch: 150%; font-weight: 850; letter-spacing: -.01em; text-transform: uppercase; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.logo { font-size: 1.6rem; text-decoration: none; line-height: 1; }
.logo-sm { font-size: 1.3rem; }
.nav { display: flex; gap: 30px; font-weight: 600; font-size: .95rem; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--brand); }
.cart-pill { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; padding: 10px 18px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.cart-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.cart-pill.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.08); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 15px 28px; font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { background: var(--brand-deep); }
.btn-ghost { border-color: var(--ink); background: none; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; transform: none; }
.btn-wide { width: 100%; }
.link-btn { background: none; border: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.3vw, 5.1rem); line-height: .86; margin-bottom: 28px; }
.hero h1 span { color: var(--brand); }
.lede { font-size: 1.15rem; max-width: 42ch; color: var(--muted); margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { text-align: center; }
.hero-note { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.dabba-wrap svg { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; overflow: visible; }

.origins { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 64px auto 0; padding: 22px 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.origins li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 9px; transform: translateY(-1px); }

/* ---------- shop ---------- */
.shop { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; }
.section-head h2, .builder h2, .fresh h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: .92; }
.section-head p { max-width: 38ch; color: var(--muted); }
.spice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.spice { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.spice:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(27, 21, 18, .35); }
/* The colour block is the spice itself: its colour, a heaped mound and grain. */
.spice-art {
  position: relative; height: 200px; background-color: var(--c);
  background-image:
    radial-gradient(ellipse 58% 70% at 50% 108%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Ccircle cx='2' cy='3' r='.9' fill='%23000' opacity='.2'/%3E%3Ccircle cx='7' cy='1.6' r='.6' fill='%23fff' opacity='.35'/%3E%3Ccircle cx='5.4' cy='7.5' r='1' fill='%23000' opacity='.14'/%3E%3Ccircle cx='9' cy='5.4' r='.5' fill='%23fff' opacity='.3'/%3E%3C/svg%3E");
}
.spice-origin { position: absolute; left: 18px; bottom: 16px; right: 18px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on); opacity: .92; }
.spice-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.spice-body h3 { font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: 1.28rem; line-height: 1.1; }
.spice-body p { color: var(--muted); font-size: .93rem; }
.spice-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; }
.spice-price { font-weight: 700; }
.spice-price small { font-weight: 500; color: var(--muted); }
.add-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.add-btn:hover { background: var(--ink); color: #fff; }

/* ---------- builder ---------- */
.builder { padding: 96px 0; background: var(--brand-soft); }
.builder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.builder-help { color: var(--muted); margin: 14px 0 24px; }
.picker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 10px; border-radius: 999px; border: 2px solid transparent; background: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; transition: border-color .2s, transform .15s; }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); }
.chip:disabled { opacity: .45; cursor: not-allowed; border-color: transparent; }
.builder-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 20px; font-weight: 600; }
.builder-status p { margin-right: auto; }

/* dabba bowls */
.bowl { cursor: pointer; }
.bowl .powder, .bowl .shade { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform .55s cubic-bezier(.3, 1.5, .5, 1); }
.bowl.filled .powder, .bowl.filled .shade { transform: scale(1); }
.bowl .empty-ring { transition: opacity .3s; }
.bowl.filled .empty-ring { opacity: 0; }
.bowl:focus { outline: none; }
.bowl:focus-visible .rim { stroke: var(--brand); stroke-width: 4; }
#heroDabba .bowl { cursor: default; }

/* ---------- freshness ---------- */
.fresh { padding: 96px 0; }
.fresh-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.fresh-points { display: grid; gap: 28px; }
.fresh-points div { padding-top: 20px; border-top: 2px solid var(--ink); }
.fresh-points h3 { font-size: 1.2rem; margin-bottom: 6px; }
.fresh-points p { color: var(--muted); }

/* ---------- footer + toast ---------- */
.footer { background: var(--ink); color: #fff; padding: 40px 0 96px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer .muted { color: #a79f9a; }
.toast { position: fixed; left: 50%; bottom: 86px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 80; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .builder-grid, .fresh-grid { grid-template-columns: 1fr; }
  .spice-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .builder-art { max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .nav { display: none; }
  .hero { padding-top: 36px; }
  .spice-grid { grid-template-columns: 1fr; }
  .spice-art { height: 150px; }
  .shop, .builder, .fresh { padding: 64px 0; }
  .toast { white-space: normal; text-align: center; max-width: calc(100% - 36px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
