/* Leish Bio — site styles
   Layout: a 1180px measure, full-width colour bands, 3–4 column product grids.
   Colour comes from the logo: deep navy for type and bands, fox orange for action. */

:root {
  --navy-900: #0b1238;
  --navy-800: #101a4e;
  --navy-700: #1b2a74;
  --navy-500: #4356a8;
  --accent: #f26322;
  --accent-dark: #d44f13;
  --accent-soft: #fdeee6;

  --paper: #ffffff;
  --paper-2: #f6f5f2;   /* warm neutral, biased to the orange */
  --paper-3: #eceaf2;   /* cool neutral, biased to the navy */
  --ink: #16193a;
  --ink-soft: #4b4f6b;
  --line: #d9d7e2;

  --radius: 4px;
  --shadow: 0 1px 2px rgba(16, 26, 78, .06), 0 8px 24px rgba(16, 26, 78, .06);
  --wrap: 1180px;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1130;
    --paper-2: #121740;
    --paper-3: #171d4c;
    --ink: #e9eaf5;
    --ink-soft: #a8adcd;
    --line: #2a3168;
    --navy-800: #0a0f2c;
    --navy-700: #16205e;
    --accent-soft: #2a1a12;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1130;
  --paper-2: #121740;
  --paper-3: #171d4c;
  --ink: #e9eaf5;
  --ink-soft: #a8adcd;
  --line: #2a3168;
  --navy-800: #0a0f2c;
  --navy-700: #16205e;
  --accent-soft: #2a1a12;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: #9fb0ff; } }
:root[data-theme="dark"] a { color: #9fb0ff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 68ch; }
.center { text-align: center; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ chrome */
.topbar { background: var(--navy-900); color: #cdd3f0; font-size: .8125rem; }
.topbar-in { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  align-items: center; padding-block: .45rem; }
.promises { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.promises li { position: relative; padding-left: 1.1rem; }
.promises li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: .42rem; height: .72rem;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.topbar-mail { color: #cdd3f0; text-decoration: none; }
.topbar-mail:hover { color: #fff; text-decoration: underline; }

.site-head {
  position: sticky; top: 0; z-index: 30; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 1rem; padding-block: .85rem; }
.brand { flex: 0 0 auto; }
.brand img { width: 196px; height: auto; }
/* The wordmark is navy; on a dark header it needs lifting to near-white while the
   fox keeps its orange, so lighten rather than invert. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img { filter: brightness(1.9) saturate(1.1); }
}
:root[data-theme="dark"] .brand img { filter: brightness(1.9) saturate(1.1); }
.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav-link {
  font-size: .9375rem; font-weight: 500; letter-spacing: .01em; color: var(--ink);
  text-decoration: none; padding: .55rem .7rem; border-radius: var(--radius);
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--accent); }
.nav-link.is-active { border-bottom-color: var(--accent); color: var(--navy-700); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-link.is-active { color: var(--ink); } }
.nav-quote { margin-left: .5rem; }
.qcount {
  display: inline-block; min-width: 1.35em; margin-left: .35rem; padding: 0 .3em;
  background: #fff; color: var(--accent-dark); border-radius: 999px;
  font-size: .75rem; font-weight: 700; text-align: center;
}
.burger {
  display: none; margin-left: auto; width: 44px; height: 40px; background: none;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 1rem;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .site-head { position: relative; }
  .nav-link { padding: .8rem max(20px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
  .nav-link.is-active { border-bottom-color: var(--line); color: var(--accent); }
  .nav-quote { margin: .9rem max(20px, env(safe-area-inset-left, 0px)) 0; justify-content: center; }
  .head-in { flex-wrap: wrap; }
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: 600 .9375rem/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: .78rem 1.25rem; border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { padding: .55rem .85rem; font-size: .875rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--navy-700); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-outline { color: var(--ink); }
}
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: #fff; color: var(--navy-800); }
.btn.is-added { background: var(--navy-700); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .9375rem;
  color: var(--accent); text-decoration: none; white-space: nowrap;
}
.link-arrow::after { content: "›"; font-size: 1.2em; line-height: 1; }
.link-arrow:hover { text-decoration: underline; }
.mail { font-weight: 600; word-break: break-word; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; background: var(--navy-800); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg svg { width: 100%; height: 100%; }
/* Keeps the strands legible as texture while the headline stays the brightest thing. */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--navy-800) 18%, rgba(16, 26, 78, .82) 52%,
    rgba(16, 26, 78, .35) 100%);
}
.strand { animation: drift 18s linear infinite; }
.strand-2 { animation-duration: 22s; animation-direction: reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-240px); } }
@media (prefers-reduced-motion: reduce) { .strand { animation: none; } }
.hero-in { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem); max-width: 860px; margin-inline: auto; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero-sub { font-size: 1.125rem; color: #ccd3f5; max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem;
}
.hero .eyebrow { color: #ffb48c; }

/* ------------------------------------------------------------------ bands */
.band { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band-alt { background: var(--paper-2); }
.band-tiles { background: var(--paper-2); }
.band-quote { background: var(--paper-3); }
.section-title { margin-bottom: .5rem; }
.section-head {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: baseline;
  justify-content: space-between; margin-bottom: 1.75rem;
}
.section-head .section-title { margin-bottom: 0; }
.section-lede { color: var(--ink-soft); max-width: 62ch; margin: .5rem 0 0; }
.page-head { padding-block: clamp(1.5rem, 3vw, 2.5rem) 1.5rem; }
.page-lede { color: var(--ink-soft); font-size: 1.0625rem; max-width: 68ch; margin-top: .75rem; }

.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  padding-block: .9rem 0; font-size: .8125rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs .sep { color: var(--line); }

/* ------------------------------------------------------------------ tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.tile {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile img { aspect-ratio: 16 / 10; object-fit: contain; background: #fff; padding: .75rem; width: 100%; }
.tile-text { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.tile-text p { color: var(--ink-soft); font-size: .9375rem; flex: 1; }

/* ------------------------------------------------------------------ steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { position: relative; padding-top: 1.25rem; border-top: 2px solid var(--line); min-width: 0; }
.steps li:first-child { border-top-color: var(--accent); }
.step-n {
  display: inline-block; font: 700 .75rem/1 var(--sans); letter-spacing: .14em;
  color: var(--accent); margin-bottom: .5rem;
}
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--ink-soft); font-size: .9375rem; }

/* ------------------------------------------------------------------ cards */
.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0;
}
.card-img { display: block; background: #fff; }
.card-img img { aspect-ratio: 4 / 3; object-fit: contain; padding: .85rem; width: 100%; }
.card-body { padding: 0 1.1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-body h3 { font-size: 1.05rem; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { font-size: .9rem; color: var(--ink-soft); }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .85rem 1.1rem; border-top: 1px solid var(--line); background: var(--paper-2);
}
.cat-no {
  font: 600 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.cat-no-lg { font-size: .8125rem; margin-bottom: .6rem; color: var(--accent); }

/* ------------------------------------------------------------------ product index */
.cat-block { padding-block: 2.25rem; border-top: 1px solid var(--line); }
.cat-block:first-child { border-top: 0; padding-top: .5rem; }
.cat-head { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; }
.cat-head .section-title a { color: inherit; text-decoration: none; }
.cat-head .section-title a:hover { color: var(--accent); }
.cat-img { width: 180px; flex: 0 0 auto; border-radius: var(--radius); background: #fff; }
.cat-more { margin-top: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.chip {
  font-size: .8125rem; font-weight: 600; text-decoration: none; color: var(--navy-700);
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; background: var(--paper);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip { color: var(--ink); } }

/* ------------------------------------------------------------------ product page */
.product-top {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start; padding-block: 1.5rem 2rem;
}
.product-media {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem;
}
.product-media img { width: 100%; object-fit: contain; max-height: 380px; margin-inline: auto; }
.product-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.variants { margin-top: 1.5rem; }
.variants h3 { font-size: .9375rem; }
.variants ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }

.product-detail {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 3rem; align-items: start;
}
.prose { margin-bottom: 2rem; }
.prose h2 { margin-bottom: .6rem; }
.prose h3 { margin: 1.25rem 0 .35rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; }
.spec-wrap { overflow-x: auto; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); }
.specs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.specs th, .specs td { text-align: left; padding: .7rem .95rem; border-bottom: 1px solid var(--line);
  vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { font-weight: 600; color: var(--ink); width: 45%; }
.specs td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.dl { margin-top: 1.75rem; }
.dl h3 { font-size: .9375rem; margin-bottom: .5rem; }
.dl-link {
  display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem;
  background: var(--paper);
}
.dl-link:hover { border-color: var(--accent); }
.dl-icon {
  flex: 0 0 auto; font: 700 .6875rem/1 var(--sans); letter-spacing: .06em; color: #fff;
  background: var(--accent); padding: .35rem .45rem; border-radius: 2px;
}
.dl-text { display: flex; flex-direction: column; }
.dl-text em { font-style: normal; font-size: .8125rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------ services */
.svc-grid .svc { background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem; min-width: 0; }
.svc-icon { height: 56px; width: auto; margin-bottom: .75rem; }
.svc-icon-blank {
  height: 56px; width: 86px; margin-bottom: .75rem; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px dashed var(--line);
}
.svc h3 { margin-bottom: .3rem; }
.svc p { color: var(--ink-soft); font-size: .9375rem; }

.svc-rows { padding-bottom: 1rem; }
.svc-row {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 2.5rem);
  padding-block: 2rem; border-top: 1px solid var(--line); align-items: start;
}
.svc-row:first-child { border-top: 0; }
.svc-row-icon img { width: 100%; }
.svc-row h2 { margin-bottom: .35rem; }
.svc-lede { color: var(--accent); font-weight: 600; margin-bottom: .75rem; }
.svc-row-text p { color: var(--ink-soft); max-width: 68ch; }

/* ------------------------------------------------------------------ resources */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 3rem; align-items: start; }
.res-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; }
.res {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem;
  background: var(--paper);
}
.res .dl-link { border: 0; padding: 0; background: none; }
.notes { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; }
/* Publications, shown only on the products whose methods credit them. */
.pub-feed { list-style: none; margin: 1rem 0 1.25rem; padding: 0; display: grid; gap: .9rem; }
.pub-feed li {
  display: flex; flex-direction: column; gap: .2rem; padding-left: 1rem;
  border-left: 2px solid var(--line);
}
.pub-feed li > a { font-family: var(--serif); font-size: 1.0625rem; font-weight: 600;
  line-height: 1.3; color: var(--ink); text-decoration: none; }
.pub-feed li > a:hover { color: var(--accent); text-decoration: underline; }
.pub-cite { font-size: .8125rem; color: var(--ink-soft); }
.pub-note-inline { font-size: .875rem; color: var(--ink); margin-top: .15rem; }

/* ------------------------------------------------------------------ closing CTA */
.cta-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, auto);
  gap: clamp(1.25rem, 4vw, 3rem); align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-wrap .section-lede { margin-top: .75rem; }

/* ------------------------------------------------------------------ news */
.news-list { display: grid; gap: 0; padding-bottom: 3rem; }
.news-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2rem;
  padding-block: 2rem; border-top: 1px solid var(--line); }
.news-item:first-child { border-top: 0; }
.news-meta { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.news-meta time { font-size: .875rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tag { font: 700 .6875rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-soft); padding: .35rem .6rem; border-radius: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag { color: #ffb48c; } }
.news-body h2 { margin-bottom: .5rem; }
.news-body p { color: var(--ink-soft); }
.news-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: .75rem; }

/* ------------------------------------------------------------------ distributor */
.dist-card { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--paper); }
.dist-logo { width: 150px; border-radius: var(--radius); }
.dist-dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; margin: 1rem 0 1.5rem; }
.dist-dl dt { font-weight: 600; font-size: .875rem; }
.dist-dl dd { margin: 0; font-size: .9375rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------ quote */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: 3rem; align-items: start; }
.quote-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.5rem;
  color: var(--ink-soft); background: var(--paper-2); }
.quote-table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin-top: .5rem; }
.quote-table th, .quote-table td { text-align: left; padding: .7rem .5rem;
  border-bottom: 1px solid var(--line); vertical-align: middle; }
.quote-table thead th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); }
.quote-table .num { text-align: right; }
.quote-table td.num input { width: 5rem; text-align: right; }
.quote-table .q-name { font-weight: 600; }
.quote-table .q-cat { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.q-remove { background: none; border: 0; color: var(--ink-soft); cursor: pointer; font-size: 1.1rem;
  line-height: 1; padding: .25rem .4rem; border-radius: var(--radius); }
.q-remove:hover { color: var(--accent-dark); background: var(--accent-soft); }
.quote-add { margin-top: 1.5rem; }
.quote-add label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .4rem; }
.quote-add-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.quote-add-row select { flex: 1 1 14rem; min-width: 0; }

