/* /host (and its 6-step qualifier), /operators and /host-terms. Tokens and shared components: styles.css.
   The qualifier's class names and ids are read by scripts/host-form.js: restyle freely, don't rename. */

/* ---------------------------------------------------------------- page hero */
.hero { padding-block: clamp(2.5rem, 1.25rem + 4.5vw, 5rem) clamp(3rem, 2rem + 4vw, 5rem); }
.host-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7) var(--s-8); align-items: end; }
.host-hero__copy .lead { margin-top: var(--s-5); max-width: 42ch; }
.host-hero__copy .btn { margin-top: var(--s-6); }
.host-hero--center { align-items: center; }
.card-contact { border-top: 2px solid var(--text); padding-top: var(--s-5); }
.card-contact__q { font-size: 1.1875rem; font-stretch: 106%; font-weight: 620; line-height: 1.45; color: var(--text); max-width: 34ch; }
.card-contact .person { margin-top: var(--s-5); }
@media (max-width: 900px) { .host-hero { grid-template-columns: minmax(0, 1fr); } }

/* heading column beside a sheet */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-6) var(--s-8); }
.split__head { position: sticky; top: 104px; align-self: start; }
.split__head p { margin-top: var(--s-4); color: var(--text-2); max-width: 34ch; }
.split__head .link-arrow { margin-top: var(--s-3); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split__head { position: static; } }

/* comparison */
.compare { margin-top: var(--s-7); }
.compare .table th[scope="row"] { font-weight: 700; width: 24%; color: var(--text); }
.compare .table td:last-child { color: var(--text); font-weight: 560; background: color-mix(in srgb, var(--tint) 55%, transparent); }
.compare .table thead th:last-child { background: var(--btn-bg); color: var(--btn-text); }
.compare-note { margin-top: var(--s-4); max-width: 70ch; }
@media (max-width: 640px) {
  .compare .table thead { display: none; }
  .compare .table, .compare .table tbody, .compare .table tr, .compare .table th, .compare .table td { display: block; width: 100%; }
  .compare .table tr { border-top: 2px solid var(--text); padding: var(--s-3) 0; }
  .compare .table th[scope="row"] { width: 100%; border: 0; padding: var(--s-2) 0; font-size: 1.0625rem; }
  .compare .table td { border: 0; padding: var(--s-2) 0 var(--s-2) var(--s-3); }
  .compare .table td:first-of-type::before { content: "Going direct: "; font-weight: 700; color: var(--text-muted); }
  .compare .table td:last-child { background: none; padding-left: var(--s-3); font-weight: 650; }
  .compare .table td:last-child::before { content: "With VendFynd: "; font-weight: 700; color: var(--accent-text); }
}

/* fit */
.fit { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-7); align-items: center; }
.fit__fig { max-width: 480px; }
.fit .lead { margin-top: var(--s-4); }
.fit-list { margin: var(--s-4) 0 var(--s-5); padding: 0; list-style: none; border-top: 2px solid var(--text); }
.fit-list li { padding: var(--s-3) 0 var(--s-3) var(--s-6); border-bottom: 1px solid var(--rule); position: relative; }
.fit-list li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.fit__fig { margin: 0; }
@media (max-width: 900px) { .fit { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- qualifier */
.qualifier { background: var(--bg); }
.qualifier__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-6) var(--s-8); align-items: start; }
.qualifier__intro { position: sticky; top: 104px; }
.qualifier__intro .lead { margin-top: var(--s-4); }
.q-facts { margin-top: var(--s-5); border-top: 2px solid var(--text); }
.q-facts li { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); font-weight: 620; }
/* Phones: the card comes straight after the heading and lead, and the three facts move below it, so a visitor who
   lands on /host#qualifier sees the first question without another scroll. */
@media (max-width: 900px) {
  .qualifier__grid { grid-template-columns: minmax(0, 1fr); }
  .qualifier__intro { position: static; display: contents; }
  .qualifier__intro h2 { order: 1; } .qualifier__intro .lead { order: 2; margin-top: calc(-1 * var(--s-4)); } .q-card { order: 3; } .q-facts { order: 4; margin-top: 0; }
}

