/* ===========================================================
   Private Roast — roasting program builder
   Warm editorial palette: espresso darks, cream paper,
   caramel accent. Anton for display, Inter for body.
   =========================================================== */

:root {
  --espresso: #1f150f;
  --bean: #36231a;
  --cream: #f3e9da;
  --paper: #fbf6ee;
  --caramel: #c4822c;
  --caramel-deep: #a3611a;
  --crema: #e7d3af;
  --ink: #2a1d14;
  --muted: #8a7868;
  --line: rgba(42, 29, 20, 0.14);
  --line-strong: rgba(42, 29, 20, 0.28);
  --shadow: 0 22px 50px -28px rgba(31, 21, 15, 0.55);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 88% -8%, rgba(196, 130, 44, 0.12), transparent 60%),
    radial-gradient(700px 600px at -5% 110%, rgba(54, 35, 26, 0.08), transparent 55%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: min(1080px, 92vw);
  margin-inline: auto;
}

h1, h2 {
  font-family: "Anton", "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0;
}

/* ---------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(31, 21, 15, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(231, 211, 175, 0.14);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: "Anton", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand .mark {
  color: var(--caramel);
  font-size: 1.5rem;
  transform: translateY(1px);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav-links a {
  color: var(--crema);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--paper); }

/* ---------------------------------------------------------- buttons */
.btn {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--caramel);
  color: #2a1808;
  box-shadow: 0 10px 26px -12px rgba(163, 97, 26, 0.85);
}
.btn-primary:hover { background: var(--caramel-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--bean); background: rgba(54, 35, 26, 0.06); }
.nav .btn-ghost {
  border-color: rgba(231, 211, 175, 0.4);
  color: var(--crema);
}
.nav .btn-ghost:hover {
  border-color: var(--crema);
  background: rgba(231, 211, 175, 0.12);
  color: var(--paper);
}

/* ---------------------------------------------------------- hero */
.builder-hero {
  position: relative;
  overflow: hidden;
  background: var(--espresso);
  min-height: clamp(440px, 64vh, 640px);
  display: flex;
  align-items: flex-end;
}
.builder-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.08) contrast(1.02) brightness(1.06);
}
/* Keep the picture bright and full — only a soft scrim at the
   bottom where the headline sits, so text stays legible. */
.builder-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 21, 15, 0.12) 0%, rgba(31, 21, 15, 0.06) 38%, rgba(31, 21, 15, 0.55) 78%, rgba(31, 21, 15, 0.88) 100%);
}
.builder-hero .inner h1,
.builder-hero .inner .lede {
  text-shadow: 0 2px 18px rgba(20, 12, 7, 0.55);
}
.builder-hero .inner {
  position: relative;
  z-index: 2;
  padding: 3.4rem 0 2.8rem;
  color: var(--paper);
}
.subnav, .subnav a {
  color: rgba(231, 211, 175, 0.75);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.subnav a:hover { color: var(--paper); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--caramel);
  margin: 1.1rem 0 0.7rem;
}
.eyebrow.on-dark { color: var(--crema); }
.builder-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  text-transform: uppercase;
  max-width: 13ch;
}
.lede {
  margin: 1rem 0 0;
  max-width: 52ch;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(251, 246, 238, 0.86);
}

/* ---------------------------------------------------------- bright gallery */
/* Big, bright photos in an even grid — the Kuju-style format the
   client liked: vivid imagery on the warm cream paper. */
.gallery {
  padding: 3.4rem 0 0.5rem;
}
.gallery-head {
  text-align: center;
  margin-bottom: 1.8rem;
}
.gallery-head .eyebrow { color: var(--caramel); }
.gallery-head h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  background: var(--bean);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) brightness(1.05);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.shot:hover img { transform: scale(1.05); }
.shot .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.2rem 1.1rem;
  color: var(--paper);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, transparent, rgba(20, 12, 7, 0.72));
}

/* ------------------------------------------------- roast / origin collage */
/* A photo mosaic on the Label Studio page showing where the coffee is
   grown, picked, and roasted — a tall portrait anchors the grid with a
   wide hero beside it and two square shots filling the lower row. */
.roast-collage {
  padding: 3.6rem 0 1rem;
}
.collage-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 1.9rem;
}
.collage-head .eyebrow { color: var(--caramel); }
.collage-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  text-transform: uppercase;
  margin: 0.2rem 0 0.6rem;
}
.collage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.collage-grid figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bean);
}
.collage-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.06);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.collage-grid figure:hover img { transform: scale(1.05); }
.collage-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.1rem 1rem;
  color: var(--paper);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, transparent, rgba(20, 12, 7, 0.74));
}
.collage-tall { grid-row: span 2; }
.collage-wide { grid-column: span 2; }

@media (max-width: 720px) {
  .collage-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }
  .collage-tall { grid-row: span 2; }
  .collage-wide { grid-column: span 2; }
}

/* ---------------------------------------------------------- builder shell */
.builder {
  padding: 3rem 0 5rem;
}

