/* Foltrade page CSS: tokens only (palette lives in theme.css). */
body { font-feature-settings: "kern"; }
.mono, .mono-num, .num-tag, .spec-tag { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.mono-num { font-variant-numeric: tabular-nums; }
.accent { color: var(--accent-text); }
.icon { flex: none; }
.eyebrow.on-ink { color: var(--accent-fill); }
.note { font-size: var(--fs-small); color: var(--muted); max-width: 60ch; }
.note + .note { margin-top: 10px; }

/* ── Header ── */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); }
.header-inner { gap: 16px; }
.brand { margin-right: auto; display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 124px; height: auto; }
.nav-desk { display: none; }
.nav-desk ul { display: flex; gap: clamp(14px, 1.4vw, 24px); }
.nav-desk a, .nav-mobile a { text-decoration: none; font-size: var(--fs-small); font-weight: 600; color: var(--muted-strong); }
.nav-desk a:hover, .nav-desk a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-fill); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.head-tools { display: flex; align-items: center; gap: 8px; }
.lang, .theme-toggle { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: var(--radius-button); border: 1px solid var(--line-strong); background: transparent; font-family: var(--font-mono); font-size: 0.8125rem; text-decoration: none; cursor: pointer; color: var(--ink); }
.lang:hover, .theme-toggle:hover { border-color: var(--ink); }
.head-cta { display: none; min-height: 44px; padding: 10px 18px; }
.nav-mobile { position: relative; }
.nav-mobile summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-button); border: 1px solid var(--line-strong); cursor: pointer; font-size: var(--fs-small); font-weight: 600; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary span { display: none; }
.nav-mobile nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.35); }
.nav-mobile li a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 1rem; color: var(--ink); }
.nav-mobile li a:hover { background: var(--surface-2); }
@media (min-width: 560px) { .head-cta { display: inline-flex; } .nav-mobile summary span { display: inline; } }
@media (min-width: 1200px) { .nav-desk { display: block; } .nav-mobile { display: none; } .brand img { width: 140px; } }

/* ── Home hero: edge to edge, split, product on a leaf field ── */
.hero-home { min-height: 0; padding-block: clamp(28px, 4vw, 64px) clamp(32px, 5vw, 72px); background: linear-gradient(to right, var(--bg) 0 58%, var(--accent-soft) 58% 100%); }
.hero-home .hero-inner { gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 22px; align-content: center; }
.hero-copy .display { max-width: 13ch; }
.hero-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding-inline: 8px; font-family: var(--font-mono); font-size: 0.9375rem; text-decoration: none; }
.hero-tel:hover { text-decoration: underline; }
.hero-product { margin: 0; }
.hero-field { position: relative; border-radius: var(--radius); background: var(--accent-soft); aspect-ratio: 4 / 5; overflow: hidden; }
.hero-field picture, .hero-field img { width: 100%; height: 100%; object-fit: cover; }
.spec-tag { position: absolute; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 0.8125rem; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.4); }
.spec-tag::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent-fill); vertical-align: 1px; }
.spec-tag.t1 { top: 12%; left: 6%; } .spec-tag.t2 { top: 46%; right: 5%; } .spec-tag.t3 { bottom: 12%; left: 8%; }
@media (max-width: 899px) { .hero-home { background: var(--bg); } .hero-field { aspect-ratio: 1 / 1; } }
@media (min-width: 900px) { .hero-home .hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }

/* ── Facts strip ── */
.facts-band { border-block: 1px solid var(--line); background: var(--surface); }
.facts-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts-row > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 18px 16px 18px 0; }
.facts-row > div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.facts-row > div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
.facts-row > div:nth-child(4) { border-top: 1px solid var(--line); }
.facts-row dt { font-size: var(--fs-micro); color: var(--muted); line-height: 1.35; }
.facts-row dd { margin: 0; font-size: clamp(1.15rem, 0.9rem + 1vw, 1.6rem); }
@media (min-width: 900px) { .facts-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .facts-row > div:nth-child(3), .facts-row > div:nth-child(4) { border-top: 0; } .facts-row > div:nth-child(3) { border-left: 1px solid var(--line); padding-left: 16px; } }

