/* WABi Windows: product-first, photography-led. Black, white and greys with a warm stone (#f0ede8).
   Layout: full-bleed photographic heroes, alternating white / black / stone bands, rounded tiles, one idea per screen.
   These tokens map 1:1 to theme.json in the WordPress theme. */
:root {
  --paper: #ffffff;
  --stone: #f0ede8;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #dcd9d3;
  --night: #000000;
  --night-2: #161617;
  --on-night: #f5f5f7;
  --on-night-muted: #a1a1a6;
  --frame: #1f1f21;
  --glass: #e4e8ea;
  --sage: #799371;          /* WABi brand dot only */
  --sage-soft: #ecefe9;
  --warn: #8f5f12;
  --warn-soft: #f6efe2;
  --ok: #2d6a3a;
  --font-sans: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --wrap: 1240px;
  --radius: 0px;
  --radius-s: 0px;
  --track: 0.22em;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000000; --stone: #1c1c1e; --ink: #f5f5f7; --muted: #a1a1a6; --line: #38383a;
    --frame: #a9a9ad; --glass: #2b3034; --sage-soft: #1f261d; --warn: #e3b46a; --warn-soft: #2e2618; --ok: #8cc79a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #000000; --stone: #1c1c1e; --ink: #f5f5f7; --muted: #a1a1a6; --line: #38383a;
  --frame: #a9a9ad; --glass: #2b3034; --sage-soft: #1f261d; --warn: #e3b46a; --warn-soft: #2e2618; --ok: #8cc79a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.5; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
a { color: inherit; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; }
h1 { font-size: clamp(2.8rem, 7.2vw, 6.4rem); }
h2 { font-size: clamp(2.1rem, 4.8vw, 4rem); }
h3 { font-size: 1.25rem; font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; max-width: 62ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--muted); letter-spacing: -0.01em; font-weight: 400; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; }
.intro-grid > * { min-width: 0; }
.intro { display: grid; gap: 28px; }
.intro .eyebrow { border-top: 1px solid var(--ink); padding-top: 14px; max-width: none; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.stack { display: grid; gap: 18px; align-content: start; }
.center { text-align: center; justify-items: center; }
.center p { margin-inline: auto; }
.section { padding-block: clamp(64px, 10vw, 128px); }
.band { background: var(--stone); }
.dark { background: var(--night); color: var(--on-night); --muted: var(--on-night-muted); --line: #2c2c2e; --stone: var(--night-2); --glass: #2b3034; --frame: #b4b4b8; }
.muted { color: var(--muted); }
.credit { font-size: 0.72rem; color: var(--muted); letter-spacing: 0; }

/* Prototype banner */
.proto-note { background: var(--stone); color: var(--muted); font-size: 0.78rem; letter-spacing: 0; }
.proto-note .wrap { padding-block: 6px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }

/* Header: frosted glass */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 78%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 52px; }
.logo { text-decoration: none; display: inline-flex; color: #5f5f5f; line-height: 0; }
.logo svg { width: 112px; height: 37px; display: block; }
.site-footer .logo svg { width: 150px; height: 50px; }
.dark .logo, .on-photo .logo { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { color: var(--ink); } }
:root[data-theme="dark"] .logo { color: var(--ink); }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 10px; color: var(--ink); opacity: 0.8; }
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav .tel { color: var(--muted); font-size: 0.78rem; white-space: nowrap; padding-inline: 8px; }
.nav .btn { white-space: nowrap; opacity: 1; padding: 10px 18px; font-size: 0.64rem; color: var(--paper); }
.btn.menu-btn { display: none; margin-left: auto; }
@media (max-width: 1060px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px max(22px, env(safe-area-inset-right, 0px)) 22px max(22px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 600; }
  .nav .btn { margin-top: 12px; justify-content: center; padding: 12px; font-size: 0.95rem; }
  .btn.menu-btn { display: inline-flex; }
}

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 16px 30px; border-radius: 0; transition: opacity .2s, background .2s, color .2s; }
.btn:hover { opacity: 0.86; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); opacity: 1; }
.btn.small { padding: 10px 18px; font-size: 0.64rem; }
.btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.btn.link, .more { border: 0; background: none; color: var(--ink); padding: 0 0 4px; font-weight: 600; text-decoration: none; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid currentColor; justify-self: start; }
.more::after { content: "→"; letter-spacing: 0; transition: transform .25s; }
.btn.link:hover, .more:hover { opacity: 1; background: none; }
.more:hover::after { transform: translateX(4px); }
.on-photo .btn, .dark .btn { background: var(--on-night); color: #000; border-color: var(--on-night); }
.on-photo .btn.ghost, .dark .btn.ghost { background: transparent; color: var(--on-night); border-color: var(--on-night); }
.on-photo .btn.ghost:hover, .dark .btn.ghost:hover { background: var(--on-night); color: #000; }
.dark .more, .on-photo .more { color: var(--on-night); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 9px; border-radius: 0; background: var(--stone); color: var(--muted); white-space: nowrap; }
.chip.tested { background: var(--ink); color: var(--paper); }
.chip.tb { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.chip.pending { background: var(--warn-soft); color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Photography */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
a:hover > .photo img, a.photo:hover img { transform: scale(1.03); }

/* Full-bleed hero */
.hero-full { position: relative; min-height: min(88vh, 860px); display: grid; align-items: end; color: #fff; background: #000; overflow: hidden; }
.hero-full > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.7) 100%); }
.hero-full .eyebrow { color: rgba(255,255,255,.8); }
.hero-full .wrap { position: relative; z-index: 1; padding-block: clamp(48px, 9vw, 110px); width: 100%; }
.hero-full .lede { color: rgba(255,255,255,.86); }
.hero-full h1 { color: #fff; max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.hero-full .credit { position: absolute; right: max(22px, env(safe-area-inset-right, 0px)); bottom: 12px; z-index: 1; color: rgba(255,255,255,.6); }

/* Statement band with image */
.statement { display: grid; gap: clamp(32px, 5vw, 64px); }
.statement .photo { aspect-ratio: 16 / 8; }

/* Tiles */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile-grid { gap: 4px; }
.tile { position: relative; min-height: 640px; overflow: hidden; background: #000; color: #fff; text-decoration: none; display: grid; align-content: end; padding: clamp(28px, 4vw, 48px); }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.72) 100%); }
.tile:hover > img { transform: scale(1.03); }
.tile > div { position: relative; z-index: 1; display: grid; gap: 12px; justify-items: start; }
.tile .eyebrow { color: rgba(255,255,255,.7); }
.tile h3 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 300; letter-spacing: -0.035em; }
.tile p { color: rgba(255,255,255,.82); font-size: 1rem; }
.tile .more { color: #fff; margin-top: 8px; }

/* Lineup: horizontal style rail */
.lineup { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.lineup > a { scroll-snap-align: start; text-decoration: none; display: grid; gap: 12px; align-content: start; }
.lineup .photo { aspect-ratio: 4 / 5; }
.lineup b { font-size: 0.72rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; border-top: 1px solid var(--ink); padding-top: 12px; }
.lineup small { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stats > div { display: grid; gap: 6px; align-content: start; border-top: 1px solid var(--line); padding-top: 18px; }
.stats strong { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.stats span { color: var(--muted); font-size: 0.92rem; }

/* Colour pair */
.colour-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.colour-pair figcaption { font-size: 0.72rem; letter-spacing: var(--track); text-transform: uppercase; }
.colour-pair.colour-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 680px) { .colour-pair.colour-3 { grid-template-columns: 1fr; } }
.colour-pair figure { margin: 0; display: grid; gap: 12px; }
.colour-pair .photo { aspect-ratio: 4 / 3; }
.colour-pair figcaption { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.colour-pair i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); }

/* Mosaic gallery */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; gap: 4px; }
.mosaic .photo { border-radius: var(--radius-s); margin: 0; }
.mosaic .m1 { grid-column: span 4; grid-row: span 2; }
.mosaic .m2 { grid-column: span 2; grid-row: span 2; }
.mosaic .m3, .mosaic .m4, .mosaic .m5 { grid-column: span 2; grid-row: span 1; }
.mosaic figcaption { position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: 0.62rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; text-shadow: 0 1px 10px rgba(0,0,0,.6); }

/* Legacy home helpers still used */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 1px solid var(--line); padding-top: 16px; font-size: 0.92rem; color: var(--muted); counter-increment: step; }
.steps li { border-top-color: var(--ink); }
.steps.steps-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) { .steps.steps-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .steps.steps-5 { grid-template-columns: 1fr 1fr; } }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: var(--track); color: var(--muted); margin-bottom: 18px; }
.steps b { display: block; color: var(--ink); font-size: 1.15rem; font-weight: 400; letter-spacing: -0.015em; margin-bottom: 6px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split > * { min-width: 0; }
.portrait .photo { aspect-ratio: 4 / 5; max-width: 440px; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.team figure { margin: 0; display: grid; gap: 16px; align-content: start; }
.team .photo { aspect-ratio: 4 / 5; }
.team .photo img { filter: grayscale(1); }
.team .placeholder { height: 100%; border-radius: var(--radius); }
.team figcaption { display: grid; gap: 4px; font-size: 0.95rem; color: var(--muted); }
.team figcaption { border-top: 1px solid var(--ink); padding-top: 14px; }
.team figcaption b { font-size: 1.5rem; font-weight: 300; color: var(--ink); letter-spacing: -0.025em; }
.team figcaption span:not(.tbc) { font-size: 0.66rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.team figcaption p { margin-top: 8px; }
.evidence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.evidence article { background: var(--paper); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; }
.band .evidence article { background: var(--paper); }
.dark .evidence article { background: var(--night-2); }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.path { background: var(--stone); border-radius: var(--radius); padding: 32px; display: grid; gap: 10px; align-content: start; text-decoration: none; }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.style-card { text-decoration: none; display: grid; gap: 10px; padding: 18px; border-radius: var(--radius-s); background: var(--stone); }
.style-card svg { width: 100%; height: 120px; }
.style-card small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
details.faq { border-bottom: 1px solid var(--line); padding-block: 20px; }
details.faq { border-color: var(--line); }
details.faq:first-child { border-top: 1px solid var(--ink); }
details.faq summary { cursor: pointer; font-weight: 400; font-size: 1.15rem; letter-spacing: -0.015em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: "+"; font-weight: 300; font-size: 1.5rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 10px; color: var(--muted); }

/* Catalogue */
.page-head { padding-block: clamp(48px, 7vw, 88px) 28px; }
.cat-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.cat-layout > * { min-width: 0; }
.filters { position: sticky; top: calc(72px + env(safe-area-inset-top, 0px)); display: grid; gap: 26px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.filters legend { font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.filters label { display: flex; gap: 10px; align-items: center; font-size: 0.92rem; cursor: pointer; }
.filters input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--ink); }
.seg { display: inline-flex; justify-self: start; border: 1px solid var(--ink); }
.seg button { font: inherit; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; border: 0; padding: 11px 22px; background: transparent; color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 20px; }
.card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: transparent; }
.card .drawing { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card .drawing img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.card:hover .drawing img { transform: scale(1.04); }
.card .drawing .glyph { position: absolute; right: 0; bottom: 0; width: 56px; height: 46px; background: rgba(255,255,255,.92); padding: 6px; }
.card .drawing .glyph svg { width: 100%; height: 100%; }
.card .body { padding: 16px 0 0; display: grid; gap: 10px; align-content: start; border-top: 1px solid var(--ink); margin-top: 14px; }
.card h3 { font-size: 1.3rem; font-weight: 300; }
.card h3 a { text-decoration: none; }
.card .meta { font-size: 0.82rem; color: var(--muted); }
.card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.count { font-size: 0.9rem; color: var(--muted); }
.filter-toggle { display: none; }
@media (max-width: 860px) {
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; background: var(--stone); border-radius: var(--radius-s); padding: 18px; }
  .filters.open { display: grid; }
  .filter-toggle { display: inline-flex; }
}

/* Product */
.crumbs { font-size: 0.8rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.p-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.p-hero > * { min-width: 0; }
.gallery { display: grid; gap: 14px; }
.gallery .main { aspect-ratio: 4 / 3; }
.gallery .thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gallery .thumbs > * { aspect-ratio: 4 / 3; }
.drawing-tile { background: var(--stone); border-radius: var(--radius-s); display: grid; place-items: center; padding: 18px; }
.drawing-tile svg { width: 100%; height: 100%; max-height: 220px; }
.placeholder { border: 1px dashed var(--line); border-radius: var(--radius-s); background: var(--stone); min-height: 150px; display: grid; place-items: center; text-align: center; padding: 16px; font-size: 0.82rem; color: var(--muted); }
.keyfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); margin: 0; }
.keyfacts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.keyfacts div:nth-child(odd) { padding-right: 16px; }
.keyfacts dt { font-size: 0.75rem; color: var(--muted); }
.keyfacts dd { margin: 4px 0 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.subnav { position: sticky; top: calc(52px + env(safe-area-inset-top, 0px)); z-index: 10; background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 24px; overflow-x: auto; padding-block: 12px; font-size: 0.82rem; }
.subnav a { text-decoration: none; white-space: nowrap; color: var(--muted); }
.subnav a:hover { color: var(--ink); }
[id^="ps-"] { scroll-margin-top: calc(110px + env(safe-area-inset-top, 0px)); }
.spec-table-wrap { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.spec th, table.spec td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { font-weight: 600; width: 34%; }
table.spec td.v { font-variant-numeric: tabular-nums; }
table.spec td.s { width: 1%; white-space: nowrap; }
table.compare th, table.compare td { min-width: 160px; }
table.compare thead th { font-weight: 600; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
table.compare tbody th { position: sticky; left: 0; background: var(--paper); }
.band table.compare tbody th { background: var(--stone); }
.tbc { color: var(--warn); font-style: normal; font-size: 0.92em; }
.swatches { display: flex; flex-wrap: wrap; gap: 18px; }
.swatch { display: grid; justify-items: center; gap: 8px; font-size: 0.82rem; text-align: center; width: 96px; }
.swatch i { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: block; }
.diagram-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.diagram-pair > figure { margin: 0; background: var(--stone); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; }
figcaption { font-size: 0.82rem; color: var(--muted); }
.notice { background: var(--warn-soft); padding: 14px 18px; font-size: 0.92rem; border-radius: var(--radius-s); color: var(--ink); }
.notice.ok { background: var(--stone); }
.downloads li { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 16px 0; flex-wrap: wrap; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.ticks { padding-left: 1.1em; margin: 0; display: grid; gap: 8px; }

/* Quote builder */
.qb { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.qb > * { min-width: 0; }
.progress { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 28px; flex-wrap: wrap; }
.progress li { flex: 1 1 60px; font-size: 0.72rem; color: var(--muted); border-top: 3px solid var(--line); padding-top: 8px; }
.progress li.done { border-color: var(--muted); }
.progress li.now { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.opt { position: relative; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px; cursor: pointer; display: grid; gap: 8px; align-content: start; background: var(--paper); text-align: left; font: inherit; color: inherit; transition: border-color .15s; }
.opt:hover { border-color: var(--muted); }
.opt[aria-pressed="true"] { border: 2px solid var(--ink); padding: 15px; }
.opt svg { width: 100%; height: 90px; }
.opt small { color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.opt.wide { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field .hint { font-size: 0.8rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
input[aria-invalid="true"] { border-color: var(--warn); }
.err { color: var(--warn); font-size: 0.85rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row2 > * { min-width: 0; }
.hidden-reason { font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.qb-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.aside-card { background: var(--stone); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); }
.preview { background: var(--paper); border-radius: var(--radius-s); padding: 14px; }
.preview svg { width: 100%; height: 210px; }
.summary-list { font-size: 0.85rem; display: grid; gap: 6px; }
.summary-list div { display: flex; justify-content: space-between; gap: 12px; }
.summary-list span:first-child { color: var(--muted); }
.qlist { display: grid; gap: 12px; }
.qitem { background: var(--stone); border-radius: var(--radius-s); padding: 16px; display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: start; }
.qitem > * { min-width: 0; }
.qitem svg { width: 96px; height: 80px; }
.qitem .flag { font-size: 0.8rem; color: var(--warn); }
.ref { font-family: var(--font-mono); font-size: 1.4rem; letter-spacing: 0.02em; }
@media (max-width: 960px) { .qb { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* Footer and mobile bar */
.site-footer { background: var(--stone); padding-block: 48px 96px; font-size: 0.8rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid > * { min-width: 0; }
.foot-grid .eyebrow { font-size: 0.8rem; color: var(--ink); margin-bottom: 8px; }
.foot-grid a { display: block; text-decoration: none; padding: 4px 0; color: var(--muted); }
.foot-grid a:hover { color: var(--ink); }
.foot-grid a.logo { display: inline-flex; margin-bottom: 8px; }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line);
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
  .mobile-bar a { color: var(--ink); text-decoration: none; text-align: center; padding: 14px 4px; font-size: 0.82rem; font-weight: 600; }
}

/* Responsive collapses */
@media (max-width: 960px) {
  .p-hero, .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .evidence, .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .tile { min-height: 480px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .mosaic .m1 { grid-column: span 2; grid-row: span 2; }
  .mosaic .m2 { grid-column: span 1; grid-row: span 2; }
  .mosaic .m3, .mosaic .m4, .mosaic .m5 { grid-column: span 1; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .tile-grid, .paths, .diagram-pair, .row2, .colour-pair, .evidence, .intro-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .keyfacts { grid-template-columns: 1fr; }
  .keyfacts div:nth-child(odd) { padding-right: 0; }
  .qitem { grid-template-columns: 72px 1fr; }
  .qitem svg { width: 72px; height: 60px; }
  .qitem .item-actions { grid-column: 1 / -1; }
  .hero-full { min-height: 78vh; }
  .statement .photo { aspect-ratio: 4 / 3; }
}