/* progress rail */
.progress {
  display: flex;
  gap: 0.55rem;
  margin: 0 0 1.6rem;
}
.progress .seg {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.progress .seg::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--caramel);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress .seg.done::after { width: 100%; }
.progress .seg.current::after {
  width: 100%;
  background: linear-gradient(90deg, var(--caramel) 0 60%, rgba(196, 130, 44, 0.25) 60%);
}

/* panel card */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 4vw, 3rem);
  position: relative;
}

.step-pane { display: none; }
.step-pane.active {
  display: block;
  animation: paneIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes paneIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.step-pane h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin-bottom: 0.4rem;
}
.hint {
  color: var(--muted);
  margin: 0 0 1.6rem;
  font-size: 0.98rem;
}

.field { margin-bottom: 1.7rem; }
.field > label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bean);
  margin-bottom: 0.7rem;
}

/* choice grid */
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
}
.choice {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  cursor: pointer;
  background: #fff;
  transition: transform 0.15s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  user-select: none;
  outline: none;
}
.choice:hover {
  transform: translateY(-2px);
  border-color: var(--caramel);
  box-shadow: 0 14px 30px -20px rgba(163, 97, 26, 0.7);
}
.choice:focus-visible {
  border-color: var(--caramel);
  box-shadow: 0 0 0 3px rgba(196, 130, 44, 0.3);
}
.choice.selected {
  border-color: var(--caramel);
  background: linear-gradient(180deg, #fff, #fdf4e6);
  box-shadow: inset 0 0 0 1px var(--caramel), 0 14px 30px -22px rgba(163, 97, 26, 0.8);
}
.choice.selected::after {
  content: "";
  position: absolute;
}
.choice .ico {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.55rem;
}
.choice .t {
  font-weight: 700;
  font-size: 1.02rem;
}
.choice .d {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

/* package tiles — the roastery builder's first step */
.choices.packages {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.choice.pkg {
  position: relative;
  display: flex;
  flex-direction: column;
}
.choice.pkg .price {
  font-family: "Anton", sans-serif;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--bean);
  margin: 0.45rem 0 0.1rem;
}
.choice.pkg .price span {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--caramel-deep);
  margin-top: 0.25rem;
}
.choice.pkg .feat {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.42rem;
}
.choice.pkg .feat li {
  font-size: 0.84rem;
  color: var(--muted);
  padding-left: 1.05rem;
  position: relative;
}
.choice.pkg .feat li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--caramel);
  font-weight: 700;
}
.choice.pkg .pop {
  position: absolute;
  top: -0.7rem;
  right: 0.9rem;
  background: var(--caramel);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
}

/* text inputs */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input::placeholder, textarea::placeholder { color: #b3a596; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--caramel);
  box-shadow: 0 0 0 3px rgba(196, 130, 44, 0.18);
}
textarea { min-height: 96px; resize: vertical; }

/* inline validation */
.err-msg {
  color: #b23b2e;
  font-size: 0.85rem;
  margin-top: 0.6rem;
  font-weight: 500;
}
.choices.invalid .choice,
.field.invalid input,
.field.invalid textarea {
  border-color: #d98a7e;
}

/* ---------------------------------------------------------- summary */
.done-banner {
  display: inline-block;
  background: rgba(196, 130, 44, 0.14);
  color: var(--caramel-deep);
  border: 1px solid rgba(196, 130, 44, 0.4);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
#summary {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.sum-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.sum-row .k {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.sum-row .v {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  background: var(--bean);
  color: var(--crema);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

/* ---------------------------------------------------------- wizard nav */
.wiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .nav-links { gap: 0.8rem; }
  .sum-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .builder-hero { min-height: clamp(360px, 70vh, 480px); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery { padding-top: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* ===========================================================
   Label Studio — live custom coffee-bag designer
   A two-column studio: a CSS-rendered stand-up pouch that
   updates in real time as the client designs their own label.
   =========================================================== */
.studio {
  padding: 2.6rem 0 5rem;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.4rem, 4vw, 3.2rem);
  align-items: start;
}

/* ---- the stage + bag ---- */
.bag-stage {
  position: sticky;
  top: 92px;
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(231, 211, 175, 0.16), transparent 60%),
    linear-gradient(165deg, var(--bean), var(--espresso));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.bag-stage::before {
  /* soft pool of light the bag sits in */
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(196, 130, 44, 0.22), transparent);
  filter: blur(8px);
  pointer-events: none;
}

.bag {
  /* themeable surface — JS sets these custom props live */
  --bag-bg: linear-gradient(160deg, #2c1d14, #170f0a);
  --bag-ink: #f3e9da;
  --bag-sub: #e7d3af;
  --bag-foil: #c4822c;

  position: relative;
  z-index: 1;
  width: min(330px, 78vw);
  aspect-ratio: 3 / 4;
  border-radius: 10px 10px 18px 18px;
  /* layered fill: dark side-walls + soft top light read as a rounded
     stand-up pouch, painted over the themed base colour */
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0) 15%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0) 85%, rgba(0, 0, 0, 0.34) 100%),
    radial-gradient(135% 70% at 50% -10%, rgba(255, 255, 255, 0.10), transparent 55%),
    var(--bag-bg);
  color: var(--bag-ink);
  padding: 2.4rem 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 38px 70px -30px rgba(0, 0, 0, 0.75),
    0 10px 24px -14px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background 0.45s ease, color 0.45s ease;
}
/* degassing valve — the signature detail of a real coffee pouch,
   rimmed in the bag's foil colour so it follows the theme */
