﻿/* ==========================================================================
   Mattress Cleaning SG — "The Care Label"
   Tokens first. Nothing below uses a raw hex.
   ========================================================================== */

:root {
  /* colour roles — 7 values, one hero accent, one limited accent */
  --cotton: #F3EEE3;      /* page base */
  --label:  #FCF9F2;      /* label stock: every block sits on this */
  --panel:  #E7E0D1;      /* panel tone, section bands, device fills */
  --ink:    #191713;      /* text, rules, button borders */
  --ink-soft:#55504A;     /* secondary text, captions */
  --indigo: #2B3A6B;      /* THE accent: symbols, links, primary buttons */
  --rust:   #A2452A;      /* rare: limits and "cannot" only, never decoration */
  --rule:   #CBC2AE;      /* hairlines, stitches */

  /* the same family, inverted for the one dark band — no new hue */
  --deep:       #171512;
  --deep-panel: #1E1B17;
  --deep-line:  #3A352D;
  --deep-text:  #D6CEC0;
  --deep-soft:  #A9A192;
  --rust-soft:  #E3B49F;

  /* type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* rhythm */
  --s1: 6px; --s2: 12px; --s3: 18px; --s4: 26px; --s5: 38px; --s6: 56px; --s7: 82px; --s8: 118px;
  --shell: 1160px;
  --ease: cubic-bezier(.2,.7,.25,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cotton);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1.0625rem, .55vw + .95rem, 1.1875rem);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-style: dashed; }
strong { font-weight: 600; }
em { font-style: italic; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--cotton); padding: 12px 18px;
  font-family: var(--mono); font-size: 12px;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- shell */

.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-left: clamp(38px, 7vw, 92px);
  padding-right: clamp(20px, 4vw, 40px);
}

main { position: relative; }

/* the tape: signature move subject, runs the whole page */
.rail {
  position: absolute;
  top: 0; bottom: 0;
  left: clamp(10px, calc(50% - 580px + 22px), 220px);
  width: 48px;
  pointer-events: none;
  z-index: 1;
}
.rail::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 13px; width: 22px;
  background: var(--label);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.rail-svg { width: 100%; height: 100%; overflow: visible; position: relative; }
.rail-edge {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1.5;
}
.rail-edge--2 { stroke: var(--ink); opacity: .1; }
.rail-stitch {
  fill: none;
  stroke: var(--indigo);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 9 9;
  opacity: .85;
}

.stamp {
  position: absolute;
  top: var(--at);
  left: 50%;
  width: 34px; height: 34px;
  margin-left: -17px;
  display: grid; place-items: center;
  background: var(--label);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--indigo);
  opacity: 0;
  transform: scale(1.5) rotate(-8deg);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.stamp svg { width: 18px; height: 18px; }
.stamp.is-set { opacity: 1; transform: scale(1) rotate(0); }
.stamp--end { background: var(--indigo); color: var(--label); border-color: var(--indigo); }

@media (max-width: 720px) {
  .rail { width: 14px; left: 10px; }
  .rail::before { left: 4px; width: 6px; }
  .rail-edge--2 { display: none; }
  .stamp {
    width: 13px; height: 13px; margin-left: -6.5px;
    border-width: 2px; border-radius: 50%;
    background: var(--label);
  }
  .stamp svg { display: none; }
  .stamp--end { background: var(--indigo); }
}

/* ---------------------------------------------------------------- head */

