/* Quote Engine pages. Tokens, fonts, palettes, nav, hero, sheet heads, buttons, figure frame,
   access table, contact band and footer all come from /styles.css. This file holds only the
   components the home page does not have, written with the same tokens. */

/* ---------- sub-page hero ---------- */
.hero--page .hero__title { max-width: none; }
.hero--page .hero__title .acc { display: block; color: var(--red); }
.hero__kicker {
  margin-bottom: clamp(14px, 1.6vw, 20px);
  font-family: var(--f-label);
  font-size: .9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--graphite);
}
.hero--page .hero__lede { max-width: 40rem; }
.hero--page .schematic { margin-top: clamp(40px, 5vw, 64px); }

/* Fig. 1 timeline (drawn with the site's .s-* classes; these add its few extras) */
.tl .schematic__svg--tall { max-width: 400px; }
.tl-ext { stroke: var(--rule-strong); stroke-width: 1; }
.tl-open { stroke-width: 2; }
.tl-end { fill: var(--red); }
.tl-soft { stroke: var(--rule-strong); stroke-width: 2; fill: none; }
.tl-soft--dash { stroke-dasharray: 4 8; }
.tl-soft-dot { fill: var(--rule-strong); }
.tl .tl-dim { font-size: 12.5px; letter-spacing: .06em; }

/* ---------- layout helpers ---------- */
.section--band { padding: clamp(56px, 7vw, 96px) 0; }
.section--band .lead-grid { margin-bottom: 0; }
.split { display: grid; gap: 28px; }
.split__main { min-width: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 88px); align-items: start; }
  .split > .h2 { position: sticky; top: calc(var(--nav-h) + 24px); }
}
.fine { margin-top: 16px; max-width: 62ch; font-size: var(--fs-small); line-height: 1.55; color: var(--graphite); }

/* ---------- ruled rows (what you get, fit, rules, leaks) ---------- */
.rows { border-top: 1.5px solid var(--ink); }
.row { display: grid; gap: 6px; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.row > * { min-width: 0; }
.row h3 { font-family: var(--f-display); font-size: 1.625rem; line-height: 1.05; font-weight: 700; text-wrap: balance; }
.row p { max-width: 62ch; color: var(--graphite); }
@media (min-width: 760px) {
  .row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px clamp(24px, 4vw, 64px); }
  .split__main .row { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1100px) { .split__main .row { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 8px 28px; } }

/* ---------- three steps ---------- */
.steps { display: grid; border-top: 1.5px solid var(--ink); }
.step { display: grid; gap: 12px; align-content: start; padding: 26px 0 30px; border-bottom: 1px solid var(--rule); }
.step .h3 { font-size: 1.875rem; line-height: 1.05; }
.step p:not(.step__price) { color: var(--graphite); max-width: 46ch; }
.step__price { font-family: var(--f-display); font-size: 2.25rem; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.step__price small { display: block; margin-bottom: 6px; font-family: var(--f-label); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); color: var(--muted); }
.steps__note { margin-top: clamp(32px, 4vw, 48px); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); border-bottom: 1px solid var(--rule); }
  .step { position: relative; border-bottom: 0; padding: 30px 0 36px; }
  .step + .step::before { content: ""; position: absolute; top: 30px; bottom: 36px; left: calc(clamp(24px, 3vw, 48px) / -2); width: 1px; background: var(--rule); }
}