.bag::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: calc(30% + 24px);
  right: 1.5rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 38%, rgba(255, 255, 255, 0.18), transparent 42%),
    radial-gradient(circle, var(--bag-foil) 0 16%, rgba(0, 0, 0, 0.55) 18% 30%, var(--bag-foil) 31% 38%, rgba(0, 0, 0, 0.30) 40% 50%, transparent 52%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0.92;
  pointer-events: none;
}
/* matte sheen + a whisper of grain for a soft-touch finish */
.bag::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.09) 47%, transparent 57%),
    repeating-linear-gradient(63deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 4px);
  pointer-events: none;
}
/* crimped top seam — diagonal heat-seal teeth */
.bag-seam {
  position: absolute;
  top: 6px;
  left: 9%;
  right: 9%;
  height: 14px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.28) 0 3px, rgba(255, 255, 255, 0.10) 3px 6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0.85;
}
/* foil accent band — a fine double rule reads as printed foil */
.bag-foil {
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  height: 2px;
  background: var(--bag-foil);
  opacity: 0.95;
  transition: background 0.45s ease;
}
.bag-foil::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 1px;
  background: var(--bag-foil);
  opacity: 0.5;
}

.bag-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bag-sub);
  opacity: 0.9;
}
.bag-top .bag-mark { color: var(--bag-foil); font-size: 1.05rem; }

.bag-name {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  font-size: clamp(1.7rem, 7vw, 2.5rem);
  margin: 1.5rem 0 0.5rem;
  word-break: break-word;
  color: var(--bag-ink);
}
.bag-tag {
  font-size: 0.86rem;
  font-style: italic;
  color: var(--bag-sub);
  margin-bottom: auto;
}
.bag-meta { margin: 1.4rem 0 1.1rem; }
.bag-origin {
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}
.bag-notes {
  font-size: 0.8rem;
  color: var(--bag-sub);
  margin-top: 0.25rem;
}
.bag-roast {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bag-sub);
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.roast-meter { display: flex; gap: 5px; }
.roast-meter i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--bag-foil);
  background: transparent;
  transition: background 0.25s ease;
}
.roast-meter i.on { background: var(--bag-foil); }
.bag-roast-name { margin-left: auto; color: var(--bag-ink); font-weight: 700; }
.bag-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bag-sub);
  margin-top: 0.9rem;
}

.stage-caption {
  color: var(--crema);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-top: 1.6rem;
  z-index: 1;
  text-align: center;
}

/* ---- controls column ---- */
.studio-controls .field { margin-bottom: 1.5rem; }
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18), 0 4px 10px -6px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, border-color 0.15s ease;
  outline: none;
}
.swatch:hover { transform: translateY(-2px); }
.swatch:focus-visible { border-color: var(--caramel); }
.swatch.selected { border-color: var(--caramel); transform: translateY(-2px); }
.swatch .dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* compact roast/weight pills reuse the warm tile look */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pill {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
  outline: none;
}
.pill:hover { transform: translateY(-1px); border-color: var(--caramel); }
.pill:focus-visible { box-shadow: 0 0 0 3px rgba(196, 130, 44, 0.3); }
.pill.selected {
  background: var(--bean);
  border-color: var(--bean);
  color: var(--crema);
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  align-items: center;
}
.studio-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 1.1rem 0 0;
}

/* save confirmation toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(24px);
  background: var(--bean);
  color: var(--crema);
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 80;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 820px) {
  .studio-grid { grid-template-columns: 1fr; }
  .bag-stage { position: static; }
}

/* ===========================================================
   Lead capture — studio contact block + wizard send status
   =========================================================== */
.lead-block {
  margin-top: 1.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.lead-block-head {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bean);
  margin: 0 0 1rem;
}
.lead-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.lead-fields .field { margin-bottom: 0; }
@media (max-width: 480px) {
  .lead-fields { grid-template-columns: 1fr; }
}

.lead-status {
  margin-top: 1.4rem;
  font-size: 0.96rem;
  font-weight: 600;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.lead-status:empty { display: none; }
.lead-status.sending { color: var(--muted); background: rgba(42, 29, 20, 0.04); }
.lead-status.ok {
  color: var(--caramel-deep);
  background: rgba(196, 130, 44, 0.12);
  border-color: rgba(196, 130, 44, 0.4);
}
.lead-status.warn {
  color: #b23b2e;
  background: rgba(178, 59, 46, 0.08);
  border-color: rgba(178, 59, 46, 0.3);
}

/* ===========================================================
   Homepage — hero CTA, process, paths, voices, brand wall
   =========================================================== */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}