.site-head {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--rule);
  background: var(--cotton);
}
.head-in {
  display: flex; align-items: center; gap: var(--s4);
  padding-block: 18px;
  padding-left: clamp(38px, 7vw, 92px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.brand-mark { color: var(--indigo); display: grid; place-items: center; }
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.02em;
}
.head-nav { display: flex; gap: var(--s4); }
.head-nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.head-nav a:hover { color: var(--ink); border-bottom-color: var(--indigo); }
@media (max-width: 860px) { .head-nav { display: none; } }

/* ---------------------------------------------------------------- buttons */

.btn {
  --lift: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  min-height: 46px;
  background: var(--indigo);
  color: var(--label);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--lift) var(--lift) 0 var(--ink);
  transform: translate(0, 0);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s;
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: calc(var(--lift) + 2px) calc(var(--lift) + 2px) 0 var(--ink);
  text-decoration: none;
}
.btn:active {
  transform: translate(var(--lift), var(--lift));
  box-shadow: 0 0 0 var(--ink);
}
.btn--ghost {
  background: var(--label);
  color: var(--ink);
}
.btn--sm { padding: 10px 16px; min-height: 38px; font-size: 10.5px; --lift: 3px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--s4); }

/* ---------------------------------------------------------------- type */

.h1, .h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.038em;
  margin: 0;
  text-wrap: balance;
}
.h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.9rem);
  line-height: .98;
  margin-top: var(--s3);
  max-width: 15ch;
}
.h1 em {
  font-family: var(--text);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -.02em;
  color: var(--indigo);
}
.h2 {
  font-size: clamp(1.95rem, 3.5vw, 3.05rem);
  line-height: 1.03;
  margin-top: var(--s2);
}
.h2--light { color: var(--cotton); }

.lede {
  font-family: var(--text);
  font-size: clamp(1.08rem, .5vw + 1rem, 1.3rem);
  line-height: 1.58;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: var(--s4) 0 0;
}

.micro {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: var(--s3) 0 0;
}
.micro a { color: var(--ink-soft); }

/* the spec tab — every section wears one */
.spec {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.spec-n {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 10px;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--label);
  flex: none;
}
.spec--light { color: var(--deep-soft); border-bottom-color: var(--deep-line); }
.spec--light .spec-n { color: var(--cotton); border-color: var(--deep-line); background: transparent; }

.fig-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  fill: var(--ink-soft);
}
.layer-fig .fig-label { font-size: 14px; letter-spacing: .06em; }
.fig-stamp {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  fill: var(--rust);
  font-weight: 500;
}

/* ---------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero-copy { max-width: 47ch; }
.hero-figure {
  margin: 0;
  position: relative;
}
.hero-photo { padding: 10px; }
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.94) contrast(1.03);
}
.end-fig {
  margin: var(--s6) 0 0;
  max-width: 400px;
}
.end-fig svg { width: 100%; height: auto; }
.hero-figure svg { width: 100%; height: auto; }
.hero-figure figcaption,
.photo-fig figcaption,
.layer-fig figcaption,
.tag-fig figcaption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  max-width: 34ch;
}
.fig-note .fig-label { font-size: 9px; }

.symbol-key {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  border-top: 1px dashed var(--rule);
  padding-top: 12px;
}
.symbol-key li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.symbol-key b {
  color: var(--ink);
  font-weight: 500;
}
.symbol-key .sym svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { order: 1; max-width: 58ch; }
  .hero-figure { order: 2; max-width: 560px; }
}
@media (max-width: 720px) {
  .head-in { padding-left: 38px; gap: 12px; }
  .head-in > .btn { display: none; }
  .brand-name { font-size: .88rem; white-space: nowrap; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-photo img { aspect-ratio: 5 / 4; }
}

/* ---------------------------------------------------------------- bands */

.band { padding-block: clamp(56px, 7vw, 104px); position: relative; }
.band--panel {
  background: var(--panel);
  box-shadow: 0 0 0 100vmax var(--panel);
  clip-path: inset(0 -100vmax);
}
.band--dark {
  color: var(--cotton);
  box-shadow: 0 0 0 100vmax var(--deep);
  clip-path: inset(0 -100vmax);
  background: var(--deep);
}
.band--dark .band-lede, .band--dark p { color: var(--deep-text); }
.band--end { padding-bottom: clamp(70px, 9vw, 130px); }
.band-head { max-width: 58ch; }
.band-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: end;
}
.band-lede {
  font-family: var(--text);
  color: var(--ink-soft);
  max-width: 52ch;
  margin: var(--s3) 0 0;
}
.band-lede--light { color: var(--deep-soft); }

