/* Twente Fuel shop — styles
   Tokens come from the main site (rzadinans/TwenteFuel, design direction G "Twente local").
   Strawberry red (--accent) is used ONLY on buy actions: Add to basket and Checkout (.btn--buy). */

@font-face { font-family: "Gabarito"; src: url("../fonts/gabarito-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- design tokens (from the main site) ---------- */

:root {
  --brand: #1F4A32;
  --brand-hover: #173A27;
  --brand-dark: #16241B;
  --accent: #D33A2C;          /* buy actions only */
  --accent-hover: #B92F23;
  --ink: #16241B;
  --paper: #FFFFFF;
  --surface: #EAF2EC;
  --muted: #4B5D51;           /* 6.2:1 on --surface */
  --on-brand-muted: #D9E7DD;  /* 7.9:1 on --brand */
  --field-line: #6E8475;      /* 4:1 on white */
  --error: #B3261A;
  --line: #D9E2DB;            /* hairlines */

  --font-display: "Gabarito", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --display-sm: 1.375rem;
  --display-md: clamp(2.125rem, 4vw, 3.5rem);
  --display-lg: clamp(2.625rem, 4vw, 4.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.75rem;
  --space-7: 3rem;
  --section-y: clamp(3.75rem, 8vw, 8rem);
  --gutter: clamp(1.25rem, 4.5vw, 5rem);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --fast: 140ms;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; }

/* Dutch pages: hide until nl.js has swapped the text in (max 1.5 s, then show anyway) */
html.nl-pending body { visibility: hidden; animation: tf-show 0s linear 1.5s forwards; }
@keyframes tf-show { to { visibility: visible; } }

html[lang="nl"] .only-en, html:not([lang="nl"]) .only-nl { display: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hero :focus-visible { outline-color: var(--paper); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: var(--space-3); top: -100px; z-index: 100;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

.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;
}
.nowrap { display: block; } /* each headline phrase starts on its own line */
@media (min-width: 600px) { .nowrap { white-space: nowrap; } }

.container { max-width: 100rem; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.bg-surface { background: var(--surface); }

.icon {
  width: 1.25em; height: 1.25em; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- type ---------- */

.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.display--lg { font-size: var(--display-lg); line-height: 1.04; }
.display--md { font-size: var(--display-md); line-height: 1.08; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--display-sm); line-height: 1.2; }
.lead { max-width: 34em; font-size: var(--text-lg); line-height: 1.6; text-wrap: pretty; }
.muted { color: var(--muted); }
.section-head { display: flex; flex-direction: column; gap: var(--space-4); max-width: 45rem; }

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 3.25rem; padding: 0 var(--space-6);
  border: 0; border-radius: var(--radius-pill);
  background: var(--brand); color: var(--paper);
  font: 600 var(--text-base)/1.2 var(--font-body);
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: scale(0.98); }
.btn--buy { background: var(--accent); }
.btn--buy:hover { background: var(--accent-hover); }
.btn--brand { background: var(--brand); }
.btn--light { background: var(--paper); color: var(--brand); }
.btn--outline { background: var(--paper); color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn--outline:hover { background: var(--surface); }
.btn--light:hover { background: var(--surface); }
.btn--sm { min-height: 2.75rem; padding: 0 var(--space-5); font-size: 0.9375rem; }
.btn--lg { min-height: 3.5rem; padding: 0 2rem; font-size: var(--text-lg); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: progress; transform: none; opacity: 0.85; }

.link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 2.75rem; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.link-btn {
  min-height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 500 0.9375rem/1 var(--font-body);
  text-decoration: underline; text-underline-offset: 4px;
}
.link-btn:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .link-btn { transition: none; }
  .btn:active { transform: none; }
  .spinner { animation: none !important; }
}

/* ---------- header: white, sticky ---------- */

.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 4rem; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: -0.03em; color: inherit; text-decoration: none; }
.header__inner > .wordmark { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--brand); }
.site-nav { display: none; }
@media (min-width: 900px) {
  .header__inner { min-height: 4.75rem; }
  .site-nav { display: flex; gap: clamp(1.25rem, 2.4vw, 2.5rem); margin-inline: auto; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1rem; font-weight: 500; text-decoration: none; }
  .site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
}
.header__actions { display: flex; align-items: center; gap: var(--space-1); }
.lang-switch, .basket-link {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 var(--space-3);
  border-radius: var(--radius-pill); font-weight: 600; font-size: 0.9375rem; text-decoration: none;
}
.lang-switch:hover, .basket-link:hover { background: var(--surface); }
.basket-link { margin-right: calc(-1 * var(--space-3)); }
.basket-link .icon { width: 1.5rem; height: 1.5rem; }
.basket-count {
  display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.375rem;
  border-radius: var(--radius-pill); background: var(--brand); color: var(--paper);
  font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) { .basket-link__label { display: none; } }

/* ---------- hero: full-width packshot ---------- */

.hero { position: relative; overflow: hidden; background: #17452F; color: var(--paper); }
.hero__inner { position: relative; z-index: 1; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); padding: clamp(2.25rem, 9vw, 3rem) 0 0; }
.hero__copy .lead { max-width: 24em; color: var(--on-brand-muted); }
.hero__copy .btn { margin-top: var(--space-1); min-width: 10rem; }
.hero__media { display: block; }
.hero__media img { width: 100%; height: auto; aspect-ratio: 1 / 0.92; object-fit: cover; object-position: 50% 80%;
  -webkit-mask-image: linear-gradient(transparent, #000 26%); mask-image: linear-gradient(transparent, #000 26%); }
@media (min-width: 1024px) {
  .hero { display: grid; align-items: center; min-height: min(46vw, 47rem); }
  .hero__media { position: absolute; inset: 0; }
  .hero__media img { height: 100%; aspect-ratio: auto; object-position: 100% 78%; -webkit-mask-image: none; mask-image: none; }
  .hero__inner { width: 100%; }
  .hero__copy { max-width: min(32vw, 34rem); padding: 0 0 2vw; gap: var(--space-5); }
  .hero .display--lg { font-size: clamp(2.25rem, 3.6vw, 3.75rem); }
}
@media (min-width: 1921px) { .hero { width: 1920px; margin-inline: auto; border-radius: 0 0 var(--radius-xl) var(--radius-xl); } }
@media (min-width: 600px) and (max-width: 1023.98px) { .hero__media img { aspect-ratio: 1 / 0.7; object-position: 50% 72%; } }

/* ---------- facts under the hero ---------- */

.factbar { border-bottom: 1px solid var(--line); }
.factbar__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); padding-block: var(--space-5); font-size: 0.9375rem; font-weight: 500; line-height: 1.4; text-wrap: balance; }
@media (min-width: 900px) { .factbar__list { grid-template-columns: 1.5fr 1.2fr 1fr auto; gap: var(--space-7); align-items: center; padding-block: var(--space-6); } }

/* ---------- products ---------- */

.products { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7) clamp(1rem, 2vw, 2rem); margin-top: clamp(1.75rem, 3vw, 3rem); }
@media (min-width: 720px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product { display: flex; flex-direction: column; min-width: 0; }
.product__art { --tint: var(--surface); position: relative; overflow: hidden; aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--tint); }
@media (min-width: 560px) and (max-width: 719.98px) { .product__art { aspect-ratio: 4 / 3; } }
@media (min-width: 720px) { .product__art { aspect-ratio: 4 / 5; } }
.product__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
/* second picture: only on devices that can hover, so phones never download it */
.product__img--alt { display: none; position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .product__img--alt { display: block; }
  .product:hover .product__img--alt { opacity: 1; }
}
.product__body { display: flex; flex-direction: column; flex: 1; gap: var(--space-1); padding-top: var(--space-4); }
.product__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.product__name, .price { font-family: var(--font-display); font-weight: 700; font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.015em; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.product__fruit { font-size: 1.0625rem; text-wrap: balance; }
@media (min-width: 720px) and (max-width: 1499.98px) { .product__fruit { min-height: 3.2em; } } /* two lines, so the rows line up */
@media (min-width: 720px) and (max-width: 1023.98px) {
  .product__name, .product .price { font-size: 1.3125rem; }
  .product__meta { flex-direction: column; }
  .product .btn { padding-inline: var(--space-3); }
}
.product__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--space-4); margin-bottom: var(--space-4); font-size: 0.9375rem; color: var(--muted); }
.product__body .btn { margin-top: auto; }
.notice { margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface); }

