/* Layout concept: a roofer's spec sheet. Left-aligned stamped headings, mono measurement
   labels (mp, grade, RAL), sections separated by the cross-section of a metal tile profile. */
:root {
  --bg: #eef1f0;          /* zinc-white ground, slight teal bias */
  --surface: #ffffff;     /* sheet */
  --ink: #252b2f;         /* close to RAL 7016 anthracite */
  --ink-2: #566166;
  --line: #d5dcdb;
  --accent: #0a7f7b;      /* teal, sits next to the Rufster turquoise */
  --accent-ink: #065a57;
  --accent-soft: #dcefed;
  --on-accent: #ffffff;
  --on-photo: #ffffff;
  --shade: rgba(16, 22, 25, .72);
  --good: #2f7d3c;

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Hanken Grotesk", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: .84rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.1rem + 1.4vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.2rem + 2.6vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.3rem + 4.4vw, 4.3rem);

  --radius: 6px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13181a; --surface: #1b2225; --ink: #e7ecea; --ink-2: #9ba8ab; --line: #2c3539;
    --accent: #33b8b1; --accent-ink: #7fd8d2; --accent-soft: #163331; --on-accent: #08201f;
    --shade: rgba(5, 8, 10, .74); --good: #6cc27a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #13181a; --surface: #1b2225; --ink: #e7ecea; --ink-2: #9ba8ab; --line: #2c3539;
  --accent: #33b8b1; --accent-ink: #7fd8d2; --accent-soft: #163331; --on-accent: #08201f;
  --shade: rgba(5, 8, 10, .74); --good: #6cc27a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--f-body);
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) { .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); } }

h1, h2, h3 { font-family: var(--f-display); font-stretch: 112%; line-height: 1.05; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 850; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 750; font-stretch: 105%; line-height: 1.2; }
p { margin: 0; max-width: 65ch; }
.lead { font-size: var(--step-1); color: var(--ink-2); line-height: 1.5; }
.label {
  font-family: var(--f-mono); font-size: var(--step--1); font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2);
}
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.25em; border-radius: var(--radius);
  font: 700 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); color: var(--on-accent); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { color: var(--accent); }
