:root {
  --bg: #f5f2ec;
  --surface: #ffffff;
  --ink: #1c1a17;
  --ink-soft: #6f6a61;
  --muted: #8a8478;
  --line: #e6e0d5;
  --accent: #3d5745;
  --accent-deep: #2f4436;
  --accent-soft: #e8efe9;
  --gold: #b98a3c;
  --gold-deep: #9a712e;
  --gold-soft: rgba(185, 138, 60, 0.14);
  --danger: #9b2c2c;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(34, 32, 28, 0.05), 0 8px 28px rgba(34, 32, 28, 0.06);
  --tile-media-h: 180px;
  --tile-caption-name: clamp(0.82rem, calc(var(--tile-media-h) * 0.078), 1.1rem);
  --tile-caption-meta: clamp(0.68rem, calc(var(--tile-media-h) * 0.06), 0.86rem);
  --tile-caption-price: clamp(0.84rem, calc(var(--tile-media-h) * 0.082), 1.15rem);
  --tile-caption-pad: clamp(8px, calc(var(--tile-media-h) * 0.055), 14px);
  --tile-cmp-size: clamp(28px, calc(var(--tile-media-h) * 0.16), 36px);
  /* Sticky brand bar — keep hero first-fold flush to the viewport bottom */
  --site-header-h: 71px;
  font-size: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

/*
 * Self-hosted Inter (latin variable woff2). Preloaded from index.html so the
 * bytes start with the document — Google Fonts' stylesheet preload never
 * fetched the woff2 until media=all, so first paint was always the fallback
 * and letterforms jumped when Inter arrived.
 *
 * font-display: block — with the woff2 preload, FOIT is usually 0ms; if the
 * font is late, text stays invisible briefly then appears in Inter (no glyph
 * swap). Critical @font-face is also inlined in index.html so faces register
 * before the hashed stylesheet arrives.
 */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: block;
  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;
}

/*
 * Metric-matched Arial stand-in for the rare miss. Inter is ~7% wider than
 * Arial at 400 and taller in the line box. Weight buckets mirror how the
 * browser resolves 500→400, 550/600→600 and 650/700→700.
 *
 * size-adjust is calibrated against this site's own copy, not a pangram.
 * Bold 700 sits in a narrow band: below ~101.35% the Guides hub card
 * "Timber vs Hybrid vs Laminate Flooring" stays on one line while Inter wraps
 * to two; above ~101.48% the uppercase hero h1 wraps onto a third line.
 * 101.40% keeps both at Inter's line count. ascent/descent are Inter's
 * (0.969 / 0.241 em) divided by size-adjust.
 */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  font-weight: 1 500;
  size-adjust: 107.108%;
  ascent-override: 90.469%;
  descent-override: 22.501%;
  line-gap-override: 0%;
}
/* src must name the bold file explicitly — local("Arial") loads the regular
   weight no matter what font-weight the face declares, and a face that claims
   to be bold suppresses synthetic bolding, so the text renders thin and ~7%
   narrow. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold");
  font-weight: 501 649;
  size-adjust: 99.800%;
  ascent-override: 97.094%;
  descent-override: 24.148%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold");
  font-weight: 650 1000;
  size-adjust: 101.400%;
  ascent-override: 95.562%;
  descent-override: 23.767%;
  line-gap-override: 0%;
}

body {
  margin: 0;
  font-family: "Inter", "Inter Fallback", system-ui, sans-serif;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(26, 122, 52, 0.055), transparent 65%),
    radial-gradient(900px 420px at -10% 0%, rgba(185, 138, 60, 0.05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, .drawer-head h2 { font-family: "Inter", "Inter Fallback", system-ui, sans-serif; font-weight: 700; }

/* ---------- Landing page (greenhillflooring.com) ---------- */
.site-header {
  z-index: 40;
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: var(--accent-deep);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(22, 32, 26, 0.18);
}
.site-header--overlay,
.site-header--solid {
  /* Kept as aliases — header is always the sticky brand bar. */
  position: sticky;
  top: 0;
  background: var(--accent-deep);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  border: none;
  background: none;
  color: #fff;
  font: 700 1.22rem "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  cursor: pointer;
  flex-shrink: 0;
  justify-self: start;
  transition: color 0.12s;
  text-decoration: none;
}
.site-brand:hover { color: #fff; opacity: 0.92; }
.site-brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  padding: 4px;
  transition: border-color 0.15s, transform 0.1s;
}
.site-brand:hover .site-brand-mark {
  transform: scale(1.05);
  border-color: #fff;
}
.site-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.site-nav {
  display: none;
  justify-content: center;
  gap: 4px;
  justify-self: center;
  grid-column: 2;
}
.site-nav button,
.site-nav a[data-nav] {
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 500 0.88rem "Inter", "Inter Fallback", sans-serif;
  cursor: pointer;
  opacity: 0.92;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.site-header .site-nav button:hover,
.site-header .site-nav button[aria-current="page"],
.site-header .site-nav a[data-nav]:hover,
.site-header .site-nav a[data-nav][aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
}
.site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  justify-self: end;
  grid-column: 3;
}
.site-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font: 500 0.88rem "Inter", "Inter Fallback", sans-serif;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
}
.site-pill:hover { background: rgba(255, 255, 255, 0.18); }
.site-header .site-pill-icon {
  padding: 10px;
}
.site-header .site-pill-icon svg { display: block; }
.site-header .site-pill-icon[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
}
.site-header .site-pill-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}
.site-header .site-pill-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}
.site-header .site-pill-solid {
  background: var(--accent);
  border-color: var(--accent);
}
.site-header .site-pill-solid:hover {
  background: #364f3e;
  border-color: #364f3e;
}
.site-header .site-pill-ghost { display: none; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-icon { display: block; }
.nav-toggle[aria-expanded="true"] .nav-icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-icon-close { display: block; }
.nav-toggle[aria-expanded="false"] .nav-icon-close { display: none; }
.nav-toggle[aria-expanded="false"] .nav-icon-open { display: block; }

.mobile-nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(28, 26, 23, 0.45);
  backdrop-filter: blur(2px);
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(320px, 88vw);
  padding: max(18px, env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
  background: #fff;
  color: var(--ink);
  box-shadow: -12px 0 40px rgba(34, 32, 28, 0.18);
  overflow-y: auto;
}
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mobile-nav-title {
  font: 700 0.95rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink);
}
.mobile-nav-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.mobile-nav-close:hover { background: var(--accent-soft); color: var(--accent-deep); }
.mobile-nav > button[data-nav],
.mobile-nav > a[data-nav] {
  display: block;
  width: 100%;
  padding: 14px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: 500 1rem "Inter", "Inter Fallback", sans-serif;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.mobile-nav > button[data-nav]:hover,
.mobile-nav > button[data-nav][aria-current="page"],
.mobile-nav > a[data-nav]:hover,
.mobile-nav > a[data-nav][aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.mobile-nav-actions .site-pill {
  justify-content: center;
  width: 100%;
  color: #fff;
}
.mobile-nav-actions .site-pill-outline {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}
.mobile-nav-actions .site-pill-solid {
  background: var(--accent);
  border-color: var(--accent);
}
body.mobile-nav-open { overflow: hidden; }

@media (min-width: 960px) {
  .site-nav { display: flex; }
  .nav-toggle,
  .mobile-nav,
  .mobile-nav-scrim { display: none !important; }
}

.hero {
  position: relative;
  /* One measured first fold — like Find Your Floor’s single stage — so
     “How It Works” only appears after a deliberate scroll. */
  min-height: calc(100vh - var(--site-header-h));
  min-height: calc(100svh - var(--site-header-h));
  display: grid;
  align-items: center;
  text-align: left;
  color: #fff;
  overflow: hidden;
}
.hero > picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Copy sits on the calm left third of the photo; the floor stays visible on
   the right, so the tint is a left-to-right wash rather than a full dim. */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 36, 27, 0.82) 0%, rgba(22, 36, 27, 0.58) 36%, rgba(22, 36, 27, 0.14) 68%, rgba(22, 36, 27, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.28) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}
.hero-eyebrow {
  margin: 0 0 14px;
  font: 600 0.78rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.9;
}
.hero h1 {
  margin: 0 0 18px;
  max-width: 14ch;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  text-wrap: balance;
}
.hero-lead {
  margin: 0 0 32px;
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}
.btn-hero-primary,
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font: 600 0.95rem "Inter", "Inter Fallback", sans-serif;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, background 0.15s;
}
.btn-hero-primary {
  color: #fff;
  background: var(--accent);
  border: none;
}
.btn-hero-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-hero-outline {
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.btn-hero-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn-hero-outline.dark {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}
.btn-hero-outline.dark:hover { border-color: var(--accent); color: var(--accent); }

.landing-section {
  padding: 72px 24px;
  text-align: center;
  background: #fff;
}
.landing-section h2,
.landing-cta h2,
.colours-strip h2,
.showroom-band h2 {
  font-weight: 700;
  text-wrap: balance;
}
.landing-section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
}
.section-lead {
  margin: 0 auto 40px;
  max-width: 520px;
  color: var(--muted);
  font-size: 1rem;
}
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.steps li { padding: 0 12px; }
.step-num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}
.steps h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.steps p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Home "How It Works" — sticky intro column + numbered vertical rail.
   Scoped to .how-flow-* so the installation page keeps the .steps grid. */
.how-flow-section {
  text-align: left;
  /* Nav "How It Works" scrolls here — clear the sticky brand bar. */
  scroll-margin-top: var(--site-header-h);
}
.how-flow {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: start;
}
.how-flow-intro {
  position: sticky;
  top: calc(var(--site-header-h) + 32px);
}
.how-flow-kicker {
  margin: 0 0 12px;
  font: 600 0.72rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.how-flow-section h2 { margin: 0 0 14px; }
.how-flow-lead {
  margin: 0 0 26px;
  max-width: 40ch;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}
.how-flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.how-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.how-flow-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.how-flow-marker {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: start;
  align-self: stretch;
}
/* Connector spans the gap between this badge and the next one. Offsets assume
   a 44px badge and the 20px row gap below. */
.how-flow-step:not(:last-child) .how-flow-marker::after {
  content: "";
  position: absolute;
  top: 52px;
  bottom: -20px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--accent) 0%, var(--line) 100%);
}
.how-flow-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}
.how-flow-card {
  padding: 22px 24px;
  background: #fdfcfa;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.how-flow-card:hover {
  transform: translateY(-2px);
  border-color: #d9d2c4;
  box-shadow: var(--shadow);
}
.how-flow-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}
.how-flow-card h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink);
}
.how-flow-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
}
.how-flow-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}
.how-flow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
}
.how-flow-links a,
.how-flow-linkbtn {
  padding: 0;
  font: 600 0.85rem "Inter", "Inter Fallback", sans-serif;
  color: var(--accent);
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
}
.how-flow-links a:hover,
.how-flow-linkbtn:hover { color: var(--accent-deep); text-decoration: underline; }
.how-flow-links span { transition: transform 0.15s; display: inline-block; }
.how-flow-links a:hover span,
.how-flow-linkbtn:hover span { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .how-flow-card,
  .how-flow-links span { transition: none; }
  .how-flow-card:hover { transform: none; }
  .how-flow-links a:hover span,
  .how-flow-linkbtn:hover span { transform: none; }
}