/* ── Promises ── */
.promises { padding-top: clamp(40px, 5vw, 72px); }
.promises .rule-list > li { border-top-width: 3px; }
.num-tag { font-size: 0.8125rem; color: var(--accent-text); }
.promises p { color: var(--muted-strong); max-width: 42ch; }

/* ── Problem checklist ── */
.problem-head .h2 { max-width: 16ch; }
.checklist { display: grid; gap: 0; }
.checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding-block: 14px; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist .icon { color: var(--accent-text); margin-top: 3px; }
.problem-close { margin-top: 24px; font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; max-width: 30ch; }

/* ── Family fields ── */
.lead-stack { display: grid; gap: 12px; }
.lead-stack p:not(.lead) { color: var(--muted-strong); max-width: 60ch; }
.fam-card { text-decoration: none; transition: transform 240ms var(--ease-out); }
.fam-card:hover { transform: translateY(-2px); }
.fam-name { margin-block: 6px 12px; }
.fam-copy { max-width: 48ch; }
.fam-foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.fam-foot .mono-num { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
.fam-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: underline; text-underline-offset: 0.25em; }

/* ── Mechanism ── */
.mech-grid { display: grid; gap: clamp(24px, 3vw, 48px); }
@media (min-width: 900px) { .mech-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; } }
.mech-photo { margin: 0; }
.mech-photo picture, .mech-photo img { border-radius: var(--radius); width: 100%; }
.mech-side { display: grid; gap: 24px; }
.diagram { margin: 0; }
.diagram svg { width: 100%; height: auto; }
.dg-bag path { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.dg-bag.low path { fill: var(--surface); }
.dg-bumps path { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.dg-lead { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 4; }
.dg-force line, .dg-force path { stroke: var(--ink); stroke-width: 2.5; fill: none; }
.dg-t { font-family: var(--font-mono); font-size: 15px; fill: var(--muted-strong); }
.dg-t.acc { fill: var(--accent-text); }
.dg-t.sm { font-size: 13px; fill: var(--muted); }
.mech-kv > div { padding-block: 14px; border-top: 1px solid var(--line-strong); }
.mech-kv dt { font-weight: 700; }
.mech-kv dd { margin: 4px 0 0; color: var(--muted-strong); }

/* ── Tilt test ── */
.tilt-stage { display: grid; gap: 18px; }
.tilt-svg { width: 100%; height: auto; overflow: hidden; background: var(--surface-2); border-radius: var(--radius); }
.tilt-board { transform-origin: 30px 454px; transform-box: view-box; transition: transform 120ms linear; }
.t-board { fill: var(--pine); }
.t-bag { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.t-bag.grip { stroke: var(--accent); stroke-width: 2.5; }
[data-slide] { transition: transform 700ms cubic-bezier(0.5, 0, 0.75, 0); }
[data-slide].is-sliding { transform: translateX(-90px); }
[data-slide].is-off { transform: translateX(-420px); opacity: 0; transition: transform 900ms cubic-bezier(0.5, 0, 0.75, 0), opacity 300ms 600ms; }
.t-lbl { font-family: var(--font-mono); font-size: 15px; fill: var(--muted-strong); text-anchor: middle; }
.tilt-ctl { display: grid; grid-template-columns: auto minmax(0, 1fr) 4.5ch; align-items: center; gap: 14px; }
.tilt-ctl input { width: 100%; accent-color: var(--accent-fill); min-height: 44px; }
.tilt-ctl output { font-size: 1.25rem; text-align: right; }
.tilt-status > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.tilt-status dt { font-weight: 600; }
.tilt-status dt .mono { display: block; font-size: var(--fs-micro); color: var(--muted); font-weight: 500; }
.tilt-status dd { margin: 0; font-family: var(--font-mono); font-weight: 500; }
.tilt-status dd[data-state="slides"] { color: var(--muted-strong); }
.tilt-status dd[data-state="may"] { color: var(--ink); }
.tilt-status dd[data-state="holds"] { color: var(--accent-text); }
.tilt-copy { display: grid; gap: 16px; align-content: start; }

/* ── Features ── */
.feature-list { display: grid; gap: 0 clamp(24px, 3vw, 48px); counter-reset: f; }
.feature-list > li { counter-increment: f; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 4px 12px; padding-block: 18px; border-top: 1px solid var(--line-strong); }
.feature-list > li::before { content: counter(f, decimal-leading-zero); grid-row: span 2; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent-text); padding-top: 3px; }
.feature-list > li > div { color: var(--muted-strong); }
.feature-list > li > div p + p { margin-top: 8px; }
@media (min-width: 900px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sec-more { margin-top: 28px; }

/* ── Videos ── */
.video { margin: 0; }
.video-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink-field); cursor: pointer; aspect-ratio: 16 / 9; }
.video-btn picture, .video-btn img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; left: 16px; bottom: 16px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-fill); color: var(--accent-on-fill); transition: transform 200ms var(--ease-out); }
.video-btn:hover .video-play { transform: scale(1.08); }
.video video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; }
.video-blank { display: block; width: 100%; height: 100%; }
.video-grid { display: grid; gap: 28px 20px; margin-top: 32px; }
@media (min-width: 700px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .video-grid .video:first-child { grid-column: span 2; grid-row: span 2; } }

