/* Price Book Tools: shared styles.
   Palette from the trade: canary yellow input cells (the same cells as in the spreadsheets),
   manifold-gauge red and blue, deep navy ink on clean white. One type family, Archivo,
   used narrow and heavy for headlines and at normal width for reading. */

:root {
  --ink: #13293d;
  --ink-2: #2a4258;
  --muted: #56677a;
  --line: #d5dde4;
  --wash: #edf1f4;
  --page: #ffffff;
  --cell: #ffe45c;
  --cell-edge: #d4b51c;
  --cell-soft: #fff6c2;
  --hot: #c8102e;
  --hot-soft: #fde7ea;
  --cold: #0b63ce;
  --cold-soft: #e6f0fc;
  --ok: #0f7b4f;
  --ok-soft: #e3f4ec;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --narrow: 72;   /* wdth axis for headlines */

  --gutter: 16px;
  --max: 1120px;
  --radius-s: 6px;
  --radius-m: 10px;
  --shadow-sheet: 0 1px 0 rgba(19, 41, 61, .06), 0 18px 40px -18px rgba(19, 41, 61, .35);
}

@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; overflow-x: hidden; }
html, body { max-width: 100%; }
body { overflow-x: clip; overscroll-behavior-x: none; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cold); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cold); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--cell); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip: auto; clip-path: none; left: 12px; top: 12px; z-index: 100; background: var(--cell); color: var(--ink); padding: 8px 12px; border-radius: var(--radius-s); }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  text-wrap: balance;
  font-family: var(--font);
  font-variation-settings: "wdth" var(--narrow);
  font-weight: 800;
  letter-spacing: -.012em;
  line-height: 1.02;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(42px, 10.5vw, 84px); }