.category-section { background: #faf9f7; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 36px;
  text-align: left;
}
.category-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.category-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(28, 26, 23, 0.1); }
.category-card-img {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.category-card:hover .category-card-img img { transform: scale(1.04); }
.category-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.72));
}
.category-card-overlay h3 { margin: 0 0 4px; font-size: 1.35rem; }
.category-card-overlay p { margin: 0; font-size: 0.88rem; opacity: 0.9; }
.category-card-body { padding: 22px 22px 20px; }
.category-card-body > p {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.category-card-body ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.category-card-body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.category-card-body li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.category-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 0.9rem "Inter", "Inter Fallback", sans-serif;
  color: var(--accent);
  cursor: pointer;
}
.category-card-link:hover { text-decoration: underline; }
.btn-outline-wide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font: 600 0.95rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline-wide:hover { border-color: var(--accent); color: var(--accent); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.why-card {
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.why-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}
.why-card h3 { margin: 0 0 8px; font-size: 1rem; }
.why-card p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

.landing-cta {
  padding: 72px 24px;
  text-align: center;
  background: #f3f1ec;
}
.landing-cta h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2rem); }
.landing-cta p { margin: 0 auto 28px; max-width: 520px; color: var(--muted); }
.landing-cta .btn-hero-primary { color: #fff; }
.landing-cta .hero-actions { justify-content: center; }

.site-footer {
  padding: 36px 24px calc(36px + env(safe-area-inset-bottom));
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--line);
}
.footer-logo { width: 48px; height: 48px; object-fit: contain; margin-bottom: 10px; opacity: 0.85; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 0 0 14px;
}
.footer-nav button,
.footer-nav a[data-nav] {
  padding: 0;
  border: none;
  background: none;
  color: var(--ink-soft);
  font: 500 0.88rem "Inter", "Inter Fallback", sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.footer-nav button:hover,
.footer-nav a[data-nav]:hover { color: var(--accent); }
.site-footer p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.site-footer .footer-parent { margin-top: 4px; font-size: 0.78rem; opacity: 0.85; }

/* ---------- Marketing pages (About / Contact / Installation) ---------- */
.marketing-page {
  background: var(--bg);
  padding: 48px 24px 72px;
  min-height: 60vh;
}
/* Doubled class keeps flush pages edge-to-edge against the narrow-width
   .marketing-page padding override further down the sheet. */
.marketing-page.marketing-page--flush { padding: 0; background: var(--bg); }
.marketing-inner {
  max-width: 760px;
  margin: 0 auto;
}
.marketing-inner--narrow { max-width: 720px; }
.marketing-page h1 {
  margin: 0 0 24px;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.15;
}
.marketing-page h2 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

/* Shared marketing heroes — match homepage .hero language */
.page-hero {
  position: relative;
  min-height: calc(72vh - var(--site-header-h));
  min-height: calc(72svh - var(--site-header-h));
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.page-hero--compact {
  min-height: calc(48vh - var(--site-header-h));
  min-height: calc(48svh - var(--site-header-h));
}
.legal-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 8px;
  text-align: left;
}
.legal-hero .hero-eyebrow {
  margin: 0 0 10px;
  color: var(--ink-soft);
  opacity: 1;
}
.legal-hero .page-hero-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.legal-hero .hero-lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.page-hero > picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 32, 26, 0.42) 0%, rgba(22, 32, 26, 0.68) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 56px 24px 72px;
}
.page-hero h1,
.page-hero h1.page-hero-title,
.page-hero h2.page-hero-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #fff;
}
/* 404 — Worker-rendered inside the site frame (see renderNotFoundPage). */
.not-found-page {
  padding: 96px 24px 112px;
  text-align: center;
  background: var(--bg);
}
.not-found-inner { max-width: 640px; margin: 0 auto; }
.not-found-kicker {
  margin: 0 0 14px;
  font: 600 0.72rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.not-found-page h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
  color: var(--ink);
}
.not-found-lead {
  margin: 0 auto 28px;
  max-width: 46ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.not-found-page .hero-actions { justify-content: center; margin-bottom: 30px; }
.not-found-page .btn-hero-primary { color: #fff; }
.not-found-links {
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
}
.not-found-links a {
  font: 600 0.9rem "Inter", "Inter Fallback", sans-serif;
  color: var(--accent);
  text-decoration: none;
}
.not-found-links a:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .not-found-page { padding: 64px 18px 80px; }
  .not-found-page .hero-actions { flex-direction: column; align-items: stretch; }
  .not-found-page .hero-actions a { justify-content: center; }
}
.page-hero .hero-lead {
  margin: 0 auto 32px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.92);
}
.page-hero .hero-actions { justify-content: center; }
.page-hero a.btn-hero-primary,
.page-hero a.btn-hero-outline { text-decoration: none; }
.landing-cta a.btn-hero-outline,
.landing-cta a.btn-hero-primary { text-decoration: none; }

.prose p {
  margin: 0 0 18px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: left;
}
.privacy-prose {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.privacy-prose h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
  color: var(--ink);
  text-align: left;
}
.privacy-prose ul {
  margin: 0 0 18px;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  line-height: 1.7;
  text-align: left;
}
.privacy-prose li { margin-bottom: 6px; }
.privacy-prose a { color: var(--accent); }
.prose-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.about-story { background: #fff; }
.about-story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.about-story-aside {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
.about-story-aside img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-section { background: #fff; }
.contact-form-section {
  background: #faf9f7;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.contact-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 87, 69, 0.28);
  box-shadow: 0 12px 28px rgba(28, 26, 23, 0.08);
}
.contact-card--wide { grid-column: 1 / -1; }
.contact-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.contact-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.contact-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--accent);
  line-height: 1.5;
}
.contact-card:not(a) p { color: var(--ink-soft); }

.local-proof-section { text-align: center; }
.local-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}
.local-proof-card {
  padding: 4px 2px;
}
.local-proof-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.local-proof-card p {
  margin: 0;
  color: var(--ink-soft, #5c574e);
  line-height: 1.45;
  font-size: 0.95rem;
}

.range-ssr-intro {
  padding: 0 4px 14px;
  margin: 0;
  max-width: 52rem;
  color: var(--muted, #8a8478);
  line-height: 1.5;
}
.contact-form,
.install-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 28px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
}
.contact-form h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
}
.contact-form .btn-hero-primary,
.install-form .btn-hero-primary {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
  border: none;
}

.install-section { text-align: center; }
.install-section--alt { background: #faf9f7; }
.install-process-steps {
  grid-template-columns: repeat(5, 1fr);
  max-width: 1180px;
}

/* Find your floor — photo match (cinematic stage) */
/* fyf-cinematic-restore */
#page-match {
  --match-deep: #1a2a20;
  --match-mid: #2a4033;
  --match-glow: rgba(140, 175, 150, 0.22);
  background: #f4f1eb;
}

.match-stage {
  position: relative;
  isolation: isolate;
  color: #f4f1eb;
  overflow: hidden;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
}
.match-stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, var(--match-glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(61, 87, 69, 0.45), transparent 50%),
    linear-gradient(145deg, var(--match-deep) 0%, var(--match-mid) 48%, #24362b 100%);
}
.match-stage-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.match-stage-planks {
  position: absolute;
  inset: -10% -5%;
  opacity: 0.14;
  background: repeating-linear-gradient(
    92deg,
    transparent 0 42px,
    rgba(255, 255, 255, 0.07) 42px 43px,
    transparent 43px 86px,
    rgba(0, 0, 0, 0.12) 86px 87px
  );
  transform: skewY(-2deg);
  pointer-events: none;
}
.match-stage-glow {
  position: absolute;
  width: 55%;
  height: 70%;
  right: -8%;
  top: 10%;
  background: radial-gradient(circle, rgba(232, 239, 233, 0.16), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  animation: matchGlowDrift 12s ease-in-out infinite alternate;
}
@keyframes matchGlowDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4%, 3%) scale(1.06); }
}

.match-stage-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.match-reveal {
  animation: matchRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.match-reveal-delay {
  animation-delay: 0.12s;
}
@keyframes matchRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.match-kicker {
  margin: 0 0 14px;
  font: 600 0.72rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, 0.72);
}
.match-kicker--dark {
  color: var(--accent);
}
.match-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
}
.match-lead {
  margin: 0 0 28px;
  max-width: 28rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(244, 241, 235, 0.88);
}
.match-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.match-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 500 0.95rem "Inter", "Inter Fallback", sans-serif;
  color: rgba(244, 241, 235, 0.9);
}
.match-step-num {
  flex: 0 0 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  font: 600 0.75rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: 0.04em;
}

.match-panel {
  display: grid;
  gap: 14px;
}

.match-type {
  display: grid;
  gap: 8px;
}
.match-type-label {
  color: rgba(244, 241, 235, 0.72);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.match-type-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.match-type-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(244, 241, 235, 0.78);
  font: inherit;
  font-size: 0.92rem;
  padding: 9px 6px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.match-type-btn:hover {
  color: #f4f1eb;
}
.match-type-btn.is-active {
  background: #f4f1eb;
  color: #1c1a17;
  font-weight: 600;
}
@media (max-width: 420px) {
  .match-type-options {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 18px;
  }
  .match-type-btn {
    border-radius: 14px;
  }
}

.match-dropzone {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 28px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.match-dropzone:hover,
.match-dropzone:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
  outline: none;
}
.match-dropzone.is-dragover {
  border-color: #c8dccf;
  box-shadow:
    0 0 0 3px rgba(200, 220, 207, 0.28),
    0 28px 60px rgba(0, 0, 0, 0.28);
}
.match-dropzone.is-analysing {
  pointer-events: none;
}

.match-drop-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 360px;
  padding: 36px 28px;
  text-align: center;
}
.match-drop-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
  border-radius: 20px;
  color: #e8efe9;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.match-drop-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.15rem;
  color: #fff;
}
.match-drop-hint,
.match-drop-meta {
  margin: 0;
  color: rgba(244, 241, 235, 0.72);
  font-size: 0.95rem;
}
.match-drop-meta {
  margin-top: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.match-preview-wrap {
  position: relative;
  min-height: 360px;
  background: #0d1511;
}
.match-preview {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}
.match-dropzone:hover .match-preview {
  transform: scale(1.06);
}

.match-scan {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding-bottom: 22px;
  background: linear-gradient(180deg, rgba(13, 21, 17, 0.15), rgba(13, 21, 17, 0.55));
  overflow: hidden;
}
.match-scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  top: -30%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(200, 220, 207, 0.08),
    rgba(232, 239, 233, 0.45),
    rgba(200, 220, 207, 0.08),
    transparent
  );
  animation: matchScan 1.8s ease-in-out infinite;
}
@keyframes matchScan {
  from { top: -30%; }
  to { top: 105%; }
}
.match-scan-label {
  position: relative;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(13, 21, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font: 500 0.82rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: 0.04em;
}

.match-clear {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(13, 21, 17, 0.62);
  color: #fff;
  font: 500 0.82rem "Inter", "Inter Fallback", sans-serif;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.match-clear:hover { background: rgba(13, 21, 17, 0.82); }

.match-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: #e8efe9;
  color: var(--match-deep);
  font: 600 0.98rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.match-cta:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-1px);
}
.match-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.match-cta.is-busy .match-cta-label { opacity: 0; }
.match-cta-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(26, 42, 32, 0.2);
  border-top-color: var(--match-deep);
  border-radius: 50%;
  animation: matchSpin 0.7s linear infinite;
}
.match-cta.is-busy .match-cta-spinner {
  display: block;
  position: absolute;
}
@keyframes matchSpin {
  to { transform: rotate(360deg); }
}

.match-status {
  margin: 2px 0 0;
  min-height: 1.3em;
  color: rgba(244, 241, 235, 0.78);
  font-size: 0.92rem;
  text-align: center;
}
.match-error {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(140, 40, 40, 0.28);
  border: 1px solid rgba(255, 180, 180, 0.28);
  color: #ffd7d7;
  font-size: 0.92rem;
  text-align: center;
}