/* ── Applications: horizontal rail ── */
.app-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 72%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-top: 32px; overscroll-behavior-x: contain; }
.app-list > li { scroll-snap-align: start; display: grid; gap: 10px; align-content: start; }
.app-list img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.app-list p { font-size: var(--fs-small); color: var(--muted-strong); }
@media (min-width: 700px) { .app-list { grid-auto-columns: minmax(240px, 31%); } }
@media (min-width: 1100px) { .app-list { grid-auto-columns: minmax(220px, calc((100% - 60px) / 4)); } }

/* ── Award ── */
.award .h2 { max-width: 18ch; }
.award-plate { margin-top: 28px; display: inline-block; padding: 14px 18px; background: #ffffff; border-radius: var(--radius-sm); }
.award-plate img { width: 260px; }
.award-copy { color: var(--on-ink-muted); display: grid; gap: 14px; }
.award-copy p:first-child { color: var(--on-ink); font-size: var(--fs-lead); }
.award .text-link { color: var(--on-ink); }
.award .button-quiet { color: var(--on-ink); }

/* ── Quote ── */
.quote-photo { margin: 0; }
.quote-photo img { border-radius: var(--radius); width: 100%; }
.quote { margin: 16px 0 0; }
.quote-by { margin-top: 20px; }

/* ── About strip ── */
.md { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.md img { width: 88px; height: 110px; object-fit: cover; border-radius: var(--radius-sm); }
.md-lg { flex-direction: column; align-items: flex-start; margin-top: 0; }
.md-lg img { width: 200px; height: 250px; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; }
.prose p + p, .about-prose p + p { margin-top: 14px; }

/* ── Page hero (inner pages) ── */
.page-hero { padding-block: clamp(36px, 6vw, 96px) clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--line); background: var(--bg); }
.page-hero.has-media { background: linear-gradient(to right, var(--bg) 0 62%, var(--accent-soft) 62% 100%); }
.ph-inner { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.ph-copy { display: grid; gap: 20px; }
.ph-title { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4.4rem); max-width: 22ch; }
.ph-media { margin: 0; }
.ph-media img { width: 100%; border-radius: var(--radius); max-height: 70svh; object-fit: cover; }
@media (min-width: 900px) { .page-hero.has-media .ph-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } }
@media (max-width: 899px) { .page-hero.has-media { background: var(--bg); } }