/* ---------- picture + text rows ---------- */

.section--flush { padding-top: 0; }
.section--line { border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: center; }
.feature__img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 48%; border-radius: var(--radius-xl); background: var(--surface); }
.feature__media { margin: 0; min-width: 0; }
.feature__copy { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 7vw, 8rem); }
  .feature__img { aspect-ratio: 1 / 1.05; }
  .feature--reverse .feature__media { order: 2; }
}
.steps { list-style: none; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-3); padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: var(--display-sm); line-height: 1.2; color: var(--brand); }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--display-sm); line-height: 1.2; margin-bottom: var(--space-1); }
.step p { color: var(--muted); }
.proof { display: flex; align-items: center; gap: var(--space-4); max-width: 24rem; padding-top: var(--space-5); border-top: 1px solid var(--line); font-weight: 500; line-height: 1.4; }
.proof__num { font-family: var(--font-display); font-weight: 700; font-size: 3.5rem; line-height: 1; letter-spacing: -0.03em; color: var(--brand); }

/* ---------- why ---------- */

.why { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
.why__copy, .why__data { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }
.stat { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-5) 0; border-top: 1px solid #BFD3C5; min-width: 0; }
.stat--lead { grid-column: 1 / -1; padding-top: 0; border-top: 0; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.05; letter-spacing: -0.025em; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat--lead .stat__num { font-size: clamp(5.5rem, 11vw, 10rem); line-height: 0.9; letter-spacing: -0.05em; }
.stat__label { font-size: 1rem; line-height: 1.45; color: var(--muted); }
.stat--lead .stat__label { max-width: 20em; font-size: var(--text-lg); color: var(--ink); }
.source { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 900px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 7vw, 8rem); align-items: center; } }

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

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 4.25rem; padding: var(--space-3) 0; cursor: pointer; list-style: none; font-weight: 600; font-size: var(--text-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 1.125rem; height: 1.125rem; margin-right: var(--space-1);
  background: linear-gradient(var(--brand) 0 0) 50% 50% / 100% 2px no-repeat, linear-gradient(var(--brand) 0 0) 50% 50% / 2px 100% no-repeat;
}
.faq details[open] summary::after { background-size: 100% 2px, 2px 0; }
.faq details p { padding: 0 var(--space-7) var(--space-5) 0; color: var(--muted); max-width: 42em; }