/* ---------- price table (on the site's .access) ---------- */
.access--price td.price { padding-right: 32px; font-family: var(--f-display); font-size: 1.375rem; line-height: 1.1; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.access .sub { display: block; margin-top: 4px; font-size: var(--fs-small); color: var(--muted); }

/* ---------- free tools list ---------- */
.tools { border-top: 1.5px solid var(--ink); }
.tool { display: grid; gap: 8px 24px; align-items: baseline; padding: 24px 0 26px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.tool__k { font-family: var(--f-label); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); color: var(--red); }
.tool h3 { font-family: var(--f-display); font-size: 1.875rem; line-height: 1.05; font-weight: 700; }
.tool p { margin-top: 6px; max-width: 56ch; font-size: var(--fs-small); color: var(--graphite); }
.tool__go { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--f-label); font-size: .9375rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); transition: color .15s ease; }
.tool__go::after { content: ""; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.tool:hover h3 { text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tool:hover .tool__go { color: var(--red); }
@media (min-width: 700px) { .tool { grid-template-columns: 5rem minmax(0, 1fr) auto; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 4px 12px 0; font-family: var(--f-display); font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); line-height: 1.1; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--red-deep); }
.faq details p { max-width: 64ch; padding: 0 0 22px; color: var(--graphite); }

/* ---------- samples: a drafted reply and the Monday report, drawn as documents ---------- */
.samples { display: grid; gap: clamp(36px, 4vw, 48px) clamp(24px, 3vw, 48px); align-items: start; }
@media (min-width: 1000px) { .samples { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.sample { margin: 0; min-width: 0; }
.sample__cap { margin-top: 12px; max-width: 60ch; font-size: .9375rem; line-height: 1.5; color: var(--graphite); }
.sample__cap .fig { font-size: .8125rem; }
.doc { position: relative; background: var(--fig); border: 1px solid var(--ink); }
.doc::before, .doc::after { content: ""; position: absolute; width: 14px; height: 14px; border: solid var(--acc); pointer-events: none; }
.doc::before { top: -1px; left: -1px; border-width: 3px 0 0 3px; }
.doc::after { bottom: -1px; right: -1px; border-width: 0 3px 3px 0; }
.doc__bar, .doc__k, .doc__meta dt, .kpis__l, .chip {
  font-family: var(--f-label); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track);
}
.doc__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px clamp(16px, 2vw, 22px); border-bottom: 1.5px solid var(--ink); font-size: .8125rem; }
.doc__state { display: inline-flex; align-items: center; gap: 8px; color: var(--red); }
.doc__state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .2); }
.doc__meta { padding: 4px clamp(16px, 2vw, 22px); border-bottom: 1px solid var(--rule); }
.doc__meta div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 7px 0; }
.doc__meta div + div { border-top: 1px solid var(--rule); }
.doc__meta dt { font-size: .75rem; color: var(--muted); }
.doc__meta dd { font-size: var(--fs-small); line-height: 1.4; }
.doc__body { padding: 18px clamp(16px, 2vw, 22px) 20px; font-size: 1.0625rem; line-height: 1.6; }
.doc__body p + p { margin-top: .85em; }
.ref { margin-left: 3px; padding: 0 5px; font-family: var(--f-label); font-size: .6875rem; font-weight: 600; line-height: 1; vertical-align: .55em; color: var(--red); border: 1px solid currentColor; border-radius: 999px; }
.doc__rules { padding: 16px clamp(16px, 2vw, 22px) 18px; border-top: 1px dashed var(--rule-strong); }
.doc__k { margin-bottom: 8px; font-size: .75rem; color: var(--muted); }
.doc__rules ol { counter-reset: r; }
.doc__rules li { counter-increment: r; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 7px 0; font-size: var(--fs-small); line-height: 1.45; color: var(--graphite); }
.doc__rules li + li { border-top: 1px solid var(--rule); }
.doc__rules li::before { content: counter(r); display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; font-family: var(--f-label); font-size: .75rem; font-weight: 600; color: var(--red); border: 1px solid currentColor; border-radius: 50%; }
.doc__rules--plain li::before { color: var(--ink); }
.doc__foot { display: grid; gap: 10px; padding: 14px clamp(16px, 2vw, 22px) 16px; border-top: 1.5px solid var(--ink); background: var(--paper-2); font-size: .9375rem; line-height: 1.45; color: var(--graphite); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; font-size: .75rem; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 2px; }
.chip--ink { color: var(--paper); background: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpis li { display: grid; gap: 6px; align-content: start; padding: 14px clamp(14px, 2vw, 20px) 16px; border-bottom: 1px solid var(--rule); }
.kpis li:nth-child(odd) { border-right: 1px solid var(--rule); }
.kpis__n { font-family: var(--f-display); font-size: 2.5rem; line-height: .95; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpis__n small { font-size: .5em; color: var(--muted); }
.kpis__n--acc { color: var(--red); }
.kpis__l { font-size: .75rem; line-height: 1.35; color: var(--graphite); }
.kpis + .doc__rules { border-top: 0; }

/* ---------- buttons, contact block ---------- */
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: .875rem; }
.contact__act { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.contact__who { max-width: 36rem; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--rule-strong); font-size: var(--fs-small); line-height: 1.55; color: var(--graphite); }
.contact__sub { font-size: var(--fs-body); }
.contact__or { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--rule); }
.copied { font-family: var(--f-label); font-size: .875rem; font-weight: 600; letter-spacing: .04em; color: var(--ok); }
.copied:empty { display: none; }