/* ── Generic sections ── */
.sec-h { max-width: 18ch; }
@media (min-width: 900px) { .gsec .sec-h, .faq-sec .h2 { position: sticky; top: calc(var(--header-height) + 24px); } }
.prose-wide { display: grid; gap: 14px; max-width: 72ch; }
.prose-wide .h3 { margin-top: 18px; }
.prose-wide .checklist { margin-block: 6px; }
.lead-body { max-width: 72ch; }
.dash-item { padding-left: 18px; position: relative; }
.dash-item::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 2px; background: var(--accent); }
.inline-fig { margin: 8px 0; }
.inline-fig img { border-radius: var(--radius); width: 100%; }

/* ── Abrafol cases ── */
.case-list { display: grid; margin-top: 32px; }
.case { display: grid; gap: 20px; padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line-strong); }
.case-copy { display: grid; gap: 12px; color: var(--muted-strong); }
.case-copy .h3 { color: var(--ink); }
@media (min-width: 900px) { .case { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; } .case-media { position: sticky; top: calc(var(--header-height) + 24px); align-self: start; } }

/* ── Other products ── */
.prod-list > li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 20px; padding-block: 24px; border-top: 1px solid var(--line-strong); align-items: start; }
.prod-list > li:last-child { border-bottom: 1px solid var(--line-strong); }
.prod-img { grid-row: span 2; background: #ffffff; border-radius: var(--radius-sm); padding: 6px; }
.prod-img img { width: 100%; height: 84px; object-fit: contain; }
.prod-txt { color: var(--muted-strong); display: grid; gap: 6px; }
@media (min-width: 900px) { .prod-list > li { grid-template-columns: 140px minmax(0, 0.7fr) minmax(0, 1.3fr); } .prod-img { grid-row: auto; } }

/* ── Enquiry ── */
.enquiry-brief { align-items: start; }
@media (min-width: 900px) { .enquiry-brief { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }
.enq-copy { display: grid; gap: 18px; }
.contact-lines li { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.contact-lines .icon { color: var(--accent-text); }
.contact-lines a { font-weight: 600; }
.enq-form { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .enq-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .f-wide, .f-preview, .f-hp { grid-column: 1 / -1; } }
.f-row { display: grid; gap: 6px; font-size: var(--fs-small); font-weight: 600; border: 0; padding: 0; margin: 0; min-width: 0; }
.f-row legend { padding: 0; margin-bottom: 6px; }
.f-row input:not([type="checkbox"]), .f-row textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); font-size: 1rem; font-weight: 400; }
.f-row textarea { resize: vertical; }
.f-row input:focus-visible, .f-row textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.f-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 1rem; min-height: 32px; }
.f-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent-fill); flex: none; }
.f-checks { display: grid; gap: 6px 20px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.f-note, .f-preview { font-size: var(--fs-micro); font-weight: 400; color: var(--muted); line-height: 1.5; margin-top: 8px; }
.f-preview { margin-top: 0; }
.req { color: var(--accent-text); }
.f-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.f-status { font-weight: 500; }
.f-status.is-error { color: var(--ink); }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Footer ── */
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line-strong); }
.footer-logo { width: 180px; }
.footer-claim { max-width: 40ch; color: var(--muted-strong); }
.mono-list li { font-family: var(--font-mono); font-size: 0.8125rem; }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-base .legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-base a { text-decoration: none; }
.footer-base a:hover { text-decoration: underline; }
.site-footer a { min-height: 32px; display: inline-flex; align-items: center; }

/* dark-mode image plates keep the white originals readable */
:root[data-theme="dark"] .prod-img, :root[data-theme="dark"] .award-plate { background: #f4f4f0; }
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .footer-logo { filter: brightness(1.08); }

@media print { .head-tools, .nav-desk, .tilt-stage, .enq-form, .video-btn { display: none !important; } }
.feat-h { margin-bottom: clamp(24px, 3vw, 40px); max-width: 20ch; }
@media (max-width: 699px) { .quote { font-size: 1.3rem; line-height: 1.3; } }
.board th .icon { display: inline-block; vertical-align: -3px; margin-right: 8px; }