/* ---------- inner pages ---------- */

.page-main { padding: var(--space-5) 0 var(--section-y); }
.link--back { margin-bottom: var(--space-3); }
.thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface); }

/* ---------- basket ---------- */

.basket { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.basket[hidden], .basket-empty[hidden], .basket-more[hidden] { display: none; }
@media (min-width: 900px) {
  .basket { grid-template-columns: minmax(0, 1.75fr) minmax(19rem, 1fr); gap: var(--space-7) clamp(3rem, 6vw, 6rem); }
  .basket .summary { grid-column: 2; grid-row: 1 / span 2; }
  .basket .basket-more { grid-column: 1; grid-row: 2; }
}
.basket__main { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.basket__main h1:focus, .basket-empty h1:focus { outline: none; }

.lines { list-style: none; border-top: 1px solid var(--line); }
.line {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; grid-template-areas: "art info sum" "art controls controls";
  grid-template-rows: auto 1fr; gap: var(--space-3) var(--space-4);
  padding: var(--space-5) 0; border-bottom: 1px solid var(--line);
}
.line .thumb { grid-area: art; border-radius: var(--radius-md); }
@media (max-width: 430px) { .line { grid-template-columns: 5.5rem minmax(0, 1fr) auto; grid-template-areas: "art info sum" "controls controls controls"; } }
@media (max-width: 389px) { .line { grid-template-columns: 5.5rem minmax(0, 1fr); grid-template-areas: "art info" "art sum" "controls controls"; } }
@media (min-width: 640px) { .line { grid-template-columns: 9rem minmax(0, 1fr) auto; column-gap: var(--space-6); } }
.line__info { grid-area: info; min-width: 0; }
.line__name { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1.2; }
.line__fruit { font-size: 0.9375rem; line-height: 1.4; }
.line__unit { margin-top: var(--space-1); font-size: var(--text-sm); line-height: 1.4; color: var(--muted); }
.line__controls { grid-area: controls; align-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.line__sum { grid-area: sum; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines__note { margin-top: calc(-1 * var(--space-4)); font-size: var(--text-sm); color: var(--muted); }

.stepper { display: inline-grid; grid-template-columns: 2.75rem 2rem 2.75rem; align-items: center; border: 1.5px solid var(--field-line); border-radius: var(--radius-pill); }
.stepper button { width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); font: 500 1.375rem/1 var(--font-body); cursor: pointer; }
.stepper button:hover { background: var(--surface); }
.stepper button[aria-disabled="true"] { color: #74857A; background: none; cursor: default; }
.stepper output { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.plan { margin: 0; padding: 0; border: 0; display: grid; gap: var(--space-3); min-width: 0; }
@media (min-width: 640px) { .plan { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan legend { padding: 0; margin-bottom: var(--space-3); font-family: var(--font-display); font-weight: 700; font-size: var(--display-sm); }
.plan__option {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1.5px var(--field-line); cursor: pointer;
}
.plan__option:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--brand); }
.plan__option input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; accent-color: var(--brand); flex: 0 0 auto; }
.plan__text { display: flex; flex-direction: column; gap: var(--space-1); }
.plan__name { font-weight: 600; }
.plan__hint { font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }

.basket-more { display: flex; flex-direction: column; gap: var(--space-4); }
.more-list { list-style: none; border-top: 1px solid var(--line); }
.more { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.more__name { font-weight: 600; }
.more__fruit { font-size: var(--text-sm); line-height: 1.4; color: var(--muted); }
@media (max-width: 380px) {
  .more { grid-template-columns: 3rem minmax(0, 1fr) auto; gap: var(--space-2); }
  .more .btn { padding-inline: 0.75rem; }
}

.summary { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface); }
@media (min-width: 900px) { .summary { position: sticky; top: 6rem; } }
.summary__rows { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.summary__rows div { display: flex; justify-content: space-between; gap: var(--space-4); }
.summary__rows dt { color: var(--muted); }
.summary__rows dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.summary__total { padding-top: var(--space-3); margin-top: var(--space-2); border-top: 1px solid #BFD3C5; }
.summary__total dt, .summary__total dd { color: var(--ink); font-weight: 700; font-size: var(--text-lg); }
.summary__note { font-size: 0.9375rem; color: var(--muted); }
.summary__note[hidden] { display: none; }

.basket-empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-7) 0; }

/* ---------- sticky basket / checkout bar on phones ---------- */

.sticky-bar { display: none; }
[data-sticky-label] { white-space: nowrap; }
@media (max-width: 767px) {
  .has-sticky .sticky-bar:not([hidden]) {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line);
  }
  .has-sticky .site-footer { padding-bottom: calc(var(--space-6) + 5.5rem); }
  html:has(body.has-sticky) { scroll-padding-bottom: 6.5rem; } /* focused elements never hide behind the bar */
}

/* ---------- checkout: the reveal ---------- */

.reveal__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding-top: var(--space-5); }
@media (min-width: 900px) {
  .reveal__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-7) clamp(3rem, 6vw, 6rem); align-items: start; padding-top: var(--space-7); }
  .reveal__links { grid-column: 1 / -1; }
}
.reveal__copy { display: flex; flex-direction: column; gap: var(--space-5); }
.reveal__copy .display--lg { font-size: clamp(2.125rem, 3.8vw, 3.5rem); }
.reveal__copy .nowrap { white-space: normal; }
.reveal__order { display: flex; align-items: center; gap: var(--space-4); padding-top: var(--space-5); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.reveal__order:has(#order-summary:empty) { display: none; }
.reveal__thumbs { list-style: none; display: flex; gap: var(--space-2); flex: 0 0 auto; }
.reveal__thumbs:empty { display: none; }
.reveal__thumbs li { width: 3.75rem; }
.reveal__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }

/* ---------- form ---------- */

.form-card {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: clamp(var(--space-5), 3vw, 2.25rem); border-radius: var(--radius-lg);
  background: var(--surface);
}
.form { display: flex; flex-direction: column; gap: var(--space-5); margin: 0; }
.form[hidden] { display: none; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend, .form label { display: block; font-size: 0.9375rem; font-weight: 600; }
.form legend { padding: 0; margin-bottom: var(--space-3); }
.optional { font-weight: 400; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.form input[type="email"] {
  width: 100%; min-height: 3.25rem; padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--field-line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--font-body);
}
.form input[type="email"]:focus { border-color: var(--brand); }
.form input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.form input::placeholder { color: #6B7A70; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.form .chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 2.75rem; padding: 0 var(--space-4);
  border: 1.5px solid var(--field-line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font-weight: 500; cursor: pointer;
}
.chip input { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--brand); }
.form .chip:has(input:checked) { border-color: var(--brand); background: var(--paper); box-shadow: inset 0 0 0 1px var(--brand); }

.spinner { display: none; }
.btn[aria-busy="true"] .spinner { display: block; animation: tf-spin 0.8s linear infinite; }
@keyframes tf-spin { to { transform: rotate(360deg); } }

.form-status { font-size: 0.9375rem; font-weight: 500; }
.form-status:empty { margin-top: calc(-1 * var(--space-5)); } /* stays in the accessibility tree so errors are announced */
.form-status.is-error { color: var(--error); }
.fine-print { font-size: var(--text-sm); line-height: 1.55; color: var(--muted); }
.fine-print a { color: var(--ink); text-underline-offset: 3px; }

.form-success { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-md); background: var(--paper); }
.form-success[hidden] { display: none; }
.form-success:focus { outline: 3px solid var(--brand); outline-offset: 3px; }
.form-success__icon { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--brand); color: var(--paper); flex: 0 0 auto; }
.form-success__title { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1.2; margin-bottom: var(--space-1); }

