/* ==========================================================================
   Grounded — site styles
   Palette and type are defined once here as tokens; change them in :root.
   ========================================================================== */

:root {
  /* Colour */
  --espresso: #2a1b12;
  --roast: #4a3122;
  --mocha: #7a5a43;
  --kraft: #c49a6c;
  --kraft-light: #e3cfb3;
  --oat: #efe6d8;
  --cream: #f8f3eb;
  --paper: #fffdf9;
  --sage: #6f7f5f;
  --sage-dark: #4c5a41;
  --sage-light: #dfe5d6;
  --gold: #b8902a;
  --gold-light: #f1e2b4;

  --text: var(--espresso);
  --text-soft: #5b4636;
  --line: #e2d6c4;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(42, 27, 18, .06), 0 8px 28px rgba(42, 27, 18, .08);

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--espresso);
  font-variation-settings: "SOFT" 50, "opsz" 72;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { margin: 0 0 1em; }

a { color: var(--sage-dark); text-underline-offset: .18em; }
a:hover { color: var(--espresso); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--espresso);
  color: var(--cream);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--cream); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: .9em;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--text-soft);
  max-width: 38em;
}

/* SVG texture definitions live in a hidden inline SVG on each page */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Buttons & pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.4em;
  border-radius: 999px;
  border: 2px solid var(--espresso);
  background: var(--espresso);
  color: var(--cream);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--roast); border-color: var(--roast); color: var(--cream); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--espresso); }
.btn--ghost:hover { background: var(--espresso); color: var(--cream); }
.btn[aria-disabled="true"],
.btn:disabled {
  background: var(--oat);
  border-color: var(--line);
  color: var(--mocha);
  cursor: not-allowed;
  transform: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

.pill {
  display: inline-block;
  padding: .3em .8em;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--sage-light);
  color: var(--sage-dark);
  white-space: nowrap;
}
.pill--gold { background: var(--gold-light); color: #6e5414; }
.pill--muted { background: var(--oat); color: var(--mocha); }

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

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(248, 243, 235, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--espresso);
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--espresso);
  border-radius: 999px;
  background: transparent;
  color: var(--espresso);
  font: 600 .95rem/1 var(--font-body);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--espresso);
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
}
.site-nav a:hover { background: var(--oat); }
.site-nav a[aria-current="page"] { background: var(--espresso); color: var(--cream); }
.site-nav a[aria-current="page"] .pill { background: var(--kraft); color: var(--espresso); }
.site-nav .pill { font-size: .66rem; padding: .25em .6em; }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(42, 27, 18, .08);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 18px;
  }
  .js .site-nav a { padding: 12px 14px; border-radius: var(--radius-sm); }

  /* Without JavaScript the links simply wrap under the logo */
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--oat { background: var(--oat); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--espresso); color: var(--oat); }
.section--dark h2,
.section--dark h3 { color: var(--cream); }
.section--dark .eyebrow { color: var(--kraft); }
.section--dark p { color: #dccbb6; }
.section--dark a { color: var(--kraft-light); }

.section-head { max-width: 44em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

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

.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 8vw, 104px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(196, 154, 108, .28), transparent);
  pointer-events: none;
}
.hero .grid-2 { position: relative; }
.hero h1 em {
  font-style: italic;
  color: var(--sage-dark);
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: end;
  gap: 4%;
  padding: 8% 6% 4%;
  background: linear-gradient(160deg, var(--paper), var(--oat));
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero-stage figure { margin: 0; }
.hero-stage figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: .9rem;
  color: var(--text-soft);
}
.hero-stage figcaption strong { color: var(--espresso); }

.page-hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px);
}

/* ---------- Cards ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: 0 1px 2px rgba(42, 27, 18, .04);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.icon-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--sage-light);
  color: var(--sage-dark);
  margin-bottom: 14px;
}
.icon-badge svg { width: 24px; height: 24px; }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s;
}
a.product-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(42, 27, 18, .06), 0 16px 40px rgba(42, 27, 18, .12); color: inherit; }
.product-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-body p { color: var(--text-soft); }
.product-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
}
.price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 650;
  color: var(--espresso);
  line-height: 1;
}
.price small { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--text-soft); }
.arrow-link { font-weight: 600; color: var(--sage-dark); white-space: nowrap; }

/* ---------- Process steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  counter-reset: step;
}
.steps li {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--kraft);
  margin-bottom: 6px;
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--text-soft); margin: 0; font-size: .98rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Product page ---------- */

.product-hero .grid-2 { align-items: start; }