.q-card { background: var(--surface); border: 1.5px solid var(--text); border-radius: var(--r-doc); padding: clamp(1.25rem, .8rem + 2vw, 2.25rem); box-shadow: var(--stack); scroll-margin-top: 88px; }
.q-progress { height: 4px; background: var(--tint-2); overflow: hidden; }
.q-progress-bar { height: 100%; width: 16.66%; background: var(--accent-text); transition: width 360ms var(--ease-out); }
.q-stepcount { font-size: .875rem; color: var(--text-muted); margin: var(--s-3) 0 var(--s-5); font-weight: 650; font-variant-numeric: tabular-nums; }
.q-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-legend { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-stretch: 110%; font-weight: 760; line-height: 1.15; letter-spacing: -.01em; color: var(--text); margin-bottom: var(--s-5); padding: 0; }
.q-label { font-weight: 650; font-size: 1rem; color: var(--text); margin: var(--s-5) 0 var(--s-2); }
.q-hint, .q-opt { font-weight: 450; color: var(--text-muted); font-size: .875rem; }
.q-hint::before { content: " · "; }

/* Columns are sized in rem, so large text drops the grid to fewer (then one) columns instead of clipping labels. */
.q-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: var(--s-2); }
.q-tiles.q-tiles-1 { grid-template-columns: minmax(0, 1fr); }
.q-pills { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.q-tile, .q-pill { position: relative; cursor: pointer; }
.q-tile input, .q-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-tile span, .q-pill span {
  display: flex; align-items: center; min-height: 52px; padding: .65rem .9rem; border: 1.5px solid var(--rule-strong); border-radius: var(--r-ctl);
  font-size: .9375rem; font-weight: 560; color: var(--text); background: var(--surface); line-height: 1.25; overflow-wrap: anywhere; hyphens: auto;
  transition: border-color var(--t-hover), background-color var(--t-hover), transform var(--t-press);
}
.q-pill span { justify-content: center; min-width: 5rem; font-variant-numeric: tabular-nums; }
.q-tile:hover span, .q-pill:hover span { border-color: var(--accent-text); background: var(--tint); }
.q-tile:active span, .q-pill:active span { transform: scale(.985); }
.q-tile input:checked + span, .q-pill input:checked + span { border-color: var(--accent-text); background: var(--tint-2); color: var(--on-tint); font-weight: 700; box-shadow: inset 0 0 0 1px var(--accent-text); }
.q-tile input:focus-visible + span, .q-pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.q-invalid .q-tile span, .q-invalid .q-pill span { border-color: var(--danger); }

.q-check { display: flex; gap: .7rem; align-items: flex-start; margin-top: var(--s-4); font-size: .9375rem; color: var(--text-2); cursor: pointer; }
/* .q-check input: the shared custom checkbox in styles.css */

.q-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
@media (min-width: 640px) { .q-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); } .q-span-2 { grid-column: 1 / -1; } }
.q-field { margin-top: var(--s-1); }
.q-other { margin-top: var(--s-4); }
.q-field label { display: block; font-size: .9375rem; font-weight: 650; margin-bottom: var(--s-2); color: var(--text); }
.q-field input, .q-field textarea { width: 100%; padding: .7rem .9rem; border: 2px solid var(--rule-strong); border-radius: var(--r-ctl); font-size: 1rem; min-height: 48px; background: var(--surface); color: var(--text); transition: border-color var(--t-hover), box-shadow var(--t-hover); }
.q-field input:focus, .q-field textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--tint-2); }
.q-field input::placeholder, .q-field textarea::placeholder { color: var(--text-muted); opacity: .85; }
.q-field input.q-bad, .q-bad, .q-field [aria-invalid="true"] { border-color: var(--danger) !important; }
.q-msg { color: var(--danger); font-size: .875rem; font-weight: 600; margin-top: var(--s-1); }

.q-consent { margin-top: var(--s-5); padding: var(--s-4); background: var(--tint); border-radius: var(--r-doc); }
.q-consent .q-check:first-child { margin-top: 0; }
.q-fine { font-size: .8125rem; color: var(--text-muted); margin-top: var(--s-3); line-height: 1.55; }
.q-fine a { color: inherit; }
.q-consent .q-fine { color: var(--text-2); }
.q-turnstile { margin-top: var(--s-4); max-width: 100%; }
/* Operator form spam check: takes no room while Turnstile stays invisible; a shown checkbox sits above the button. */
.form-turnstile { max-width: 100%; }
.form-turnstile:focus { outline: none; }
.form-turnstile:has(iframe) { margin-bottom: var(--s-4); }
.q-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.q-error { margin-top: var(--s-4); border: 1.5px solid var(--danger); background: var(--danger-bg); color: var(--danger); padding: var(--s-3) var(--s-4); border-radius: var(--r-ctl); font-size: .9375rem; font-weight: 600; }

.q-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.q-back { background: none; border: 0; color: var(--accent-text); font-weight: 650; min-height: 48px; padding: 0 var(--s-3); cursor: pointer; border-radius: var(--r-ctl); }
.q-back:hover { background: var(--tint); }
.q-back[disabled] { opacity: .55; cursor: wait; }
.q-next { margin-left: auto; min-width: min(9rem, 100%); }

.q-result { outline: none; }
.q-result-kicker { font-size: .875rem; font-weight: 700; color: var(--text-muted); }
.q-result-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-stretch: 120%; font-weight: 820; letter-spacing: -.02em; line-height: 1; margin: var(--s-2) 0 var(--s-4); }
.q-result[data-result="great"] .q-result-title { color: var(--ok); }
.q-result[data-result="likely"] .q-result-title { color: var(--accent-text); }
.q-result[data-result="check"] .q-result-title { color: var(--caution); }
.q-result-body { font-size: 1.125rem; color: var(--text-2); }
.q-result-list { margin: var(--s-5) 0; padding: 0; list-style: none; border-top: 2px solid var(--text); }
.q-result-list li { padding: var(--s-3) 0 var(--s-3) var(--s-6); position: relative; border-bottom: 1px solid var(--rule); color: var(--text); }
.q-result-list li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.q-result-list li.q-flag::before { content: "!"; transform: none; border: 0; width: auto; height: auto; top: .7rem; left: .2rem; font-weight: 820; color: var(--caution); }
.q-result-next { font-weight: 650; color: var(--text); margin-top: var(--s-3); }
@media (prefers-reduced-motion: no-preference) {
  .q-step:not(.hidden), .q-result:not(.hidden) { animation: q-in 320ms var(--ease-out); }
  @keyframes q-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
}

/* ---------------------------------------------------------------- /operators */
.specimen { background: var(--surface); border: 1.5px solid var(--text); border-radius: var(--r-doc); padding: clamp(1.25rem, .8rem + 2vw, 2rem); box-shadow: var(--stack); position: relative; font-size: .9375rem; }
.specimen__stamp { position: absolute; top: var(--s-4); right: var(--s-4); font-size: .75rem; font-weight: 750; font-stretch: 112%; color: var(--caution); border: 1.5px solid currentColor; border-radius: var(--r-ctl); padding: .15rem .5rem; transform: rotate(3deg); }
.specimen__head { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: .8125rem; color: var(--text-muted); padding-bottom: var(--s-3); border-bottom: 2px solid var(--text); font-variant-numeric: tabular-nums; }
.specimen__title { font-size: 1.375rem; font-stretch: 112%; font-weight: 780; margin-top: var(--s-3); }
.specimen dl { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); margin-top: var(--s-4); border-top: 1px solid var(--rule); }
.specimen dt, .specimen dd { padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.specimen dt { font-weight: 650; color: var(--text-muted); padding-right: var(--s-3); }
.specimen dd { color: var(--text); }
.specimen dd.none { color: var(--text-muted); font-style: normal; }
.specimen__foot { margin-top: var(--s-3); font-size: .8125rem; color: var(--text-muted); }
.ops-hero__fig { margin: 0; }
.commit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); border-top: 2px solid var(--text); margin-top: var(--s-6); }
.commit li { padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.commit b { display: block; font-stretch: 106%; }
.commit span { display: block; color: var(--text-muted); font-size: .9375rem; margin-top: var(--s-1); }
@media (max-width: 640px) { .commit { grid-template-columns: minmax(0, 1fr); } }
.answers { margin-top: var(--s-6); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.answers > div { border-top: 2px solid var(--ink-block-text); padding-top: var(--s-4); }
.answers h3 { color: #F4F8F8; font-size: 1.25rem; }
.answers p { margin-top: var(--s-3); color: var(--ink-block-text); opacity: .9; }
@media (max-width: 900px) { .answers { grid-template-columns: minmax(0, 1fr); } }

.op-form { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-6) var(--s-8); align-items: start; }
.op-form__intro { position: sticky; top: 104px; }
.op-form__intro .lead { margin-top: var(--s-4); }
.op-form__card { background: var(--surface); border: 1.5px solid var(--text); border-radius: var(--r-doc); padding: clamp(1.25rem, .8rem + 2vw, 2.25rem); box-shadow: var(--stack); }
.op-form__card form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.op-form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); align-items: start; }
@media (max-width: 640px) { .op-form__row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .op-form { grid-template-columns: minmax(0, 1fr); } .op-form__intro { position: static; } }

/* ---------------------------------------------------------------- /host-terms (a document) */
.terms { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s-6) var(--s-8); padding-block: var(--s-7) var(--section); }
.terms__toc { position: sticky; top: 104px; align-self: start; font-size: .9375rem; }
.terms__toc ol { margin-top: var(--s-2); border-top: 2px solid var(--text); counter-reset: toc; }
.terms__toc li { border-bottom: 1px solid var(--rule); }
.terms__toc a { display: flex; gap: var(--s-3); padding: .55rem 0; text-decoration: none; color: var(--text-2); min-height: 44px; align-items: center; }
.terms__toc a:hover { color: var(--accent-text); }
.terms__doc { max-width: 70ch; }
.terms__doc h2 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); margin-top: var(--s-7); padding-top: var(--s-4); border-top: 2px solid var(--text); scroll-margin-top: 96px; }
.terms__doc h2:first-of-type { margin-top: var(--s-6); }
.terms__doc p, .terms__doc ul { margin-top: var(--s-3); color: var(--text-2); }
.terms__doc ul { padding-left: 1.2em; }
.terms__doc li + li { margin-top: var(--s-2); }
.terms__doc strong { color: var(--text); }
.terms-lead { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); color: var(--text); line-height: 1.5; }
.terms-sign { margin-top: var(--s-6) !important; background: var(--tint); color: var(--on-tint) !important; padding: var(--s-4) var(--s-5); border-radius: var(--r-doc); }
.terms-meta { font-size: .9375rem; color: var(--text-muted); }
@media (max-width: 900px) { .terms { grid-template-columns: minmax(0, 1fr); padding-top: var(--s-5); } .terms__toc { position: static; border-top: 2px solid var(--text); border-bottom: 1px solid var(--rule); } .terms__toc ol { border-top: 1px solid var(--rule); } }
@media print { .terms__toc, .cta-block { display: none; } .terms { display: block; } }
.host-hero__market { margin-top: var(--s-4); max-width: 44ch; font-size: .9375rem; color: var(--text-muted); }
.host-hero__market a { color: var(--text-2); font-weight: 600; }

/* /about and /stats (2026-10-16): numbers, data tables, key facts. Built on the .terms layout above. */
.terms__doc h3 { font-size: 1.1875rem; margin-top: var(--s-5); }
.terms__doc ol { margin-top: var(--s-3); padding-left: 1.4em; color: var(--text-2); }
.terms__doc ol li + li { margin-top: var(--s-2); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--s-4); margin-top: var(--s-5); }
.stat { border-top: 4px solid var(--accent); background: var(--tint); color: var(--on-tint); padding: var(--s-4); }
.stat__n { display: block; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums lining-nums; }
.stat__t { display: block; margin-top: var(--s-2); }
.stat__src { display: block; margin-top: var(--s-2); font-size: .8125rem; }
.stat a { color: inherit; }
.data-wrap { overflow-x: auto; margin-top: var(--s-4); }
.data-table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums lining-nums; }
.data-table caption { text-align: left; font-weight: 650; color: var(--text); padding-bottom: var(--s-2); }
.data-table th, .data-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; color: var(--text-2); }
.data-table thead th { border-bottom: 2px solid var(--text); font-weight: 700; color: var(--text); }
.data-table .n { text-align: right; white-space: nowrap; }
.data-note { font-size: .875rem; color: var(--text-muted) !important; }
.facts { margin-top: var(--s-4); border-top: 2px solid var(--text); }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-3); padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 700; color: var(--text); }
.facts dd { color: var(--text-2); margin: 0; }
.cite-box { margin-top: var(--s-4); padding: var(--s-4); border-left: 4px solid var(--accent); background: var(--bg-alt); font-size: .9375rem; color: var(--text-2); }
@media (max-width: 640px) {
  .facts div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .data-table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table.stack, .data-table.stack tbody, .data-table.stack tr, .data-table.stack td { display: block; width: 100%; }
  .data-table.stack caption { display: block; width: 100%; }
  .data-table.stack tr { border-top: 2px solid var(--text); padding: var(--s-2) 0; }
  .data-table.stack td { border: 0; padding: .2rem 0; text-align: left; }
  .data-table.stack td:first-child { font-weight: 700; color: var(--text); }
  .data-table.stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 650; color: var(--text-muted); }
}