/* ---------- plain pages (privacy, thanks, 404) ---------- */

.prose { max-width: 46rem; }
.prose h1 { margin: var(--space-5) 0 var(--space-3); }
.prose h2 { margin: var(--space-7) 0 var(--space-3); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.25rem; display: grid; gap: var(--space-2); margin: var(--space-3) 0; }
.prose p + p { margin-top: var(--space-3); }
.prose a:not(.btn):not(.link) { text-underline-offset: 3px; }
.prose__back { margin-top: var(--space-7); }
.prose { margin-left: max(0px, calc((100% - 100rem) / 2)); }
.prose--center { padding: var(--space-7) var(--gutter); display: flex; flex-direction: column; gap: var(--space-4); }
.prose--center .prose__back { margin-top: var(--space-4); }

/* ---------- footer ---------- */

.site-footer { background: var(--brand-dark); color: var(--paper); padding: var(--space-7) 0 var(--space-6); }
.footer__line { font-size: 1rem; color: var(--on-brand-muted); }
.footer__line .wordmark { color: var(--paper); font-size: 1.25rem; }
.footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--space-6); margin-top: var(--space-4); }
.site-footer :focus-visible { outline-color: var(--paper); }

/* basket content is drawn by script: keep the footer below the fold so nothing jumps */
.page-basket .page-main { min-height: 100vh; }