.btn-ghost.on-dark {
  border-color: rgba(231, 211, 175, 0.45);
  color: var(--crema);
}
.btn-ghost.on-dark:hover {
  border-color: var(--crema);
  background: rgba(231, 211, 175, 0.12);
  color: var(--paper);
}
.builder-hero .inner em { font-style: italic; color: var(--crema); }

/* shared section heading */
.section-head {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 2.6rem;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  text-transform: uppercase;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0.9rem 0 0;
}

/* ---- the two lines ---- */
.lines { padding: 4.4rem 0 0.5rem; }
.lines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.line-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--caramel);
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem 2rem;
  box-shadow: var(--shadow);
}
.line-tag {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--caramel-deep);
  margin: 0;
}
.line-card h3 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0.5rem 0 0.7rem;
}
.line-lede {
  margin: 0 0 1.2rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}
.line-list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.line-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--muted);
}
.line-list li strong { color: var(--ink); }
.line-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--caramel);
  font-weight: 700;
}
.line-price {
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  color: var(--bean);
}
.line-price strong {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.line-card .btn { margin-top: auto; align-self: flex-start; }

.lines-bridge {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.6rem;
  padding: 1.6rem 1.9rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--bean), var(--espresso));
  box-shadow: var(--shadow);
}
.lines-bridge .bridge-ico {
  font-size: 2rem;
  color: var(--caramel);
  line-height: 1;
  flex: none;
}
.lines-bridge p {
  margin: 0;
  color: rgba(243, 233, 218, 0.86);
  font-size: 1rem;
  line-height: 1.55;
}
.lines-bridge strong { color: var(--paper); }
@media (max-width: 760px) {
  .lines-grid { grid-template-columns: 1fr; }
  .lines-bridge { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
}

/* ---- roastery tiers ---- */
.tiers { padding: 4.4rem 0 3.4rem; }
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
.tier {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow);
  position: relative;
}
.tier.featured {
  border-color: var(--caramel);
  box-shadow: inset 0 0 0 1px var(--caramel), 0 28px 56px -28px rgba(163, 97, 26, 0.6);
  transform: translateY(-6px);
}
.tier-flag {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--caramel);
  color: #2a1808;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tier-name {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--caramel-deep);
  margin: 0;
}
.tier-price {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  line-height: 1;
  margin: 0.5rem 0 0.2rem;
  color: var(--ink);
}
.tier-sub {
  margin: 0 0 1.3rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.tier-list {
  list-style: none;
  margin: 0 0 1.7rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.tier-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
}
.tier-list li:last-child { border-bottom: none; }
.tier-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--caramel);
  font-weight: 700;
}
.tier .btn { margin-top: auto; width: 100%; text-align: center; }
.tier-note {
  text-align: center;
  max-width: 60ch;
  margin: 2.4rem auto 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}
.tier-note strong { color: var(--bean); }
@media (max-width: 820px) {
  .tier-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .tier.featured { transform: none; }
  .tier-flag { top: -0.7rem; }
}

/* ---- the recurring engine ---- */
.engine { padding: 3.8rem 0; }
.engine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.engine-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow);
}
.engine-card.primary {
  background: linear-gradient(165deg, var(--bean), var(--espresso));
  border-color: transparent;
}
.engine-card.primary h3 { color: var(--paper); }
.engine-card.primary p { color: rgba(243, 233, 218, 0.82); }
.engine-ico { line-height: 1; margin-bottom: 0.9rem; color: var(--caramel); }
.engine-ico svg { width: 2.6rem; height: 2.6rem; display: block; }
.engine-card h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}
.engine-card p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
@media (max-width: 820px) { .engine-grid { grid-template-columns: 1fr; } }

/* ---- process steps ---- */
.process { padding: 4.4rem 0 3.6rem; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}
/* connecting arrows between steps on wide screens */
.step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.85rem;
  top: 2.4rem;
  color: var(--caramel);
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 2;
}
.step-num {
  font-family: "Anton", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--caramel);
}
.step-ico { line-height: 1; margin: 0.7rem 0 0.8rem; color: var(--caramel); }
.step-ico svg { width: 2.4rem; height: 2.4rem; display: block; }
.step h3 {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  letter-spacing: 0.01em;
}
.step p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.process-cta, .wall-cta { text-align: center; margin-top: 2.8rem; }

@media (max-width: 920px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---- pick a path ---- */
.paths { padding: 3.6rem 0; }
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.path-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(165deg, var(--bean), var(--espresso));
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.path-card * { color: var(--paper); }
.path-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(31,21,15,0.7); }
.path-ico { font-size: 2rem; margin-bottom: 0.8rem; }
.path-card h3 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.6rem; }
.path-card p { font-size: 0.94rem; line-height: 1.55; color: rgba(243, 233, 218, 0.82) !important; margin: 0 0 1.2rem; }
.path-link { font-weight: 700; font-size: 0.92rem; color: var(--caramel) !important; }
@media (max-width: 760px) { .path-grid { grid-template-columns: 1fr; } }

/* ---- founder voices ---- */
.voices { padding: 3.8rem 0; }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.quote {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--caramel);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow);
}
.quote blockquote {
  margin: 0 0 1.1rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink);
}
.quote figcaption { display: flex; flex-direction: column; gap: 0.15rem; }
.quote figcaption strong { font-size: 0.98rem; }
.quote figcaption span { font-size: 0.84rem; color: var(--muted); }
@media (max-width: 760px) { .quote-grid { grid-template-columns: 1fr; } }

/* ---- the brand shelf — illustrated product gallery ---- */
.wall { padding: 5rem 0 5.5rem; }
.wall .section-head { margin-bottom: 3rem; }
.wall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
}

/* each tile is a refined product stage the bag stands on */
.brandbag {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.1rem 1rem 1.5rem;
  border-radius: 18px;
  background:
    radial-gradient(120% 78% at 50% 0%, rgba(255, 255, 255, 0.72), rgba(251, 246, 238, 0) 70%),
    linear-gradient(180deg, #fdfaf4, #f0e6d4);
  border: 1px solid rgba(42, 29, 20, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 18px 42px -34px rgba(31, 21, 15, 0.5);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}
.brandbag:hover {
  transform: translateY(-8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 34px 56px -30px rgba(31, 21, 15, 0.55);
}

/* the bag itself: a standing pouch carrying its printed artwork */
.bag-face {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px 8px 14px 14px;
  overflow: hidden;
  box-shadow:
    0 24px 30px -20px rgba(31, 21, 15, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.bag-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* a sheen + the crimped top seam, to keep it reading as a real pouch */
.bag-face::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 12%;
  right: 12%;
  height: 8px;
  border-radius: 3px;
  background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.22) 0 2px, rgba(255, 255, 255, 0.18) 2px 4px);
  opacity: 0.55;
}
.bag-face::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}

/* printed label band near the foot of the bag */
.bag-print {
  position: absolute;
  z-index: 3;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.6rem 0.7rem 0.65rem;
  border-radius: 8px;
  background: var(--label-bg, rgba(20, 12, 8, 0.55));
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: var(--label-ink, #fff);
  box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.brandbag-name {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  line-height: 0.98;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  word-break: break-word;
}
.brandbag-origin {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--label-sub, currentColor);
}
.brandbag-roast {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.3rem;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label-sub, currentColor);
}
.brandbag-roast i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--foil, currentColor);
}
.brandbag-roast i.on { background: var(--foil, currentColor); }
.brandbag-roast i:last-of-type { margin-right: 0.3rem; }

/* the shelf caption beneath the bag */
.brandbag figcaption {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  text-align: center;
}
.bag-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.bag-fmt {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.wall-cta p {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  margin: 0 0 1.1rem;
}
@media (max-width: 860px) { .wall-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .wall-grid { grid-template-columns: 1fr; } }


/* ---- closing band + footer ---- */
.closer {
  background: linear-gradient(165deg, var(--bean), var(--espresso));
  padding: 4.4rem 0;
  text-align: center;
}
.closer-inner { max-width: 56ch; margin: 0 auto; }
.closer h2 {
  color: var(--paper);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  text-transform: uppercase;
}
.closer p { color: rgba(243, 233, 218, 0.82); font-size: 1.05rem; margin: 1rem 0 0; }
.closer .hero-cta { justify-content: center; }

.foot {
  background: var(--espresso);
  border-top: 1px solid rgba(231, 211, 175, 0.14);
  padding: 1.8rem 0;
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot .brand { font-size: 1.1rem; }
.foot-note { color: var(--crema); font-size: 0.85rem; letter-spacing: 0.04em; }

/* ===========================================================
   Label Studio — share & download block
   =========================================================== */
.share-block {
  margin-top: 1.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.share-intro {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.wall-optin {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.45;
  cursor: pointer;
}
.wall-optin input {
  width: auto;
  margin-top: 0.18rem;
  accent-color: var(--caramel);
  flex: none;
}
.share-out {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(196, 130, 44, 0.4);
  background: rgba(196, 130, 44, 0.08);
  border-radius: 12px;
}
.share-out label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caramel-deep);
  margin-bottom: 0.5rem;
}
.share-row {
  display: flex;
  gap: 0.6rem;
}
.share-row input {
  flex: 1;
  font-size: 0.86rem;
  background: #fff;
}
.share-row .btn { flex: none; padding: 0.6rem 1.1rem; }

/* ===========================================================
   Shared concept viewer (concept.html)
   =========================================================== */
.concept-page { padding: 2.6rem 0 5rem; }
.concept-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
  margin-top: 1.4rem;
}
.concept-side .eyebrow { color: var(--caramel); margin-top: 0; }
.concept-side h1 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.02;
}
.concept-lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0.9rem 0 1.6rem;
}
.concept-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.concept-note { font-size: 0.92rem; color: var(--muted); }
.concept-note a { color: var(--caramel-deep); font-weight: 600; }
.concept-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}
.concept-state h1 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.8rem;
}
.concept-state .btn { margin-top: 1.2rem; }
@media (max-width: 820px) {
  .concept-grid { grid-template-columns: 1fr; }
  .concept-page .bag-stage { position: static; }
}

