/* ==========================================================================
   AUVARA — main stylesheet
   Depends on tokens.css. Mobile-first. Targets WCAG 2.2 AA.
   ========================================================================== */

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Belt and braces: no horizontal scroll container, so `position: sticky`
     keeps working while stray decorative overflow is contained. */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

:target { scroll-margin-block-start: calc(var(--header-h) + 1.5rem); }

/* ── Focus (SC 2.4.11 Focus Not Obscured, 2.4.13 Focus Appearance) ─────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.on-dark :focus-visible,
.btn--ghost-inverse:focus-visible {
  outline-color: var(--amber);
}
.skip-link {
  position: absolute;
  left: var(--s-sm);
  top: -100%;
  z-index: 999;
  background: var(--deep);
  color: var(--ivory);
  padding: var(--s-xs) var(--s-md);
  border-radius: var(--r-md);
  font-weight: 600;
  transition: top var(--d-fast) var(--ease-standard);
}
.skip-link:focus { top: var(--s-sm); }

/* ── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--tr-heading);
  line-height: 1.1;
  color: var(--deep);
  font-variation-settings: 'opsz' 96, 'SOFT' 0, 'WONK' 0;
  text-wrap: balance;
  /* German compounds are long; a heading must never widen its grid track. */
  overflow-wrap: break-word;
}
/* Fraunces sets a very narrow space; open it up so two-word names read as two words. */
h1, h2, h3, h4, h5, .brand__word { word-spacing: 0.1em; }
h1 { font-size: var(--fs-h1); letter-spacing: var(--tr-display); line-height: 1.02; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); line-height: 1.28; }

p { text-wrap: pretty; max-width: 68ch; overflow-wrap: break-word; }
p + p { margin-block-start: var(--s-sm); }

.lead { font-size: var(--fs-lead); color: var(--slate); line-height: 1.55; max-width: 58ch; }
.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: var(--tr-display);
  color: var(--deep);
  font-variation-settings: 'opsz' 144;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--font-label);
  font-size: var(--fs-micro);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--amber-ink);
  display: block;
}
.spec {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--grey);
}
.muted { color: var(--grey); }
.text-leaf { color: var(--leaf); }
.measure-narrow { max-width: 52ch; }

/* The water line — AUVARA's through-line device. */
.waterline {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, var(--line) 62%, transparent 100%);
  margin-block: var(--s-xl);
}
.rule {
  border: 0;
  height: 1px;
  background: var(--line);
}
.rule--amber { background: var(--amber); }
.rule--deep { background: var(--deep); }

/* ── Layout ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 52rem; }
.container--prose { max-width: 44rem; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--dark { background: var(--deep); color: var(--ivory); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--ivory); }
.section--dark .lead { color: rgba(250, 247, 241, 0.86); }
.section--dark .eyebrow { color: var(--amber-on-deep); }
.section--dark .spec { color: rgba(250, 247, 241, 0.78); }
.section--sand { background: var(--sand); }

.grid { display: grid; gap: var(--s-lg); }
.grid--2 { grid-template-columns: minmax(0, 1fr); }
.grid--3 { grid-template-columns: minmax(0, 1fr); }
.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1fr); gap: var(--s-2xl); align-items: center; }

@media (min-width: 48rem) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 64rem) {
  .grid--split-wide { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.stack { display: flex; flex-direction: column; gap: var(--s-md); min-width: 0; }
.stack > * { min-width: 0; }
.stack--sm { gap: var(--s-sm); }
.stack--xs { gap: var(--s-2xs); }
.stack--lg { gap: var(--s-xl); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-sm); align-items: center; }
.cluster--between { justify-content: space-between; }
.center { text-align: center; }
.center p, .center .lead { margin-inline: auto; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2xs);
  min-height: 3rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  transition: background-color var(--d-fast) var(--ease-standard),
    color var(--d-fast) var(--ease-standard),
    transform var(--d-fast) var(--ease-standard),
    box-shadow var(--d-fast) var(--ease-standard);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--deep); color: var(--ivory); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #092b2c; box-shadow: var(--shadow-md); }

.btn--accent { background: var(--amber); color: var(--ink); }
.btn--accent:hover { background: #ac7a24; }

.btn--secondary { border: 1.5px solid var(--deep); color: var(--deep); background: transparent; }
.btn--secondary:hover { background: var(--deep); color: var(--ivory); }

.btn--ghost { color: var(--deep); padding-inline: 0.5rem; }
.btn--ghost:hover { color: var(--amber-ink); }

.btn--ghost-inverse { border: 1.5px solid rgba(250, 247, 241, 0.4); color: var(--ivory); }
.btn--ghost-inverse:hover { background: var(--ivory); color: var(--deep); border-color: var(--ivory); }

.btn--block { width: 100%; }
.btn--sm { min-height: 2.5rem; padding: 0.55rem 1.1rem; font-size: var(--fs-caption); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }

/* ── Header ────────────────────────────────────────────────────────────── */
.announce {
  background: var(--deep);
  color: var(--ivory);
  font-size: var(--fs-caption);
  text-align: center;
  padding: 0.5rem var(--gutter);
  letter-spacing: 0.02em;
}
.announce strong { color: var(--amber-on-deep); font-weight: 600; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-block-end: 1px solid transparent;
  transition: border-color var(--d-base) var(--ease-standard),
    box-shadow var(--d-base) var(--ease-standard);
}
.site-header[data-stuck='true'] { border-block-end-color: var(--line); box-shadow: var(--shadow-xs); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand__mark { width: 2.25rem; height: 2.25rem; }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--deep);
  font-variation-settings: 'opsz' 144;
  line-height: 1;
}

.nav { display: none; }
@media (min-width: 64rem) {
  .nav { display: flex; align-items: center; gap: var(--s-lg); }
}
.nav__link {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--slate);
  padding-block: 0.5rem;
  position: relative;
  transition: color var(--d-fast) var(--ease-standard);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0.15rem;
  height: 1.5px;
  background: var(--amber);
  transition: right var(--d-base) var(--ease-enter);
}
.nav__link:hover { color: var(--deep); }
.nav__link:hover::after,
.nav__link[aria-current='page']::after { right: 0; }
.nav__link[aria-current='page'] { color: var(--deep); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: var(--s-2xs); }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--r-pill);
  color: var(--deep);
  transition: background-color var(--d-fast) var(--ease-standard);
}
.icon-btn:hover { background: var(--sand); }
.icon-btn svg { width: 1.35rem; height: 1.35rem; }
.cart-count {
  position: absolute;
  top: 0.35rem; right: 0.3rem;
  min-width: 1.15rem; height: 1.15rem;
  padding-inline: 0.25rem;
  border-radius: var(--r-pill);
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 0.65rem;
  line-height: 1.15rem;
  text-align: center;
  font-weight: 700;
}
.cart-count[hidden] { display: none; }

.nav-toggle { display: inline-flex; }
@media (min-width: 64rem) { .nav-toggle { display: none; } }

/* Mobile drawer */
.drawer {
  position: absolute;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--ivory);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--d-slow) var(--ease-enter), visibility var(--d-slow);
}
.drawer[data-open='true'] { transform: translateX(0); visibility: visible; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); padding-inline: var(--gutter);
  border-block-end: 1px solid var(--line);
}
.drawer__body { padding: var(--s-lg) var(--gutter) var(--s-2xl); overflow-y: auto; }
.drawer__link {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--deep);
  padding-block: 0.85rem;
  border-block-end: 1px solid var(--line);
}
.drawer__link[aria-current='page'] { color: var(--amber-ink); }
@media (prefers-reduced-motion: reduce) {
  .drawer { transition-duration: 1ms; }
}

/* ── Off-canvas layer ──────────────────────────────────────────────────────
   Fixed elements are not clipped by an ancestor's `overflow`, so the panels are
   wrapped in a viewport-sized container that does the clipping for them. Without
   this, a closed drawer increases the document scroll width and breaks SC 1.4.10. */
.overlay-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 200;
}
.overlay-layer > * { pointer-events: auto; }
.overlay-layer[data-empty='true'] > * { pointer-events: none; }

/* ── Cart drawer ───────────────────────────────────────────────────────── */
.cart-panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(26rem, 100%);
  z-index: 210;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--d-slow) var(--ease-enter), visibility var(--d-slow);
}
.cart-panel[data-open='true'] { transform: translateX(0); visibility: visible; }
.cart-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-md) var(--s-lg);
  border-block-end: 1px solid var(--line);
}
.cart-panel__body { flex: 1; overflow-y: auto; padding: var(--s-lg); }
.cart-panel__foot { padding: var(--s-lg); border-block-start: 1px solid var(--line); background: var(--ivory); }
.scrim {
  position: absolute; inset: 0; z-index: 205;
  background: rgba(12, 23, 20, 0.42);
  opacity: 0; visibility: hidden;
  transition: opacity var(--d-base) var(--ease-standard), visibility var(--d-base);
}
.scrim[data-open='true'] { opacity: 1; visibility: visible; }

/* ── Cards & panels ────────────────────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card__media {
  background: var(--sand);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: var(--s-lg);
  position: relative;
}
.card__media img, .card__media svg { max-height: 100%; width: auto; }
.card__body { padding: var(--s-lg); display: flex; flex-direction: column; gap: var(--s-xs); flex: 1; }
.card__foot { margin-block-start: auto; padding-block-start: var(--s-sm); display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-sm); }

.tile {
  border-block-start: 1px solid var(--line);
  padding-block-start: var(--s-md);
  display: flex;
  flex-direction: column;
  gap: var(--s-2xs);
}
.tile__num {
  font-family: var(--font-label);
  font-size: var(--fs-micro);
  letter-spacing: var(--tr-label);
  color: var(--amber-ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-label);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-pill);
  background: var(--sand);
  color: var(--deep);
  white-space: nowrap;
}
.badge--amber { background: var(--amber); color: var(--ink); }
.badge--leaf { background: var(--leaf); color: var(--ivory); }
.badge--outline { background: transparent; border: 1px solid var(--line); color: var(--slate); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(2.5rem, 1rem + 6vw, 5.5rem) var(--section-y); overflow: clip; }
.hero__grid {
  display: grid;
  gap: var(--s-2xl);
  align-items: center;
}
@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: 1.02fr 0.98fr; gap: clamp(2rem, 5vw, 5rem); }
}
.hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-md);
  align-items: end;
}
.hero__stage::before {
  content: '';
  position: absolute;
  /* Kept inside the parent: a decorative glow must never add scroll width. */
  inset: 8% 0 14%;
  background: radial-gradient(60% 55% at 50% 45%, rgba(192, 138, 46, 0.14), transparent 72%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.hero__stage > * { position: relative; z-index: 1; }

/* ── Product figure ────────────────────────────────────────────────────── */
.product-figure {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  filter: drop-shadow(0 22px 34px rgba(12, 23, 20, 0.16));
}
.product-figure--sm { max-width: 12rem; }

/* ── Price ─────────────────────────────────────────────────────────────── */
.price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--deep);
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 40;
}
.price__unit {
  font-family: var(--font-label);
  font-size: var(--fs-micro);
  color: var(--grey);
  letter-spacing: var(--tr-label);
  display: block;
}
.price--lg { font-size: 2.35rem; }
.price s { color: var(--grey); font-weight: 400; font-size: 0.7em; margin-inline-end: 0.4rem; }

/* ── Spec table ────────────────────────────────────────────────────────── */
.spec-table { font-size: var(--fs-small); }
.spec-table th, .spec-table td { overflow-wrap: anywhere; }
.spec-table th, .spec-table td {
  text-align: start;
  padding: 0.85rem 0;
  border-block-end: 1px solid var(--line);
  vertical-align: top;
}
/* 42 % gilt nur für Zeilenköpfe. Spaltenköpfe (<th scope="col">) müssen sich
   nach ihrem Inhalt richten, sonst kollabieren vier Spalten auf 4 × 42 %. */
.spec-table th[scope="row"] { font-weight: 600; color: var(--deep); width: 42%; }
.spec-table th[scope="col"] { font-weight: 600; color: var(--deep); }
.spec-table td { color: var(--slate); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-block-end: 0; }
.section--dark .spec-table th { color: var(--ivory); }
.section--dark .spec-table td { color: rgba(250, 247, 241, 0.8); }
.section--dark .spec-table th,
.section--dark .spec-table td { border-color: rgba(250, 247, 241, 0.16); }

/* ── Nutrition / legal panel ───────────────────────────────────────────── */
.nutrition {
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  padding: var(--s-sm) var(--s-md);
  background: var(--paper);
  font-size: var(--fs-small);
  max-width: 26rem;
}
.nutrition__title { font-weight: 700; font-size: var(--fs-body); border-block-end: 6px solid var(--ink); padding-block-end: 0.4rem; }
.nutrition__row { display: flex; justify-content: space-between; gap: var(--s-sm); padding-block: 0.35rem; border-block-end: 1px solid var(--bone); }
.nutrition__row:last-child { border-block-end: 0; }
.nutrition__row strong { font-weight: 700; }
.nutrition__row > * { min-width: 0; overflow-wrap: anywhere; }
.nutrition__note { font-size: var(--fs-micro); color: var(--grey); margin-block-start: 0.5rem; }
.nutrition__ref { font-weight: 400; color: var(--grey); }