.btn-light { border-color: var(--on-photo); color: var(--on-photo); background: transparent; }
.btn-light:hover { background: var(--on-photo); color: #1b2225; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 38px; height: 30px; flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 850; font-stretch: 118%; font-size: 1.12rem; line-height: 1; letter-spacing: .01em; }
.brand-sub { display: block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }
.nav { display: none; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.header-phone { display: none; font-family: var(--f-mono); font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
@media (min-width: 1080px) { .nav { display: flex; gap: 18px; } }
@media (min-width: 1260px) { .header-phone { display: inline; } }
.brand-sub { white-space: nowrap; }
.site-header .btn { white-space: nowrap; }
.site-header .btn { min-height: 42px; padding: .55em 1em; }
@media (max-width: 520px) { .site-header .btn-primary { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--on-photo); background: #20282b; isolation: isolate; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--shade) 0%, var(--shade) 38%, rgba(10,14,16,.25) 75%, rgba(10,14,16,.1) 100%);
}
.hero .wrap { padding-block: clamp(56px, 9vw, 120px) clamp(96px, 12vw, 150px); display: grid; gap: 22px; }
.hero h1 { max-width: 15ch; }
.hero .lead { color: var(--on-photo); opacity: .92; max-width: 46ch; }
.hero .label { color: var(--on-photo); opacity: .85; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-spec {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
}
.hero-spec span { display: inline-flex; align-items: center; gap: 8px; }
.hero-spec span::before { content: ""; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.profile-edge { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(26px, 4vw, 46px); width: 100%; display: block; }
.profile-edge path { fill: var(--bg); }
.profile-rule { display: block; width: 100%; height: 22px; margin-block: 0; }
.profile-rule path { fill: none; stroke: var(--line); stroke-width: 2; }

/* ---------- trust strip ---------- */
.trust { padding-block: 26px 10px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 28px; }
.trust li { display: grid; gap: 2px; padding-left: 14px; border-left: 3px solid var(--accent); }
.trust strong { font-family: var(--f-display); font-stretch: 110%; font-size: 1.15rem; }
.trust span { color: var(--ink-2); font-size: .95rem; }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- calculator ---------- */
.calc { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .calc { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; } }
.calc-form { display: grid; gap: 26px; min-width: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 1.02rem; }
legend .label { margin-left: 8px; font-weight: 500; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices.four { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: grid; gap: 4px; height: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s;
}
.choice span b { font-weight: 700; font-size: .98rem; }
.choice span small { color: var(--ink-2); font-size: .85rem; line-height: 1.35; }
.choice span svg { width: 54px; height: 34px; margin-bottom: 4px; }
.choice span svg * { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linejoin: round; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.choice input:checked + span svg * { stroke: var(--accent-ink); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.dims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dims.wide { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 1rem/1.3 var(--f-body);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.unit-input { position: relative; }
.unit-input input { padding-right: 46px; font-family: var(--f-mono); }
.unit-input em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-family: var(--f-mono); font-size: .85rem; color: var(--ink-2); pointer-events: none; }
.toggle-link { justify-self: start; background: none; border: 0; padding: 0; color: var(--accent-ink); font: 600 .92rem var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.checks { display: grid; gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check b { display: block; font-weight: 700; font-size: .98rem; }
.check small { color: var(--ink-2); font-size: .85rem; }
.check .qty { margin-left: auto; width: 74px; min-height: 38px; padding: 6px 8px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 500 1rem var(--f-mono); }

.result {
  position: sticky; top: calc(84px + env(safe-area-inset-top, 0px));
  background: var(--ink); color: var(--bg); border-radius: 10px; padding: clamp(22px, 3vw, 32px);
  display: grid; gap: 18px; min-width: 0;
}
.result .label { color: var(--bg); opacity: .7; }
.result-area { font-family: var(--f-mono); font-size: .95rem; opacity: .85; }
.result-price { font-family: var(--f-display); font-stretch: 112%; font-weight: 850; font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); line-height: 1; font-variant-numeric: tabular-nums; }
.result-price small { display: block; font-family: var(--f-body); font-weight: 500; font-size: .95rem; margin-top: 8px; opacity: .8; font-stretch: 100%; }
.breakdown { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); }
.breakdown li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); font-size: .93rem; }
.breakdown li span:last-child { font-family: var(--f-mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.result .btn-primary { width: 100%; }
.result .btn-quiet { width: 100%; border-color: color-mix(in srgb, var(--bg) 45%, transparent); color: var(--bg); background: transparent; }
.result .btn-quiet:hover { border-color: var(--bg); }
.fine { font-size: .84rem; opacity: .75; line-height: 1.45; }

/* ---------- packages ---------- */
.packages { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pkg { display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; padding: 26px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; }
.pkg.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pkg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pkg .tag { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; background: var(--accent); color: var(--on-accent); padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.pkg-price { font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pkg-price small { font-family: var(--f-body); font-weight: 500; font-size: .9rem; color: var(--ink-2); font-stretch: 100%; }
.pkg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; align-content: start; }
.pkg li { position: relative; padding-left: 26px; font-size: .97rem; line-height: 1.45; }
.pkg li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.pkg .btn { width: 100%; }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 28px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); border-top: 2px solid var(--ink); }
.steps li { padding: 22px 22px 26px 0; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--line); }
.steps .n { font-family: var(--f-mono); font-size: .85rem; color: var(--accent-ink); font-weight: 500; }
.steps p { color: var(--ink-2); font-size: .97rem; }

/* ---------- products ---------- */
.products { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.product { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); }
.product img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.product-body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; }
.product-body p { color: var(--ink-2); font-size: .95rem; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.specs span { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .03em; padding: 3px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2); white-space: nowrap; }
a.product:hover h3 { color: var(--accent); }

/* ---------- compare ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .97rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--f-mono); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
tbody tr:last-child td { border-bottom: 0; }
td.us { font-weight: 650; color: var(--ink); background: var(--accent-soft); }
td.them { color: var(--ink-2); }

/* ---------- guarantee / offers ---------- */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.badges { display: flex; gap: 14px; flex-wrap: wrap; }
.badges img { width: 104px; height: 104px; }
.prose { display: grid; gap: 16px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.offers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.offer { padding: 26px; border-radius: 10px; background: var(--accent-soft); display: grid; gap: 12px; align-content: start; }
.offer .label { color: var(--accent-ink); }

/* ---------- about / social ---------- */
.about { display: grid; gap: 30px; }
@media (min-width: 880px) { .about { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } }
.monogram { aspect-ratio: 4 / 3; border-radius: 10px; background: var(--ink); color: var(--bg); display: grid; place-items: center; text-align: center; padding: 24px; max-width: 100%; }
.monogram strong { display: block; font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(3rem, 8vw, 5.5rem); line-height: .9; }
.socials { display: grid; gap: 10px; }
.social { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--surface); }
.social svg { width: 26px; height: 26px; flex: none; fill: var(--ink); }
.social b { display: block; }
.social small { color: var(--ink-2); }
.social:hover { border-color: var(--accent); }

/* ---------- area ---------- */
.towns { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.towns a, .towns span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.towns a { border-color: var(--accent); color: var(--accent-ink); }
.towns a:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 0; border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 500 1.5rem var(--f-mono); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact { display: grid; gap: 34px; align-items: start; }
.contact .prose { align-content: start; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; } }
.prose .contact-list, .contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list .big { font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: var(--step-2); color: var(--ink); text-decoration: none; user-select: all; }
.form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.form .row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form-done { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--accent-soft); }
.form-done pre { margin: 0; white-space: pre-wrap; font: 500 .86rem/1.5 var(--f-mono); color: var(--ink); max-height: 200px; overflow: auto; }
.form-done .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- page hero (subpages) ---------- */
.page-hero { position: relative; color: var(--on-photo); background: #20282b; isolation: isolate; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--shade) 0%, var(--shade) 45%, rgba(10,14,16,.3) 100%); }
.page-hero .wrap { padding-block: clamp(44px, 7vw, 88px) clamp(80px, 10vw, 120px); display: grid; gap: 18px; }
.page-hero h1 { font-size: var(--step-3); max-width: 20ch; }
.page-hero .lead { color: var(--on-photo); opacity: .92; }
.crumbs { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .05em; color: var(--on-photo); opacity: .8; }
.crumbs a { color: var(--on-photo); }

/* product detail */
.pdetail { display: grid; gap: 26px; padding-block: 38px; border-bottom: 1px solid var(--line); }
@media (min-width: 880px) { .pdetail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; } .pdetail:nth-of-type(even) .pdetail-media { order: 2; } }
.pdetail-media { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.pdetail-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; aspect-ratio: 4 / 3; }
.pdetail-media img:first-child { grid-row: span 2; aspect-ratio: auto; min-height: 260px; }
dl.specgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
dl.specgrid div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
dl.specgrid dt { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
dl.specgrid dd { margin: 2px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.swatches img { border-radius: 8px; border: 1px solid var(--line); background: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); padding-block: 48px 32px; margin-top: 0; }
.site-footer a { color: var(--bg); }
.foot { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot h3 { font-size: 1rem; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .94rem; }
.foot-legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); font-size: .82rem; opacity: .75; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- mobile action bar ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  gap: 8px;
}
.actionbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: var(--radius); text-decoration: none; color: var(--ink); font-size: .78rem; font-weight: 700; }
.actionbar a svg { width: 22px; height: 22px; }
.actionbar a.main { background: var(--accent); color: var(--on-accent); }
@media (min-width: 900px) { .actionbar { display: none; } }

.mobile-menu { display: block; }
@media (min-width: 1080px) { .mobile-menu { display: none; } }
.mobile-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary svg { width: 22px; height: 22px; stroke: var(--ink); }
.mobile-menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); display: grid; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
.mobile-menu nav a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 650; }

/* ---------- sale paths ---------- */
.paths { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.path { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; padding: clamp(22px, 3vw, 32px); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; }
.path:first-child { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.path h3 { font-size: var(--step-2); font-weight: 800; }
.path p { color: var(--ink-2); }
.path ul, .sale ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; align-content: start; }
.path li { position: relative; padding-left: 26px; line-height: 1.45; }
.path li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.path-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.sale { display: grid; gap: 34px; align-items: start; }
@media (min-width: 960px) { .sale { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }
.sale .prose { align-content: start; }
.matprices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-block: 2px solid var(--ink); }
.matprices div { display: grid; gap: 2px; padding: 14px 12px 14px 0; }
.matprices div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.matprices b { font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.8rem); line-height: 1.05; }
.matprices small { color: var(--ink-2); font-family: var(--f-mono); font-size: .78rem; }
@media (max-width: 460px) { .matprices { grid-template-columns: 1fr; } .matprices div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.steps.steps-tight { grid-template-columns: 1fr; }
.steps.steps-tight li { padding: 16px 0 18px; }
.pmat { font-weight: 600; }