.stitch {
  height: 1px;
  margin-left: calc(max(0px, (100% - var(--shell)) / 2) + clamp(38px, 7vw, 92px));
  margin-right: calc(max(0px, (100% - var(--shell)) / 2) + clamp(20px, 4vw, 40px));
  background-image: linear-gradient(to right, var(--rule) 0 8px, transparent 8px 14px);
  background-size: 14px 1px;
  background-repeat: repeat-x;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.two-col--rev { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
@media (max-width: 900px) { .two-col, .two-col--rev, .band-head--split { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- the label block (component rule) */

.device, .quote-list, .faq details, .photo-fig, .layer-fig, .tag-fig, .hero-photo {
  position: relative;
  background: var(--label);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: 5px 5px 0 rgba(25, 23, 19, .08);
}
.device::before, .quote-list::before, .faq details::before,
.photo-fig::before, .layer-fig::before, .tag-fig::before, .hero-photo::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--rule);
  border-radius: 1px;
  pointer-events: none;
}
.device::after, .quote-list::after, .photo-fig::after, .layer-fig::after, .tag-fig::after, .hero-photo::after {
  content: "";
  position: absolute;
  top: 10px; left: 10px;
  width: 7px; height: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--cotton);
  pointer-events: none;
  z-index: 2;
}
.band--dark .device { background: var(--deep-panel); border-color: var(--deep-line); }
.band--dark .device::before { border-color: var(--deep-line); }
.band--dark .device::after { border-color: var(--deep-line); background: var(--deep-panel); }

.device { padding: clamp(18px, 2.6vw, 30px); margin-top: var(--s5); }
.device--range { margin-top: var(--s5); }
.device--checker, .device--claims { margin-top: var(--s5); }

.quote-list { padding: clamp(20px, 2.6vw, 30px); margin-top: var(--s4); }
.device .quote-list {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin-top: var(--s5);
  border-top: 1px dashed var(--rule);
  padding-top: var(--s4);
}
.device .quote-list::before, .device .quote-list::after { display: none; }
.photo-fig, .layer-fig, .tag-fig { margin: 0; padding: 10px; }

/* ---------------------------------------------------------------- chips */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--stack { flex-direction: column; align-items: stretch; }
.chips--light .chip { background: transparent; border-color: var(--deep-line); color: var(--deep-text); }
.chips--light .chip[aria-selected="true"] { background: var(--cotton); border-color: var(--cotton); color: var(--ink); }

.chip {
  appearance: none;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cotton);
  border: 1px solid var(--ink);
  border-radius: 1px;
  padding: 9px 13px;
  min-height: 38px;
  cursor: pointer;
  transition: background .14s var(--ease), color .14s, transform .14s var(--ease);
}
.chip:hover { transform: translateY(-1px); }
.chip[aria-selected="true"] {
  background: var(--ink);
  color: var(--cotton);
  border-color: var(--ink);
}
.chip--row { text-align: left; width: 100%; padding-left: 14px; }
.chip--row[aria-selected="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--label); }
.chips--steps .chip { flex: 1 1 0; }

@media (max-width: 620px) {
  .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips--stack { grid-template-columns: 1fr; }
  .chips--steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips .chip { width: 100%; }
}

/* ---------------------------------------------------------------- panels */

.panels { margin-top: var(--s4); }
.panel[hidden] { display: none; }
.panel { animation: panel-in .28s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }

.panel-h {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0 0 var(--s2);
}
.panel-lede { margin: 0 0 var(--s3); color: var(--ink-soft); max-width: 54ch; }

.rows { margin: 0; display: grid; gap: 12px; }
.rows > div {
  display: grid;
  grid-template-columns: 158px 1fr;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}
.rows dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .09em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 4px;
}
@media (max-width: 620px) {
  .rows > div { grid-template-columns: 1fr; gap: 4px; }
  .rows dt { padding-top: 2px; }
  .range-read > div { grid-template-columns: 1fr; gap: 2px; }
}
.rows dd { margin: 0; }
.rows > div:last-child dd { color: var(--rust); }
.rows--light { color: var(--deep-text); }
.rows--light > div { border-top-color: var(--deep-line); }
.rows--light dt { color: var(--deep-soft); }
.rows--light > div:last-child dd { color: var(--rust-soft); }