.match-results {
  position: relative;
  padding: 72px 0 88px;
  background:
    linear-gradient(180deg, #ebe6de 0%, #f7f4ef 40%, #f4f1eb 100%);
}
.match-results--cinema {
  padding: 64px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(61, 87, 69, 0.08), transparent 55%),
    linear-gradient(180deg, #e8e3da 0%, #f5f2ec 38%, #f4f1eb 100%);
}
.match-results-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.match-results--cinema .match-results-inner {
  width: min(1320px, calc(100% - 48px));
}
.match-results-inner--foot {
  margin-top: 28px;
}
.match-results-head {
  max-width: 36rem;
  margin-bottom: 36px;
}
.match-results--cinema .match-results-head {
  max-width: 40rem;
  margin: 0 auto 40px;
  text-align: center;
}
.match-results-heading {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: left;
}
.match-results--cinema .match-results-heading {
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
}
.match-results-lead {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 1.02rem;
}
.match-results--cinema .match-results-lead {
  margin: 0 auto;
  max-width: 32rem;
}

.match-results-strip {
  position: relative;
  width: 100%;
  padding: 8px 0 4px;
}
.match-results-strip::before,
.match-results-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(28px, 4vw, 64px);
  z-index: 2;
  pointer-events: none;
}
.match-results-strip::before {
  left: 0;
  background: linear-gradient(90deg, #f0ebe3 0%, transparent 100%);
}
.match-results-strip::after {
  right: 0;
  background: linear-gradient(270deg, #f0ebe3 0%, transparent 100%);
}

.match-results-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.match-results--cinema .match-results-grid {
  width: 100%;
  padding: 0 clamp(20px, 2.5vw, 40px);
  gap: clamp(14px, 1.6vw, 22px);
  box-sizing: border-box;
}
.match-card {
  --delay: 0ms;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--line) 80%, #fff);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(28, 26, 23, 0.07);
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(22px);
  animation: matchCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--delay) forwards;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.match-results--cinema .match-card {
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(22, 32, 26, 0.08);
  background: rgba(255, 255, 255, 0.94);
}
@keyframes matchCardIn {
  to { opacity: 1; transform: none; }
}
.match-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(28, 26, 23, 0.12);
}
.match-results--cinema .match-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 56px rgba(22, 32, 26, 0.14);
}
.match-card-media {
  position: relative;
  aspect-ratio: 5 / 4;
  background: #e4dfd6;
  overflow: hidden;
}
.match-results--cinema .match-card-media {
  aspect-ratio: 3 / 4;
}
.match-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.match-card:hover .match-card-media img {
  transform: scale(1.05);
}
.match-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  /* Solid rather than blurred: a backdrop-filter here creates a composited
     layer inside the animated, overflow-hidden card and can drop out to a
     blank rectangle while scrolling. */
  background: rgba(26, 42, 32, 0.9);
  color: #fff;
  font: 600 0.72rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.match-results--cinema .match-card-badge {
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  font-size: 0.66rem;
}
.match-card-body {
  padding: 16px 16px 18px;
  display: grid;
  gap: 8px;
}
.match-results--cinema .match-card-body {
  padding: 12px 12px 14px;
  gap: 5px;
}
.match-card-colour {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.match-results--cinema .match-card-colour {
  font-size: clamp(0.88rem, 1.1vw, 1.02rem);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.match-card-meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.match-results--cinema .match-card-meta {
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-card-why {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.match-results--cinema .match-card-why {
  display: none;
}
.match-card-confidence {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}
.match-results--cinema .match-card-confidence {
  margin-top: 6px;
  gap: 4px;
}
.match-card-confidence-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.match-results--cinema .match-card-confidence-label {
  font-size: 0.64rem;
  letter-spacing: 0.05em;
}
.match-card-confidence-bar {
  height: 4px;
  border-radius: 999px;
  background: #ebe6de;
  overflow: hidden;
}
.match-results--cinema .match-card-confidence-bar {
  height: 3px;
}
.match-card-confidence-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #5f7d68);
  animation: matchFill 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--delay) + 0.25s);
}
@keyframes matchFill {
  from { width: 0; }
  to { width: var(--fill, 70%); }
}
.match-results-foot {
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.match-results--cinema .match-results-foot {
  margin: 0;
  justify-content: center;
}
.match-results-foot a {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
}
.match-results-foot a:hover { text-decoration: underline; }

.match-seo {
  position: relative;
  padding: 56px 0 64px;
  background: linear-gradient(180deg, #f4f1eb 0%, #ebe6de 100%);
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.match-seo-inner {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
}
.match-seo-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.match-seo-inner > p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}
.match-seo-inner a {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
}
.match-seo-inner a:hover { text-decoration: underline; }
.match-seo-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.match-seo-points li {
  position: relative;
  padding: 10px 14px 10px 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}
.match-seo-points li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 1.05em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 1100px) {
  .match-results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .match-results--cinema .match-results-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: clamp(16px, 4vw, 28px);
    padding: 4px clamp(16px, 4vw, 28px) 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .match-results--cinema .match-card {
    flex: 0 0 min(42vw, 220px);
    scroll-snap-align: start;
  }
  .match-results--cinema .match-card-media { aspect-ratio: 3 / 4; }
  .match-results-strip::before,
  .match-results-strip::after { width: 24px; }
}
@media (max-width: 900px) {
  .match-stage { min-height: auto; }
  .match-stage-inner {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0 40px;
  }
  .match-copy h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .match-dropzone,
  .match-drop-empty,
  .match-preview-wrap { min-height: 280px; }
  .match-preview { height: 280px; }
  .match-results { padding: 48px 0 64px; }
  .match-results-inner { width: calc(100% - 36px); }
  .match-results-grid { grid-template-columns: 1fr; }
  .match-results--cinema .match-results-grid {
    display: flex;
    gap: 12px;
  }
  .match-results--cinema .match-card {
    flex: 0 0 min(68vw, 240px);
  }
  .match-results--cinema .match-card-why {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
    margin: 2px 0 0;
  }
  .match-seo { padding: 40px 0 48px; }
  .match-seo-inner { width: calc(100% - 36px); }
}

@media (prefers-reduced-motion: reduce) {
  .match-reveal,
  .match-reveal-delay,
  .match-card,
  .match-card-confidence-fill,
  .match-stage-glow,
  .match-scan-beam,
  .match-cta-spinner {
    animation: none !important;
  }
  .match-card { opacity: 1; transform: none; }
  .match-card-confidence-fill { width: var(--fill, 70%); }
}

.install-section h2 { text-align: center; }
.install-lead {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
  line-height: 1.65;
}
.feature-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.feature-grid li {
  position: relative;
  padding: 16px 18px 16px 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  line-height: 1.45;
}
.feature-grid li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--accent);
  font-weight: 700;
}
.install-section--alt { background: #faf9f7; }
.install-why {
  max-width: 1100px;
}
.process-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 820px;
  display: grid;
  gap: 18px;
}
.process-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.process-steps .step-num { margin: 0; flex-shrink: 0; }
.process-steps h3 { margin: 0 0 6px; font-size: 1.05rem; }
.process-steps p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.type-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.type-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.type-card h3 {
  margin: 16px 18px 8px;
  font-size: 1.05rem;
}
.type-card p {
  margin: 0 18px 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.install-footnote {
  max-width: 820px;
  margin: 28px auto 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.95rem;
}
.install-form {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}
.install-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
  margin-bottom: 14px;
}
.install-form .btn-hero-primary {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
  border: none;
}
.install-success {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.92rem;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  /* Column 1 matches the filter rail below, so the brand lines up with it;
     the search bar stretches across the results column and ends at its edge */
  grid-template-columns: 280px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  /* Same deep green as the marketing header so the catalogue reads as the
     same site, not a separate tool. */
  background: var(--accent);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  cursor: pointer;
  padding: 4px;
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark:hover { transform: scale(1.05); border-color: #fff; }
.brand-mark.margins-on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185, 138, 60, 0.18); }
.brand-title {
  display: block;
  margin: 0;
  padding: 0;
  font: 700 1.22rem "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.12s;
  text-decoration: none;
}
.brand-title:hover { color: #dbe8de; }
.brand .sub {
  margin: 2px 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.search-wrap { position: relative; width: 100%; }
.search-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--ink-soft);
  pointer-events: none;
}
#search {
  width: 100%;
  padding: 12px 44px 12px 42px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface);
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: border-color 0.15s, box-shadow 0.15s;
}
#search:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28); }
#search::-webkit-search-cancel-button { display: none; } /* custom clear button instead */
.search-clear {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink-soft);
  background: var(--bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.search-clear:hover { background: var(--accent); color: #fff; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  font: 500 0.85rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn-icon {
  padding: 10px;
  text-decoration: none;
}
.btn-user { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-ghost.spinning svg { animation: spin 0.8s linear infinite; }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.topbar .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.topbar .btn-ghost:hover { color: #fff; border-color: #fff; }
.topbar-nav { display: none; align-items: center; gap: 2px; margin-right: 6px; }
@media (min-width: 1100px) { .topbar-nav { display: flex; } }
.topbar-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font: 500 0.88rem "Inter", "Inter Fallback", sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-nav a:hover,
.topbar-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.14); color: #fff; }
.topbar .catalog-signin {
  background: #fff;
  border-color: #fff;
  color: var(--accent-deep);
  font-weight: 600;
}
.topbar .catalog-signin:hover {
  background: #e8efe9;
  border-color: #e8efe9;
  color: var(--accent-deep);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Layout: filter rail + results ---------- */
.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 20px 80px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.catalog-main { min-width: 0; }

.range-focus-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(185, 138, 60, 0.12), rgba(185, 138, 60, 0.04));
  border: 1px solid rgba(185, 138, 60, 0.28);
  border-radius: 14px;
}
.range-focus-banner[hidden] { display: none; }
.range-focus-copy { min-width: 0; flex: 1; }
.range-focus-label {
  margin: 0 0 2px;
  font: 600 0.68rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.range-focus-title {
  margin: 0;
  font: 650 1.2rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}
.range-focus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 6px 0 0;
  font: 500 0.82rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink-soft);
}
.range-focus-supplier { color: var(--ink); }
.range-focus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.range-focus-share,
.range-focus-clear {
  appearance: none;
  border-radius: 999px;
  padding: 9px 14px;
  font: 600 0.8rem "Inter", "Inter Fallback", sans-serif;
  cursor: pointer;
}
.range-focus-share {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}
.range-focus-share:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.range-focus-clear {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.range-focus-clear:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.filter-rail {
  position: sticky;
  top: 90px;
  align-self: start;
  min-width: 0;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
}
.filter-rail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px 12px;
  flex-shrink: 0;
}
.filter-rail-title {
  margin: 0;
  font: 700 1.05rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.filter-rail-title-mobile { display: none; }
.filter-rail-body {
  min-height: 0;
}
.filter-clear {
  margin-left: auto;
  padding: 4px 8px;
  font: 500 0.72rem "Inter", "Inter Fallback", sans-serif;
  color: var(--accent);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-clear.is-visible {
  visibility: visible;
  pointer-events: auto;
}
.filter-clear:hover { background: var(--accent-soft); }
.filter-rail-close { display: none; }
.filter-rail-footer {
  display: none;
}
.filter-sheet-handle {
  display: none;
}

.filter-panel {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.filter-panel summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 12px;
  font: 600 0.78rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-panel summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  margin-left: auto;
}
.filter-panel[open] summary::after { transform: rotate(45deg); }
.filter-panel[open] summary { color: var(--ink); border-bottom: 1px solid var(--line); }
.filter-panel-body,
.filter-panel > .chips { padding: 10px 10px 12px; }
.filter-row + .filter-row { margin-top: 12px; }
.filter-row-label {
  display: block;
  margin: 0 2px 6px;
  font: 600 0.68rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 0;
}

.chips {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chips-inline {
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 5px;
}
.chips-wrap {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
}
.chips-compact .chip {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  padding: 7px 6px;
  font-size: 0.78rem;
}
.chips-compact .chip .count { display: none; }

.catalog-intro {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}
.mobile-filter-chrome {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 8px;
}
.mobile-quick-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mobile-quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  padding: 2px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mobile-quick-chips::-webkit-scrollbar { display: none; }
.mobile-quick-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font: 500 0.78rem "Inter", "Inter Fallback", sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.mobile-quick-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
  font-weight: 600;
}
.mobile-more-btn {
  flex: none;
  margin-left: auto;
}
.mobile-active-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.mobile-active-pills::-webkit-scrollbar { display: none; }
.mobile-active-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font: 600 0.72rem "Inter", "Inter Fallback", sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.mobile-active-pill span {
  font-size: 1rem;
  line-height: 1;
  font-weight: 500;
}
.catalog-intro-title {
  margin: 0;
  font: 700 1.45rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.btn-ghost.margins-on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}

.range-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 28px;
  overflow: visible;
  transition: none;
  animation: card-in 0.25s ease-out backwards;
  /* Skip layout/paint for off-screen range cards (tile virtualisation helper). */
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}
.range-card.range-card--instant {
  animation: none;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
}
.range-card:hover { box-shadow: none; }
.range-card--showroom .range-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 4px 2px 12px;
  border-bottom: none;
  background: none;
}
.range-head .supplier {
  font: 600 0.68rem "Inter", "Inter Fallback", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(185, 138, 60, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
}
.range-head h2 { margin: 0; font-size: 1.15rem; font-weight: 650; flex-basis: 100%; }
.range-head h2 .range-title-link {
  color: inherit;
  text-decoration: none;
}
.range-head h2 .range-title-link:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.range-share-btn {
  appearance: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font: 600 0.75rem "Inter", "Inter Fallback", sans-serif;
  cursor: pointer;
  flex-shrink: 0;
}
.range-share-btn:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}
.range-head .specs { font-size: 0.8rem; color: var(--ink-soft); }
.range-head .specs b { color: var(--ink); font-weight: 600; }
.range-count { margin-left: auto; }
.range-card--single .range-head--compact {
  padding-bottom: 8px;
}
.range-card--single .range-head--compact h2 {
  font-size: 1rem;
}

