/* DoughLab website — tokens shared with the app (src/theme.js). */
/* Bricolage Grotesque, subset WOFF2 (latin + latin-ext; Polish letters are in latin-ext). The build swaps these
   paths for content-hashed names. unicode-range values from @fontsource/bricolage-grotesque. */
@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/bricolage-400-latin.826772cb12.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/bricolage-400-latin-ext.5275e25c22.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/bricolage-600-latin.b34fc8c1ef.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/bricolage-600-latin-ext.9903537bd1.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/bricolage-800-latin.3e1b5f0a56.woff2') format('woff2'); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/bricolage-800-latin-ext.e101adfee2.woff2') format('woff2'); font-weight: 800; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Metric-matched fallback (Arial scaled to Bricolage's average glyph width and vertical metrics) so the swap
   to the web font moves text as little as possible. Measured from the TTFs with opentype.js. */
@font-face { font-family: 'Bricolage Fallback'; src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Liberation Sans'); size-adjust: 103%; ascent-override: 90%; descent-override: 26%; line-gap-override: 0%; }

:root {
  --bench: #F4F5F1;      /* flour on the bench */
  --surface: #FFFFFF;
  --sunken: #E9EBE4;
  --ink: #23261F;        /* cast iron */
  --ink-soft: #474B42;
  --muted: #5F6359;
  --line: #DADDD3;
  --input: #80857A;
  --tomato: #D3311E;
  --tomato-dark: #AE2312;
  --tomato-soft: #FBE3DE;
  --crust: #A8661A;
  --crust-soft: #F4E8D3;
  --basil: #2E6A39;
  --basil-soft: #E1EEE2;
  --cold: #2F6F92;
  --on-ink: #F4F5F1;
  --on-ink-muted: #B9BDB0;

  --font: 'Bricolage', 'Bricolage Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.5rem + 4vw, 4.2rem);
  --radius: 14px;
  --radius-small: 8px;
  --shadow-rest: 0 1px 2px rgba(35, 38, 31, .06);
  --shadow-lift: 0 8px 24px rgba(35, 38, 31, .08);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-rise: cubic-bezier(.3, 1.3, .6, 1);
  --ease-pop: cubic-bezier(.33, 1.2, .55, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bench); color: var(--ink); font: 400 var(--step-0)/1.55 var(--font); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: var(--step-4); letter-spacing: -0.035em; max-width: 16ch; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 68ch; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--on-ink); padding: .6rem 1rem; border-radius: var(--radius-small); z-index: 10; }
.skip-link:focus { top: 1rem; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.wrap-narrow { width: min(720px, 100% - 2.5rem); margin-inline: auto; }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.45; }
.muted { color: var(--muted); }
.fine { font-size: var(--step--1); color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.25rem; border-radius: 999px;
  font: 600 1rem/1.1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s; }
.header-cta { white-space: nowrap; }
.btn-small { min-height: 40px; padding: .45rem 1rem; font-size: .95rem; }
.btn-tomato { background: var(--tomato); color: #fff; }
.btn-tomato:hover { background: var(--tomato-dark); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-soft); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--on-ink); }
.btn-ghost-light { border-color: var(--on-ink); color: var(--on-ink); }
.btn-ghost-light:hover { background: var(--on-ink); color: var(--ink); }
.btn-amazon { background: var(--crust-soft); color: var(--ink); border-color: var(--crust); }
.btn-shop { background: var(--surface); color: var(--ink); border-color: var(--input); }
.btn-shop:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.offer-buttons { display: grid; gap: .5rem; }
.gear-inline .offer-buttons { justify-items: start; }
.btn-amazon:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.text-link { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--tomato); }
.hero-links { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- header / footer ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bench); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; text-decoration: none; }
.wordmark img { border-radius: 8px; }
.main-nav { display: flex; gap: .25rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.main-nav a { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .75rem; border-radius: 999px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.main-nav a:hover { background: var(--sunken); }
.main-nav a[aria-current="page"] { background: var(--ink); color: var(--on-ink); }

.site-footer { margin-top: 5rem; background: var(--ink); color: var(--on-ink); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h2 { font-size: 1rem; color: var(--on-ink-muted); font-weight: 600; letter-spacing: 0; }
.footer-grid nav a { display: block; padding: .3rem 0; text-decoration: none; }
.footer-grid nav a:hover { text-decoration: underline; }
.footer-brand p { color: var(--on-ink-muted); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #3C4036; color: var(--on-ink-muted); font-size: var(--step--1); }
.disclosure { max-width: 80ch; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- page structure ---------- */
.page-head { padding: 3.5rem 0 2rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.crumbs ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--step--1); color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: .4rem; }

/* ---------- hero with live ticket ---------- */
.hero { padding: 4rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero h1 { max-width: 13ch; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.ticket { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem 1.5rem 1rem; box-shadow: 8px 8px 0 var(--ink); }
.ticket-head { display: flex; justify-content: space-between; font-weight: 800; font-size: var(--step-1); padding-bottom: .9rem; margin-bottom: 1rem; border-bottom: 2px dashed var(--line); }
.ticket-head span:last-child { color: var(--muted); font-weight: 600; font-size: 1rem; align-self: end; }
.ticket-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .2rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.ticket-field input { grid-column: 1 / -1; grid-row: 2; width: 100%; accent-color: var(--tomato); min-height: 32px; }
.ticket-field output { font-variant-numeric: tabular-nums; font-weight: 800; font-size: var(--step-1); }
.ticket-note { font-size: var(--step--1); color: var(--muted); margin-bottom: .5rem; }

/* ---------- ingredients ---------- */
.ingredients { margin: .5rem 0 1.25rem; font-variant-numeric: tabular-nums; }
.ingredients caption { text-align: left; color: var(--muted); font-size: var(--step--1); padding-bottom: .4rem; }
.ingredients th, .ingredients td { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.ingredients th { text-align: left; font-weight: 400; }
.ingredients td { text-align: right; font-weight: 800; font-size: var(--step-1); }
.ticket-table td { font-size: var(--step-2); }

/* ---------- fermentation ruler (the signature element) ---------- */
.ruler { margin: 1rem 0 2.25rem; }
.ruler-track { position: relative; height: 18px; background: var(--sunken); border-radius: 999px; }
.ruler-safe { position: absolute; inset: 0 auto 0 0; background: var(--basil); border-radius: 999px; }
.marker { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 3px solid var(--surface); background: var(--ink); }
.marker-fits { background: var(--surface); border-color: var(--ink); }
.marker-too-long, .marker-too-wet { background: var(--tomato); border-color: var(--surface); }
.ruler-ticks { position: relative; height: 2.4em; margin-top: .35rem; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tick { position: absolute; transform: translateX(-50%); white-space: nowrap; text-align: center; line-height: 1.2; }
.tick:first-child { transform: none; }
.ruler-compact { margin: 0; }
.ruler-compact .ruler-track { height: 8px; }
.ruler-unknown { color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: var(--step--1); color: var(--muted); }
.key { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: .25rem; }
.key-safe { background: var(--basil); border-radius: 4px; }
.key-fits { border: 3px solid var(--ink); background: var(--surface); }
.key-too-long { background: var(--tomato); }

.flour-feature { display: grid; gap: .25rem; margin-bottom: 1.5rem; }
.flour-feature-row { display: grid; grid-template-columns: minmax(10rem, 1fr) auto; gap: .25rem 1rem; padding: 1.1rem 1.25rem .2rem; border-radius: var(--radius); text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.flour-feature-row:hover { border-color: var(--ink); }
.ff-name { font-weight: 800; font-size: var(--step-1); }
.ff-meta { color: var(--muted); font-variant-numeric: tabular-nums; align-self: center; }
.flour-feature-row .ruler { grid-column: 1 / -1; margin-bottom: 1.6rem; }

/* ---------- temperature ruler ---------- */
.temp-ruler { margin: 1rem 0 2.5rem; }
.temp-track { position: relative; height: 18px; border-radius: 999px; overflow: hidden; background: var(--sunken); }
.zone { position: absolute; top: 0; bottom: 0; opacity: .35; }
.zone-home { left: 0; background: var(--cold); }
.zone-medium { background: var(--crust); }
.zone-hot { background: var(--tomato); }
.temp-fill { position: absolute; inset: 6px auto 6px 0; background: var(--ink); border-radius: 999px; }
.temp-ruler-compact { margin: 0; }
.temp-ruler-compact .temp-track { height: 8px; }
.temp-ruler-compact .temp-fill { inset: 2px auto 2px 0; }
.temp-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: var(--step--1); color: var(--muted); margin: 1rem 0; }
.temp-legend .key { border-radius: 3px; opacity: .6; }

/* ---------- catalogs ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.filters label, .calc-form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.filter-search { flex: 1 1 16rem; }
input[type="search"], input[type="number"], input[type="email"], select {
  font: inherit; min-height: 48px; padding: .55rem .8rem; border: 2px solid var(--input); border-radius: var(--radius-small); background: var(--surface); color: var(--ink); width: 100%; }
.filter-count { margin: 0 0 .7rem auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.catalog-table th, .catalog-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.catalog-table thead th { font-size: var(--step--1); color: var(--muted); font-weight: 600; background: var(--bench); position: sticky; top: 0; }
.catalog-table tbody th { font-weight: 600; }
.catalog-table tbody th a { text-decoration: none; }
.catalog-table tbody th a:hover { text-decoration: underline; text-decoration-color: var(--tomato); }
.catalog-table tbody tr:last-child > * { border-bottom: 0; }
.window-cell { min-width: 16rem; display: flex; align-items: center; gap: .75rem; }
.window-cell .ruler { flex: 1; }
.window-label { font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; font-size: .95rem; min-width: 4.5rem; }

.oven-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.oven-row, .oven-mini a { display: grid; grid-template-columns: 96px 1fr auto; grid-template-rows: auto auto; align-items: center; gap: .3rem 1.25rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.oven-row:hover, .oven-mini a:hover { border-color: var(--ink); }
.oven-row .oven-icon { grid-row: 1 / span 2; }
.or-name { display: grid; }
.or-name span { color: var(--muted); font-size: .95rem; }
.or-temp, .om-temp { font-weight: 800; font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.oven-row .temp-ruler { grid-column: 2 / -1; }
.oven-icon { width: 96px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.oven-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.oven-mini a { grid-template-columns: 1fr auto; font-weight: 600; }
.oven-mini .temp-ruler { grid-column: 1 / -1; }
@media (max-width: 560px) { .oven-row { grid-template-columns: 1fr auto; } .oven-row .oven-icon { display: none; } .oven-row .temp-ruler { grid-column: 1 / -1; } }

/* ---------- product pages ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
.product-main h2 { margin-top: 2.5rem; }
.product-aside { position: sticky; top: 92px; display: grid; gap: 1rem; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; } .product-aside { position: static; } }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.specs > div { background: var(--surface); padding: 1rem 1.1rem; }
.specs dt { font-size: var(--step--1); color: var(--muted); }
.specs dd { margin: .2rem 0 0; font-weight: 800; font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.specs-stack { grid-template-columns: 1fr; margin-bottom: 1.25rem; }
.buy-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.buy-box h2 { font-size: var(--step-1); }
.buy-box .btn { width: 100%; }
.buy-box .oven-icon { margin-bottom: 1rem; }
.similar { padding: 0 .25rem; }
.similar h2 { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.similar ul { list-style: none; padding: 0; margin: 0; }
.similar li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.similar li span { color: var(--muted); font-variant-numeric: tabular-nums; }

.fit-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.fit-list li { display: grid; grid-template-columns: 8rem 1fr auto; gap: 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.fit-list a { font-weight: 800; }
.fit-list span { color: var(--muted); font-variant-numeric: tabular-nums; }
.fit-list b { font-weight: 600; }
.fit-fits b { color: var(--basil); }
.fit-too-long b, .fit-too-wet b { color: var(--tomato-dark); }
.fit-unknown b { color: var(--muted); }
@media (max-width: 560px) { .fit-list li { grid-template-columns: 1fr auto; } .fit-list span { grid-column: 1; grid-row: 2; } }

.gear-inline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.gear-inline li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; }
.gear-inline b { font-size: var(--step-1); font-weight: 800; margin-bottom: .4rem; }
.gear-inline p { color: var(--ink-soft); flex: 1; }
.gear-inline .btn { align-self: start; }
.gear-groups > section { margin-bottom: 3rem; }
.gear-strip { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.gear-strip li { border-top: 3px solid var(--ink); padding-top: 1rem; }
.gear-strip p { color: var(--ink-soft); }
@media (max-width: 760px) { .gear-strip { grid-template-columns: 1fr; gap: 1.5rem; } }

.chip-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-list a { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--input); border-radius: 999px; text-decoration: none; background: var(--surface); font-weight: 600; }
.chip-list a:hover { border-color: var(--ink); background: var(--sunken); }
.steps { padding-left: 1.4rem; }
.steps li { margin-bottom: .9rem; padding-left: .3rem; max-width: 68ch; }
.steps li::marker { font-weight: 800; color: var(--tomato); }

/* ---------- recipes & knowledge lists ---------- */
.recipe-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1rem; }
.recipe-list a { display: block; height: 100%; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.recipe-list a:hover { border-color: var(--ink); }
.rl-stats { color: var(--muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.guide-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.guide-list a { display: grid; grid-template-columns: 11rem 1fr; gap: .2rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.guide-list a:hover .gl-title { text-decoration: underline; text-decoration-color: var(--tomato); text-underline-offset: 4px; }
.gl-topic { color: var(--muted); grid-row: span 2; font-weight: 600; }
.gl-title { font-weight: 800; font-size: var(--step-1); }
.gl-lead { color: var(--ink-soft); }
@media (max-width: 640px) { .guide-list a { grid-template-columns: 1fr; } .gl-topic { grid-row: auto; } }

.article { padding: 3.5rem 0 1rem; }
.article h1 { font-size: var(--step-3); max-width: 22ch; }
.article h2 { margin-top: 2.25rem; font-size: var(--step-1); }
.article p { font-size: 1.125rem; line-height: 1.65; }
.article-topic { color: var(--muted); font-weight: 600; margin-bottom: .5rem; }
.article-cta { margin-top: 2.5rem; }

/* ---------- calculator ---------- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 3rem; align-items: start; }
@media (max-width: 960px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-form fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1rem; }
.calc-form legend { font-weight: 800; font-size: var(--step-1); margin-bottom: .75rem; padding: 0; }
.pro-lock { background: var(--surface); border: 1px dashed var(--input); border-radius: var(--radius); padding: 1rem 1.25rem; }
.pro-lock p { margin-bottom: .4rem; }
.calc-result { position: sticky; top: 92px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; box-shadow: 8px 8px 0 var(--ink); }
@media (max-width: 960px) { .calc-result { position: static; } }
.calc-warnings { padding-left: 1.2rem; color: var(--tomato-dark); }
.calc-warnings:empty { display: none; }
.calc-upsell { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.calc-error { color: var(--tomato-dark); font-weight: 600; }

/* ---------- app band & Pro ---------- */
.app-band { background: var(--ink); color: var(--on-ink); margin-top: 4rem; }
.app-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: 3rem 0; }
.app-band h2 { font-size: var(--step-3); }
.app-band p { color: var(--on-ink-muted); margin: 0; }
.app-band-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.plan-buttons { display: grid; gap: .5rem; margin: 1rem 0; }
.account-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.signin { display: grid; gap: 1rem; max-width: 26rem; }
.signin label { display: grid; gap: .3rem; font-weight: 600; }
.pro-active { font-weight: 800; color: var(--basil); }


/* ---------- product tiles (own visuals, no photos) ---------- */
.tile { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 4 / 3; background:
  radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--tile) 22%, #fff) 0%, color-mix(in srgb, var(--tile) 12%, var(--bench)) 70%); }
.tile-hero { aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--line); }
.sack { position: absolute; width: 58%; height: 84%; top: 10%; }
.sack path { fill: var(--tile); }
.sack .sack-label { fill: color-mix(in srgb, var(--tile) 70%, #000); opacity: .45; }
.sack .sack-tie { fill: none; stroke: color-mix(in srgb, var(--tile) 55%, #000); stroke-width: 4; stroke-linecap: round; }
.sack-mark, .sack-w, .sack-sub { position: absolute; left: 50%; transform: translateX(-50%); color: #fff; text-align: center; white-space: nowrap; }
.sack-mark { top: 24%; font-weight: 800; font-size: .8rem; letter-spacing: .08em; opacity: .85; }
.sack-w { top: 43%; font-weight: 800; font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sack-sub { top: 64%; font-size: .8rem; opacity: .9; }
.tile-hero .sack-mark { font-size: 1.1rem; }
.tile-hero .sack-w { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.tile-hero .sack-sub { font-size: 1rem; }
.oven-shape { width: 62%; fill: color-mix(in srgb, var(--tile) 14%, #fff); stroke: var(--tile); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; margin-top: -8%; }
.tile-temp { position: absolute; bottom: 9%; left: 50%; transform: translateX(-50%); background: var(--tile); color: #fff; font-weight: 800; padding: .2rem .7rem; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile-hero .tile-temp { font-size: var(--step-2); padding: .3rem 1rem; }

/* ---------- cards ---------- */
.card-grid { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 1rem; }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow-rest); transition: border-color .22s, box-shadow .22s; }
a.card:hover, a.card:focus-visible { border-color: var(--ink); box-shadow: var(--shadow-lift); }
.card-body { display: grid; gap: .2rem; padding: .85rem 1rem 1rem; }
.card-kicker { color: var(--muted); font-size: .8125rem; font-weight: 600; margin: 0; }
.card-title { font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0 0; }
.chip { display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: 999px; background: var(--sunken); color: var(--ink-soft); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.chip-s1 { background: #E3EEF5; color: var(--coldText, #245A78); }
.chip-s2 { background: var(--basil-soft); color: var(--basil); }
.chip-s3 { background: var(--crust-soft); color: #7E4510; }
.chip-s4 { background: var(--tomato-soft); color: var(--tomato-dark); }
.chip-s5 { background: var(--ink); color: var(--on-ink); }

/* ---------- filters as chips ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.filters > label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.chip-group { min-inline-size: 0; min-width: 0; border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; flex-basis: 100%; }
.chip-group legend { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; padding: 0; width: 100%; }
.chip-toggle { position: relative; }
.chip-toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-toggle span { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--input); background: var(--surface); font-weight: 600; }
.chip-toggle small { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.chip-toggle input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip-toggle input:checked + span small { color: var(--on-ink-muted); }
.chip-toggle input:focus-visible + span { outline: 3px solid var(--tomato); outline-offset: 2px; }
.view-toggle { flex-basis: auto; }
.empty-state { padding: 2rem; text-align: center; background: var(--surface); border: 1px dashed var(--input); border-radius: var(--radius); }

/* ---------- product hero ---------- */
.product-hero { padding: 2.5rem 0 1rem; }
.hero-product { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 2.5rem; align-items: center; margin-bottom: 2rem; }
.hero-product h1 { font-size: var(--step-3); max-width: 20ch; margin-bottom: .3rem; }
.hero-product .chips { margin: 0 0 1rem; }
.hero-product .lead { font-size: 1.15rem; }
.hero-offers { display: grid; gap: .4rem; max-width: 24rem; }
.hero-offers .offer-buttons { grid-template-columns: repeat(auto-fit, minmax(10rem, max-content)); }
.hero-product-copy .hero-links + .hero-offers { margin-top: .75rem; }
@media (max-width: 760px) { .hero-product { grid-template-columns: 1fr; gap: 1.5rem; } .tile-hero { max-width: 280px; } }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin: 0 0 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-row > div { padding: 1rem 1.2rem; border-left: 1px solid var(--line); }
.stat-row > div:first-child { border-left: 0; }
.stat-row dt { font-size: var(--step--1); color: var(--muted); }
.stat-row dd { margin: .2rem 0 0; display: grid; gap: .35rem; }
.stat-row b { font-size: var(--step-2); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-row small { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 640px) { .stat-row > div { border-left: 0; border-top: 1px solid var(--line); } .stat-row > div:first-child { border-top: 0; } }
.meter { display: inline-flex; gap: 4px; }
.meter i { width: 10px; height: 10px; border-radius: 50%; background: var(--sunken); border: 1px solid var(--line); }
.meter i.on { background: var(--basil); border-color: var(--basil); }
.section-tight { padding: 1rem 0 0; }
.section-tight h2 { margin-bottom: 1rem; }
.style-table td, .style-table th { white-space: nowrap; }
@media (max-width: 560px) {
  .card-grid, .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .card-body { padding: .6rem .7rem .75rem; }
  .card-title { font-size: 1rem; }
  .card .chip { font-size: .72rem; padding: .1rem .45rem; }
  .card .sack-sub { display: none; }
}
@media (max-width: 560px) {
  .page-head { padding: 2rem 0 1rem; }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; }
  .filters > .filter-search { grid-column: 1 / -1; }
  .filters select { min-width: 0; }
  .chip-group { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
  .chip-group legend { float: left; }
  .chip-toggle span { white-space: nowrap; }
  .filter-count { grid-column: 1 / -1; margin: 0; }
}

/* ---------- blog ---------- */
.tile-article { aspect-ratio: 16 / 9; background: var(--tile); color: #fff; place-items: end start; padding: 1.1rem 1.2rem; }
.tile-article::after { content: ''; position: absolute; right: -12%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, #fff 14%, transparent); }
.article-topic-big { font-weight: 800; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); letter-spacing: -0.02em; position: relative; z-index: 1; }
.article-minutes { position: absolute; top: 1rem; left: 1.2rem; font-size: .8rem; opacity: .9; }
.tile-wide { aspect-ratio: auto; min-height: 100%; }
.card-featured { display: grid; grid-template-columns: 1.1fr 1fr; }
.card-featured .card-body { padding: 2rem; align-content: center; gap: .6rem; }
.card-featured .card-title { font-size: var(--step-2); line-height: 1.08; letter-spacing: -0.02em; }
.card-lead { color: var(--ink-soft); font-size: 1.05rem; }
@media (max-width: 760px) { .card-featured { grid-template-columns: 1fr; } .card-featured .tile-wide { aspect-ratio: 16 / 9; } .card-featured .card-body { padding: 1.2rem; } }
.blog-featured { margin-bottom: 2rem; }
.blog-topics { margin-bottom: 1rem; }
.chip-link { text-decoration: none; border: 1px solid var(--input); background: var(--surface); padding: .35rem .8rem; font-size: .9rem; }
.chip-link::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tile); margin-right: .4rem; }
.chip-link:hover { border-color: var(--ink); }
.blog-topic { margin-top: 2.5rem; }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
@media (max-width: 560px) { .card-grid-3 { grid-template-columns: 1fr; } }
.article-long header { padding-bottom: 1rem; }
.article-long h1 { font-size: var(--step-3); max-width: 24ch; }
.topic-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--tile); margin-right: .45rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.5rem 0 0; }
.toc h2 { font-size: 1rem; margin: 0 0 .5rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.toc a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.article-body h2 { margin-top: 2.25rem; font-size: var(--step-1); scroll-margin-top: 90px; }
.article-body p, .article-body li { font-size: 1.125rem; line-height: 1.7; }
.article-body ul { padding-left: 1.3rem; }
.article-body li { margin-bottom: .4rem; }
.faq { display: grid; gap: .5rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); padding: .9rem 1.1rem; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details[open] summary { margin-bottom: .5rem; }
.faq p { margin: 0; }
.article-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- ovens: pros and cons ---------- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pros-cons h2 { margin-top: 2.5rem; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; gap: 0; } }
.pc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.pc-list li { position: relative; padding-left: 1.8rem; }
.pc-list li::before { position: absolute; left: 0; top: .1rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.pc-pros li::before { content: '+'; background: var(--basil-soft); color: var(--basil); }
.pc-cons li::before { content: '!'; background: var(--crust-soft); color: #7E4510; }

/* ---------- promo card ---------- */
.promo-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.4rem 1.6rem; margin-bottom: 2.5rem; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); text-decoration: none; }
.promo-card b { display: block; font-size: var(--step-1); }
.promo-card span span { color: var(--ink-soft); }

/* ---------- a11y: 24px minimum targets for standalone links, scroll cue on mobile nav ---------- */
.toc a, .style-table a, .fit-list a, .pro-lock .text-link, .similar a, .crumbs a { display: inline-block; padding-block: .2rem; }

.calc-form label:has(select[name="storage"]) { grid-column: span 2; }
@media (max-width: 560px) { .calc-form label:has(select[name="storage"]) { grid-column: auto; } }

/* ======================================================================
   Design upgrade (icons, phone tab bar, Pro page, photo slot, motion)
   ====================================================================== */

/* ---------- icons ---------- */
.icon { display: inline-block; flex: none; vertical-align: middle; }
.btn .icon { margin-inline-start: -.15rem; }
.btn[data-aff] .icon { margin-inline: 0 -.2rem; opacity: .8; }
.main-nav a[aria-current="page"] .icon { fill: color-mix(in srgb, currentColor 20%, transparent); }
.stat-row dt, .specs dt { display: flex; align-items: center; gap: .35rem; }
.stat-row dt .icon, .specs dt .icon { color: var(--ink-soft); }
.calc-form legend { display: flex; align-items: center; gap: .5rem; }
.chip-group legend { display: flex; align-items: center; gap: .35rem; }
.filter-search > span { display: inline-flex; align-items: center; gap: .35rem; }
.pro-lock .icon { vertical-align: -3px; margin-right: .35rem; }
.chip-toggle input:not(:checked) + span .icon { color: var(--ink-soft); }

/* ---------- desktop header: icons only where there is room ---------- */
@media (min-width: 861px) and (max-width: 1120px) {
  .main-nav .icon, .header-cta .icon { display: none; }
  .header-row { gap: .75rem; }
  .main-nav a { padding-inline: .6rem; }
}

/* ---------- phone: one 56px header row + bottom tab bar ---------- */
.tabbar { display: none; }
/* Keep anchored and focused elements clear of the sticky header (desktop) and the tab bar (phone). */
html { scroll-padding-top: 84px; }
@media (max-width: 860px) {
  html { scroll-padding-top: 1rem; scroll-padding-bottom: 76px; }
  .site-header { position: static; }
  .header-row { min-height: 56px; gap: .75rem; }
  .main-nav, .site-header .lang-switch { display: none; }
  .header-cta { margin-left: auto; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; inset: auto 0 0 0; z-index: 20;
    background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -6px 18px rgba(35, 38, 31, .06); }
  .tabbar > a, .tab-more > summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px;
    padding: .35rem .15rem; font-size: .75rem; font-weight: 600; line-height: 1.15; text-decoration: none; color: var(--ink-soft); cursor: pointer; list-style: none; text-align: center; }
  .tab-more > summary::-webkit-details-marker { display: none; }
  .tabbar > a[aria-current="page"], .tab-more > summary.is-current { color: var(--tomato-dark); }
  .tabbar > a[aria-current="page"] .icon, .tab-more > summary.is-current .icon { fill: color-mix(in srgb, currentColor 20%, transparent); }
  .tabbar :focus-visible { outline-offset: -3px; }
  .tab-more[open] > summary { color: var(--ink); background: var(--sunken); }
  .tab-sheet { position: absolute; right: .5rem; bottom: calc(100% + .5rem); min-width: 13rem; display: grid; padding: .4rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); }
  .tab-sheet a { display: flex; align-items: center; min-height: 44px; padding: .5rem .9rem; border-radius: var(--radius-small); text-decoration: none; font-weight: 600; }
  .tab-sheet a:hover { background: var(--sunken); }
  .tab-sheet a[aria-current="page"] { color: var(--tomato-dark); }
  .tab-sheet a[hreflang] { border-top: 1px solid var(--line); margin-top: .3rem; border-radius: 0 0 var(--radius-small) var(--radius-small); }
  .article-body h2, .toc + * { scroll-margin-top: 1rem; }
}
@media (max-width: 380px) { .header-cta .icon { display: none; } }
@media (max-width: 560px) { .hero { padding-top: 2rem; } }

/* ---------- home: what is in the catalogs ---------- */
.facts-band { background: var(--surface); border-block: 1px solid var(--line); }
.facts { list-style: none; padding: 0; margin-block: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li + li { border-left: 1px solid var(--line); }
.facts a { display: flex; gap: .75rem; align-items: flex-start; height: 100%; padding: 1.1rem 1.25rem; text-decoration: none; }
.facts a .icon { margin-top: .15rem; color: var(--ink-soft); }
.facts b { display: block; font-size: var(--step-1); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.facts small { display: block; color: var(--muted); font-size: var(--step--1); }
.facts a:hover b { text-decoration: underline; text-decoration-color: var(--tomato); text-underline-offset: 4px; }
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(odd) { border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .facts a { padding: .9rem .25rem .9rem 0; gap: .5rem; }
  .facts li:nth-child(even) a { padding-left: .9rem; }
}

/* ---------- grids without orphans ---------- */
.card-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid-6 .sack-w { font-size: clamp(1rem, .6rem + .8vw, 1.25rem); }
@media (max-width: 1100px) { .card-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .card-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } }

/* ---------- flour sack: type pattern + strength band ---------- */
.sack .sack-pattern path { fill: none; stroke: color-mix(in srgb, var(--tile) 25%, #fff); stroke-width: 2.5; stroke-linecap: round; opacity: .75; }
.sack .sack-pattern .thick { stroke-width: 5; }
.sack .sack-pattern circle { fill: color-mix(in srgb, var(--tile) 25%, #fff); opacity: .8; }
.sack .sack-band rect { fill: #fff; opacity: .28; }
.sack .sack-band rect.on { opacity: .92; }

/* ---------- product photo slot (falls back to the tile) ---------- */
/* Light neutral ground, like the tiles: transparent WebP product cut-outs sit on it. */
.photo { margin: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #fff 0%, var(--bench) 70%); }
.photo img { width: 100%; height: 100%; object-fit: contain; }
.photo-card { aspect-ratio: 4 / 3; padding: .75rem; border-bottom: 1px solid var(--line); }
.photo-hero { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; gap: .5rem; }
.photo-hero img { aspect-ratio: 1; }
.photo-hero a { display: block; width: 100%; }
.photo-credit { font-size: .8rem; color: var(--muted); justify-self: start; }
@media (max-width: 760px) { .photo-hero { max-width: 280px; } }

/* ---------- Pro page ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .75rem; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.pro-hero h1 { max-width: 17ch; text-wrap: balance; }
.pro-faq .faq, .pro-faq .pro-fine { max-width: 720px; }
.pro-hero .lead { max-width: 46ch; }
.pro-cta .fine { margin-top: .6rem; }
.plan-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 1.6rem 1.5rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-rest); }
.plan-card h3 { font-size: var(--step-1); margin: 0; }
.plan-card.is-featured { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.plan-badge { position: absolute; top: 0; left: 1.25rem; transform: translateY(-50%); display: inline-flex; align-items: center; gap: .3rem; margin: 0;
  padding: .2rem .7rem; border-radius: 999px; background: var(--tomato-dark); color: #fff; font-size: .8125rem; font-weight: 600; }
.plan-badge .icon { fill: currentColor; }
.price { margin: .5rem 0 0; font-weight: 800; font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price span { font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan-note { margin-top: 1.25rem; }
.plan-sub { margin: .2rem 0 0; color: var(--ink-soft); }
.plan-checks { list-style: none; margin: 1.1rem 0 1.5rem; padding: 1rem 0 0; display: grid; gap: .55rem; border-top: 2px dashed var(--line); }
.plan-checks li { display: flex; gap: .5rem; align-items: flex-start; }
.plan-checks .icon { color: var(--basil); margin-top: .2rem; }
.plan-card .btn { margin-top: auto; }
@media (max-width: 860px) { .plan-grid { grid-template-columns: 1fr; gap: 1.75rem; max-width: 30rem; } }

.note { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.5rem; padding: 1rem 1.1rem; background: var(--bench); border: 1px solid var(--line); border-left: 4px solid var(--cold); border-radius: var(--radius-small); }
.note .icon { color: var(--cold); margin-top: .15rem; }
.note p { margin: .25rem 0 0; color: var(--ink-soft); }
.buy-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: .75rem; }
.buy-steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; align-items: start; padding: 1rem 1.25rem; background: var(--bench); border: 1px solid var(--line); border-radius: var(--radius); }
.buy-steps li::before { content: counter(step); width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-weight: 800; }
.buy-steps span { color: var(--ink-soft); }
.buy-steps b { display: block; font-size: 1.1rem; color: var(--ink); }

.compare { max-width: 860px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.compare th, .compare td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare tbody:last-child tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.compare thead th + th { text-align: center; }
.compare tbody th[scope="row"] { position: relative; padding-left: 2.85rem; font-weight: 400; }
.compare tbody th[scope="row"] .icon { position: absolute; left: 1rem; top: .95rem; color: var(--ink-soft); }
.compare td { width: 5.5rem; text-align: center; }
.compare td:last-child { background: color-mix(in srgb, var(--basil-soft) 45%, transparent); }
.compare-group th { background: var(--bench); color: var(--muted); font-size: .8125rem; font-weight: 600; padding-block: .5rem; }
.mark { display: inline-grid; place-items: center; vertical-align: middle; }
.mark-yes { color: var(--basil); }
.mark-no { color: var(--input); }
@media (max-width: 560px) { .compare th, .compare td { padding-inline: .6rem; } .compare tbody th[scope="row"] { padding-left: 2.3rem; } .compare tbody th[scope="row"] .icon { left: .6rem; } .compare td { width: 3.6rem; } }

.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }
.demo { margin: 0; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; background: var(--bench); border: 1px solid var(--line); border-radius: var(--radius); }
.demo h3 { display: flex; align-items: center; gap: .5rem; margin: 0; }
.demo figcaption { margin-top: auto; color: var(--ink-soft); font-size: var(--step--1); max-width: 60ch; }
.stage-bar { display: flex; gap: 3px; height: 18px; border-radius: 999px; overflow: hidden; transform-origin: left center; }
.stage { flex-basis: 0; min-width: 9%; }
.stage-bar .stage-room { background: var(--crust); }
.stage-bar .stage-cold { background: var(--cold); }
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.stage-list li { display: flex; align-items: center; gap: .5rem; }
.stage-list .stage-room .icon { color: var(--crust); }
.stage-list .stage-cold .icon { color: var(--cold); }
.water-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.water-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr); gap: .6rem; align-items: center; padding: .75rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); }
.water-in, .water-out { display: inline-flex; align-items: center; gap: .4rem; }
.water-in .icon, .water-arrow { color: var(--muted); }
.water-out { font-weight: 700; }
.water-out .icon { color: var(--cold); }
.water-max { display: flex; align-items: center; gap: .4rem; margin: 0; font-weight: 600; }
.water-max .icon { color: var(--ink-soft); }
.pro-fine { margin-top: 1.5rem; }

/* ---------- FAQ disclosure ---------- */
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--ink-soft); }
.faq details[open] summary .icon { transform: rotate(180deg); }

/* ---------- motion (only when the visitor has not asked for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .15s, color .15s, border-color .15s, transform .1s; }
  .btn:active { transform: scale(.98); }
  .faq summary .icon { transition: transform .2s var(--ease-out); }

  /* 3. card rise */
  .card { transition: border-color .22s, box-shadow .22s, transform .22s var(--ease-rise); }
  .card .tile > svg, .card .photo img { transition: transform .22s var(--ease-rise); transform-origin: 50% 100%; }
  a.card:hover, a.card:focus-visible { transform: translateY(-2px); }
  a.card:hover .tile > svg, a.card:focus-visible .tile > svg, a.card:hover .photo img, a.card:focus-visible .photo img { transform: scale(1.04); }
  a.card:active { transform: scale(.99); }

  /* 4. filter chips */
  .chip-toggle span { transition: background-color .15s, color .15s, border-color .15s; }
  .chip-toggle input:checked + span small { animation: pop .16s var(--ease-rise); }
  [data-catalog-list] > li { animation: fade-in .12s ease-out; }

  /* 1. fermentation ruler fills once in view; markers drop in after it */
  .motion .ruler[data-reveal] .ruler-safe { transform-origin: left center; transition: transform .7s var(--ease-out); }
  .motion .ruler[data-reveal]:not(.in) .ruler-safe { transform: scaleX(0); }
  .motion .ruler[data-reveal] .marker { transition: opacity .2s .5s, transform .2s var(--ease-rise) .5s; }
  .motion .ruler[data-reveal]:not(.in) .marker { opacity: 0; transform: translateY(-8px); }
  .motion .stage-bar { transition: transform .8s var(--ease-out); }
  .motion .stage-bar:not(.in) { transform: scaleX(0); }

  /* 5. stat meters light up in sequence (the numbers count up in motion.js) */
  .motion .stat-row .meter i.on { transition: background-color .2s, border-color .2s; transition-delay: calc(var(--i, 0) * 40ms + 80ms); }
  .motion .stat-row:not(.in) .meter i.on { background: var(--sunken); border-color: var(--line); }
  .count-visual { display: inline-block; }

  /* 6. oven temperature bar: one highlight sweep */
  .temp-ruler[data-reveal] .temp-track::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6) 50%, transparent); pointer-events: none; }
  .motion .temp-ruler.in .temp-track::after { animation: sweep .9s var(--ease-out) .15s both; }

  /* 2. calculator value tick (only cells whose value changed) */
  .ingredients td.changed { animation: tick .2s ease-out, tick-colour .4s ease-out; }

  /* nav icon gestures */
  .main-nav .icon-wheat { transform-origin: 15% 85%; }
  .main-nav .icon-scale { transform-origin: 50% 15%; }
  .main-nav a:hover .icon-wheat { animation: sway .6s var(--ease-pop); }
  .main-nav a:hover .icon-scale { animation: tilt .6s var(--ease-pop); }
  .main-nav a:hover .icon-sparkles { animation: twinkle .5s var(--ease-pop); }
}
@keyframes pop { from { transform: scale(.8); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sweep { to { transform: translateX(100%); } }
@keyframes tick { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes tick-colour { from { color: var(--tomato); } to { color: var(--ink); } }
@keyframes sway { 35% { transform: rotate(-10deg); } 70% { transform: rotate(5deg); } }
@keyframes tilt { 30% { transform: rotate(9deg); } 65% { transform: rotate(-5deg); } }
@keyframes twinkle { 45% { transform: scale(1.18) rotate(10deg); } }

/* Reduced motion: stop animations and transitions everywhere; the calculator keeps only its colour cue. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .ingredients td.changed { animation: tick-colour .4s ease-out !important; }
}

/* ---------- calculator: field errors and the phone summary bar ---------- */
.field-error { display: block; color: var(--tomato-dark); font-weight: 600; font-size: var(--step--1); }
.calc-form input[aria-invalid="true"] { border-color: var(--tomato-dark); box-shadow: 0 0 0 1px var(--tomato-dark); }
.calc-bar { display: none; }
@media (max-width: 960px) {
  /* Fixed above the tab bar while the result panel is off screen (calc.js toggles .is-away). */
  .calc-bar { display: flex; align-items: center; gap: .75rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 19;
    padding: .55rem max(1rem, env(safe-area-inset-right, 0px)) .55rem max(1rem, env(safe-area-inset-left, 0px));
    background: var(--ink); color: var(--on-ink); text-decoration: none; box-shadow: 0 -6px 18px rgba(35, 38, 31, .14);
    transition: transform .2s var(--ease-out), visibility .2s; }
  .calc-bar.is-away { transform: translateY(110%); visibility: hidden; }
  .calc-bar-items { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
  .calc-bar-cell small { display: block; font-size: .75rem; line-height: 1.2; color: var(--on-ink-muted); }
  .calc-bar-cell b { display: block; font-size: 1rem; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .calc-bar-error { grid-column: 1 / -1; font-weight: 600; }
  .calc-bar-go { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--tomato); flex: none; }
  body:has(.calc-bar) { padding-bottom: 76px; }
  html:has(.calc-bar) { scroll-padding-bottom: 96px; }
}
@media (max-width: 860px) {
  .calc-bar { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  body:has(.calc-bar) { padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
  html:has(.calc-bar) { scroll-padding-bottom: 150px; }
}

/* ---------- focus on dark surfaces: tomato on ink is only ~2.8:1, so use the light ink colour (≥ 3:1) ---------- */
.app-band :focus-visible, .site-footer :focus-visible, .calc-bar:focus-visible { outline-color: var(--on-ink); }
.calc-bar:focus-visible { outline-offset: -5px; }

/* Grid children may shrink below their content (wide tables scroll inside .table-scroll instead of widening the page). */
.product-main, .product-aside { min-width: 0; }
.compare-flours .is-self th, .compare-flours .is-self td { background: var(--sunken); }