/* ── Accordion (FAQ) ───────────────────────────────────────────────────── */
.accordion { border-block-start: 1px solid var(--line); }
.accordion__item { border-block-end: 1px solid var(--line); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  padding: var(--s-md) 0;
  text-align: start;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--deep);
  min-height: 3.25rem;
}
.accordion__trigger:hover { color: var(--amber-ink); }
.accordion__icon {
  flex-shrink: 0;
  width: 1.4rem; height: 1.4rem;
  position: relative;
  transition: transform var(--d-base) var(--ease-standard);
}
.accordion__icon::before, .accordion__icon::after {
  content: ''; position: absolute; inset: 50% 0 auto 0;
  height: 1.5px; background: currentColor; border-radius: 2px;
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__trigger[aria-expanded='true'] .accordion__icon { transform: rotate(45deg); }
.accordion__panel { padding-block-end: var(--s-md); }
.accordion__panel p { color: var(--slate); font-size: var(--fs-small); max-width: 62ch; }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--deep); }
.field .hint { font-size: var(--fs-micro); color: var(--grey); }
.input, .select, .textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: var(--fs-small);
  transition: border-color var(--d-fast) var(--ease-standard);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--deep-70); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  border-color: var(--deep); outline: 2px solid var(--deep); outline-offset: 1px;
}
.textarea { min-height: 8rem; resize: vertical; }
/* Without this the UA default (#757575) renders instead of the token. */
.input::placeholder, .textarea::placeholder { color: var(--grey); opacity: 1; }
.error-text { color: var(--danger); font-size: var(--fs-micro); font-weight: 600; }
.input[aria-invalid='true'] { border-color: var(--danger); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--deep); color: rgba(250, 247, 241, 0.82); margin-block-start: auto; }
.site-footer h2 {
  color: var(--ivory); font-family: var(--font-label); font-weight: 400;
  font-size: var(--fs-micro); letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase; margin-block-end: var(--s-sm);
}
.site-footer a { color: rgba(250, 247, 241, 0.82); font-size: var(--fs-small); display: inline-block; padding-block: 0.35rem; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; gap: var(--s-xl); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-bottom {
  border-block-start: 1px solid rgba(250, 247, 241, 0.14);
  margin-block-start: var(--s-xl);
  padding-block: var(--s-md);
  display: flex; flex-wrap: wrap; gap: var(--s-sm) var(--s-md);
  justify-content: space-between; align-items: center;
  font-size: var(--fs-micro);
}
.legal-strip {
  display: flex; flex-wrap: wrap; gap: var(--s-sm) var(--s-md);
  align-items: center; font-size: var(--fs-micro); color: rgba(250, 247, 241, 0.78);
}

/* ── Callouts ──────────────────────────────────────────────────────────── */
.callout {
  border-inline-start: 3px solid var(--amber);
  background: var(--paper);
  padding: var(--s-md) var(--s-lg);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.callout--deep { border-inline-start-color: var(--deep); }
.callout--danger { border-inline-start-color: var(--danger); }
.callout h3, .callout h4 { font-size: 1.0625rem; font-family: var(--font-text); font-weight: 700; letter-spacing: 0; line-height: 1.35; margin-block-end: 0.35rem; color: var(--deep); }
.callout p { font-size: var(--fs-small); color: var(--slate); }

.notice {
  display: flex;
  gap: var(--s-sm);
  align-items: flex-start;
  padding: var(--s-sm) var(--s-md);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: var(--fs-caption);
}
.notice svg { flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin-block-start: 0.15rem; }

/* ── Utilities ─────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.flow > * + * { margin-block-start: var(--flow, var(--s-md)); }
.flow--sm { --flow: var(--s-sm); }
.flow--lg { --flow: var(--s-xl); }
.flow--xs { --flow: var(--s-xs); }
.mt-lg { margin-block-start: var(--s-lg); }
.mt-xl { margin-block-start: var(--s-xl); }
.mt-2xl { margin-block-start: var(--s-2xl); }
.mb-md { margin-block-end: var(--s-md); }
.mb-lg { margin-block-end: var(--s-lg); }
.nowrap { white-space: nowrap; }
.full { width: 100%; }
[hidden] { display: none !important; }

/* Reveal on scroll — progressive enhancement, disabled without JS. */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal[data-visible='true'] {
  opacity: 1; transform: none;
  transition: opacity 620ms var(--ease-enter), transform 620ms var(--ease-enter);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Print ─────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .announce, .cart-panel, .scrim, .drawer, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #444; }
  .section { padding-block: 1.5cm; }
  h1, h2, h3 { break-after: avoid; }
}


/* ── Inline icons ──────────────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 0.15em; font-size: 0.85rem; color: var(--amber-ink); }
.stars svg { width: 1em; height: 1em; }
.btn svg { width: 1.1em; height: 1.1em; }
.notice svg { width: 1.15rem; height: 1.15rem; margin-block-start: 0.15rem; }
.icon-btn svg { width: 1.35rem; height: 1.35rem; }
.brand__mark { width: 2.25rem; height: 2.25rem; flex-shrink: 0; }
.site-footer .brand__mark { width: 2.1rem; height: 2.1rem; }

/* ── Hero product stage ────────────────────────────────────────────────── */
.hero__stage img { width: 100%; height: auto; }
.hero__stage img:nth-child(1) { margin-block-start: 2.5rem; }
.hero__stage img:nth-child(2) { margin-block-end: 2.5rem; }
@media (max-width: 47.99rem) {
  .hero__stage { max-width: 30rem; margin-inline: auto; }
}

/* ── Card media sizing ─────────────────────────────────────────────────── */
.card__media img { max-height: 14rem; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.card__media { min-height: 15rem; }


/* ── Very small viewports (SC 1.4.10 Reflow at 320 px) ─────────────────── */
@media (max-width: 26rem) {
  .brand__word { font-size: 1.2rem; letter-spacing: 0.06em; }
  .brand { gap: 0.4rem; }
  .brand__mark { width: 1.9rem; height: 1.9rem; }
  .header-actions { gap: 0.15rem; }
  .nav-cta { padding: 0.5rem 0.85rem; font-size: 0.8125rem; }
  .container { padding-inline: 1rem; }
}

/* ── Horizontally scrollable regions must be keyboard reachable ────────── */
.scroll-x { overflow-x: auto; }
.scroll-x:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.scroll-x > table { min-width: 34rem; }