.colour-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, 240px);
  gap: 16px;
}
.colour-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.colour-tile:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(34, 32, 28, 0.08);
}
.colour-tile-media {
  position: relative;
  height: var(--tile-media-h);
  background: #ebe6dc;
  overflow: hidden;
}
.colour-tile-media.has-image:hover img { transform: scale(1.03); }
.colour-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
  pointer-events: none;
}
.colour-tile-blank {
  width: 100%;
  height: 100%;
}
.colour-tile-media.has-image { cursor: zoom-in; }
.colour-tile-link {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: inherit;
  font: inherit;
  text-align: left;
}
.colour-tile-body-link {
  display: flex;
  flex-direction: column;
  gap: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.colour-tile-body-link:hover h3 { color: var(--accent-deep); }
.colour-tile-compare {
  position: absolute;
  top: calc(var(--tile-cmp-size) * 0.22);
  right: calc(var(--tile-cmp-size) * 0.22);
  z-index: 2;
  width: var(--tile-cmp-size);
  height: var(--tile-cmp-size);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 0;
  /* Icon is an SVG — avoid text glyphs (Inter "+" sits optically high/right). */
  font: inherit;
  line-height: 0;
  background: rgba(28,26,23,0.45);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: none;
}
.colour-tile-compare svg {
  width: 52%;
  height: 52%;
  display: block;
}
.colour-tile-compare.selected {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}
.colour-tile-body {
  display: flex;
  flex-direction: column;
  gap: clamp(2px, calc(var(--tile-media-h) * 0.02), 6px);
  padding: var(--tile-caption-pad) 12px 12px;
  flex: 1;
}
.colour-tile-body h3 {
  margin: 0;
  font: 700 var(--tile-caption-name) "Inter", "Inter Fallback", sans-serif;
  line-height: 1.25;
}
.colour-tile-range {
  margin: 0;
  font-size: var(--tile-caption-meta);
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.3;
}
.colour-tile-specs {
  margin: 0;
  font-size: var(--tile-caption-meta);
  color: var(--muted);
  line-height: 1.3;
}
.colour-tile-code {
  margin: 0;
  font-size: var(--tile-caption-meta);
  color: var(--muted);
  line-height: 1.3;
}
.colour-tile-tag { margin: 2px 0 0; }
.colour-tile-tag .colour-tag {
  font-size: var(--tile-caption-meta);
}
.colour-tile-price {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.colour-tile-rate {
  font: 700 var(--tile-caption-price) "Inter", "Inter Fallback", sans-serif;
  color: var(--accent-deep);
  line-height: 1.2;
}
.ex-gst {
  font-weight: 500;
  font-size: 0.78em;
  opacity: 0.78;
  white-space: nowrap;
}
.tier .t-price .ex-gst,
.tile-margin-btn .ex-gst {
  display: block;
  margin-top: 1px;
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.colour-tile-price .price-btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
}
/* Guest tiles: one real button ("Add to quote"); the sign-in prompt is a quiet
   text link so the grid doesn't read as two stacked buttons per card. */
.colour-tile-price .price-btn.price-locked {
  width: auto;
  padding: 2px 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: calc(var(--tile-caption-meta) * 1.02);
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(111, 106, 97, 0.4);
  text-underline-offset: 3px;
}
.colour-tile-price .price-btn.price-locked:hover {
  background: transparent;
  color: var(--accent);
  text-decoration-color: var(--accent);
  box-shadow: none;
}
.colour-tile-quote {
  margin-top: 6px;
  width: 100%;
  border: 1px solid var(--accent);
  background: var(--accent-deep);
  color: #fff;
  border-radius: 8px;
  padding: calc(var(--tile-caption-pad) * 0.55) 10px;
  font: 600 calc(var(--tile-caption-meta) * 1.05) "Inter", "Inter Fallback", sans-serif;
  cursor: pointer;
  line-height: 1.2;
}
.colour-tile-quote:hover { background: var(--accent); }
.colour-tile-save {
  font-size: var(--tile-caption-meta);
  color: var(--accent);
  font-weight: 600;
}
.colour-tile-margins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
}
.tile-margin-btn {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
  padding: 5px 6px;
  cursor: pointer;
  text-align: left;
}
.tile-margin-btn span {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.tile-margin-btn strong {
  font-size: 0.78rem;
  color: var(--ink);
}
.tile-margin-btn.cost strong { color: var(--ink-soft); }
.tile-margin-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.showroom-results .empty {
  margin-top: 24px;
}

.filters-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font: 500 0.84rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  flex: none;
}
.filters-toggle-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.filter-scrim {
  position: fixed;
  inset: 0;
  background: rgba(34, 32, 28, 0.35);
  z-index: 80;
}

.active-filters {
  display: none;
}
.chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  font: 500 0.82rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.chips-wrap .chip {
  flex: 0 1 auto;
  justify-content: flex-start;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.78rem;
}
.filter-rail .chips-wrap {
  flex-direction: column;
  flex-wrap: nowrap;
}
.filter-rail .chips-wrap .chip {
  width: 100%;
  justify-content: space-between;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
}
.chip:hover { background: var(--surface); color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-rail .chip:hover {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--line);
}
.filter-rail .chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.filter-rail .chips-wrap .chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.chip.zero:not(.active) { opacity: 0.4; }
.chip .count {
  flex: none;
  min-width: 22px;
  padding: 1px 7px;
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border-radius: 999px;
}
.chip:hover .count { background: #fff; }
.chip.active .count { background: rgba(255, 255, 255, 0.22); color: #fff; }
.filter-rail .chip:hover .count { background: var(--surface); }
.filter-rail .chip.active .count {
  background: rgba(61, 87, 69, 0.12);
  color: var(--accent);
}

/* ---------- Results ---------- */
main { padding: 4px 0 40px; min-width: 0; }

.empty {
  text-align: center;
  padding: 90px 20px;
  color: var(--ink-soft);
}
.empty h2 { font-size: 1.5rem; margin-bottom: 8px; color: var(--ink); font-family: "Fraunces", serif; }

/* Crawlable category SSR (replaced by SPA grid once JS loads) */
.category-ssr {
  max-width: 720px;
  padding: 8px 4px 48px;
}
.category-ssr h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0.35em 0 0.4em;
  color: var(--ink);
}
.category-ssr-kicker,
.category-ssr-lead,
.category-ssr-count,
.category-ssr-cta {
  color: var(--ink-soft);
  line-height: 1.5;
}
.category-ssr-list {
  columns: 2;
  column-gap: 28px;
  padding-left: 1.1em;
  margin: 12px 0 24px;
}
.category-ssr-list li {
  break-inside: avoid;
  margin: 0.25em 0;
}
@media (max-width: 640px) {
  .category-ssr-list { columns: 1; }
}
/* /products hub SSR heading — replaced by the SPA once the catalogue hydrates. */
.products-hub-ssr {
  max-width: 720px;
  padding: 8px 4px 20px;
}
.products-hub-ssr h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0.35em 0 0.4em;
  color: var(--ink);
}
.products-hub-ssr-lead,
.products-hub-ssr-count,
.products-hub-ssr-nav {
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0.4em 0;
}
/*
 * Crawler/SSR catalogue shells stay in the HTML (H1, colour lists, LCP thumbs)
 * but must not flash before the SPA paints the real UI. Humans only see the
 * loading stand-in (#catalog-ssr-pending) until hydrate clears #results.
 */
.ssr-crawl-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.catalog-ssr-pending {
  margin: 24px auto;
}
.empty::before {
  content: "";
  display: block;
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: var(--surface) url("/logo.png") center/70% no-repeat;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0.85;
}

table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 9px 12px;
  font: 600 0.7rem "Inter", "Inter Fallback", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
thead th.num { text-align: right; }
tbody td {
  padding: 10px 12px;
  font-size: 0.92rem;
  border-bottom: 1px solid #f0ece4;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: #fcfbf8; }
tbody tr:hover { background: var(--accent-soft); }
td.colour { font-weight: 600; }
.colour-cell { display: inline-flex; align-items: flex-start; gap: 10px; }
.colour-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.colour-meta { display: block; }
.colour-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.35;
  white-space: nowrap;
}
.colour-tag.shade-light { background: #f3efe6; color: #6a5c4a; border: 1px solid #e5ddd0; }
.colour-tag.shade-medium { background: #ebe6dc; color: #5c5348; border: 1px solid #d8d0c4; }
.colour-tag.shade-dark { background: #3d3832; color: #f0ebe3; border: 1px solid #2e2a26; }
.drawer-colour-profile {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}
.drawer-colour-profile .colour-tag { vertical-align: middle; margin-right: 4px; }
.colour-cell.has-image { cursor: zoom-in; }
.colour-cell.has-image:hover { color: var(--accent); }
.swatch {
  width: 36px; height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(34, 32, 28, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  background: #eee;
  transition: transform 0.15s;
}
.colour-cell.has-image:hover .swatch { transform: scale(1.12); }
.swatch-none { display: inline-block; background: repeating-linear-gradient(45deg, #f0ece4, #f0ece4 4px, #faf8f4 4px, #faf8f4 8px); }
td.code { color: var(--ink-soft); font-size: 0.8rem; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.cost { color: var(--ink-soft); }

.price-btn {
  font: 600 0.92rem "Inter", "Inter Fallback", sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  min-width: 86px;
  text-align: center;
  transition: all 0.12s;
}
.price-btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 10px rgba(26, 122, 52, 0.28);
}
.price-btn.price-locked {
  color: var(--ink-soft);
  background: #f3f0ea;
  font-weight: 600;
  font-size: 0.72rem;
  min-width: 118px;
  padding: 7px 10px;
  line-height: 1.25;
  white-space: normal;
}
.price-btn.price-locked:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.more-note { padding: 12px 20px; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
.show-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0 24px;
}
.catalog-scroll-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}
.show-more-ranges {
  padding: 12px 28px;
  font: 600 0.9rem "Inter", "Inter Fallback", sans-serif;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s, transform 0.1s;
}
.show-more-ranges:hover { background: var(--accent-deep); }
.show-more-ranges:active { transform: scale(0.98); }
.show-more-wrap .more-note { padding: 0; }

/* ---------- Drawer ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(34, 32, 28, 0.35);
  z-index: 30;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--surface);
  z-index: 40;
  padding: 28px 26px;
  overflow-y: auto;
  border-radius: 22px 0 0 22px;
  box-shadow: -12px 0 40px rgba(34, 32, 28, 0.18);
  animation: slide-in 0.22s ease-out;
}
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }

.drawer-close {
  position: absolute; top: 14px; right: 16px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.drawer-close:hover { color: var(--ink); }

.drawer-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  cursor: zoom-in;
  border: 1px solid var(--line);
}

.lightbox {
  position: fixed; inset: 0;
  z-index: 60;
  background: rgba(20, 18, 15, 0.88);
  display: grid;
  place-items: center;
  cursor: zoom-out;
  padding: 24px;
}

/* ---------- Shareable product page ---------- */
.product-page {
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}
.product-page-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(245, 242, 236, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.product-page-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.product-back,
.product-share-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  font: 600 0.85rem "Inter", "Inter Fallback", sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.product-back:hover,
.product-share-btn:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}
#product-signin {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
#product-signin:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}
.product-page-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
}
.product-page-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.product-page-media {
  background: #ebe6dc;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
  box-shadow: 0 10px 30px rgba(34, 32, 28, 0.06);
}
.product-page-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 640px);
  object-fit: cover;
  cursor: zoom-in;
}
.product-page-blank {
  height: 320px;
  background: linear-gradient(135deg, #d8cfc0, #b8a992);
}
/* Shell shown while the catalogue is still downloading (deep link from an
   article). Hide the empty controls so it doesn't read as a broken page. */
.product-page.is-loading .product-page-title {
  opacity: 0.45;
}
.product-page.is-loading .product-page-actions,
.product-page.is-loading .product-page-bar-actions {
  visibility: hidden;
}
.product-page.is-loading .product-page-media {
  animation: pp-shell-pulse 1.2s ease-in-out infinite;
}
@keyframes pp-shell-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .product-page.is-loading .product-page-media {
    animation: none;
  }
}
.product-page-supplier {
  display: inline-block;
  font: 600 0.68rem "Inter", "Inter Fallback", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(185, 138, 60, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
}
.product-page-title {
  margin: 10px 0 6px;
  font: 700 1.7rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.product-page-range,
.product-page-size,
.product-page-code {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}
.product-page-profile { margin: 10px 0 0; }
.product-page-price {
  margin: 14px 0 0;
  font: 700 1.35rem "Inter", "Inter Fallback", sans-serif;
  color: var(--accent-deep);
}
.product-page-actions .price-locked {
  /* Own row on desktop (width 100%); shares the CTA row on mobile. */
  flex: 1 1 100%;
  width: 100%;
  max-width: 280px;
  min-height: 42px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--accent-deep);
  background: #fff;
  border: 1.5px solid rgba(28, 26, 23, 0.28);
}
.product-page-actions .price-locked:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: none;
}
.product-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}
.product-page-quote {
  flex: 1 1 180px;
  max-width: 280px;
  min-height: 46px;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
}
/* Option B: solid Greenhill green quote + gold outline compare */
.product-page-actions .cmp-pill {
  margin-top: 0;
  min-height: 46px;
  border: 1.5px solid var(--gold);
  color: var(--gold-deep);
  background: #fff;
}
.product-page-actions .cmp-pill .cmp-dot {
  background: var(--gold-soft);
  color: var(--gold-deep);
}
.product-page-actions .cmp-pill:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
  background: var(--gold-soft);
}
.product-page-actions .cmp-pill.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.product-page-actions .cmp-pill.selected .cmp-dot {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.product-page-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.86rem;
  line-height: 1.3;
}
.product-page-specs > div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 0;
}
.product-page-specs dt {
  margin: 0 0 3px;
  padding: 0;
  border: none;
  font: 600 0.65rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.product-page-specs dd {
  margin: 0;
  padding: 0;
  border: none;
  font-weight: 650;
  color: var(--ink);
  text-align: left;
  min-width: 0;
  overflow-wrap: anywhere;
}
.product-page-about {
  margin: 22px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}
.product-page-about-label {
  display: block;
  margin: 0 0 8px;
  font: 600 0.68rem "Inter", "Inter Fallback", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.product-page-about-scroll {
  max-height: 7.2rem; /* ~4 lines — page height stays fixed */
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.product-page-lead {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}
.product-page-about-hint {
  margin: 8px 0 0;
  font: 600 0.72rem "Inter", "Inter Fallback", sans-serif;
  color: var(--muted);
}
.pp-trim {
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}
.pp-trim-label {
  margin: 0 0 4px;
  font: 600 0.68rem "Inter", "Inter Fallback", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.pp-trim-intro {
  margin: 0 0 10px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.pp-trim-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pp-trim-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.pp-trim-swatch {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(37, 34, 32, 0.12);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 2px,
      rgba(0, 0, 0, 0.035) 2px,
      rgba(0, 0, 0, 0.035) 3px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.1)),
    var(--trim-hex, #a17852);
  background-size: auto, auto, cover;
  background-position: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.pp-trim-swatch.has-photo {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.08)),
    var(--trim-photo),
    linear-gradient(var(--trim-hex, #a17852), var(--trim-hex, #a17852));
  background-size: auto, cover, auto;
  background-position: center, center 42%, center;
  background-repeat: no-repeat;
}
.pp-trim-name {
  font: 650 0.82rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
@media (max-width: 720px) {
  .pp-trim-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .pp-trim-card { padding: 6px; }
  .pp-trim-swatch { height: 38px; }
  .pp-trim-name { font-size: 0.75rem; }
}
@media (max-width: 720px) {
  /* Mobile stack: title → CTAs → image → specs → about → trim.
     Desktop keeps visual | body; body uses display:contents so its
     children can interleave with the image column. */
  .product-page-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 14px 28px;
  }
  .product-page-body {
    display: contents;
  }
  .product-page-supplier,
  .product-page-title,
  .product-page-range,
  .product-page-size,
  .product-page-code,
  .product-page-profile,
  .product-page-price {
    order: 1;
  }
  .product-page-actions {
    order: 2;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 12px;
    width: 100%;
  }
  .product-page-actions .price-locked {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 40px;
    padding: 8px;
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: nowrap;
  }
  .product-page-quote {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
    min-height: 40px;
    padding: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .product-page-actions .cmp-pill {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .product-page-visual {
    order: 3;
    margin-top: 16px;
  }
  .product-page-about {
    order: 4;
  }
  .pp-trim {
    order: 5;
  }
  .product-page-title { font-size: 1.4rem; }
  .product-page-media img { max-height: 42vh; }
  .product-page-specs dd { text-align: left; }
}
.lightbox-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 360px);
  gap: 0;
  width: min(96vw, 1100px);
  max-height: min(88vh, 820px);
  background: #1c1a17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  cursor: default;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  position: relative;
}
.lightbox-close {
  display: none;
}
.lightbox-photo {
  display: grid;
  place-items: center;
  background: #12100e;
  min-height: 0;
  padding: 16px;
}
.lightbox-photo img {
  max-width: 100%;
  max-height: min(80vh, 760px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}
.lightbox-aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  color: #f4f0ea;
  overflow-y: auto;
  background: #23201c;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.lightbox-supplier {
  align-self: flex-start;
  font: 600 0.68rem "Inter", "Inter Fallback", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(185, 138, 60, 0.14);
  padding: 3px 10px;
  border-radius: 999px;
}
.lightbox-title {
  margin: 4px 0 0;
  font: 650 1.35rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}
.lightbox-range,
.lightbox-size,
.lightbox-code {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(244, 240, 234, 0.72);
  line-height: 1.35;
}
.lightbox-code { font-size: 0.8rem; opacity: 0.85; }
.lightbox-profile { margin: 4px 0 0; }
.lightbox-profile .colour-tag { vertical-align: middle; }
.lightbox-looks {
  margin-left: 6px;
  font-size: 0.8rem;
  color: rgba(244, 240, 234, 0.65);
}
.lightbox-match-why {
  margin: 10px 0 0;
  font: 400 0.88rem/1.45 "Inter", "Inter Fallback", sans-serif;
  color: rgba(244, 240, 234, 0.82);
}
.lightbox-price {
  margin: 8px 0 0;
  font: 700 1.2rem "Inter", "Inter Fallback", sans-serif;
  color: #fff;
}
.lightbox-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}
.lightbox-specs dt {
  margin: 0;
  color: rgba(244, 240, 234, 0.5);
  font-weight: 500;
}
.lightbox-specs dd {
  margin: 0;
  color: rgba(244, 240, 234, 0.88);
}
.lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
}
.lightbox-actions .cmp-pill {
  margin: 0;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 8px 16px 8px 9px;
  font: 600 0.82rem "Inter", "Inter Fallback", sans-serif;
}
.lightbox-actions .cmp-pill:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.lightbox-actions .lightbox-view {
  text-decoration: none;
  padding-left: 16px;
  padding-right: 16px;
}
.lightbox-actions .lightbox-quote {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  padding-left: 16px;
  padding-right: 16px;
}
.lightbox-actions .lightbox-quote:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

@media (max-width: 720px) {
  .colour-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  :root { --tile-media-h: 148px; }
  .colour-tile-body {
    padding: 10px 10px 12px;
    gap: 0;
  }
  .colour-tile-body h3 {
    font-size: 0.9rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .colour-tile-range,
  .colour-tile-specs,
  .colour-tile-code,
  .colour-tile-tag,
  .colour-tile-quote {
    display: none !important;
  }
  .colour-tile-price {
    display: flex !important;
    margin-top: 8px;
  }
  .colour-tile-price .price-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.72rem;
    padding: 8px 10px;
    min-height: 36px;
  }
  .colour-tile-rate {
    font-size: 0.95rem;
  }
  .colour-tile-media { cursor: pointer; }
  .lightbox {
    padding: 0;
    align-items: end;
    place-items: end center;
  }
  .lightbox-panel {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: min(92vh, 100%);
    border-radius: 16px 16px 0 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .lightbox-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #1c1a17;
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  }
  .lightbox-close:hover,
  .lightbox-close:active {
    background: #f4f0ea;
  }
  .lightbox-photo {
    padding: 12px 12px 8px;
  }
  .lightbox-photo img {
    max-height: 38vh;
  }
  .lightbox-aside {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  }
}

.drawer-head { margin-bottom: 20px; padding-right: 30px; }
.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.share-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 12px;
  font: 600 0.78rem "Inter", "Inter Fallback", sans-serif;
  cursor: pointer;
}
.share-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.drawer-supplier {
  margin: 0 0 4px;
  font: 600 0.72rem "Inter", "Inter Fallback", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.drawer-head h2 { margin: 0 0 4px; font-size: 1.5rem; font-weight: 600; }
.drawer-range { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.drawer-size { margin: 4px 0 0; font-size: 0.8rem; color: var(--ink-soft); }

.tier-picker { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tier {
  flex: 1;
  min-width: 72px;
  padding: 10px 8px;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.tier .t-name { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 3px; }
.tier .t-price { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.tier.active { border-color: var(--accent); background: var(--accent-soft); }
.tier.active .t-name, .tier.active .t-price { color: var(--accent); }

.customer-price {
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.customer-price.trade {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.customer-price.locked {
  background: #f7f4ef;
}
.cp-locked-msg {
  margin: 6px 0 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.cp-signin {
  width: auto;
  padding: 10px 16px;
}
.cp-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.cp-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.cp-amount {
  font: 700 1.35rem "Inter", "Inter Fallback", sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.customer-price.trade .cp-amount { color: var(--accent); }
.cp-unit {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.cp-discount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}
.customer-price.trade .cp-discount { border-top-color: rgba(0, 0, 0, 0.08); }
.cp-retail-ref { color: var(--ink-soft); }
.cp-retail-ref s { opacity: 0.85; }
.cp-save {
  font-weight: 600;
  color: var(--accent);
}

.custom-margin-row { margin-bottom: 22px; }
.custom-margin-row .sqm-row { margin-bottom: 0; }
#variable-price {
  width: 100%;
  padding: 11px 58px 11px 16px;
  font: 600 1.05rem "Inter", "Inter Fallback", sans-serif;
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  outline: none;
  background: var(--accent-soft);
}
#variable-price:focus { box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }


.sqm-label { display: block; font: 600 0.8rem "Inter", "Inter Fallback", sans-serif; margin-bottom: 8px; }
.sqm-row { position: relative; margin-bottom: 22px; }
#sqm {
  width: 100%;
  padding: 14px 56px 14px 16px;
  font: 600 1.3rem "Inter", "Inter Fallback", sans-serif;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
}
#sqm:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sqm-unit {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  font-weight: 600;
}

.waste-picker { display: flex; gap: 8px; margin-bottom: 22px; }
.waste-btn {
  flex: 1;
  padding: 9px 6px;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: none;
  cursor: pointer;
  font: 600 0.85rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink);
}
.waste-btn small {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.waste-btn.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.waste-btn.active small { color: var(--accent); }

.quote-result {
  background: #faf8f4;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.quote-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.quote-line strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.boxes-line strong { font-size: 1.15rem; color: var(--accent); }
.quote-result hr { border: none; border-top: 1px dashed var(--line); margin: 10px 0; }
.total-line { font-size: 1rem; }
.total-line strong { font-size: 1.45rem; color: var(--accent); }

/* ---------- Product details ---------- */
.q-details {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf8f4;
}
.q-details summary {
  padding: 13px 16px;
  font: 600 0.85rem "Inter", "Inter Fallback", sans-serif;
  cursor: pointer;
  color: var(--ink);
  list-style-position: inside;
}
.q-details[open] summary { border-bottom: 1px solid var(--line); }
.q-details dl {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr;
  gap: 7px 14px;
  margin: 0;
  padding: 14px 16px;
}
.q-details dt {
  font: 600 0.72rem "Inter", "Inter Fallback", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding-top: 2px;
}
.q-details dd { margin: 0; font-size: 0.85rem; overflow-wrap: anywhere; }
.q-source {
  display: block;
  padding: 0 16px 14px;
  font: 600 0.8rem "Inter", "Inter Fallback", sans-serif;
  color: var(--accent);
  text-decoration: none;
}
.q-source:hover { text-decoration: underline; }

/* ---------- Compare ---------- */
.cmp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 16px 8px 9px;
  font: 600 0.82rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.cmp-pill:hover { border-color: var(--accent); color: var(--accent); }
.cmp-pill .cmp-dot {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  line-height: 1;
}
.cmp-pill.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.cmp-pill.selected .cmp-dot { background: rgba(255,255,255,0.22); color: #fff; }

.compare-tray {
  position: fixed;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 10px 9px 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(229, 223, 213, 0.9);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(34, 32, 28, 0.16);
  animation: tray-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes tray-in {
  from { transform: translate(-50%, 24px); opacity: 0; }
}
.compare-tray.shake { animation: shake 0.35s; }

.compare-stack { display: flex; align-items: center; }
.compare-stack img,
.compare-stack span {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(34, 32, 28, 0.2);
}
.compare-stack span {
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  font: 600 0.85rem "Inter", "Inter Fallback", sans-serif;
}
.compare-stack > * + * { margin-left: -10px; }

.compare-go {
  padding: 9px 18px;
  font: 600 0.85rem "Inter", "Inter Fallback", sans-serif;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.compare-go:hover:not(:disabled) { background: var(--accent-deep); }
.compare-go:disabled {
  background: transparent;
  color: var(--ink-soft);
  cursor: default;
  padding-left: 4px;
  padding-right: 8px;
}
.compare-clear {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.compare-clear:hover { background: #f0ece4; color: var(--ink); }

.compare-view {
  position: fixed; inset: 0;
  z-index: 85; /* above showroom guest bar (80) so the close control stays tappable */
  background: var(--bg);
  overflow-y: auto;
  padding: 26px 26px 40px;
}
.compare-title { margin: 4px 0 20px; font-size: 1.5rem; font-weight: 600; }
.compare-controls {
  position: sticky;
  bottom: 20px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: flex-end;
  max-width: 720px;
  margin: 32px auto 0;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(34, 32, 28, 0.15);
}
.cc-field { flex: 1; min-width: 220px; }
.cc-field .sqm-row { margin-bottom: 0; }
.cc-field .waste-picker { margin-bottom: 0; }
#compare-sqm {
  width: 100%;
  padding: 11px 52px 11px 16px;
  font: 600 1.15rem "Inter", "Inter Fallback", sans-serif;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
}
#compare-sqm:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.cmp-quote-block {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #faf8f4;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cmp-quote-block .quote-line { font-size: 0.85rem; padding: 3px 0; }
.cmp-quote-block .total-line { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
.cmp-quote-block .total-line strong { font-size: 1.25rem; }

.cmp-card { position: relative; }
.cmp-card.cmp-lowest { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow); }
.cmp-card.cmp-lowest::before {
  content: "Lowest total";
  position: absolute;
  top: 26px; left: 26px;
  z-index: 1;
  padding: 5px 12px;
  font: 600 0.7rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(34, 32, 28, 0.25);
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(230px, 380px));
  gap: 18px;
  justify-content: center;
}
.cmp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.cmp-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
  border: 1px solid var(--line);
}
.cmp-photo-none {
  display: grid; place-items: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  background: repeating-linear-gradient(45deg, #f0ece4, #f0ece4 6px, #faf8f4 6px, #faf8f4 12px);
  cursor: default;
}
.cmp-card h3 { margin: 14px 0 10px; font: 600 1.2rem "Fraunces", serif; }
.cmp-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0 0 14px;
}
.cmp-card dt {
  font: 600 0.7rem "Inter", "Inter Fallback", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding-top: 2px;
}
.cmp-card dd { margin: 0; font-size: 0.88rem; overflow-wrap: anywhere; }
.cmp-card dd.cmp-price { font: 700 1.05rem "Inter", "Inter Fallback", sans-serif; color: var(--accent); }
.cmp-card dd.cmp-save { font-weight: 600; color: var(--accent); }
.cmp-quote { margin-top: 0; }


/* ---------- Auth modal (sign in / register) ---------- */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(28, 26, 23, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.auth-box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  max-height: min(90vh, 760px);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(61, 87, 69, 0.08), transparent 55%),
    radial-gradient(90% 60% at 100% 0%, rgba(185, 138, 60, 0.07), transparent 50%),
    #fff;
  border: 1px solid rgba(230, 224, 213, 0.9);
  border-radius: 22px;
  padding: 28px 22px 22px 26px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 24px 64px rgba(34, 32, 28, 0.28);
  animation: authIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.auth-box.auth-box--wide {
  width: min(440px, 100%);
}
@keyframes authIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-soft);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.auth-close:hover {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-deep);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin: 0 28px 20px 0;
}
.auth-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(61, 87, 69, 0.18);
}
.auth-brand span {
  font: 700 0.98rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  flex: 0 0 auto;
  margin-bottom: 18px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.auth-tab {
  padding: 11px 12px;
  font: 600 0.88rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.active {
  color: var(--accent-deep);
  background: #fff;
  box-shadow: 0 1px 3px rgba(34, 32, 28, 0.08), 0 4px 12px rgba(34, 32, 28, 0.06);
}
/* Form body scrolls; brand + tabs stay put so the card edge stays clean. */
.auth-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Keep scroll, hide the scrollbar chrome. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.auth-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.auth-title {
  margin: 0 0 6px;
  font: 700 1.35rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.auth-sub {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}
.auth-field { margin-bottom: 12px; }
.auth-label {
  display: block;
  margin-bottom: 7px;
  font: 600 0.8rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.auth-label-row .auth-label { margin-bottom: 0; }
.auth-optional {
  font-weight: 500;
  color: var(--muted);
  text-transform: lowercase;
}
.auth-input.form-input,
.auth-panel .form-input {
  width: 100%;
  padding: 13px 14px;
  font: 400 0.95rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.auth-input.form-input::placeholder,
.auth-panel .form-input::placeholder {
  color: #b0aaa0;
}
.auth-input.form-input:hover,
.auth-panel .form-input:hover {
  border-color: #d2cbbd;
}
.auth-input.form-input:focus,
.auth-panel .form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: #fff;
}
.auth-submit.btn-primary,
.auth-panel .btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
}
.auth-footer-link,
.auth-forgot-wrap {
  margin: 16px 0 0;
  text-align: center;
}
.auth-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font: 500 0.84rem "Inter", "Inter Fallback", sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.auth-link:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}
.auth-success {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.88rem;
  line-height: 1.4;
}
.auth-reset-sent {
  text-align: center;
  padding: 8px 4px 4px;
}
.auth-reset-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font: 700 1.25rem/1 "Inter", "Inter Fallback", sans-serif;
}
.auth-reset-sent .auth-title {
  margin-bottom: 8px;
}
.auth-reset-sent .auth-sub {
  margin: 0 auto;
  max-width: 28ch;
}
.auth-reset-sent .auth-sub strong {
  color: var(--ink);
  word-break: break-word;
}
.auth-reset-hint {
  margin: 14px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.verify-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 18px;
  background: #fff4db;
  color: #5c4314;
  border-bottom: 1px solid #ead7a4;
  font-size: 0.9rem;
  line-height: 1.35;
}
.showroom-guest-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 18px;
  background: #2f4536;
  color: #f4f7f5;
  border-bottom: 1px solid #24362a;
  font-size: 0.95rem;
  line-height: 1.35;
}
.showroom-guest-bar[hidden] {
  display: none !important;
}
.showroom-guest-bar-text {
  margin: 0;
  flex: 1 1 200px;
}
.showroom-guest-bar-btn {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 8px 16px;
  font: 600 0.85rem "Inter", "Inter Fallback", sans-serif;
  cursor: pointer;
}
.showroom-guest-bar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
/* Showroom iPad welcome — calm, full-bleed, touch-first */
#landing:has(#page-showroom:not([hidden])) .site-footer,
#landing:has(#page-showroom:not([hidden])) .site-nav,
#landing:has(#page-showroom:not([hidden])) .site-header-actions,
#landing:has(#page-showroom:not([hidden])) .nav-toggle {
  display: none !important;
}
/* Header is overlaid, not in flow — don't reserve its height or a cream strip shows. */
html:has(#page-showroom:not([hidden])),
body:has(#page-showroom:not([hidden])),
#landing:has(#page-showroom:not([hidden])) {
  background: #1c241e;
}
#landing:has(#page-showroom:not([hidden])) .site-header {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 5;
}
#landing:has(#page-showroom:not([hidden])) .site-brand {
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
#landing:has(#page-showroom:not([hidden])) .site-brand-mark {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.marketing-page--showroom {
  background: #1c241e;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}
.showroom-welcome {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(88px, calc(24px + env(safe-area-inset-top))) 20px
    max(40px, calc(24px + env(safe-area-inset-bottom)));
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: #1c241e;
}
.showroom-welcome-media,
.showroom-welcome-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.showroom-welcome-bg {
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: showroom-bg-ease 18s ease-in-out infinite alternate;
}
.showroom-welcome-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 28, 22, 0.55) 0%, rgba(28, 36, 30, 0.72) 42%, rgba(22, 30, 25, 0.88) 100%),
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(90, 70, 45, 0.28), transparent 70%);
  pointer-events: none;
}
.showroom-welcome-inner {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  animation: showroom-rise 0.7s ease-out both;
}
.showroom-welcome-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  background: #fff;
}
.showroom-welcome-kicker {
  margin: 0 0 12px;
  font: 600 0.78rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 244, 230, 0.88);
}
.showroom-welcome-title {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 5.5vw, 2.55rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #fffaf3;
  text-wrap: balance;
}
.showroom-welcome-lead {
  margin: 0 auto 26px;
  max-width: 26rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(255, 248, 238, 0.9);
  text-wrap: pretty;
}
.showroom-welcome-card {
  padding: 22px 20px 20px;
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.96);
  color: var(--ink);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  text-align: left;
  animation: showroom-rise 0.85s ease-out 0.12s both;
}
.showroom-gate {
  text-align: center;
  padding: 8px 4px;
}
.showroom-gate p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.showroom-guest-form {
  display: grid;
  gap: 4px;
}
.showroom-field-label {
  margin: 8px 0 4px;
  font: 600 0.82rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink-soft);
}
.showroom-field-label:first-child {
  margin-top: 0;
}
.showroom-field.form-input {
  margin: 0 0 4px;
  min-height: 54px;
  font-size: 1.12rem;
  border-radius: 12px;
  border-color: #d9d2c6;
  background: #fff;
}
.showroom-field.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.showroom-submit {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
  min-height: 54px;
  font-size: 1.05rem;
  border-radius: 999px;
}
.showroom-welcome-note {
  margin: 18px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 244, 230, 0.72);
}
.showroom-welcome-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Check-in reached localStorage but not the server — the visit is still usable,
   so this is an inline note, never a blocking error. */