.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .875rem; }
input, select, textarea {
  font: 400 .9375rem/1.4 var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .65rem .75rem;
  width: 100%; min-width: 0;
}
textarea { resize: vertical; }
.quote-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .75rem; }
.quote-note, .quote-status { grid-column: 1 / -1; font-size: .875rem; color: var(--ink-soft); margin: 0; }
.quote-status:empty { display: none; }
.quote-status { color: var(--accent-dark); font-weight: 600; }
.quote-preview { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; }
.quote-preview summary { cursor: pointer; font-weight: 600; font-size: .875rem; }
.quote-preview pre {
  white-space: pre-wrap; word-break: break-word; font: 400 .8125rem/1.6 ui-monospace, SFMono-Regular,
  Menlo, Consolas, monospace; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem; margin-top: .75rem; color: var(--ink-soft);
  max-height: 20rem; overflow: auto;
}

/* ------------------------------------------------------------------ footer */
.site-foot { background: var(--navy-900); color: #c3cae8; margin-top: 0; }
.foot-in {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.site-foot h3 { color: #fff; font-size: .9375rem; margin-bottom: .75rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-foot a { color: #c3cae8; text-decoration: none; font-size: .9375rem; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot p { font-size: .9375rem; }
.foot-brand img { width: 190px; filter: brightness(0) invert(1); margin-bottom: .9rem; }
.foot-brand p { color: #9aa4d0; }
.site-foot .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .35); margin-top: .9rem; }
.site-foot .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.25rem; }
.foot-legal p { font-size: .8125rem; color: #8e98c8; margin: 0; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1040px) {
  .grid-4, .tiles, .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-top, .product-detail, .two-col, .quote-layout, .cta-wrap { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: .75rem; }
  .news-meta { flex-direction: row; align-items: center; gap: .9rem; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-row-icon img { width: 140px; }
  .cat-img { display: none; }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .tiles, .steps { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .card-foot .link-arrow { justify-content: center; }
  .topbar-in { justify-content: center; }
  .topbar-mail { display: none; }
}

/* ------------------------------------------------------------------ 404 */
.notfound { max-width: 70ch; padding-block: clamp(2rem, 6vw, 4rem); }
.notfound-links { list-style: none; margin: 1.5rem 0; padding: 0; display: flex;
  flex-wrap: wrap; gap: .5rem; }
.notfound-links a {
  display: inline-block; font-size: .9375rem; font-weight: 600; text-decoration: none;
  color: var(--navy-700); border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .9rem; background: var(--paper);
}
.notfound-links a:hover { border-color: var(--accent); color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notfound-links a { color: var(--ink); } }
.notfound .hero-cta { margin-top: 1.5rem; }
.notfound-help { margin-top: 2rem; font-size: .9375rem; color: var(--ink-soft); }
