/* ============================================================
   First Pull — "Home espresso, minus the confusion."
   Original stylesheet. Warm coffee palette, no frameworks.
   Palette:
     --espresso  deep espresso brown (ink / header)
     --cream     warm cream background
     --paper     card/paper surface
     --caramel   primary accent (buttons, links)
     --latte     soft tan borders
     --mocha     secondary brown text
   ============================================================ */

:root {
  --espresso: #2a1a10;
  --espresso-deep: #1d110a;
  --mocha: #5c4632;
  --cream: #faf5ec;
  --paper: #fffdf8;
  --latte: #e8dcc8;
  --caramel: #b45f22;
  --caramel-dark: #934a16;
  --caramel-light: #f3e3cd;
  --gold: #d9a441;
  --green: #3f7a3a;
  --green-dark: #2f5c2c;
  --red: #b3402e;
  --ink: #2f2116;
  --muted: #7a6652;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(42, 26, 16, 0.08);
  --max-width: 1080px;
  --font-sans: "Inter", "Avenir Next", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

main h1, main h2 { font-family: var(--font-display); letter-spacing: -0.01em; }

a { color: var(--caramel-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--caramel); }

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

/* ---------------- Header ---------------- */
.site-header {
  background: var(--espresso);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--gold); }
.brand-mark { width: 2rem; height: 2rem; flex: none; }
.brand-word { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; }

.main-nav { display: flex; gap: 0.25rem; }
.main-nav a {
  color: #f0e6d4;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.search-link {
  color: #f0e6d4;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.search-link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--cream);
  font-size: 1.4rem;
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
}

/* ---------------- Breadcrumb ---------------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 1.1rem 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------------- Article typography ---------------- */
article { max-width: 760px; margin: 0 auto; padding-bottom: 2rem; }
article h1 {
  font-size: 2.3rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 0.4rem;
  color: var(--espresso);
}
article h2 {
  font-size: 1.55rem;
  margin: 2.2rem 0 0.7rem;
  color: var(--espresso);
  letter-spacing: -0.01em;
}
article h3 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; color: var(--espresso); }
article p { margin: 0 0 1.1rem; }
article ul, article ol { margin: 0 0 1.2rem; padding-left: 1.5rem; }
article li { margin-bottom: 0.45rem; }
article blockquote {
  border-left: 4px solid var(--caramel);
  background: var(--paper);
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
article figure { margin: 1.5rem 0; }
article figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 0.4rem; }

.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2rem; }

.lede { font-size: 1.2rem; color: var(--mocha); }

/* ---------------- Buttons ---------------- */
.btn, .btn-affiliate, .btn-secondary {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}
.btn {
  background: var(--caramel);
  color: #fff;
  box-shadow: 0 3px 0 var(--caramel-dark);
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 4px 0 var(--caramel-dark); }

.btn-affiliate {
  background: var(--green);
  color: #fff;
  box-shadow: 0 3px 0 var(--green-dark);
}
.btn-affiliate:hover { color: #fff; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--espresso);
  border-color: var(--espresso);
}
.btn-secondary:hover { background: var(--espresso); color: var(--cream); }

/* ---------------- Cards & grids ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--latte);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.card h3 { margin: 0; font-size: 1.15rem; }
.card h3 a { text-decoration: none; color: var(--espresso); }
.card h3 a:hover { color: var(--caramel-dark); }
.card p { margin: 0; font-size: 0.95rem; color: var(--mocha); flex: 1; }
.card .card-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--caramel-light);
  color: var(--caramel-dark);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}
.card .card-cta { font-weight: 700; }

/* ---------------- Hero ---------------- */
.hero {
  background:
    linear-gradient(100deg, rgba(29, 17, 10, 0.94) 0%, rgba(29, 17, 10, 0.72) 52%, rgba(29, 17, 10, 0.25) 100%),
    url("/assets/img/hero-espresso.jpg") center 65% / cover no-repeat;
  color: var(--cream);
  border-radius: 0 0 24px 24px;
  padding: 4.5rem 0 4rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 1; }
.hero h1 { font-family: var(--font-display); font-size: 3rem; line-height: 1.05; margin: 0 0 0.8rem; letter-spacing: -0.01em; color: #fff; font-weight: 700; }
.hero .hero-sub { font-size: 1.2rem; color: #efdfc6; max-width: 34rem; margin-bottom: 1.6rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------------- Tables ---------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--latte); }
th { background: var(--espresso); color: var(--cream); font-weight: 700; }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: #faf3e7; }
.table-scroll { overflow-x: auto; }

/* ---------------- Ad slots (placeholders) ---------------- */
.ad-slot {
  border: 2px dashed #c9b797;
  background: repeating-linear-gradient(45deg, #f6efe1, #f6efe1 12px, #fbf7ee 12px, #fbf7ee 24px);
  border-radius: var(--radius);
  text-align: center;
  color: #a08b6c;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 1.6rem 1rem;
  margin: 2rem auto;
  max-width: 760px;
}
.ad-slot span { display: inline-block; }

/* ---------------- Disclosure box ---------------- */
.disclosure-box {
  background: #fff8e8;
  border: 1px solid var(--gold);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
  font-size: 0.92rem;
  color: var(--mocha);
}
.disclosure-box strong { color: var(--espresso); }

/* ---------------- Author / related / newsletter / share ---------------- */
.author-box {
  background: var(--paper);
  border: 1px solid var(--latte);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2.5rem 0 1rem;
  box-shadow: var(--shadow);
}
.author-box h2 { font-size: 1.2rem; margin: 0 0 0.5rem; color: var(--espresso); }
.author-box p { margin: 0; font-size: 0.95rem; color: var(--mocha); }

.related { margin: 2rem 0; }
.related h2 { font-size: 1.3rem; color: var(--espresso); }
.related ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.related li a {
  display: block;
  background: var(--paper);
  border: 1px solid var(--latte);
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--espresso);
}
.related li a:hover { border-color: var(--caramel); color: var(--caramel-dark); }

.newsletter {
  background: var(--espresso);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.newsletter h2 { color: #fff; margin: 0 0 0.4rem; font-size: 1.5rem; }
.newsletter p { color: #e9dcc3; margin: 0 0 1.2rem; }
.newsletter-form { display: flex; gap: 0.6rem; max-width: 420px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
}
.newsletter-form input::placeholder { color: #c9b894; }
.newsletter-form button {
  background: var(--caramel);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}
.newsletter-form button:hover { background: var(--caramel-dark); }
.form-note { font-size: 0.8rem !important; color: #bfae8f !important; margin: 0.8rem 0 0 !important; }
.form-success { color: var(--gold); font-weight: 700; }

.share { display: flex; align-items: center; gap: 0.6rem; margin: 2rem 0 1rem; flex-wrap: wrap; }
.share span { font-weight: 700; color: var(--mocha); }
.share button {
  background: var(--paper);
  border: 1px solid var(--latte);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--espresso);
}
.share button:hover { border-color: var(--caramel); color: var(--caramel-dark); }

/* ---------------- Forms (contact etc.) ---------------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--latte);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; color: var(--espresso); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--latte);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--caramel);
  border-color: var(--caramel);
}

/* ---------------- Tool pages ---------------- */
.tool-hero { text-align: center; margin-bottom: 1.5rem; }
.tool-hero .tool-icon { display: inline-flex; width: 2.8rem; height: 2.8rem; color: var(--caramel); }
.tool-hero .tool-icon svg { width: 100%; height: 100%; }

.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.quiz-progress { height: 8px; background: var(--latte); border-radius: 999px; margin: 1rem 0 1.5rem; overflow: hidden; }
.quiz-progress-bar { height: 100%; background: var(--caramel); width: 0; transition: width 0.3s ease; }

.quiz-options { display: grid; gap: 0.7rem; margin: 1.2rem 0; }
.quiz-option {
  background: var(--paper);
  border: 2px solid var(--latte);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  width: 100%;
}
.quiz-option:hover { border-color: var(--caramel); }
.quiz-option .opt-sub { display: block; font-size: 0.88rem; color: var(--muted); font-weight: 400; }

.quiz-nav { display: flex; justify-content: space-between; margin-top: 1rem; }

.result-card {
  background: var(--paper);
  border: 2px solid var(--caramel);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: var(--shadow);
}
.result-card.winner { border-width: 3px; background: #fffaf0; }
.result-card h3 { margin: 0 0 0.3rem; font-size: 1.3rem; color: var(--espresso); }
.result-card .result-rank {
  display: inline-block;
  background: var(--caramel);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  margin-bottom: 0.6rem;
}
.result-card .result-price { font-weight: 800; color: var(--caramel-dark); font-size: 1.1rem; }
.result-card ul { margin: 0.6rem 0 0; }
.result-card .why { font-size: 0.95rem; color: var(--mocha); }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
.calc-panel {
  background: var(--paper);
  border: 1px solid var(--latte);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.calc-panel h2 { font-size: 1.2rem; margin-top: 0; }
.calc-results .result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--latte);
}
.calc-results .result-row:last-child { border-bottom: none; }
.result-value { font-weight: 800; font-size: 1.35rem; color: var(--caramel-dark); }
.result-label { color: var(--mocha); font-size: 0.95rem; }

.bar-viz { margin: 1.5rem 0; }
.bar-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.bar-label { width: 7rem; font-size: 0.9rem; font-weight: 600; color: var(--mocha); flex-shrink: 0; }
.bar-track { flex: 1; background: var(--latte); border-radius: 999px; height: 26px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transition: width 0.5s ease; display: flex; align-items: center; justify-content: flex-end; padding-right: 0.6rem; font-size: 0.8rem; font-weight: 700; color: #fff; white-space: nowrap; }
.bar-fill.cafe { background: var(--red); }
.bar-fill.home { background: var(--green); }
.bar-amount { width: 5.5rem; text-align: right; font-weight: 700; flex-shrink: 0; }

/* Troubleshooter */
.symptom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.8rem; margin: 1.2rem 0 2rem; }
.symptom-btn {
  background: var(--paper);
  border: 2px solid var(--latte);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--espresso);
}
.symptom-btn:hover, .symptom-btn.selected { border-color: var(--caramel); background: #fffaf0; }
.symptom-btn .symptom-icon { font-size: 1.6rem; display: block; margin-bottom: 0.3rem; }
.diagnosis { display: none; }
.diagnosis.show { display: block; animation: fadeIn 0.25s ease; }
.fix-steps { counter-reset: step; list-style: none; padding: 0; }
.fix-steps li {
  counter-increment: step;
  position: relative;
  padding: 0.9rem 1rem 0.9rem 3.2rem;
  background: var(--paper);
  border: 1px solid var(--latte);
  border-radius: 10px;
  margin-bottom: 0.7rem;
}
.fix-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 0.85rem;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--caramel);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

/* Cost builder */
.builder-group { margin: 1.8rem 0; }
.builder-group > h3 { font-size: 1.15rem; color: var(--espresso); border-bottom: 2px solid var(--latte); padding-bottom: 0.4rem; }
.builder-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--latte);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
}
.builder-item:hover { border-color: var(--caramel); }
.builder-item input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--caramel); flex-shrink: 0; }
.builder-item .item-name { font-weight: 700; color: var(--espresso); }
.builder-item .item-desc { font-size: 0.9rem; color: var(--mocha); display: block; }
.builder-item .item-price { margin-left: auto; font-weight: 800; color: var(--caramel-dark); white-space: nowrap; }

.builder-total {
  position: sticky;
  bottom: 0;
  background: var(--espresso);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.2);
}
.builder-total .total-label { font-size: 0.9rem; color: #d9c6a8; }
.builder-total .total-amount { font-size: 2rem; font-weight: 800; color: #fff; }
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-under500 { background: var(--green); color: #fff; }
.badge-under1000 { background: var(--gold); color: var(--espresso); }
.badge-over { background: #6b5d4d; color: #fff; }
.badge.locked { opacity: 0.35; }

/* ---------------- Search ---------------- */
.search-box { margin: 1.5rem 0; }
.search-box input {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  border: 2px solid var(--latte);
  border-radius: var(--radius);
  font-family: inherit;
}
.search-box input:focus { outline: none; border-color: var(--caramel); }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.search-results li a {
  display: block;
  background: var(--paper);
  border: 1px solid var(--latte);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  text-decoration: none;
}
.search-results li a:hover { border-color: var(--caramel); }
.search-results .sr-title { font-weight: 700; color: var(--espresso); font-size: 1.05rem; }
.search-results .sr-desc { font-size: 0.92rem; color: var(--mocha); margin-top: 0.25rem; }
.search-results .sr-url { font-size: 0.8rem; color: var(--caramel-dark); margin-top: 0.25rem; }

/* ---------------- FAQ ---------------- */
.faq { margin: 2rem 0; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--latte);
  border-radius: 10px;
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--espresso);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+ "; color: var(--caramel); font-weight: 800; }
.faq-item[open] summary::before { content: "– "; }
.faq-item .faq-answer { padding: 0 1.2rem 1.1rem; color: var(--mocha); font-size: 0.96rem; }

/* ---------------- Sections (homepage) ---------------- */
.section { margin: 3rem 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 1.5rem; }
.section-head h2 { font-size: 1.9rem; color: var(--espresso); margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.section-head p { color: var(--mocha); margin: 0; }

.trust-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.trust-item { background: var(--paper); border: 1px solid var(--latte); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.trust-item .trust-icon { display: inline-flex; width: 2.2rem; height: 2.2rem; color: var(--caramel-dark); }
.trust-item .trust-icon svg { width: 100%; height: 100%; }
.trust-item h3 { margin: 0.4rem 0 0.3rem; font-size: 1.1rem; color: var(--espresso); }
.trust-item p { margin: 0; font-size: 0.94rem; color: var(--mocha); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--espresso-deep);
  color: #d9c6a8;
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin: 0 0 0.7rem; }
.site-footer a { color: #d9c6a8; text-decoration: none; display: block; margin-bottom: 0.4rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer p { font-size: 0.9rem; }
.footer-note { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.2rem; font-size: 0.82rem !important; color: #b39a76; }
.footer-note a { display: inline; color: var(--gold); }

/* ---------------- Responsive ---------------- */
@media (max-width: 820px) {
  body { font-size: 16px; }
  article h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.2rem; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--espresso-deep);
    flex-direction: column;
    padding: 0.8rem 1.25rem 1.2rem;
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.8rem 0.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .site-header { position: relative; }
  .search-link { display: none; }

  .calc-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .builder-total { position: static; }
  .bar-label { width: 5rem; font-size: 0.8rem; }
}

/* ---------------- Print ---------------- */
@media print {
  .site-header, .site-footer, .ad-slot, .share, .newsletter, .nav-toggle,
  .breadcrumb, .builder-total, .quiz-nav { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  article { max-width: none; }
  a { color: #000; text-decoration: none; }
  .card, .author-box, .result-card { box-shadow: none; break-inside: avoid; }
}

/* ---------------- Shop ---------------- */
.shop-hero {
  background: linear-gradient(120deg, #1d110a 0%, #3a2412 60%, #4a2f1c 100%);
  color: var(--cream);
  border-radius: 24px;
  padding: 3rem;
  margin: 1.5rem 0 3rem;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 15% 20%, rgba(217, 164, 65, 0.18), transparent 60%);
  pointer-events: none;
}
.product-shot { position: relative; z-index: 1; }
.product-shot img {
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: block;
  width: 100%;
}
.shop-info { position: relative; z-index: 1; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.8rem;
}
.shop-hero h1 { font-size: 2.9rem; color: #fff; margin: 0 0 0.6rem; line-height: 1.05; }
.shop-lede { font-size: 1.15rem; color: #efdfc6; margin: 0 0 1.4rem; }
.taste-chips { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 1.4rem; list-style: none; padding: 0; }
.taste-chips li {
  border: 1px solid rgba(217, 164, 65, 0.55);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.spec-badges { display: flex; gap: 1.2rem; flex-wrap: wrap; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.spec-badges li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.92rem; color: #f0e6d4; font-weight: 600; }
.spec-badges svg { width: 1.1rem; height: 1.1rem; color: var(--gold); flex: none; }
.price-line { display: flex; align-items: baseline; gap: 0.8rem; margin: 0 0 1.4rem; flex-wrap: wrap; }
.price-soon { font-family: var(--font-display); font-size: 1.6rem; color: #fff; }
.price-note { font-size: 0.9rem; color: #c9b894; }
.shop-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-light { background: transparent; color: var(--cream); border-color: rgba(250, 245, 236, 0.5); }
.btn-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: none; transform: translateY(-1px); }

.shop-section { margin-bottom: 3rem; }
.shop-section > h2 { font-size: 1.9rem; margin: 0 0 0.4rem; }
.shop-section > .section-sub { color: var(--mocha); margin: 0 0 1.6rem; max-width: 44rem; }

.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.note-card { background: var(--paper); border: 1px solid var(--latte); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); text-align: center; }
.note-card .note-icon { display: inline-flex; width: 2.6rem; height: 2.6rem; color: var(--caramel-dark); margin-bottom: 0.8rem; }
.note-card .note-icon svg { width: 100%; height: 100%; }
.note-card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.note-card p { margin: 0; color: var(--mocha); font-size: 0.95rem; }

.lifestyle-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  margin-bottom: 3rem;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: url("/assets/img/lifestyle.webp") center / cover no-repeat;
}
.lifestyle-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(29, 17, 10, 0.88) 0%, rgba(29, 17, 10, 0.4) 60%, rgba(29, 17, 10, 0.1) 100%);
}
.lifestyle-quote { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; padding: 4rem 1.25rem; width: 100%; }
.lifestyle-quote blockquote { font-family: var(--font-display); font-size: 1.9rem; color: #fff; max-width: 32rem; margin: 0 0 0.8rem; line-height: 1.3; }
.lifestyle-quote cite { color: var(--gold); font-style: normal; font-weight: 600; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step-card { background: var(--paper); border: 1px solid var(--latte); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.step-num { font-family: var(--font-display); font-size: 2.2rem; color: var(--caramel); font-weight: 700; display: block; margin-bottom: 0.5rem; }
.step-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.step-card p { margin: 0; color: var(--mocha); font-size: 0.95rem; }

.waitlist { background: linear-gradient(135deg, var(--espresso), #4a2f1c); color: var(--cream); border-radius: 24px; padding: 3rem 2rem; text-align: center; margin: 0 0 3rem; }
.waitlist h2 { color: #fff; margin-top: 0; }
.waitlist p { color: #efdfc6; max-width: 34rem; margin: 0 auto 1.4rem; }
.waitlist .newsletter-form { margin: 0 auto; }
.waitlist .form-note { color: #b39a76; font-size: 0.82rem; margin-top: 0.8rem; }

@media (max-width: 820px) {
  .shop-hero { grid-template-columns: 1fr; padding: 2rem 1.4rem; gap: 2rem; }
  .shop-hero h1 { font-size: 2.1rem; }
  .notes-grid, .steps-grid { grid-template-columns: 1fr; }
  .lifestyle-quote blockquote { font-size: 1.4rem; }
}

/* ---------------- Shop: cart, checkout (TEST MODE) ---------------- */
.test-banner {
  background: #fff8e8;
  border: 2px dashed var(--caramel);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--mocha);
}
.test-banner code {
  background: var(--espresso);
  color: var(--gold);
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-weight: 700;
}

.price-now { font-family: var(--font-display); font-size: 2.2rem; color: #fff; font-weight: 700; }

.purchase-options { display: grid; gap: 0.7rem; margin: 0 0 1rem; }
.purchase-option, .ship-option {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.purchase-option.is-selected, .ship-option.is-selected {
  border-color: var(--gold);
  background: rgba(217, 164, 65, 0.12);
}
.purchase-option input, .ship-option input { margin-top: 0.25rem; accent-color: var(--caramel); }
.po-text { display: flex; flex-direction: column; gap: 0.15rem; }
.po-text strong { color: #fff; font-size: 1rem; }
.po-text em { font-style: normal; color: #c9b894; font-size: 0.88rem; }

.freq-row { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.2rem 0.2rem; color: #efdfc6; font-size: 0.95rem; }
.freq-row select {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 0.95rem;
}
.freq-row select option { color: #1d110a; }

.qty-row { display: flex; gap: 1rem; align-items: stretch; flex-wrap: wrap; margin-bottom: 1.4rem; }
.qty-stepper { display: flex; align-items: center; border: 2px solid rgba(255, 255, 255, 0.25); border-radius: 10px; overflow: hidden; }
.qty-stepper button {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: none;
  width: 2.8rem;
  height: 100%;
  min-height: 3.2rem;
  font-size: 1.3rem;
  cursor: pointer;
}
.qty-stepper button:hover { background: rgba(255, 255, 255, 0.16); }
.qty-stepper span { min-width: 2.6rem; text-align: center; font-weight: 800; color: #fff; font-size: 1.1rem; }
.qty-stepper.small { border-color: var(--latte); }
.qty-stepper.small button { background: var(--paper); color: var(--espresso); width: 2rem; min-height: 2.2rem; font-size: 1.1rem; }
.qty-stepper.small button:hover { background: var(--latte); }
.qty-stepper.small span { color: var(--espresso); min-width: 2rem; font-size: 1rem; }

/* header cart button */
.cart-link {
  background: transparent;
  color: #f0e6d4;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.cart-link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* cart drawer */
.cart-drawer[hidden], .cart-overlay[hidden] { display: none !important; }
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 12, 6, 0.6);
  z-index: 200;
}
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--paper);
  z-index: 201;
  display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
}
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--latte); }
.cart-head h2 { margin: 0; font-size: 1.3rem; }
.cart-close { background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--mocha); line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; }
.cart-empty { color: var(--mocha); }
.cart-item { display: flex; justify-content: space-between; gap: 1rem; }
.cart-item-info { display: flex; flex-direction: column; gap: 0.4rem; }
.cart-item-meta { font-size: 0.85rem; color: var(--mocha); }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.cart-remove { background: none; border: none; color: var(--mocha); text-decoration: underline; cursor: pointer; font-size: 0.85rem; padding: 0; }
.cart-foot { border-top: 1px solid var(--latte); padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1.05rem; }
.cart-ship-note { margin: 0; font-size: 0.88rem; color: var(--caramel-dark); font-weight: 600; }
.cart-foot .btn { text-align: center; }

/* checkout */
.co-sub { color: var(--mocha); margin-top: -0.5rem; }
.co-progress { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 1.5rem 0 2rem; flex-wrap: wrap; }
.co-progress li {
  flex: 1; min-width: 120px;
  padding: 0.7rem 0.5rem;
  text-align: center;
  font-size: 0.88rem; font-weight: 700;
  color: var(--mocha);
  border-bottom: 3px solid var(--latte);
}
.co-progress li.is-active { color: var(--espresso); border-color: var(--caramel); }
.co-progress li.is-done { color: var(--caramel-dark); border-color: var(--caramel); }
.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; margin-bottom: 3rem; }
.co-step h2 { margin-top: 0; display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.co-test-tag { font-size: 0.72rem; font-family: var(--font-sans); background: #fff8e8; border: 1px dashed var(--caramel); color: var(--caramel-dark); border-radius: 999px; padding: 0.2rem 0.7rem; font-weight: 800; letter-spacing: 0.06em; }
.co-note { font-size: 0.9rem; color: var(--mocha); }
.field-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
.field-row.two { grid-template-columns: 1fr 1fr; }
.field-row.three { grid-template-columns: 2fr 1fr 1fr; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 0.35rem; color: var(--espresso); }
.field input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--latte);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
}
.field input:focus { outline: none; border-color: var(--caramel); }
.field input.field-error { border-color: #c0392b; background: #fdf0ef; }
.co-nav { display: flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }

#ship-methods { display: grid; gap: 0.7rem; }
#ship-methods .ship-option { background: var(--paper); border-color: var(--latte); }
#ship-methods .ship-option.is-selected { border-color: var(--caramel); background: #fffaf0; }
#ship-methods .po-text strong { color: var(--espresso); }
#ship-methods .po-text em { color: var(--mocha); }

.code-box { background: #fff8e8; border: 2px dashed var(--caramel); border-radius: 12px; padding: 1.2rem; margin-top: 1.6rem; }
.code-box label { font-weight: 800; display: block; margin-bottom: 0.5rem; }
.code-row { display: flex; gap: 0.7rem; }
.code-row input {
  flex: 1; padding: 0.7rem 0.9rem;
  border: 2px solid var(--latte); border-radius: 10px;
  font-size: 1rem; font-family: inherit; box-sizing: border-box;
}
.code-msg { margin: 0.6rem 0 0; font-size: 0.9rem; font-weight: 600; }
.code-msg.ok { color: #1e7e34; }
.code-msg.err { color: #c0392b; }

.sum-box { background: var(--paper); border: 1px solid var(--latte); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); position: sticky; top: 90px; }
.sum-box h3 { margin-top: 0; }
.sum-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--latte); font-size: 0.95rem; }
.sum-line em { display: block; font-style: normal; font-size: 0.82rem; color: var(--mocha); }
.sum-line.total { border-bottom: none; font-size: 1.1rem; padding-top: 0.9rem; }

.review-block { background: var(--paper); border: 1px solid var(--latte); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 0.8rem; }
.review-block h3 { margin: 0 0 0.3rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mocha); font-family: var(--font-sans); }
.review-block p { margin: 0; }
.review-block em { color: var(--mocha); font-size: 0.88rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: 0 3px 0 var(--caramel-dark); }

.co-confirm { text-align: center; max-width: 36rem; margin: 2rem auto 4rem; }
.confirm-icon { display: inline-flex; width: 4rem; height: 4rem; color: #1e7e34; margin-bottom: 1rem; }
.confirm-icon svg { width: 100%; height: 100%; }
.co-confirm h1 { margin: 0 0 0.5rem; }
.confirm-order { font-size: 1.1rem; }
.confirm-details { text-align: left; background: var(--paper); border: 1px solid var(--latte); border-radius: 12px; padding: 0.4rem 1.2rem; margin: 1.6rem 0; }
.confirm-note { color: var(--mocha); font-size: 0.95rem; margin-bottom: 1.6rem; }
.co-empty { text-align: center; padding: 3rem 0 4rem; }

@media (max-width: 900px) {
  .co-layout { grid-template-columns: 1fr; }
  .sum-box { position: static; }
  .field-row.two, .field-row.three { grid-template-columns: 1fr; }
}

/* ---- Shop landing + product lineup (temporary pricing) ---- */
.shop-landing {
  background: linear-gradient(120deg, #1d110a, #3a2412 65%, #4a2f1c);
  border-radius: 24px;
  padding: 3rem;
  color: var(--cream);
  margin: 1.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.shop-landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 85% 20%, rgba(199, 155, 95, 0.25), transparent 70%);
  pointer-events: none;
}
.shop-landing h1 { color: #fff; font-size: 2.6rem; margin: 0 0 0.6rem; position: relative; }
.shop-landing .shop-lede { max-width: 46rem; margin: 0 0 1.4rem; color: #e9d9c2; font-size: 1.08rem; position: relative; }
.shop-landing .shop-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; position: relative; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--latte);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(61, 38, 20, 0.16); }
.product-card.featured-card { border: 2px solid var(--gold); }
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold);
  color: #1d110a;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.product-card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-card-body h3 { margin: 0; font-size: 1.25rem; }
.product-detail { margin: 0; color: var(--mocha); font-size: 0.9rem; }
.mini-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0.2rem 0; }
.mini-chips li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--caramel-dark);
  background: #faf3e6;
  border: 1px solid var(--latte);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.product-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: 0.3rem 0; }
.product-price span { display: block; font-family: var(--font-sans); font-size: 0.82rem; color: var(--mocha); font-weight: 600; }
.product-card-actions { display: flex; gap: 0.6rem; margin-top: auto; padding-top: 0.6rem; }
.product-card-actions .btn { flex: 1; text-align: center; padding: 0.7rem 0.5rem; font-size: 0.92rem; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
  .shop-landing { padding: 2rem 1.4rem; }
  .shop-landing h1 { font-size: 2rem; }
}

/* ---- header cart button (shop pages) ---- */
.open-cart.cart-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent; border: 2px solid rgba(255,255,255,0.35); color: var(--cream);
  border-radius: 999px; padding: 0.5rem 1rem; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; font-family: inherit;
}
.open-cart.cart-btn:hover { border-color: var(--gold); color: #fff; }
.cart-count {
  background: var(--gold); color: #1d110a; border-radius: 999px;
  min-width: 1.4rem; height: 1.4rem; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; padding: 0 0.3rem;
}
.cart-count[hidden] { display: none; }

/* ---- drawer extras ---- */
.test-pill {
  display: inline-block; margin: 0.8rem 1.4rem 0; align-self: flex-start;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em;
  background: #fff8e8; border: 1px dashed var(--caramel); color: var(--caramel-dark);
  border-radius: 999px; padding: 0.25rem 0.7rem;
}
.btn-full { width: 100%; box-sizing: border-box; }

/* ---- homepage hero video ---- */
.hero-video-bg .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-video-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, rgba(29,17,10,0.93) 0%, rgba(29,17,10,0.70) 55%, rgba(29,17,10,0.32) 100%);
}
.hero-video-bg .hero-inner { z-index: 1; }

/* ---- homepage coffee band ---- */
.coffee-band {
  display: grid; grid-template-columns: 300px 1fr; gap: 2.2rem; align-items: center;
  background: linear-gradient(120deg, #1d110a, #3a2412 65%, #4a2f1c);
  border-radius: 24px; padding: 2.6rem; color: var(--cream);
  margin: 0 0 3rem; position: relative; overflow: hidden;
}
.coffee-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 260px at 90% 15%, rgba(199,155,95,0.22), transparent 70%);
}
.coffee-band-media { position: relative; }
.coffee-band-media img {
  width: 100%; border-radius: 18px; display: block;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35); aspect-ratio: 1/1; object-fit: cover;
}
.coffee-band-copy { position: relative; }
.coffee-band-copy h2 { color: #fff; font-size: 2rem; margin: 0 0 0.6rem; line-height: 1.15; }
.coffee-band-copy > p { color: #e9d9c2; max-width: 36rem; }
.coffee-band-copy .mini-chips { margin: 0.9rem 0; }
.coffee-band-price { font-size: 1.05rem; }
.coffee-band-price strong { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.coffee-band-price span { color: #cdb894; font-size: 0.85rem; }
.coffee-band .hero-ctas { margin-top: 1.2rem; }

/* ---- shop roast video band ---- */
.roast-band {
  position: relative; border-radius: 24px; overflow: hidden;
  min-height: 340px; display: flex; align-items: center; padding: 3rem;
}
.roast-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.roast-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(29,17,10,0.88) 0%, rgba(29,17,10,0.55) 60%, rgba(29,17,10,0.25) 100%);
}
.roast-copy { position: relative; z-index: 1; max-width: 34rem; color: var(--cream); }
.roast-copy h2 { color: #fff; font-size: 2.1rem; margin: 0 0 0.6rem; }
.roast-copy p { color: #e9d9c2; font-size: 1.05rem; margin-bottom: 1.4rem; }

/* ---- responsive polish: phone + laptop ---- */
@media (max-width: 900px) {
  .coffee-band { grid-template-columns: 1fr; padding: 1.8rem; gap: 1.4rem; }
  .coffee-band-media img { max-width: 320px; margin: 0 auto; }
  .coffee-band-copy h2 { font-size: 1.6rem; }
  .roast-band { min-height: 300px; padding: 2rem 1.4rem; }
  .roast-copy h2 { font-size: 1.6rem; }
  .shop-hero-media img { max-width: 440px; margin: 0 auto; }
  .notes-grid, .value-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 3rem 0 2.6rem; }
  .hero h1 { font-size: 2rem; }
  .hero .hero-sub { font-size: 1.05rem; }
  .hero-ctas .btn { width: 100%; text-align: center; box-sizing: border-box; }
  .buy-row { flex-direction: column; align-items: stretch; }
  .buy-row .qty-stepper { align-self: flex-start; }
  .buy-row .btn { width: 100%; box-sizing: border-box; }
  .product-card-actions { flex-direction: column; }
  .co-nav .btn { width: 100%; text-align: center; box-sizing: border-box; }
  .code-row { flex-direction: column; }
  .shop-landing { margin: 1rem 0 2rem; }
  .cart-item { flex-direction: column; gap: 0.6rem; }
  .cart-item-right { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video, .roast-video { display: none; }
}

/* ---- homepage layout refresh ---- */
.hero-stats {
  display: flex; gap: 2.5rem; margin: 2.4rem 0 0; padding: 1.5rem 0 0;
  border-top: 1px solid rgba(240, 230, 212, 0.25);
  position: relative; z-index: 1;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats dt {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  color: #fff; line-height: 1;
}
.hero-stats dd { margin: 0.35rem 0 0; font-size: 0.85rem; color: #d9c6a6; }

.section { margin: 4rem 0; }
.section-head { margin-bottom: 2.2rem; }
.section-head h2 { font-size: 2.1rem; }
.section-head h2::after {
  content: ""; display: block; width: 3rem; height: 3px;
  background: var(--gold); border-radius: 2px; margin: 0.9rem auto 0;
}

@media (max-width: 640px) {
  .hero-stats { gap: 1.6rem; margin-top: 1.8rem; padding-top: 1.2rem; }
  .hero-stats dt { font-size: 1.5rem; }
  .section { margin: 3rem 0; }
  .section-head h2 { font-size: 1.7rem; }
}

/* ============ Frameless store (shop) ============ */
.shop-main { display: block; }
.fb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: clamp(1.25rem, 5vw, 3rem);
  padding-right: clamp(1.25rem, 5vw, 3rem);
}
.eyebrow.light { color: var(--gold); }
.text-link { font-weight: 700; color: var(--espresso); text-decoration: none; }
.text-link:hover { color: var(--caramel-dark); }
.tagline { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--caramel-dark); margin: 0 0 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* slim test strip */
.test-strip {
  background: #160d07; color: #cdb894; text-align: center;
  font-size: 0.8rem; padding: 0.55rem 1rem; letter-spacing: 0.02em;
}
.test-strip strong {
  color: var(--gold); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.7rem; margin-right: 0.4rem;
}

/* full-bleed video hero */
.store-hero {
  position: relative; min-height: 94vh;
  display: flex; align-items: flex-end;
  overflow: hidden; background: #160d07;
}
.store-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.store-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,13,7,0.30) 0%, rgba(22,13,7,0.45) 45%, rgba(22,13,7,0.94) 100%);
}
.store-hero-inner { position: relative; z-index: 1; width: 100%; padding-bottom: 6rem; }
.store-hero h1 {
  color: #fff; font-size: clamp(3.2rem, 9vw, 6.8rem);
  line-height: 0.98; margin: 0 0 1.1rem; letter-spacing: -0.02em; font-weight: 900;
}
.store-hero-sub {
  color: #efdfc6; font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 34rem; margin: 0 0 1.8rem;
}
.store-hero-ctas { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.store-hero-price { color: #fff; font-weight: 700; font-size: 1.05rem; }

/* frameless sections */
.store-section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.store-sec-head { max-width: 46rem; margin-bottom: 3.5rem; }
.store-sec-head h2, .store-section h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  letter-spacing: -0.015em; margin: 0.5rem 0 0; line-height: 1.05;
}
.store-section .eyebrow { margin: 0; }

/* product lineup — no cards, no borders */
.product-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
.product-media { position: relative; margin-bottom: 1.5rem; }
.product-media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 10px; display: block;
}
.product-media .card-badge { top: 1.1rem; left: 1.1rem; }
.product h3 { font-size: 1.45rem; margin: 0 0 0.25rem; letter-spacing: -0.01em; }
.product-detail { color: var(--mocha); font-size: 0.92rem; margin: 0 0 0.7rem; }
.product-notes { font-size: 0.92rem; color: var(--caramel-dark); font-weight: 600; margin: 0 0 0.9rem; }
.product-price {
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; margin: 0 0 1.2rem;
}
.product-price span {
  display: block; font-family: var(--font-sans);
  font-size: 0.85rem; color: var(--mocha); font-weight: 600; margin-top: 0.15rem;
}
.product-actions { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }

/* featured product — editorial split, tinted but borderless */
.store-feature { background: #faf5ea; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.feature-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 14px; display: block;
}
.feature-info h2 {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  margin: 0.5rem 0 0.7rem; letter-spacing: -0.015em; line-height: 1.02;
}
.feature-lede { color: var(--mocha); font-size: 1.05rem; max-width: 30rem; margin: 0 0 0.5rem; }

/* frameless purchase options — hairline rows */
.feature-info .purchase-options { border: none; margin: 1.6rem 0 0; padding: 0; }
.feature-info .purchase-option {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 0.2rem; border: none; border-top: 1px solid var(--latte);
  border-radius: 0; cursor: pointer; background: none; box-shadow: none;
}
.feature-info .purchase-option:last-of-type { border-bottom: 1px solid var(--latte); }
.feature-info .purchase-option input { accent-color: var(--caramel); width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.feature-info .purchase-option-info { flex: 1; }
.feature-info .purchase-option-info strong { display: block; font-size: 1.02rem; }
.feature-info .purchase-option-sub { font-size: 0.88rem; color: var(--mocha); }
.feature-info .purchase-option > strong { font-size: 1.15rem; }
.feature-info .purchase-option.is-selected { background: none; }
.feature-info .purchase-option.is-selected .purchase-option-info strong { color: var(--caramel-dark); }

/* light-theme stepper / freq / note inside feature */
.feature-info .freq-row { color: var(--espresso); margin-top: 1.2rem; }
.feature-info .freq-row select {
  background: #fff; color: var(--espresso);
  border: 1px solid var(--latte); border-radius: 8px;
  padding: 0.5rem 0.7rem; font: inherit; font-weight: 600;
}
.feature-info .buy-row { margin-top: 1.4rem; }
.feature-info .qty-stepper { border: 2px solid var(--latte); }
.feature-info .qty-stepper button { color: var(--espresso); }
.feature-info .qty-stepper button:hover { background: var(--latte); }
.feature-info .qty-stepper span { color: var(--espresso); }
.feature-info .buy-note { color: var(--mocha); }

/* tasting notes — big type, no cards */
.notes-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem); margin-top: 3rem;
}
.note h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.8rem; margin: 0 0 0.6rem; letter-spacing: -0.01em;
}
.note p { color: var(--mocha); margin: 0; font-size: 1.02rem; }

/* full-bleed lifestyle image */
.lifestyle-full {
  position: relative; min-height: 82vh;
  display: flex; align-items: flex-end; overflow: hidden;
}
.lifestyle-full > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.lifestyle-full::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,13,7,0) 35%, rgba(22,13,7,0.78) 100%);
}
.lifestyle-copy { position: relative; z-index: 1; padding-bottom: 5rem; max-width: 42rem; }
.lifestyle-copy h2 {
  color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin: 0 0 0.9rem; letter-spacing: -0.015em; line-height: 1.05;
}
.lifestyle-copy p { color: #efdfc6; font-size: 1.12rem; margin: 0; max-width: 34rem; }

/* full-bleed roast video */
.roast-full {
  position: relative; min-height: 72vh;
  display: flex; align-items: center; overflow: hidden; background: #160d07;
}
.roast-full-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.roast-full::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(22,13,7,0.88) 0%, rgba(22,13,7,0.45) 60%, rgba(22,13,7,0.15) 100%);
}
.roast-copy { position: relative; z-index: 1; max-width: 36rem; padding-top: 4rem; padding-bottom: 4rem; }
.roast-copy h2 {
  color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin: 0.5rem 0 1rem; letter-spacing: -0.015em; line-height: 1.02;
}
.roast-copy p { color: #e9d9c2; font-size: 1.08rem; margin: 0 0 1.6rem; max-width: 30rem; }

/* why / how — clean columns */
.why-row, .steps-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem); margin-top: 3rem;
}
.why-row h3, .steps-row h3 { font-size: 1.3rem; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
.why-row p, .steps-row p { color: var(--mocha); margin: 0; font-size: 1.0rem; }
.step-n {
  font-family: var(--font-display); font-weight: 700;
  font-size: 3.2rem; line-height: 1; color: var(--gold);
  display: block; margin-bottom: 1rem;
}

/* faq — hairlines only */
.faq-narrow { max-width: 48rem; margin: 0 auto; }
.faq-narrow h2 { margin-bottom: 2.5rem; }
.faq-min details { border-top: 1px solid var(--latte); padding: 1.3rem 0; }
.faq-min details:last-child { border-bottom: 1px solid var(--latte); }
.faq-min summary {
  font-weight: 700; font-size: 1.1rem; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
}
.faq-min summary::-webkit-details-marker { display: none; }
.faq-min summary::after {
  content: "+"; font-size: 1.5rem; line-height: 1;
  color: var(--caramel); font-weight: 400; flex-shrink: 0;
}
.faq-min details[open] summary::after { content: "–"; }
.faq-min details p { color: var(--mocha); margin: 0.8rem 0 0; max-width: 40rem; }

/* closing cta */
.store-cta {
  background: #160d07; color: var(--cream); text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 1.5rem;
}
.store-cta h2 {
  color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0.6rem 0 2rem; letter-spacing: -0.015em;
}

/* frameless responsive */
@media (max-width: 900px) {
  .product-row, .notes-row, .why-row, .steps-row { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-media img { aspect-ratio: 1 / 1; max-width: 560px; }
  .store-hero { min-height: 92vh; }
  .store-hero-inner { padding-bottom: 4rem; }
  .lifestyle-full { min-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  .store-hero-video, .roast-full-video { display: none; }
}