.mockup-panel {
  position: relative;
  background: linear-gradient(165deg, var(--paper), var(--oat) 70%, var(--kraft-light));
  border-radius: 28px;
  padding: clamp(20px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.mockup-panel svg { margin: 0 auto; width: 100%; height: auto; }
.mockup-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: .85rem;
  color: var(--text-soft);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 1.4em 0 0;
  border-top: 1px solid var(--line);
}
.spec-list div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.spec-list div:nth-child(odd) { padding-right: 16px; }
.spec-list dt {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mocha);
}
.spec-list dd { margin: 2px 0 0; font-weight: 500; }

.buy-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 1.6em;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.buy-box .price { font-size: 2.3rem; }
.buy-box p { margin: 0; color: var(--text-soft); font-size: .95rem; flex: 1 1 220px; }

/* Look-inside interactive */
.inside-stage {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}
.inside-stage .bag-closed,
.inside-stage .bag-open,
.inside-stage .pod-lift {
  transition: opacity .5s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}
.inside-stage .bag-open { opacity: 0; }
.inside-stage .pod-lift { transform: translateY(215px); }

.inside-stage.is-open .bag-closed { opacity: 0; }
.inside-stage.is-open .bag-open { opacity: 1; }
.inside-stage.is-open .pod-lift { transform: translateY(0); }

/* Without JavaScript, show the opened view */
html:not(.js) .inside-stage .bag-closed { opacity: 0; }
html:not(.js) .inside-stage .bag-open { opacity: 1; }
html:not(.js) .inside-stage .pod-lift { transform: none; }
html:not(.js) .inside-toggle { display: none; }

.inside-toggle { margin: 18px auto 0; display: flex; }

/* Material breakdown */
.materials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.materials li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.materials .swatch {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(42, 27, 18, .12);
}
.materials h3 { font-size: 1.08rem; margin-bottom: .2em; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.materials p { margin: 0; color: var(--text-soft); font-size: .98rem; }

.swatch--cotton { background: #ede3d1; }
.swatch--grounds { background: radial-gradient(circle at 30% 30%, #9a7a5e 0 2px, transparent 3px) 0 0/9px 9px, radial-gradient(circle at 70% 60%, #2b1a10 0 1.5px, transparent 2.5px) 0 0/7px 7px, #7a5b43; }
.swatch--glitter { background: radial-gradient(circle at 40% 40%, #fff3c4 0 1px, transparent 2px) 0 0/6px 6px, radial-gradient(circle at 60% 70%, #e2b93f 0 1.5px, transparent 2.5px) 0 0/5px 5px, #b8902a; }

/* Journey timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--kraft), var(--sage));
  border-radius: 2px;
}
.timeline li {
  position: relative;
  padding: 0 0 28px 44px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--kraft);
}
.section--oat .timeline li::before { background: var(--oat); }
.timeline li.is-key::before { background: var(--sage); border-color: var(--sage); }
.timeline time {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mocha);
}
.timeline h3 { font-size: 1.15rem; margin: .15em 0 .25em; }
.timeline p { margin: 0; color: var(--text-soft); }

/* Research */
.research {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
@media (max-width: 960px) { .research { grid-template-columns: 1fr; } }
.study {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.study .pill { align-self: flex-start; margin-bottom: 14px; }
.study h3 { font-size: 1.12rem; line-height: 1.3; }
.study .cite { font-size: .88rem; color: var(--mocha); margin-bottom: .9em; }
.study p { color: var(--text-soft); font-size: .98rem; }
.study a { margin-top: auto; font-weight: 600; }

.callout {
  margin-top: clamp(20px, 3vw, 32px);
  padding: 18px 22px;
  border-left: 4px solid var(--kraft);
  background: var(--paper);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
  font-size: .98rem;
}
.callout strong { color: var(--espresso); }

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  margin-top: clamp(20px, 3vw, 32px);
}
.case-study-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.05;
}
.case-study-stat span { display: block; margin-top: 6px; color: var(--text-soft); }
@media (max-width: 640px) { .case-study { grid-template-columns: minmax(0, 1fr); } }

/* Uses */
.uses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.uses li {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 500;
}

/* ---------- Fairs ---------- */

.fair-list { display: grid; gap: 18px; }
.fair {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 22px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 24px 20px 20px;
  box-shadow: 0 1px 2px rgba(42, 27, 18, .04);
}
.fair-date {
  display: grid;
  place-items: center;
  align-content: center;
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--espresso);
  color: var(--cream);
  text-align: center;
  line-height: 1;
}
.fair-date .d { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; }
.fair-date .m { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; color: var(--kraft-light); }
.fair-date .w { font-size: .72rem; margin-top: 4px; color: #bfa98f; }
.fair h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: .25em; }
.fair-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: .97rem;
}
.fair-meta li { display: inline-flex; align-items: center; gap: 6px; }
.fair-meta svg { width: 16px; height: 16px; color: var(--mocha); flex: none; }
.fair.is-past { opacity: .6; }
.fair.is-past .fair-date { background: var(--mocha); }

@media (max-width: 680px) {
  .fair { grid-template-columns: 84px 1fr; padding: 16px; gap: 16px; }
  .fair-date .d { font-size: 1.9rem; }
  .fair .pill { grid-column: 2; justify-self: start; }
}

/* ---------- Shop ---------- */

.coming-soon {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.coming-soon .icon-badge { margin: 0 auto 18px; width: 64px; height: 64px; border-radius: 20px; }
.coming-soon .icon-badge svg { width: 32px; height: 32px; }

/* ---------- CTA band ---------- */

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: var(--sage-dark);
  color: var(--sage-light);
}
.cta-band h2 { color: var(--cream); margin-bottom: .25em; }
.cta-band p { margin: 0; color: #d6dfcc; }
.cta-band .btn { background: var(--cream); border-color: var(--cream); color: var(--espresso); }
.cta-band .btn:hover { background: var(--paper); border-color: var(--paper); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

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

.site-footer {
  background: var(--espresso);
  color: #cdb9a2;
  padding: clamp(44px, 6vw, 72px) 0 28px;
  font-size: .97rem;
}
.site-footer a { color: var(--kraft-light); }
.site-footer a:hover { color: var(--cream); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--cream); margin-bottom: 12px; }
.site-footer .brand svg { color: var(--kraft); }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kraft);
  margin-bottom: 12px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; word-break: break-word; }
.footer-links svg { width: 18px; height: 18px; flex: none; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(227, 207, 179, .18);
  font-size: .85rem;
  color: #a8927b;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { padding-top: 18px; font-size: .9rem; color: var(--text-soft); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--kraft); }

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

.faq { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 20px;
}
.faq summary {
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
}
.faq details p { margin: 0; padding-bottom: 18px; color: var(--text-soft); }

/* ---------- Forms ---------- */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--mocha);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text);
  font: inherit;
}
.field textarea { min-height: 150px; resize: vertical; }
.form-note { margin: 0; font-size: .92rem; color: var(--text-soft); }
.form-trap { position: absolute; left: -9999px; }

/* ---------- Legal text ---------- */

.prose { max-width: 42em; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 1.6em; }

/* ---------- Sticky mobile call to action ---------- */

.mobile-cta { display: none; }
@media (max-width: 760px) {
  body.has-mobile-cta { padding-bottom: 76px; }
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(42, 27, 18, .1);
  }
  .mobile-cta strong { min-width: 0; }
  .mobile-cta .btn { flex: none; padding: .7em 1.2em; }
}