.showroom-offline-note {
  margin-top: 8px;
  color: rgba(255, 228, 190, 0.92);
}
.showroom-field-optional {
  font-weight: 400;
  opacity: 0.72;
}
/* "Interested in" chips. Checkboxes, not radios — a hallway and a living room
   are one visit. 44px targets: this is only ever used on an iPad. */
.showroom-chips {
  margin: 8px 0 4px;
  padding: 0;
  border: 0;
}
.showroom-chips > .showroom-field-label {
  padding: 0;
  margin: 0 0 6px;
}
.showroom-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.showroom-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d9d2c6;
  border-radius: 999px;
  background: #fff;
  font: 500 0.95rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.showroom-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.showroom-chip:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.showroom-chip:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@keyframes showroom-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes showroom-bg-ease {
  from { transform: scale(1.04); }
  to { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .showroom-welcome-bg,
  .showroom-welcome-inner,
  .showroom-welcome-card {
    animation: none;
  }
}
@media (min-width: 768px) {
  .showroom-welcome {
    padding: 96px 32px 48px;
  }
  .showroom-welcome-card {
    padding: 26px 24px 22px;
  }
  .showroom-welcome-logo {
    width: 72px;
    height: 72px;
  }
}
.verify-banner-text {
  margin: 0;
  flex: 1 1 220px;
}
.verify-banner-text strong {
  word-break: break-word;
}
.verify-banner-btn {
  border: 1px solid #c9a85a;
  background: #fff;
  color: #5c4314;
  border-radius: 999px;
  padding: 7px 14px;
  font: 600 0.82rem "Inter", "Inter Fallback", sans-serif;
  cursor: pointer;
}
.verify-banner-btn:hover { background: #fff8ea; }
.verify-banner-btn:disabled { opacity: 0.6; cursor: wait; }
.verify-banner-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
.auth-panel .pin-error {
  margin: 4px 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdf2f0;
  color: #b3402e;
}
.auth-panel textarea.form-input {
  min-height: 88px;
  resize: vertical;
}

/* ---------- Staff PIN modal ---------- */
.pin-modal {
  position: fixed; inset: 0;
  z-index: 70;
  background: rgba(34, 32, 28, 0.4);
  display: grid;
  place-items: center;
}
.pin-box {
  background: var(--surface);
  border-radius: 16px;
  padding: 26px 30px;
  width: 240px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(34, 32, 28, 0.3);
}
.pin-title { margin: 0 0 14px; font: 600 0.95rem "Inter", "Inter Fallback", sans-serif; }
#pin-input {
  width: 130px;
  padding: 10px;
  font: 700 1.6rem "Inter", "Inter Fallback", sans-serif;
  text-align: center;
  letter-spacing: 0.4em;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  outline: none;
}
#pin-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pin-error { margin: 10px 0 0; font-size: 0.8rem; color: #b3402e; }
.pin-box.shake { animation: shake 0.35s; }
@keyframes shake {
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

.btn-primary {
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  font: 600 0.95rem "Inter", "Inter Fallback", sans-serif;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26, 122, 52, 0.28);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 6px 18px rgba(26, 122, 52, 0.34); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary.copied { background: var(--gold); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
a.btn-primary { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }

.btn-secondary {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font: 600 0.9rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink);
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Create quote in Odoo modal ---------- */
.quote-modal {
  position: fixed; inset: 0;
  z-index: 70;
  background: rgba(34, 32, 28, 0.4);
  display: grid;
  place-items: center;
  padding: 20px;
}
.quote-box {
  position: relative;
  width: min(420px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 20px 60px rgba(34, 32, 28, 0.3);
}
.quote-form-title {
  margin: 0 0 6px;
  font: 700 1.35rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.quote-form-sub {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Quote request — aligned with auth modal patterns */
.qr-product {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #faf9f7;
  border: 1.5px solid var(--line);
}
.qr-product:empty { display: none; }
.qr-product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.qr-product-colour {
  font: 600 0.95rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.qr-product-range {
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}
.qr-product-total {
  flex: 0 0 auto;
  text-align: right;
}
.qr-product-total strong {
  display: block;
  font: 700 0.98rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.qr-product-total span {
  font-size: 0.72rem;
  color: var(--muted);
}
.qr-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.qr-lead {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
  min-width: 0;
}
.qr-lead .auth-label {
  padding: 0;
  float: none;
}
.qr-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.qr-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 8px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: 600 0.84rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
  text-align: center;
  user-select: none;
}
.qr-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.qr-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.qr-chip:has(input:focus-visible) {
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.qr-chip:has(input:checked) {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 3px 10px rgba(61, 87, 69, 0.22);
}
.qr-form .auth-submit { margin-top: 4px; }
.qr-reassure {
  margin-top: 14px;
  text-align: center;
}
.qr-form textarea.form-input {
  min-height: 76px;
}
.form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  margin-bottom: 4px;
  font: 500 0.95rem "Inter", "Inter Fallback", sans-serif;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: var(--bg);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pin-field {
  font: 700 1.4rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: 0.45em;
  text-align: center;
}
#quote-pin-step { text-align: center; padding-top: 8px; }
#quote-pin-step .pin-field { max-width: 220px; margin: 10px auto 4px; display: block; }
#quote-pin-step .btn-secondary { max-width: 220px; margin: 14px auto 0; display: block; }
.quote-box.shake { animation: shake 0.35s; }
.consultant-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.consultant-btn {
  padding: 12px 8px;
  font: 600 0.95rem "Inter", "Inter Fallback", sans-serif;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.12s;
}
.consultant-btn:hover { border-color: var(--accent); color: var(--accent); }
.consultant-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 3px 10px rgba(26, 122, 52, 0.28);
}
.optional {
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.success-tick {
  width: 54px; height: 54px;
  margin: 4px auto 14px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}
#quote-success { text-align: center; }
.success-list {
  margin: 14px 0 4px;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 0.88rem;
}
.success-list dt { color: var(--muted); }
.success-list dd { margin: 0; font-weight: 600; }
.success-warn {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 0.82rem;
  text-align: left;
  color: #7a5410;
  background: #fdf3dc;
  border: 1px solid #ecd9a8;
  border-radius: 10px;
}

/* ---------- Responsive ----------
   Three tiers:
   - Desktop  (>1100px): full layout, 280px filter rail
   - Tablet   (701–1100px, iPad portrait & landscape): narrower rail,
     compare cards wrap instead of squeezing
   - Phone    (≤700px): horizontal supplier strip, single-column compare,
     full-width drawer, bigger touch targets, safe-area padding
*/

/* --- Tablet / iPad --- */
@media (max-width: 1100px) {
  .topbar { grid-template-columns: 240px minmax(0, 1fr) auto; gap: 16px; padding-left: 16px; padding-right: 16px; }
  .layout { grid-template-columns: 240px minmax(0, 1fr); gap: 14px; padding: 12px 16px 80px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .how-flow { grid-template-columns: 1fr; gap: 36px; max-width: 720px; }
  .how-flow-intro { position: static; }
  .how-flow-lead { max-width: none; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .type-grid, .install-form-grid {
    grid-template-columns: 1fr;
  }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .about-story-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-story-aside { max-width: 420px; margin: 0 auto; aspect-ratio: 16 / 10; }
  .install-process-steps { grid-template-columns: repeat(2, 1fr); }
  .chip { padding: 8px 10px; font-size: 0.8rem; }
  .compare-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 380px)); }
  .compare-view { padding: 22px 18px 40px; }
  td.code, th.code-h { display: none; }
}

/* --- Phone --- */
@media (max-width: 700px) {
  /* Brand left + refresh right on row 1, search spans row 2 */
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px 16px 14px;
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .brand { grid-row: 1; grid-column: 1; min-width: 0; }
  .search-wrap { grid-column: 1 / -1; grid-row: 2; }
  .brand-title { font-size: 1.05rem; }
  .topbar-actions {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
    gap: 4px;
  }
  .topbar-actions .btn-ghost {
    padding: 9px;
    font-size: 0;
    gap: 0;
  }
  .topbar-actions .btn-user,
  .topbar-actions .catalog-signin {
    padding: 8px 12px;
    font-size: 0.75rem;
    max-width: none;
  }

  :root { --site-header-h: 65px; }
  .hero { text-align: center; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(22, 36, 27, 0.38) 0%, rgba(22, 36, 27, 0.72) 100%);
  }
  .hero-content { padding-top: 40px; }
  .hero h1 { max-width: none; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-hero-primary, .btn-hero-outline, .btn-outline-wide { justify-content: center; }
  .landing-section { padding: 52px 18px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .how-flow { gap: 30px; }
  .how-flow-actions { flex-direction: column; align-items: stretch; }
  .how-flow-step { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
  .how-flow-num { width: 36px; height: 36px; font-size: 0.9rem; border-width: 3px; }
  .how-flow-step:not(:last-child) .how-flow-marker::after { top: 44px; bottom: -20px; }
  .how-flow-card { padding: 18px 16px; }
  .how-flow-card h3 { font-size: 1rem; }
  .category-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .site-header { padding: 12px 14px; gap: 10px; }
  .site-brand { font-size: 1.05rem; gap: 10px; }
  .site-brand-mark { width: 40px; height: 40px; }
  .site-brand > span:not(.site-brand-mark) { display: none; }
  .site-header-actions { gap: 6px; }
  .site-header-actions .site-pill { padding: 9px 12px; }
  .site-header-actions .site-pill-icon { padding: 9px; }
  .site-header .site-pill-ghost { display: none; }
  /* Trade CTA lives in the hamburger menu on phones — keep the top bar clean */
  #create-account { display: none !important; }
  .nav-toggle { width: 40px; height: 40px; }
  .marketing-page { padding: 28px 18px 56px; }
  .page-hero-content { padding: 40px 18px 48px; }
  .page-hero,
  .page-hero--compact {
    min-height: calc(56vh - var(--site-header-h));
    min-height: calc(56svh - var(--site-header-h));
  }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card--wide { grid-column: auto; }
  .local-proof-grid { grid-template-columns: 1fr; }
  .contact-form,
  .install-form { padding: 22px 16px; }
  .install-process-steps { grid-template-columns: 1fr; }
  .footer-nav { gap: 10px 14px; }

  .layout {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px calc(80px + env(safe-area-inset-bottom));
  }
  .filters-toggle {
    display: inline-flex;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.8rem;
  }
  .catalog-intro {
    display: block;
    position: sticky;
    top: calc(env(safe-area-inset-top) + 118px);
    z-index: 15;
    margin: 0 -12px 10px;
    padding: 8px 12px 10px;
    background: rgba(245, 242, 236, 0.94);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(230, 224, 213, 0.85);
  }
  .range-focus-banner {
    margin: 0 0 12px;
    padding: 12px 14px;
  }
  .range-focus-title { font-size: 1.05rem; }
  .range-focus-share,
  .range-focus-clear {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
  .mobile-filter-chrome { display: flex; }
  .filter-sheet-handle {
    display: block;
    width: 40px;
    height: 4px;
    margin: 8px auto 4px;
    border-radius: 999px;
    background: #cfc7ba;
    flex-shrink: 0;
  }
  .filter-rail {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    z-index: 90;
    width: 100%;
    max-width: none;
    height: min(78vh, 100%);
    max-height: min(78vh, 100%);
    padding: 0 14px 0;
    background: var(--bg);
    border-right: none;
    border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -16px 48px rgba(34, 32, 28, 0.18);
    transform: translateY(105%);
    transition: transform 0.22s ease;
    overflow: hidden;
    scrollbar-gutter: auto;
  }
  .filter-rail.open { transform: translateY(0); }
  .filter-rail-title-desktop { display: none; }
  .filter-rail-title-mobile { display: inline; }
  .filter-rail-head {
    margin: 0 0 12px;
  }
  .filter-rail-head .filter-clear { display: none !important; }
  .filter-rail-body {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 8px;
    scrollbar-gutter: stable;
  }
  .filter-rail-footer {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    padding: 12px 0 calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--bg);
  }
  .filter-clear-footer {
    flex: 1;
    min-height: 44px;
    padding: 10px 12px;
    font: 600 0.9rem "Inter", "Inter Fallback", sans-serif;
    color: var(--accent);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    opacity: 0.4;
    pointer-events: none;
  }
  .filter-clear-footer.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
  .filter-clear-footer:disabled {
    cursor: default;
  }
  .filter-done {
    flex: 1.2;
    min-height: 44px;
    padding: 10px 12px;
    font: 600 0.9rem "Inter", "Inter Fallback", sans-serif;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 12px;
    cursor: pointer;
  }
  .filter-done:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
  .filter-rail-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--ink-soft);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .filter-rail-close:hover { background: var(--surface); }
  .filter-scrim.open { display: block; }
  #category-tabs.chips,
  #supplier-chips.chips,
  #look-chips.chips-wrap,
  #format-chips.chips-wrap,
  #thickness-chips.chips-wrap,
  #veneer-chips.chips-wrap {
    flex-direction: column;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  #category-tabs .chip,
  #supplier-chips .chip,
  .filter-rail .chips-wrap .chip {
    white-space: normal;
    width: 100%;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.82rem;
  }
  .chips-inline { flex-wrap: wrap; }
  .chips-compact .chip { flex: 1 1 calc(33% - 4px); min-width: 72px; }

  .range-card { border-radius: 12px; }
  .range-head { padding: 14px 16px 11px; }
  tbody td { padding: 10px 8px; font-size: 0.86rem; }
  .swatch { width: 34px; height: 34px; }
  /* ~44px touch target for the tap-to-quote price */
  .price-btn { min-width: 74px; padding: 9px 10px; font-size: 0.86rem; }

  /* Drawer becomes a full-screen sheet */
  .drawer { border-radius: 0; padding: 22px 18px calc(28px + env(safe-area-inset-bottom)); }
  .drawer-photo { height: 150px; }
  .tier .t-price { font-size: 0.92rem; }

  /* Compare: single column, controls hug the bottom with safe area */
  .compare-view { padding: 18px 14px 30px; }
  .compare-title { font-size: 1.3rem; margin-bottom: 14px; }
  .compare-grid { grid-template-columns: 1fr; gap: 14px; }
  .cmp-photo { height: 170px; }
  .compare-controls {
    bottom: calc(10px + env(safe-area-inset-bottom));
    gap: 12px;
    padding: 12px 14px;
    margin-top: 20px;
  }
  .cc-field { min-width: 100%; }
  .compare-tray { bottom: calc(12px + env(safe-area-inset-bottom)); max-width: calc(100vw - 20px); }

  /* Modals sit comfortably above the keyboard */
  .quote-modal { padding: 12px; align-items: start; }
  .quote-box { margin-top: 4vh; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
  /* ≥16px stops iOS Safari zooming the page when an input is focused */
  .form-input { padding: 12px 14px; font-size: 1rem; }
}

/* ── Flooring guides — standard format (2026-08-26): ONE picture, everything
   written under it, full page width. Hub = fixed hero + filter bar + rows with
   a small thumbnail. Article = hero only, title + summary side by side, lead
   prose beside a sticky "On this page" column, wrapped sections full width.
   Markup: cf/src/guides.mjs (SSR) mirrored by public/js/guides.js (SPA). ── */
#page-guides,
#page-guide {
  background:
    radial-gradient(1200px 520px at 12% -10%, rgba(61, 87, 69, 0.08), transparent 60%),
    radial-gradient(900px 480px at 88% 8%, rgba(180, 140, 90, 0.07), transparent 55%),
    linear-gradient(180deg, #f7f5f0 0%, #fbfaf7 42%, #ffffff 100%);
}
.guides-root { min-height: 70vh; }
.guide-loading {
  padding: 80px 24px;
  text-align: center;
  color: var(--ink-soft);
}
.guide-hub-empty { padding: 80px clamp(18px, 6vw, 96px); }
.guide-hub,
.guide-article {
  --guide-pad: clamp(18px, 6vw, 96px);
  --guide-side: 220px;
  --guide-gap: 64px;
  max-width: none;
  margin: 0;
  padding: 0 0 80px;
}

/* Shared bits */
.guide-kicker {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold, #b98a3c);
}
.guide-kicker a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.guide-kicker a:hover { border-bottom-color: currentColor; }
.guide-date {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted, #8a8478);
}
.guide-date time,
.guide-card-meta time { font-variant-numeric: tabular-nums; }
.guide-lead {
  margin: 14px 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ── Hub: the one picture ── */
.guide-hub-hero {
  position: relative;
  height: min(48vh, 440px);
  overflow: hidden;
  background: #2f4436;
}
.guide-hub-hero picture { display: block; height: 100%; }
.guide-hub-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-hub-hero-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 120px var(--guide-pad) 44px;
  background: linear-gradient(180deg, rgba(20, 28, 22, 0) 0%, rgba(20, 28, 22, 0.8) 100%);
  color: #fff;
}
.guide-hub-hero-text .guide-kicker { color: rgba(255, 255, 255, 0.72); }
.guide-hub-hero-text h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.guide-hub-hero-text .guide-lead {
  margin: 12px 0 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
}

/* ── Hub: filter / sort bar ── */
.guide-hub-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 22px var(--guide-pad) 12px;
  border-bottom: 1px solid var(--line, #e6e0d5);
}
.guide-hub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.guide-hub-filter,
.guide-hub-sort-btn {
  appearance: none;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  color: var(--ink-soft);
}
.guide-hub-filter {
  padding: 6px 0;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.guide-hub-filter:hover { color: var(--ink, #1c1a17); }
.guide-hub-filter.is-active {
  color: var(--ink, #1c1a17);
  font-weight: 600;
  border-bottom-color: var(--brand, #3d5745);
}
.guide-hub-sort {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border-radius: 999px;
  background: #ebe6dc;
}
.guide-hub-sort-btn {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.guide-hub-sort-btn.is-active {
  background: #fff;
  color: var(--ink, #1c1a17);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.guide-hub-filter:focus-visible,
.guide-hub-sort-btn:focus-visible,
.guide-row:focus-visible,
.guide-more a:focus-visible {
  outline: 2px solid var(--gold, #b98a3c);
  outline-offset: 2px;
}

/* ── Hub: rows ── */
.guide-hub-list { padding: 0 var(--guide-pad); }
.guide-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line, #e6e0d5);
  text-decoration: none;
  color: inherit;
}
.guide-row[hidden] { display: none; }
.guide-row picture { display: block; }
.guide-row-thumb {
  display: block;
  width: 168px;
  height: 112px;
  object-fit: cover;
  border-radius: 10px;
  background: #e8e4dc;
}
.guide-row-text { min-width: 0; max-width: 72ch; }
.guide-row-text h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink, #1c1a17);
  transition: color 0.15s ease;
}
.guide-row:hover .guide-row-text h2 { color: var(--brand, #3d5745); }
.guide-row-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.guide-row .guide-card-meta {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.82rem;
  color: var(--muted, #8a8478);
  text-align: right;
  white-space: nowrap;
}

/* ── Article: hero (the one picture) + head ── */
.guide-article-hero { margin: 0; }
.guide-article-hero-media {
  width: 100%;
  height: min(42vh, 400px);
  overflow: hidden;
  background: #2f4436;
}
.guide-article-hero-media picture { display: block; height: 100%; }
.guide-article-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  background: #e8e4dc;
}
.guide-article-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px 56px;
  align-items: end;
  padding: 36px var(--guide-pad) 28px;
  border-bottom: 1px solid var(--line, #e6e0d5);
}
.guide-article-head h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.guide-article-head .guide-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.5;
  color: #4d4841;
}

/* ── Article: body grid (side column + prose), wide sections below ── */
.guide-article-body,
.guide-article-wide {
  display: grid;
  grid-template-columns: var(--guide-side) minmax(0, 1fr);
  column-gap: var(--guide-gap);
  padding: 36px var(--guide-pad) 0;
}
.guide-article-wide { padding-top: 0; }
.guide-article-side {
  position: sticky;
  top: calc(var(--site-header-h, 71px) + 20px);
  align-self: start;
}
.guide-article-wide > * { grid-column: 2; }
/* FAQ deliberately NOT in this list: it sits in the content column, lined up
   with the prose (user, 2026-08-27). */
.guide-article-wide > .guide-scenario,
.guide-article-wide > .guide-steps,
.guide-article-wide > .guide-takeaways { grid-column: 1 / -1; }

.guide-prose {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #2e2b26;
}
.guide-prose > :not(.guide-scenario):not(.guide-steps):not(.guide-faq):not(.guide-takeaways) {
  max-width: 80ch;
}
.guide-prose h2 {
  margin: 2em 0 0.5em;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink, #1c1a17);
}
.guide-prose h2[id] { scroll-margin-top: 96px; }
.guide-article-lead-prose > h2:first-child { margin-top: 0; }
.guide-prose h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink, #1c1a17);
}
.guide-prose p { margin: 0 0 1em; }
.guide-prose h2 + p,
.guide-prose h3 + p { margin-top: 0; }
.guide-prose ul,
.guide-prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}
.guide-prose li { margin: 0.4em 0; }
.guide-prose li::marker { color: var(--brand, #3d5745); }
.guide-prose a {
  color: var(--brand, #3d5745);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.guide-prose strong { color: var(--ink, #1c1a17); font-weight: 650; }
.guide-prose ul ul,
.guide-prose ol ol,
.guide-prose ul ol,
.guide-prose ol ul { margin: 0.4em 0 0.6em; }
/* Belt and braces: the renderer drops inline figures; never show one anyway. */
.guide-prose .guide-figure { display: none; }

/* On this page */
.guide-toc { margin: 0; }
.guide-toc-label {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #8a8478);
}
.guide-toc-links { display: flex; flex-direction: column; }
.guide-toc-link {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 2px solid var(--line, #e6e0d5);
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.guide-toc-link:hover { color: var(--ink, #1c1a17); }
.guide-toc-link.is-active {
  color: var(--ink, #1c1a17);
  font-weight: 600;
  border-left-color: var(--brand, #3d5745);
}

/* Melbourne scenario — full-bleed band, label in the side column */
.guide-article-wide > .guide-scenario {
  display: grid;
  grid-template-columns: var(--guide-side) minmax(0, 1fr);
  column-gap: var(--guide-gap);
  margin: 24px calc(-1 * var(--guide-pad)) 8px;
  padding: 36px var(--guide-pad);
  background: var(--accent-soft, #e8efe9);
  border: 0;
  border-radius: 0;
}
.guide-scenario > h2 {
  grid-column: 1;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep, #2f4436);
}
.guide-scenario > :not(h2) { grid-column: 2; max-width: 80ch; }
.guide-scenario > p:last-child { margin-bottom: 0; }

/* Steps — "What to do, in order" as a strip */
.guide-article-wide > .guide-steps {
  display: grid;
  grid-template-columns: var(--guide-side) minmax(0, 1fr);
  column-gap: var(--guide-gap);
  margin: 28px 0 8px;
}
.guide-steps > h2 { grid-column: 1; margin: 0; }
.guide-steps > :not(h2) { grid-column: 2; }
.guide-steps > ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none;
  counter-reset: step;
}
.guide-steps > ol > li {
  counter-increment: step;
  margin: 0;
  padding: 12px 0 0;
  border-top: 2px solid var(--ink, #1c1a17);
  font-size: 0.88rem;
  line-height: 1.45;
}
.guide-steps > ol > li::before {
  content: counter(step);
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--gold, #b98a3c);
  font-variant-numeric: tabular-nums;
}

/* FAQ — single column in the content column, same left edge and 80ch width as
   the prose (user standard 2026-08-27; replaced the full-width two-column
   layout, which orphaned the odd question out in a half-empty row) */
.guide-article-wide > .guide-faq {
  margin: 32px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  max-width: 80ch;
}
.guide-faq > h2 {
  margin: 0 0 16px;
}
.guide-faq h3 {
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  font-size: 0.95rem;
  font-weight: 700;
}
.guide-faq h3 + p {
  margin-bottom: 1.3em;
}

/* Key takeaways — card across the page, two-column list */
.guide-article-wide > .guide-takeaways {
  margin: 32px 0 0;
  padding: 26px 30px;
  background: #fff;
  border: 1px solid var(--line, #e6e0d5);
  border-radius: 16px;
  box-shadow: none;
}
.guide-takeaways > h2 { margin: 0 0 10px; font-size: 1.1rem; }
.guide-takeaways ul {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
  max-width: none;
  font-size: 0.9rem;
}
.guide-takeaways li { margin: 0 0 8px; break-inside: avoid; }

/* CTA — green panel across the page */
.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin: 28px var(--guide-pad) 0;
  padding: 28px 32px;
  border-radius: 16px;
  background: var(--accent-deep, #2f4436);
  color: #fff;
}
.guide-cta h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #fff;
}
.guide-cta p {
  margin: 0;
  max-width: 46ch;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}
.guide-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.guide-cta-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 10.5rem;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
}
.guide-cta .btn-hero-primary {
  background: #fff;
  color: var(--accent-deep, #2f4436);
  box-shadow: none;
}
.guide-cta .btn-hero-primary:hover { background: #eef2ee; filter: none; }
.guide-cta .btn-hero-outline {
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.guide-cta .btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* More guides — plain text list */
.guide-more { padding: 40px var(--guide-pad) 0; }
.guide-more h2 {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.guide-more ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-more li {
  padding: 12px 0;
  border-top: 1px solid var(--line, #e6e0d5);
}
.guide-more a {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink, #1c1a17);
  text-decoration: none;
}
.guide-more a:hover { color: var(--brand, #3d5745); }
.guide-more small {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--muted, #8a8478);
}

@media (max-width: 980px) {
  .guide-article-body,
  .guide-article-wide,
  .guide-article-wide > .guide-scenario,
  .guide-article-wide > .guide-steps { grid-template-columns: minmax(0, 1fr); }
  .guide-article-side { display: none; }
  .guide-article-wide > *,
  .guide-scenario > :not(h2),
  .guide-steps > :not(h2) { grid-column: 1; }
  .guide-scenario > h2 { margin-bottom: 10px; }
  .guide-steps > h2 { margin-bottom: 14px; }
  .guide-article-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .guide-more ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .guide-hub,
  .guide-article { padding-bottom: 56px; }
  .guide-hub-hero { height: 260px; }
  .guide-hub-hero-text { padding: 70px var(--guide-pad) 20px; }
  .guide-hub-bar { padding-top: 12px; gap: 10px 16px; }
  .guide-hub-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
    scrollbar-width: none;
  }
  .guide-hub-filters::-webkit-scrollbar { display: none; }
  .guide-hub-sort { margin-left: 0; }
  .guide-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 4px 14px;
    align-items: start;
    padding: 14px 0;
  }
  .guide-row picture,
  .guide-row-thumb { grid-row: 1 / span 2; }
  .guide-row-thumb { width: 96px; height: 72px; }
  .guide-row-text h2 { font-size: 1rem; margin-bottom: 4px; }
  .guide-row-text p { font-size: 0.86rem; }
  .guide-row .guide-card-meta { grid-column: 2; text-align: left; font-size: 0.75rem; }
  .guide-article-hero-media { height: 220px; }
  .guide-article-head { padding: 22px var(--guide-pad) 18px; gap: 12px; }
  .guide-article-head h1 { font-size: 1.9rem; }
  .guide-article-body,
  .guide-article-wide { padding-top: 20px; }
  .guide-prose { font-size: 1rem; }
  .guide-article-wide > .guide-scenario { padding: 22px var(--guide-pad); }
  .guide-steps > ol { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .guide-article-wide > .guide-takeaways { padding: 20px 18px; }
  .guide-takeaways ul { columns: 1; }
  .guide-cta { padding: 22px 18px; }
  .guide-cta-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .guide-cta-actions a { width: 100%; min-width: 0; }
  .guide-more ul { grid-template-columns: minmax(0, 1fr); }
}
/* restore-1785121643 */

/* ---------- Find Your Floor teaser strip (home page) ---------- */
.fyf-strip {
  background: var(--accent-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px;
}
.fyf-strip-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 22px;
}
.fyf-swatches {
  display: inline-flex;
  gap: 5px;
  flex: none;
}
.fyf-swatches i {
  width: 14px;
  height: 34px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.fyf-swatches i:nth-child(1) { background: linear-gradient(160deg, #e3cba4, #d0b183); }
.fyf-swatches i:nth-child(2) { background: linear-gradient(160deg, #cfa878, #b98a5c); }
.fyf-swatches i:nth-child(3) { background: linear-gradient(160deg, #a97952, #8a5a3b); }
.fyf-swatches i:nth-child(4) { background: linear-gradient(160deg, #7c5233, #613e26); }
.fyf-swatches i:nth-child(5) { background: linear-gradient(160deg, #55351f, #3c2515); }
.fyf-strip-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}
.fyf-strip-text strong { color: #fff; }
.fyf-strip-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font: 600 0.9rem "Inter", "Inter Fallback", sans-serif;
  color: #fff;
  background: var(--gold);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.12s, background 0.15s;
}
.fyf-strip-cta:hover { background: var(--gold-deep); transform: translateY(-1px); }
@media (max-width: 720px) {
  .fyf-strip-inner { flex-direction: column; gap: 12px; }
  .fyf-swatches i { height: 26px; }
}

/* ---------- Customer account modal ---------- */
.account-nav {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.account-nav .account-nav-btn {
  margin-top: 0;
}
.account-unverified {
  color: #9b6a1a;
  font-size: 0.85em;
}
.account-list {
  display: grid;
  gap: 10px;
  max-height: 50vh;
  overflow-y: auto;
  margin: 12px 0;
}
.account-item {
  border: 1px solid #e3e6e1;
  border-radius: 12px;
  padding: 12px 14px;
}
.account-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.account-item-status {
  font-size: 0.78rem;
  color: #6a736d;
  white-space: nowrap;
}
.account-item-status.is-done { color: #3d5745; font-weight: 600; }
.account-item-line {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: #444c46;
}
.account-item-when {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #8b948d;
}

/* ── Guide drafts (review copies pushed from the GHT-SEO dashboard) ── */
.guide-draft-banner {
  margin: 0 var(--guide-pad) 14px;
  padding: 10px 16px;
  border: 1px solid #d9b25c;
  border-left: 4px solid #b98a3c;
  background: #fff6e0;
  color: #5a4210;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* ── Visit / showroom page ─────────────────────────────────────────────── */
.visit-map-frame {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg);
}
.visit-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.visit-map-links { margin: 16px 0 0; }
.visit-map-links a { color: var(--accent); font-weight: 600; }
.visit-prose {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.visit-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 34px auto 0;
  text-align: left;
}
.visit-gallery figure { margin: 0; }
.visit-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.visit-gallery figure {
  display: flex;
  flex-direction: column;
}
.visit-gallery img { flex: 1; }
.visit-gallery figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.visit-faq {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.visit-faq h3 {
  margin: 26px 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
}
.visit-faq h3:first-child { margin-top: 0; }
.visit-faq p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 0.95rem;
}
.visit-faq a { color: var(--accent); }
@media (max-width: 720px) {
  .visit-gallery { grid-template-columns: 1fr; }
  .visit-map-frame { aspect-ratio: 4 / 3; }
}

/* ── Homepage facelift (2026-09-07): colour strip + showroom band ─────────── */
.colours-strip {
  padding: 64px 24px 68px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.colours-kicker,
.showroom-band-kicker {
  margin: 0 0 12px;
  font: 600 0.72rem "Inter", "Inter Fallback", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.colours-strip h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
}
.colours-strip .section-lead { margin-bottom: 32px; max-width: 560px; }
.colours-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto 30px;
  text-align: left;
}
.colour-chip {
  display: block;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.colour-chip:hover {
  transform: translateY(-2px);
  border-color: #d9d2c4;
  box-shadow: 0 10px 26px rgba(28, 26, 23, 0.1);
}
.colour-chip img {
  display: block;
  width: 100%;
  height: auto; /* beat the width/height attributes so aspect-ratio wins */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ebe6dc;
}
.colour-chip-body {
  display: block;
  padding: 10px 12px 12px;
  line-height: 1.3;
}
.colour-chip-body strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}
.colour-chip-body span {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--muted);
}

.showroom-band {
  padding: 76px 24px;
  color: #fff;
  background: var(--accent-deep);
}
.showroom-band-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.showroom-band-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.showroom-band-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.showroom-band-kicker { color: #b9d0bf; }
.showroom-band h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
}
.showroom-band-lead {
  margin: 0 0 24px;
  max-width: 50ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}
.showroom-proof {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.showroom-proof li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
.showroom-proof svg { margin-top: 1px; color: #b9d0bf; }
.showroom-proof strong {
  display: block;
  color: #fff;
  font-weight: 600;
}
.showroom-hours {
  margin: 0 0 22px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.68);
}
.showroom-band .hero-actions { justify-content: flex-start; }
.showroom-band .btn-hero-primary { background: #fff; color: var(--accent-deep); }
.showroom-band .btn-hero-primary:hover { background: #e8efe9; }

@media (max-width: 960px) {
  .colours-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .showroom-band-inner { grid-template-columns: 1fr; gap: 32px; max-width: 640px; }
  .showroom-band-photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 700px) {
  .colours-strip { padding: 52px 0 56px; }
  .colours-strip h2,
  .colours-strip .section-lead,
  .colours-kicker { padding: 0 18px; }
  /* One horizontal row on phones — keeps the page short and the boards big. */
  .colours-grid {
    display: flex;
    gap: 12px;
    margin: 0 0 22px;
    padding: 4px 18px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .colours-grid::-webkit-scrollbar { display: none; }
  .colour-chip { flex: 0 0 168px; }
  /* Phones: shorter category cards — wider crop, bullets carry the message. */
  .category-card-img { aspect-ratio: 16 / 10; }
  .category-card-body { padding: 18px 18px 16px; }
  .category-card-body > p { display: none; }
  .category-card-body ul { margin-bottom: 14px; }
  .showroom-band { padding: 56px 18px; }
  .showroom-band .hero-actions { flex-direction: column; align-items: stretch; }
  .showroom-band .hero-actions a { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .colour-chip { transition: none; }
  .colour-chip:hover { transform: none; }
}