h2 { font-size: clamp(30px, 6vw, 46px); }
h3 { font-size: clamp(21px, 3.6vw, 25px); line-height: 1.15; font-weight: 750; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { flex: none; }
.brand-name {
  font-variation-settings: "wdth" 70; font-weight: 500; font-size: 22px; letter-spacing: -.01em; line-height: 1;
}
.brand-name b { font-weight: 850; }
.brand-mark { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px;
  padding: 10px 12px; border-radius: var(--radius-s); min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { background: var(--wash); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--cell); border-radius: 0; }
.nav .nav-buy { background: var(--ink); color: #fff; margin-left: 6px; }
.nav .nav-buy:hover { background: var(--ink-2); }
.nav a, .brand-name { white-space: nowrap; }
.nav .nav-only-s { display: none; }
@media (max-width: 760px) {
  .nav .nav-hide-s { display: none; }
  .nav .nav-only-s { display: inline-flex; }
}
.site-head .wrap > * { min-width: 0; }
.nav { flex: none; }
@media (max-width: 420px) {
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { font-size: 20px; }
  .bn-tools { display: none; }
  .nav a { padding: 10px 9px; font-size: 15px; }
  .nav .nav-buy { margin-left: 2px; }
}
@media (max-width: 350px) { .nav .nav-only-s { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 20px; border-radius: 8px;
  font: inherit; font-weight: 700; font-size: 16.5px; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-buy { background: var(--cell); color: var(--ink); border-color: var(--cell-edge); }
.btn-buy:hover { background: #ffd92e; text-decoration: none; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); text-decoration: none; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--wash); text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 480px) { .btn-row .btn { flex: 1 1 100%; } }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-wash { background: var(--wash); }
.section-ink { background: var(--ink); color: #dfe7ee; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-head { max-width: 40em; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head h2 { margin-bottom: 12px; }

/* ---------- Price book sheet (home hero) ---------- */
.sheet {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-sheet);
}
.sheet-tabs { position: absolute; top: -30px; right: 18px; display: flex; gap: 4px; }
.sheet-tabs span {
  display: block; padding: 6px 12px 10px; border-radius: 7px 7px 0 0; font-size: 13px; font-weight: 700;
  background: var(--wash); color: var(--muted); border: 1px solid var(--line); border-bottom: 0;
}
.sheet-tabs span.on { background: var(--cell); color: var(--ink); border-color: var(--cell-edge); }
.sheet-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 16px 18px 12px; border-bottom: 2px solid var(--ink);
}
.sheet-title { font-variation-settings: "wdth" 72; font-weight: 800; font-size: 20px; line-height: 1.1; }
.sheet-co { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet th {
  text-align: right; font-size: 12.5px; font-weight: 700; color: var(--muted);
  padding: 10px 12px 6px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.sheet th:first-child { text-align: left; padding-left: 18px; }
.sheet td { padding: 10px 12px; border-bottom: 1px solid #edf1f4; text-align: right; font-size: 16px; white-space: nowrap; }
.sheet td:first-child { text-align: left; white-space: normal; padding-left: 18px; font-size: 15px; line-height: 1.3; }
.sheet td:first-child small { display: block; color: var(--muted); font-size: 12.5px; }
.sheet tr:last-child td { border-bottom: 0; }
.sheet td.std { font-weight: 800; font-size: 17px; }
.sheet .flash { animation: flash .5s ease; }
@keyframes flash { from { background: var(--cell-soft); } to { background: transparent; } }
@media (max-width: 520px) { .sheet .col-ah { display: none; } .sheet td, .sheet th { padding-left: 8px; padding-right: 10px; } }

.rate-dial {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 16px;
  padding: 14px 18px 16px; background: var(--cell-soft); border-top: 1px solid var(--cell-edge);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
}
.rate-dial label { font-weight: 700; font-size: 15px; }
.rate-dial output { font-variation-settings: "wdth" 72; font-weight: 850; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.rate-dial input[type="range"] { grid-column: 1 / -1; width: 100%; }
.rate-dial .small { grid-column: 1 / -1; margin: 0; color: var(--ink-2); }

/* Range input, styled as a yellow cell handle */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 44px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--ink) var(--fill, 50%), #cfd8df var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: #cfd8df; }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 7px;
  background: var(--cell); border: 2px solid var(--ink); box-shadow: 0 2px 6px rgba(19, 41, 61, .3);
}
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 7px; background: var(--cell); border: 2px solid var(--ink); }

/* ---------- Home hero ---------- */
.hero { padding: clamp(36px, 7vw, 84px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.hero h1 { margin-bottom: 20px; max-width: 9.5em; }
.hero .lede { margin-bottom: 28px; }
.hero-proof { margin-top: 22px; font-size: 15px; color: var(--muted); }

/* ---------- Tool list (home) ---------- */
.tools { border-top: 2px solid var(--ink); }
.tool {
  display: grid; grid-template-columns: 1fr; gap: 6px 32px; padding: 24px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
@media (min-width: 800px) { .tool { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; } }
.tool h3 { font-size: clamp(24px, 4vw, 32px); }
.tool p { margin: 0; color: var(--ink-2); }
.tool .go {
  justify-self: start; font-weight: 700; color: var(--ink); background: var(--cell); border: 1px solid var(--cell-edge);
  border-radius: var(--radius-s); padding: 8px 14px; margin-top: 8px; white-space: nowrap;
}
@media (min-width: 800px) { .tool .go { margin-top: 0; } }
.tool:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.tool .for { font-size: 14px; color: var(--muted); }

/* ---------- Price chain (sequence) ---------- */
.chain { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .chain { grid-template-columns: repeat(4, 1fr); } }
.link {
  position: relative; padding: 22px 22px 24px 0; border-top: 1px solid rgba(255, 255, 255, .25);
}
@media (min-width: 900px) { .link { padding: 26px 26px 8px 0; } .link + .link { padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, .18); } }
.link h3 { color: #fff; font-size: 23px; margin-bottom: 8px; }
.link h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 6px; background: var(--cell); color: var(--ink); font-size: 17px; vertical-align: 3px; }
.link p { margin: 0 0 10px; font-size: 16px; color: #c9d5df; }
.link code { display: block; font-family: var(--font); font-size: 15px; color: #fff; background: rgba(255, 255, 255, .07); border-radius: var(--radius-s); padding: 8px 10px; }
.link a { color: var(--cell); }

/* ---------- Product block ---------- */
.product { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; } }
.product > * { min-width: 0; }
.product-fig { margin: 0; }
.product-fig figcaption { margin-top: 12px; }
.product-shot { display: block; border-radius: var(--radius-m); border: 1px solid var(--line); box-shadow: var(--shadow-sheet); overflow: hidden; background: #fff; }
.product-shot img { width: 100%; }
@media (min-width: 960px) { .swipe { display: none; } }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 10px 0 16px; }
.price-line .display { font-size: 52px; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; }
.checks li { position: relative; padding: 7px 0 7px 32px; border-bottom: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 12px; width: 18px; height: 18px; border-radius: 4px;
  background: var(--cell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%2313293d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  border: 1px solid var(--cell-edge);
}
.also { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 800px) { .also { grid-template-columns: 1fr 1fr; } }
.also > div { padding: 22px; border-radius: var(--radius-m); background: #fff; border: 1px solid var(--line); }
.also h3 { margin-bottom: 8px; }
.also p { color: var(--ink-2); }
.also .soon { background: transparent; border-style: dashed; }

/* ---------- Calculator pages ---------- */
.page-head { padding: clamp(28px, 6vw, 64px) 0 clamp(20px, 3vw, 32px); }
.crumbs { font-size: 14.5px; margin-bottom: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-head h1 { font-size: clamp(38px, 8.5vw, 68px); margin-bottom: 16px; max-width: 13em; }

.calc > *, .hero-grid > *, .field > *, .foot-grid > * { min-width: 0; }
.calc { display: grid; gap: 24px; align-items: start; padding-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 36px; } .calc .results { position: sticky; top: 84px; } }

.inputs { border-top: 2px solid var(--ink); }
.group { padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
.group > h2 { font-size: 22px; font-variation-settings: "wdth" 80; font-weight: 750; margin-bottom: 4px; letter-spacing: 0; }
.group > p { font-size: 15px; color: var(--muted); margin: 0 0 6px; }

.field { display: grid; grid-template-columns: minmax(0, 1fr) 9.2rem; gap: 6px 14px; align-items: center; padding: 10px 0; }
.field + .field { border-top: 1px dashed #e2e8ed; }
.field label { font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
@media (max-width: 380px) { .field { grid-template-columns: minmax(0, 1fr) 8rem; } }

.cell { position: relative; display: flex; align-items: center; }
.cell input {
  width: 100%; height: 50px; padding: 0 12px; font: inherit; font-size: 19px; font-weight: 650;
  font-variant-numeric: tabular-nums; text-align: right; color: var(--ink);
  background: var(--cell); border: 1px solid var(--cell-edge); border-radius: var(--radius-s);
  -moz-appearance: textfield; appearance: textfield;
}
.cell input::-webkit-outer-spin-button, .cell input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cell input:focus { outline: 3px solid var(--cold); outline-offset: 1px; background: #fff3a6; }
.cell .pre, .cell .suf { position: absolute; font-size: 16px; font-weight: 600; color: #6b5a00; pointer-events: none; }
.cell .pre { left: 11px; }
.cell .suf { right: 11px; }
.cell.has-pre input { padding-left: 26px; }
.cell.has-suf input { padding-right: 34px; }
.cell.has-suf.wide-suf input { padding-right: 44px; }

.results {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-m); overflow: hidden;
}
.answer { padding: 20px 20px 18px; background: var(--ink); color: #fff; }
.answer .label { font-size: 15.5px; color: #c9d5df; margin: 0 0 4px; }
.answer .big { font-variation-settings: "wdth" 70; font-weight: 850; font-size: clamp(54px, 13vw, 76px); line-height: .95; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.answer .per { font-size: 22px; font-weight: 650; color: #c9d5df; margin-left: 4px; }
.answer .sub { margin: 10px 0 0; font-size: 15px; color: #c9d5df; }

.breakdown { padding: 6px 20px 4px; }
.line { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #edf1f4; font-size: 16px; }
.line:last-child { border-bottom: 0; }
.line b { font-variant-numeric: tabular-nums; font-weight: 750; white-space: nowrap; }
.line.key { font-weight: 700; }
.line.key b { font-size: 19px; }

.stack { margin: 6px 20px 4px; }
.stack-bar { display: flex; height: 16px; border-radius: 4px; overflow: hidden; background: var(--wash); }
.stack-bar span { display: block; height: 100%; transition: width .25s ease; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.stack-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.c-labor { background: var(--cold); }
.c-oh { background: #7e93a8; }
.c-profit { background: var(--ok); }
.c-parts { background: #b98a00; }

.verdict { margin: 14px 20px 0; padding: 12px 14px; border-radius: var(--radius-s); font-size: 15.5px; line-height: 1.45; font-weight: 600; }
.verdict.ok { background: var(--ok-soft); color: var(--ok); }
.verdict.bad { background: var(--hot-soft); color: var(--hot); }
.verdict.info { background: var(--wash); color: var(--ink-2); font-weight: 500; }

.next { padding: 18px 20px 20px; margin-top: 14px; border-top: 1px solid var(--line); background: #fafbfc; }
.next p { font-size: 15px; color: var(--ink-2); margin-bottom: 12px; }
.next .btn { width: 100%; }
.next .btn + .btn { margin-top: 10px; }

/* Sticky answer bar on phones */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--ink); color: #fff; box-shadow: 0 -8px 24px rgba(19, 41, 61, .25);
  transform: translateY(110%); transition: transform .2s ease;
}
.dock.show { transform: translateY(0); }
.dock .dl { font-size: 13.5px; color: #c9d5df; line-height: 1.2; }
.dock .dv { font-variation-settings: "wdth" 70; font-weight: 850; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.dock a { flex: none; min-height: 44px; padding: 10px 14px; border-radius: 8px; background: var(--cell); color: var(--ink); font-weight: 700; text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; }
@media (min-width: 900px) { .dock { display: none; } }

/* Segmented control */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--wash); border-radius: 9px; margin: 8px 0 4px; }
.seg button {
  min-height: 44px; border: 0; border-radius: 7px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; padding: 6px 8px; line-height: 1.2;
}
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(19, 41, 61, .18); }

/* ---------- Long-form content ---------- */
.prose > * { max-width: 42em; }
.prose > .table-scroll, .prose > .formula { max-width: 46em; }
.prose h2 { font-size: clamp(30px, 5vw, 40px); margin: 56px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 8px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.formula {
  margin: 18px 0 22px; padding: 4px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
}
.formula div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; border-bottom: 1px dashed #dfe5ea; }
.formula div:last-child { border-bottom: 0; }
.formula dt, .formula .k { font-weight: 700; }
.formula .v { color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .formula div { grid-template-columns: 15em minmax(0, 1fr); gap: 20px; } }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0 24px; }
.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 16px; }
.data th { text-align: left; font-size: 14px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.data td { padding: 10px; border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { .data { font-size: 14.5px; } .data th { font-size: 12.5px; padding: 8px 5px; white-space: normal; } .data td { padding: 9px 5px; } .data th:first-child, .data td:first-child { padding-left: 0; } .data th:last-child, .data td:last-child { padding-right: 0; } }
.data td.r, .data th.r { text-align: right; }
.data tr.total td { font-weight: 800; border-bottom: 2px solid var(--ink); }

.callout { margin: 24px 0; padding: 20px 22px; border-radius: var(--radius-m); background: var(--cell-soft); border: 1px solid var(--cell-edge); }
.callout p:last-child { margin-bottom: 0; }
.callout .btn { margin-top: 6px; }

details.faq { border-bottom: 1px solid var(--line); }
details.faq:first-of-type { border-top: 2px solid var(--ink); }
details.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; font-size: 18px; line-height: 1.35; min-height: 44px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s ease;
}
details.faq[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
details.faq > div { padding: 0 0 18px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #b9c7d3; padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 15px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-foot h2 { color: #fff; font-size: 17px; font-variation-settings: "wdth" 100; font-weight: 700; letter-spacing: 0; margin-bottom: 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 0; }
.site-foot a { color: #fff; text-decoration: none; display: inline-block; padding: 6px 0; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .brand { color: #fff; margin-bottom: 12px; }
.site-foot .fine { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13.5px; }

@media (max-width: 899px) { body.has-dock .site-foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Install as app ---------- */
.install-strip { display: grid; gap: 18px; align-items: center; padding: 22px; border-radius: var(--radius-m); background: var(--ink); color: #dfe7ee; }
.install-strip h2 { color: #fff; font-size: clamp(26px, 5vw, 34px); margin-bottom: 6px; }
.install-strip p { margin: 0; }
.install-strip .app-ico { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
@media (min-width: 760px) { .install-strip { grid-template-columns: auto 1fr auto; padding: 26px 30px; } }
.site-foot .install-btn { margin-top: 6px; }
.install-sheet { position: fixed; inset: 0; z-index: 80; background: rgba(19, 41, 61, .55); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.install-card { width: 100%; max-width: 440px; background: #fff; color: var(--ink); border-radius: 16px; padding: 22px 22px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.install-card h2 { font-size: 26px; margin-bottom: 12px; }
.install-card ol { padding-left: 1.2em; margin: 0 0 18px; }
.install-card li { margin-bottom: 8px; }
.install-card svg { vertical-align: -3px; color: var(--cold); }
.install-card .btn { width: 100%; }
@media (display-mode: standalone) { .install-strip, .install-btn { display: none !important; } }

.site-foot .bn-tools { display: inline !important; }