/* ---------- Cookie banner (only shown once Google Analytics is switched on) ---------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 480px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cookie-banner p { margin: 0 0 12px; font-size: .95rem; }
.cookie-banner .btn-row { margin-top: 0; }
@media (max-width: 760px) { .cookie-banner { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 14px; }
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--kraft-light);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}

/* ---------- Mockup decoration ---------- */

.dim-line { stroke: var(--mocha); stroke-width: 1.5; fill: none; }
.dim-text {
  fill: var(--roast);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
}

/* Each sparkle sets its own animation-delay inline */
.sparkle { transform-box: fill-box; transform-origin: center; animation: twinkle 2.8s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.3); }
  50% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .sparkle { opacity: .8; }
}

/* Ingredients, test results, poster, care */
.swatch--charcoal { background: radial-gradient(circle at 35% 35%, #4a4440 0 1.5px, transparent 2.5px) 0 0/7px 7px, #1f1b19; }
.swatch--bicarb { background: radial-gradient(circle at 40% 40%, #ffffff 0 1.5px, transparent 2.5px) 0 0/6px 6px, #f1efe9; }
.ingredient-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: clamp(28px, 4vw, 44px); }
.ingredient-grid li { grid-template-columns: 1fr; }
.research-head { margin: 0 0 .8em; }
.table-scroll { overflow-x: auto; margin: 1em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.results-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 420px; }
.results-table th, .results-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.results-table thead th { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mocha); }
.results-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.results-table tbody th { font-weight: 500; }
.results-table tr:last-child th, .results-table tr:last-child td { border-bottom: 0; }
.results-table .is-key { background: var(--sage-light); }
.results-table .is-key th, .results-table .is-key td { font-weight: 700; color: var(--sage-dark); }
.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  max-width: 900px;
  margin: clamp(28px, 4vw, 44px) auto 0;
}
.poster { margin: 0; text-align: center; }
.poster a { display: block; }
.poster img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.poster figcaption { margin-top: 10px; color: var(--text-soft); font-size: .92rem; }
.care-list { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.care-list div { padding-right: 20px; }
@media (max-width: 820px) {
  .ingredient-grid, .care-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) { .poster-grid { grid-template-columns: minmax(0, 1fr); } }