/* ===========================================================
   Profit & break-even calculator (calculator.html)
   =========================================================== */
.calc { padding: 3rem 0 4rem; }
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.4rem;
  align-items: start;
}
.calc-controls .field { margin-bottom: 1.7rem; }
.calc-controls .field:last-child { margin-bottom: 0; }
.rng-out {
  float: right;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  color: var(--caramel-deep);
  text-transform: none;
}
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  outline: none;
  margin-top: 0.4rem;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--caramel);
  border: 3px solid var(--paper);
  box-shadow: 0 3px 10px -3px rgba(163, 97, 26, 0.9);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--caramel);
  border: 3px solid var(--paper);
  cursor: pointer;
}
.calc-results {
  background: linear-gradient(165deg, var(--bean), var(--espresso));
  border-color: transparent;
  color: var(--paper);
}
.calc-tier-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--crema);
  margin: 0 0 1rem;
}
.calc-headline {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.calc-headline-num {
  font-family: "Anton", sans-serif;
  font-size: clamp(2.6rem, 8vw, 4rem);
  line-height: 0.95;
  color: var(--paper);
}
.calc-headline-num.neg { color: #ff9d8a; }
.calc-headline-cap {
  font-size: 0.84rem;
  line-height: 1.35;
  color: rgba(231, 211, 175, 0.82);
}
.calc-breakeven {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(231, 211, 175, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.calc-breakeven.good { border-color: rgba(196, 130, 44, 0.6); background: rgba(196, 130, 44, 0.16); }
.calc-breakeven.bad { border-color: rgba(255, 157, 138, 0.5); background: rgba(178, 59, 46, 0.18); }
.be-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crema);
}
.be-value {
  font-family: "Anton", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.calc-rows {
  border-top: 1px solid rgba(231, 211, 175, 0.18);
  margin-top: 0.4rem;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(231, 211, 175, 0.14);
  font-size: 0.96rem;
  color: rgba(243, 233, 218, 0.85);
}
.calc-row strong { color: var(--paper); font-weight: 700; }
.calc-row.total {
  border-bottom: none;
  margin-top: 0.3rem;
  padding-top: 0.9rem;
  font-size: 1.05rem;
}
.calc-row.total span { font-weight: 700; color: var(--paper); }
.calc-row.total strong { font-family: "Anton", sans-serif; font-weight: 400; font-size: 1.3rem; }
.calc-row.total strong.neg { color: #ff9d8a; }
.calc-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.calc-cta .btn-ghost { border-color: rgba(231, 211, 175, 0.4); color: var(--crema); }
.calc-cta .btn-ghost:hover { border-color: var(--crema); background: rgba(231, 211, 175, 0.12); color: var(--paper); }
.calc-disclaimer {
  margin: 1.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(231, 211, 175, 0.6);
}
@media (max-width: 820px) {
  .calc-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   Book a consultation (book.html)
   =========================================================== */
.day-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 0.6rem;
}
.day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.7rem 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.day-pill:hover { transform: translateY(-2px); border-color: var(--caramel); }
.day-pill.selected {
  border-color: var(--caramel);
  background: linear-gradient(180deg, #fff, #fdf4e6);
  box-shadow: inset 0 0 0 1px var(--caramel);
}
.dp-dow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--caramel-deep); }
.dp-day { font-family: "Anton", sans-serif; font-size: 1.5rem; line-height: 1; color: var(--ink); }
.dp-mon { font-size: 0.72rem; color: var(--muted); }
.tz-note { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 0.78rem; }
.pill.is-taken {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}
.pill.is-taken:hover { transform: none; border-color: var(--line-strong); }
.builder .lead-fields { margin-bottom: 1.7rem; }

/* ===========================================================
   Community wall + admin moderation
   =========================================================== */
.community-wall { padding-top: 1rem; }
.community-bag { cursor: default; }
a.community-bag { text-decoration: none; cursor: pointer; }
.community-bag .bag-face { background: linear-gradient(160deg, #2c1d14, #170f0a); }

.admin-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}
.admin-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.admin-card .brandbag {
  padding: 1rem 0.6rem 0.4rem;
  background: linear-gradient(180deg, #fdfaf4, #f0e6d4);
}
.admin-meta { margin: 0.9rem 0 0.8rem; }
.admin-name { font-weight: 700; font-size: 1.05rem; margin: 0; }
.admin-sub { font-size: 0.85rem; color: var(--muted); margin: 0.15rem 0 0; }
.admin-when { font-size: 0.74rem; color: var(--muted); margin: 0.3rem 0 0; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}
.admin-actions .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
code {
  background: rgba(42, 29, 20, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  font-size: 0.86em;
}

/* ===========================================================
   White-label homepage — value cards, farm, coffee, bags & sizes
   Added for the white-label-only relaunch.
   =========================================================== */

/* ---- value cards (one product, done well) ---- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.6rem;
}
.value-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow);
}
.value-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--caramel-deep);
  background: rgba(196, 130, 44, 0.12);
  margin-bottom: 1rem;
}
.value-ico svg { width: 24px; height: 24px; }
.value-card h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.value-card p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

/* ---- the farm ---- */
.farm { padding: 4.4rem 0 0.5rem; }
.farm-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: center;
  margin-top: 2.4rem;
}
.farm-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.farm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.farm-lede {
  font-family: "Anton", sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.2;
  color: var(--bean);
  margin: 0 0 1.3rem;
}
.farm-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.9rem; }
.farm-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}
.farm-list li::before {
  content: "●";
  position: absolute; left: 0; top: 0.05rem;
  color: var(--caramel);
  font-size: 0.7rem;
}
.farm-list strong { color: var(--ink); }

/* ---- our coffee (origin cards) ---- */
.coffee { padding: 4.4rem 0 0.5rem; }
.coffee-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  margin-top: 2.4rem;
}
.origin-card {
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  display: flex;
  flex-direction: column;
}
.origin-card.flagship {
  background: linear-gradient(165deg, var(--bean), var(--espresso));
  color: var(--cream);
  box-shadow: var(--shadow);
}
.origin-card.soon {
  background: var(--paper);
  border: 1px solid var(--line);
}
.origin-flag {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--caramel);
  margin: 0 0 0.7rem;
}
.origin-flag.muted { color: var(--muted); }
.origin-card h3 { font-size: 1.7rem; margin: 0 0 0.4rem; }
.origin-where { font-size: 0.9rem; margin: 0 0 0.9rem; opacity: 0.85; }
.origin-card.soon .origin-where { color: var(--muted); opacity: 1; }
.origin-notes { font-size: 0.96rem; line-height: 1.55; margin: 0 0 1.3rem; }
.origin-card.soon .origin-notes { color: var(--muted); }
.origin-roasts {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1.5rem;
  color: var(--crema);
}
.roast-scale { display: inline-flex; gap: 4px; }
.roast-scale i {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(180deg, #e7c79a, #6f4a23);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}
.roast-ends { color: var(--crema); }
.soon-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.5rem; }
.soon-list li { padding-left: 1.3rem; position: relative; color: var(--muted); font-size: 0.92rem; }
.soon-list li::before { content: "→"; position: absolute; left: 0; color: var(--caramel-deep); }
.origin-card .btn { margin-top: auto; align-self: flex-start; }

/* ---- bags & sizes ---- */
.bags { padding: 4.4rem 0 0.5rem; }
.bagtype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 2.4rem;
}
.bagtype {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.7rem 1.4rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.bagtype:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* product-style "photo" frame the pouch mockup sits in */
.bagtype-photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 220px;
  padding: 1.5rem 1rem 0;
  margin-bottom: 1.1rem;
  border-radius: 10px;
  background:
    radial-gradient(120% 80% at 50% 12%, #ffffff 0%, #f4ece0 70%, #efe5d6 100%);
  box-shadow: inset 0 0 0 1px rgba(42,29,20,0.06);
  overflow: hidden;
}
.bagtype h3 { font-size: 1.1rem; margin: 0 0 0.4rem; padding: 0 0.8rem; }
.bagtype p { margin: 0; padding: 0 0.8rem; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* "Custom" badge, top-left of the photo frame */
.bagtype-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--caramel-deep);
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--caramel);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  backdrop-filter: blur(2px);
}