/* ---------------------------------------------------------------- range board */

.range-board { margin-top: var(--s4); }
.range-scale {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em;
  color: var(--ink-soft);
  padding-bottom: 8px;
}
.range-track {
  position: relative;
  height: 62px;
  border: 1px solid var(--rule);
  background:
    linear-gradient(to right, var(--rule) 0 1px, transparent 1px) 25% 0 / 25% 100% repeat-x,
    var(--cotton);
}
.range-band {
  position: absolute;
  inset-block: 22px;
  left: var(--from);
  width: calc(var(--to) - var(--from));
  background: color-mix(in srgb, var(--indigo) 12%, transparent);
  border-left: 3px solid var(--indigo);
  border-right: 3px solid var(--indigo);
  transition: left .4s var(--ease), width .4s var(--ease);
}
.range-band::after {
  content: "";
  position: absolute; inset-block: 50% 50%;
  left: 0; right: 0;
  border-top: 1px solid var(--indigo);
}
.range-mark {
  position: absolute;
  bottom: -9px;
  left: var(--at);
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--indigo);
  background: var(--label);
  padding: 2px 5px;
  border: 1px solid var(--indigo);
  transition: left .4s var(--ease);
}
.range-mark[data-empty="true"] { color: var(--ink-soft); border-color: var(--rule); }

.range-read {
  margin: var(--s5) 0 0;
  display: grid;
  gap: 10px;
}
.range-read > div {
  display: grid; grid-template-columns: 150px 1fr; gap: 14px;
  border-top: 1px dashed var(--rule); padding-top: 10px;
}
.range-read dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-soft);
}
.range-read dd { margin: 0; }

.checks { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 10px; }
.checks label {
  display: flex; gap: 10px; align-items: flex-start;
  cursor: pointer;
}
.checks input {
  appearance: none;
  width: 16px; height: 16px; flex: none; margin-top: 5px;
  border: 1px solid var(--ink);
  background: var(--label);
  position: relative;
  cursor: pointer;
}
.checks input:checked { background: var(--indigo); border-color: var(--indigo); }
.checks input:checked::after {
  content: "";
  position: absolute; left: 4px; top: 1px;
  width: 5px; height: 9px;
  border-right: 2px solid var(--label);
  border-bottom: 2px solid var(--label);
  transform: rotate(40deg);
}
.checks input:checked + span { color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------------------------------------------------------------- claims (dark) */

.device--claims .panel { color: var(--deep-text); }
.claim {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 var(--s3);
  color: var(--cotton);
}
.source-note {
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.7;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--deep-soft);
  margin: var(--s4) 0 0;
  padding-top: var(--s3);
  border-top: 1px dashed var(--deep-line);
}

/* ---------------------------------------------------------------- figures */

.layer-fig svg, .tag-fig svg { width: 100%; height: auto; }
.layer-fig .lay { transition: fill .25s var(--ease), opacity .25s; }
.layer-fig .lay.is-active { fill: color-mix(in srgb, var(--indigo) 16%, var(--label)); }
.layer-fig .lay.is-dim { opacity: .55; }
.layer-fig svg text { transition: fill .25s; }