/* ---------- checklist ---------- */
.checks { border-top: 1.5px solid var(--ink); }
.checks li { border-bottom: 1px solid var(--rule); }
.checks label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; align-items: start; min-height: 44px; padding: 18px 0 19px; cursor: pointer; }
.checks input { appearance: none; -webkit-appearance: none; display: grid; place-content: center; width: 24px; height: 24px; margin: 2px 0 0; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 2px; cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease; }
.checks input::after { content: ""; width: 12px; height: 12px; background: var(--paper); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 20%, 86% 6%, 38% 72%); transform: scale(0); transition: transform .12s ease; }
.checks input:checked { background: var(--ink); }
.checks input:checked::after { transform: scale(1); }
.checks label:hover input { box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .28); }
.checks input:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.checks a { font-weight: 600; text-decoration-color: var(--acc); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.why { display: block; margin-top: 4px; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.why--tag { font-family: var(--f-label); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); }

/* ---------- live tally (score, parts, calculator results) ---------- */
.tally { display: grid; margin-top: clamp(32px, 4vw, 48px); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.tally__parts { display: contents; }
.tally__cell, .tally > li, .tally__parts > li { display: grid; grid-template-columns: 7.4rem minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 14px 0 15px; border-top: 1px solid var(--rule); }
.tally > :first-child { border-top: 0; }
.tally__n { font-family: var(--f-display); font-size: 3rem; line-height: .92; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tally__n--acc { color: var(--red); }
.tally__l { max-width: 14rem; font-family: var(--f-label); font-size: .8125rem; font-weight: 500; line-height: 1.4; text-transform: uppercase; letter-spacing: var(--track); color: var(--graphite); text-wrap: balance; }
.tally--1 { margin-top: 28px; }
@media (min-width: 900px) {
  .tally { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .tally__cell, .tally > li, .tally__parts > li { position: relative; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; padding: 18px 16px 24px 20px; border-top: 0; border-left: 1px solid var(--rule); }
  .tally__cell::before, .tally > li::before, .tally__parts > li::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 14px; background: var(--ink); }
  .tally > :first-child { padding-left: 0; border-left: 0; }
  .tally > :first-child::before { display: none; }
  .tally__n { font-size: clamp(2.6rem, 1rem + 3vw, 4.25rem); }
}
@media (min-width: 900px) and (max-width: 1100px) { .split .tally__n { font-size: 2.5rem; } }
.verdict { max-width: 46ch; margin-top: 24px; padding: 2px 0 2px 18px; border-left: 3px solid var(--acc); font-size: var(--fs-intro); line-height: 1.4; }
.leaks { margin-top: clamp(40px, 5vw, 64px); }
.leaks .rows { margin-top: 16px; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 24px clamp(20px, 3vw, 40px); padding-top: 24px; border-top: 1.5px solid var(--ink); }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-family: var(--f-label); font-size: .8125rem; font-weight: 600; line-height: 1.35; text-transform: uppercase; letter-spacing: var(--track); color: var(--muted); }
.field input { width: 100%; min-width: 0; min-height: 56px; padding: 0 14px; font-family: var(--f-display); font-size: 2rem; font-weight: 700; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 2px; font-variant-numeric: tabular-nums; }
.field input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.field .hint { font-size: .9375rem; line-height: 1.4; color: var(--muted); }

/* ---------- message templates ---------- */
.tpl { display: grid; gap: 20px clamp(28px, 4vw, 72px); padding: 26px 0 40px; border-top: 1.5px solid var(--ink); }
.tpl:last-child { border-bottom: 1px solid var(--rule); }
.tpl__head { display: grid; gap: 8px; align-content: start; }
.tpl__head h3 { font-family: var(--f-display); font-size: 1.875rem; line-height: 1.05; font-weight: 700; text-wrap: balance; }
.tpl__note { font-family: var(--f-label); font-size: .8125rem; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: var(--track); color: var(--muted); }
.tpl__body { display: grid; gap: 14px; min-width: 0; }
.tpl__act { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.tpl__act + .msg { margin-top: 10px; }
.msg { position: relative; max-width: 72ch; margin: 0; padding: 20px 22px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--fig); border: 1px solid var(--ink); }
.msg::before, .msg::after { content: ""; position: absolute; width: 14px; height: 14px; border: solid var(--acc); }
.msg::before { top: -1px; left: -1px; border-width: 3px 0 0 3px; }
.msg::after { bottom: -1px; right: -1px; border-width: 0 3px 3px 0; }
.msg--sms { font-family: var(--f-label); font-weight: 500; font-size: 1.0625rem; }
@media (min-width: 960px) { .tpl { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .tpl__head { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; } }

/* ---------- title block: page name above the Sheet switch, Contact cell ---------- */
.titleblock__page { display: block; margin-bottom: 8px; font-family: var(--f-display); font-size: 1.375rem; font-weight: 700; line-height: 1.1; }
.titleblock--page a { text-decoration-color: var(--rule-strong); text-underline-offset: 4px; overflow-wrap: anywhere; }
@media (max-width: 759px) {
  .titleblock--page > :nth-child(2), .titleblock--page > :nth-child(3) { grid-column: 1 / -1; border-left: 0; }
}
@media (min-width: 760px) and (max-width: 1159px) { .titleblock--page { grid-template-columns: 2fr 2fr 1fr; } }
@media (min-width: 1160px) { .titleblock--page { grid-template-columns: 2fr 1.9fr .9fr auto; } }
.leaks > h3 { font-family: var(--f-display); font-size: 1.875rem; line-height: 1.05; font-weight: 700; }
@media (max-width: 899px) { .tally--3 > li { grid-template-columns: minmax(0, 1fr); gap: 6px; } .tally--3 .tally__l { max-width: none; } }