/* ---- realistic stand-up coffee pouch mockup ---- */
.pouch {
  position: relative;
  width: 124px;
  height: 168px;
  border-radius: 4px 4px 7px 7px;
  clip-path: polygon(0 9%, 11% 0, 89% 0, 100% 9%, 100% 100%, 0 100%);
  filter: drop-shadow(0 16px 18px rgba(31,21,15,0.22));
  background: linear-gradient(160deg, #c79a64, #a9753f);
}
/* soft body curvature + side seams */
.pouch::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.16) 0, rgba(0,0,0,0.04) 7%,
      rgba(255,255,255,0.14) 26%, rgba(255,255,255,0.02) 50%,
      rgba(0,0,0,0.05) 74%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}
/* top fin seal */
.pouch::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 15%;
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.16) 0 3px, rgba(255,255,255,0.10) 3px 6px),
    rgba(0,0,0,0.10);
  border-bottom: 1px solid rgba(0,0,0,0.12);
  pointer-events: none;
}
/* one-way degassing valve */
.pouch-valve {
  position: absolute;
  top: 30%; left: 50%;
  width: 20px; height: 20px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,0.4), rgba(0,0,0,0.28));
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.16);
  z-index: 2;
}
.pouch-valve::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.32);
}

/* materials */
.pouch.kraft { background: linear-gradient(160deg, #c79a64, #a9753f); }
.pouch.matte-black { background: linear-gradient(160deg, #2c2722, #14110d); }
.pouch.matte-white { background: linear-gradient(160deg, #fbf8f2, #e7ddcd); }
.pouch.matte-white::before {
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.10) 0, rgba(0,0,0,0.02) 8%,
      rgba(255,255,255,0.5) 28%, rgba(255,255,255,0.05) 52%,
      rgba(0,0,0,0.03) 74%, rgba(0,0,0,0.10) 100%);
}
.pouch.eco { background: linear-gradient(160deg, #b7b083, #8a8a5a); }

/* clear window — translucent panel showing the beans */
.pouch.window { background: linear-gradient(160deg, #c79a64, #a9753f); }
.pouch-window {
  position: absolute;
  top: 38%; left: 50%;
  transform: translateX(-50%);
  width: 42%; height: 46%;
  border-radius: 6px;
  background:
    linear-gradient(160deg, #3a2a1c, #20160e),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.45),
    inset 0 6px 12px rgba(0,0,0,0.5);
  z-index: 1;
}

/* finishes — metallic foil sheen */
.pouch.finishes { background: linear-gradient(160deg, #caa15f, #9a6a2c); }
.pouch.finishes::before {
  background:
    linear-gradient(115deg,
      rgba(255,255,255,0.05) 28%, rgba(255,255,255,0.6) 47%,
      rgba(255,255,255,0.05) 60%),
    linear-gradient(90deg, rgba(0,0,0,0.14) 0, rgba(255,255,255,0.1) 50%, rgba(0,0,0,0.16) 100%);
}

.sizes {
  margin-top: 2.4rem;
  background: linear-gradient(165deg, var(--bean), var(--espresso));
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  color: var(--cream);
  box-shadow: var(--shadow);
}
.sizes-head { text-align: center; margin-bottom: 1.8rem; }
.sizes-head h3 { font-size: 1.5rem; margin: 0 0 0.4rem; color: var(--paper); }
.sizes-head p { margin: 0; color: var(--crema); font-size: 0.95rem; }
.size-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 1.6rem;
}
.size {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}
.size strong { font-size: 1.15rem; color: var(--paper); }
.size-oz { font-size: 0.76rem; color: var(--crema); max-width: 9ch; }
.size-bag {
  width: 46px;
  border-radius: 6px 6px 5px 5px;
  background: linear-gradient(160deg, #c79a64, #9a6a32);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.25), 0 8px 18px -10px rgba(0,0,0,0.6);
  position: relative;
}
.size-bag::before {
  content: "";
  position: absolute; left: 18%; right: 18%; top: -6px;
  height: 6px;
  background: #8a5e2c;
  border-radius: 3px 3px 0 0;
}
.size-bag.s1 { height: 58px; }
.size-bag.s2 { height: 74px; }
.size-bag.s3 { height: 88px; width: 52px; }
.size-bag.s4 { height: 104px; width: 58px; }
.size-bag.s5 { height: 124px; width: 66px; }
.sizes-note { text-align: center; color: var(--crema); font-size: 0.9rem; margin: 1.6rem 0 0; }
.bags-cta { text-align: center; margin-top: 2.6rem; }

/* ---- who it's for ---- */
.audiences { padding: 4.4rem 0 0.5rem; }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.6rem;
}
.audience-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow);
}
.audience-card--wild {
  background: linear-gradient(165deg, rgba(196, 130, 44, 0.1), rgba(196, 130, 44, 0.03));
  border-color: rgba(196, 130, 44, 0.35);
}
.audience-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--caramel-deep);
  background: rgba(196, 130, 44, 0.12);
  margin-bottom: 1rem;
}
.audience-ico svg { width: 24px; height: 24px; }
.audience-card h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.audience-card p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

/* ---- reading ---- */
.reading { padding: 4.4rem 0 0.5rem; }
.reading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.6rem;
}
.read-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.45rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.read-card:hover {
  transform: translateY(-3px);
  border-color: var(--caramel);
  box-shadow: inset 0 0 0 1px var(--caramel), 0 14px 30px -22px rgba(163, 97, 26, 0.8);
}
.read-card:focus-visible {
  outline: none;
  border-color: var(--caramel);
  box-shadow: inset 0 0 0 1px var(--caramel);
}
.read-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--caramel-deep);
  background: rgba(196, 130, 44, 0.12);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}
.read-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 600;
}
.read-src {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}
.read-arrow { color: var(--caramel); transition: transform 0.18s ease; }
.read-card:hover .read-arrow { transform: translateX(3px); }
.reading-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 1.8rem 0 0;
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .value-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .reading-grid { grid-template-columns: 1fr 1fr; }
  .farm-split { grid-template-columns: 1fr; }
  .coffee-grid { grid-template-columns: 1fr; }
  .bagtype-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bagtype-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .reading-grid { grid-template-columns: 1fr; }
  .size-row { gap: 1rem 1.2rem; }
}