.photo-fig img {
  width: 100%; height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.9) contrast(1.02);
}
.photo-fig { padding: 10px; }
.photo-fig--wide { margin-top: var(--s5); }
.photo-fig--wide img { aspect-ratio: 21 / 9; }
@media (max-width: 720px) { .photo-fig--wide img { aspect-ratio: 4 / 3; } }

.end-fig { margin: var(--s6) 0 0; max-width: 380px; }
.end-fig svg { width: 100%; height: auto; }
.end-fig figcaption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  max-width: 34ch;
}

/* ---------------------------------------------------------------- lists */

.plain-list {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s3);
  max-width: 56ch;
}
.plain-list li {
  padding-left: 18px;
  position: relative;
  border-top: 1px dashed var(--rule);
  padding-top: var(--s3);
}
.plain-list li::before {
  content: "";
  position: absolute; left: 0; top: calc(var(--s3) + 8px);
  width: 7px; height: 7px;
  border: 1px solid var(--indigo);
  border-radius: 50%;
}
.plain-list--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
  max-width: none;
  margin-top: var(--s5);
}
@media (max-width: 720px) { .plain-list--2 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- faq */

.faq { margin-top: var(--s5); display: grid; gap: 12px; }
.faq details { padding: 6px 20px; }
.faq summary {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.015em;
  padding: 16px 0 16px 26px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  left: 0; top: 26px;
  width: 12px; height: 1.5px;
  background: var(--ink);
  transition: transform .2s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { margin: 0 0 18px 26px; color: var(--ink-soft); max-width: 62ch; }

/* ---------------------------------------------------------------- end + footer */

.end-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
@media (max-width: 900px) { .end-grid { grid-template-columns: 1fr; } }
.device--steps { margin-top: 0; }

.site-foot {
  border-top: 1px solid var(--ink);
  background: var(--panel);
  padding-block: clamp(40px, 6vw, 70px) 30px;
  position: relative;
}
.legend { max-width: 62ch; }
.legend-title {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 14px;
}
.legend ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px;
}
.legend li {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-soft);
}
.sym { color: var(--indigo); flex: none; }
.sym svg { width: 18px; height: 18px; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 54px);
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px dashed var(--rule);
}
.foot-cols h3 {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink);
  margin: 0 0 12px;
}
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-cols a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.foot-cols a:hover { color: var(--ink); }
.foot-areas { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.foot-mark {
  margin-top: clamp(40px, 6vw, 70px);
  border-top: 1px solid var(--ink);
  padding-top: 10px;
  overflow: hidden;
}
.foot-mark span {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 13.2vw, 9.6rem);
  line-height: .84;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.foot-mark .l2 { padding-left: .04em; }
.foot-mark em {
  font-family: var(--text);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -.03em;
  color: var(--indigo);
}
.foot-legal {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: var(--s4) 0 0;
}
.foot-legal a { color: var(--ink-soft); }

@media (max-width: 720px) {
  .foot-cols { grid-template-columns: 1fr; }
  .legend ul { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- mobile action bar */

.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--cotton);
  border-top: 1px solid var(--ink);
  z-index: 20;
}
.actionbar .btn { flex: 1 1 auto; --lift: 3px; padding: 12px 10px; }
@media (max-width: 720px) {
  .actionbar { display: flex; }
  body { padding-bottom: 74px; }
}

/* ---------------------------------------------------------------- reveal */

html.js .rv { opacity: 0; transform: translateY(16px); }
html.js .rv.in {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease), transform .7s var(--ease);
}
html.is-reduced-motion .rv { opacity: 1 !important; transform: none !important; }


/* ---- late corrections: must beat the base rules defined further up ---- */
@media (max-width: 620px) {
  .rows > div { grid-template-columns: 1fr; gap: 4px; }
  .range-read > div { grid-template-columns: 1fr; gap: 2px; }
  .checks { gap: 12px; }
  .device { padding: 16px; }
  .source-note { font-size: 9px; }
}