/* ---------- motion ----------
   Calm, short and once. Nothing loops, and the buy buttons never animate (that would skew the
   price test). Everything here is off for visitors who prefer reduced motion. Without JavaScript
   nothing is hidden: .rise is only added by shop.js. */

@media (prefers-reduced-motion: no-preference) {
  /* first screen: the text settles in and the packshot eases back a little */
  .hero__copy > * { animation: tf-rise 600ms var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: 70ms; }
  .hero__copy > :nth-child(3) { animation-delay: 140ms; }
  .hero__media img { transform-origin: 0 60%; animation: tf-settle 1400ms var(--ease) both; }

  /* further down: blocks rise in as you scroll to them */
  .rise { opacity: 0; transform: translateY(20px); }
  .rise.is-in { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  @media (min-width: 900px) { /* only where the two blocks sit side by side */
    .feature__media.is-in + .feature__copy.is-in, .why__copy.is-in + .why__data.is-in { transition-delay: 90ms; }
  }

  /* small answers to what people do */
  .basket-count.is-bumped { animation: tf-bump 320ms var(--ease); }
  .line.is-new { animation: tf-fade 450ms var(--ease); }
  .form-success { animation: tf-rise 450ms var(--ease) both; }
  .form-success__icon .icon { stroke-dasharray: 20; animation: tf-draw 450ms 200ms cubic-bezier(0.65, 0, 0.35, 1) both; }
  .faq summary::after { transition: background-size 200ms var(--ease); }
  .faq details[open] > p { animation: tf-fade 300ms var(--ease); }
  .plan__option { transition: box-shadow var(--fast) var(--ease); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .product__img { transition: transform 700ms var(--ease); }
  .product__img--alt { transition: opacity 320ms var(--ease), transform 700ms var(--ease); }
  .product__art:hover .product__img { transform: scale(1.025); }
}
@media print { .rise { opacity: 1; transform: none; } }

@keyframes tf-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes tf-settle { from { transform: scale(1.025); } }
@keyframes tf-fade { from { opacity: 0; } }
@keyframes tf-bump { 40% { transform: scale(1.12); } }
@keyframes tf-draw { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }
