/* marketing-polish-b2.css — visual audit batch 2 (marketing, legal, tools hub, shared header).
   Loaded by the premium footer (siteChrome.ts) next to footer-mobile-polish.css, so it applies on every page that carries the site chrome
   and after the older sheets: these rules refine, they do not replace. Selectors are scoped to the page shells (`.qf-public-wft`,
   `.support-shell`, `.sec-shell`, `.cmp-*`, `.qf-vertical-wft`, `.legal-shell`, `.dpa-shell`) so nothing leaks into the app or the tools.
   Layout, colour and wording only. Colours are tokens; the few raw values are custom properties (the guards read those as the token
   source). Desktop keeps its own look: every block is a phone block or an additive one. */

:root {
  --qf-page-gutter: 24px;          /* one content gutter for marketing, support, security and legal pages on phones */
  --qf-cmp-yes-light: #047857;     /* 5.5:1 on white and on the QuoteFleet column tint (the old green was 3.4:1) */
  --qf-demo-canvas-dark: #0F172A;  /* quote preview: the canvas around the white sheet in a dark colour scheme */
}

/* ── M3 / M16: the secondary CTA is a ghost button in dark (it was a white slab beside the dark hero) ─────────────────────── */
html:not([data-theme="light"]) body.qf-public-wft .btn-secondary:not(.qf-imp-soon) {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--border-strong) !important;
}
html:not([data-theme="light"]) body.qf-public-wft .btn-secondary:not(.qf-imp-soon):hover { border-color: var(--accent) !important; }
/* "Coming soon" is a status, not a button: muted ink, dashed edge, no hover. */
body.qf-public-wft .qf-imp-soon {
  background: transparent !important;
  color: var(--muted) !important;
  border: 1px dashed var(--border-strong) !important;
  cursor: default;
  pointer-events: none;
}
/* A plan that cannot be bought yet does not carry the "Most popular" badge or the accent outline. */
html body.qf-public-wft .price-card.featured:has(.qf-imp-soon) { border-color: var(--border) !important; box-shadow: none !important; }
body.qf-public-wft .price-card.featured:has(.qf-imp-soon)::before,
body.qf-public-wft .price-card.featured:has(.qf-imp-soon)::after { content: none; display: none; }
/* "/ mo" beside the price: the UI face at a readable size, not tiny monospace. */
body.qf-public-wft .price-card .price .per { font-family: var(--font-sans); font-size: 14px; letter-spacing: 0; }

/* ── Shared header: the sign-in link reads as a link on every page (the public skin made it mono caps) ──────────────── */
html body.qf-public-wft .site-header .site-actions .signin {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* ── M7: on desktop the hero, the section heading and the card grid share one left edge ──────────────────────────────── */
@media (min-width: 901px) {
  .qf-vertical-wft .hero .container-narrow { max-width: var(--container-max, 1360px); }
  .qf-vertical-wft .section-head { max-width: none; margin-left: 0; margin-right: 0; }
}

/* ── M6 / M5: the vertical pages on phones ──────────────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .qf-vertical-wft .features { gap: 12px; }
  .qf-vertical-wft .hero-cta { display: flex; flex-direction: column; align-items: stretch; }
  .qf-vertical-wft .hero-cta .btn { width: 100%; justify-content: center; }
  .qf-vertical-wft .section[style*="text-align: center"] .container-narrow { padding: 24px 16px; }
}

/* ── M2: compare table words clear 4.5:1 in light ───────────────────────────────────────────────────────────────────── */
html[data-theme="light"] .cmp-yes { color: var(--qf-cmp-yes-light); }
/* ── M17: compare closing box ───────────────────────────────────────────────────────────────────────────────────────── */
.cmp-final .cmp-cta-row { margin-bottom: 24px; }
.cmp-final h2 { text-wrap: balance; }
.cmp-final .cmp-btn-grey { background: transparent; border: 1px solid var(--border-strong); color: var(--ink); }
.cmp-final .cmp-btn-grey:hover { border-color: var(--accent); background: transparent; }

/* ── M12 / M13: support — links look like links, targets are 24px+, the table keeps its first column readable ───────── */
.support-shell ul li a,
.support-shell .support-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  padding-block: 4px;
}
.support-shell .support-card a { font-weight: 800; }
.support-shell .support-table th:first-child,
.support-shell .support-table td:first-child { min-width: 112px; }
@media (max-width: 640px) {
  .support-shell { padding-inline: var(--qf-page-gutter); }
  .support-shell .support-table th:first-child,
  .support-shell .support-table td:first-child { white-space: nowrap; }
}

/* ── M14: security — long mono sub-headings wrap in balanced lines, card titles outrank their copy ──────────────────── */
.sec-shell h3 { text-wrap: balance; letter-spacing: .04em; font-size: 13px; line-height: 1.4; hyphens: manual; }
.sec-shell .ct-card h4 { font-size: 15px; }
.sec-shell p, .sec-shell li { hyphens: manual; }
@media (max-width: 640px) {
  .sec-shell { padding-inline: var(--qf-page-gutter); }
}

/* ── M15: pricing — inline links are real tap targets; the free-forever list breathes ──────────────────────────────── */
.qf-free-band-list a { display: inline-block; padding-block: 8px; margin-block: -8px; text-underline-offset: 3px; }

/* ── M22: one phone gutter for the marketing shells ─────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .legal-shell, .qf-public-wft .dpa-shell { padding-inline: var(--qf-page-gutter); }
  .qf-vertical-wft .hero, .qf-vertical-wft .section { padding-inline: var(--qf-page-gutter); }
}

/* ── M10 / M11: landing ─────────────────────────────────────────────────────────────────────────────────────────────── */
body.landing-v2 h1, body.landing-v2 .qf-free-head h2 { text-wrap: balance; }
body.landing-v2 .qf-toolcard__sub, body.landing-v2 .qf-free-item p { text-wrap: pretty; }
@media (max-width: 700px) {
  /* The free-forever band added a second 16px inset inside its own 16px section: 32px against 16px everywhere else. */
  body.landing-v2 .qf-free-section .qf-hhero__inner { padding-inline: 0; }
}

/* ── L3: the DPA wears the same chrome as its sibling legal pages ───────────────────────────────────────────────────── */
.qf-public-wft .dpa-shell h1 { letter-spacing: -.02em; }
/* L4: the signature rows match, and the print button is themed rather than a cream slab. */
.dpa-shell .sig-grid .sig { width: 100%; }
html:not([data-theme="light"]) .qf-public-wft .dpa-shell .download {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--border-strong) !important;
}

/* ── C3: nav panel footnotes and descriptions do not strand a two-word last line ───────────────────────────────────── */
.nav-dd-sub { text-wrap: balance; }
