/* ============================================================
   Static cluster v2 — /css/static-v2.css
   Phase-7 minimum viable consistency pass (2026-09-14)
   Scope: static legal/info/error pages carrying
   <body class="... static-v2">. Layers ON TOP of
   css/ug-brand.css (untouched) plus each page's own CSS.

   Purpose:
   - Force the signed-off dark homepage palette on these pages
     regardless of html[data-theme] or per-page theme toggles
     (dark-only until the global phase removes the toggle).
   - Mirror homepage tokens: teal #3BDBBF, Neue Regrade headings
     and body, Monomials labels/kickers/numerals, ~24px card
     radii, subtle teal hairline borders, near-black surfaces.
   - Prose-friendly long-text typography (legal pages): a
     comfortable ~68ch measure with a readable line-height.
   - Dark form inputs with teal focus rings.
   - Page-scoped polish for client-intake and business-trust-check.
   - Composed dark error pages (Monomials teal numeral).

   Fonts: Neue Regrade / Monomials @font-face blocks exist in
   ug-brand.css only as a commented-out placeholder. The woff2
   files DO exist in /fonts/, so this file declares them locally
   (no third-party requests). Weight 400 maps to the 300 file as
   a stand-in until a true 400 cut lands. Same pattern as
   /css/services-v2.css.
   ============================================================ */

/* ── Local fonts (files verified present in /fonts/) ─────── */
@font-face {
  font-family: 'Neue Regrade';
  src: url('/fonts/neue-regrade-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Neue Regrade';
  src: url('/fonts/neue-regrade-300.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  /* stand-in: no 400 cut delivered yet; global phase will re-cut */
}
@font-face {
  font-family: 'Neue Regrade';
  src: url('/fonts/neue-regrade-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Monomials';
  src: url('/fonts/monomials-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ── Token overrides: force the dark homepage palette ──────
   Set directly on body.static-v2, so they beat any value
   inherited from html[data-theme="light"] and from per-page
   :root blocks (client-intake). Keeps the whole cluster
   dark-only. */
body.static-v2 {
  color-scheme: dark;

  /* type: homepage stacks (Neue Regrade first, Monomials mono) */
  --font-display: "Neue Regrade", "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Monomials", "Space Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* accent: Brief teal override of the older #3CDBC0 */
  --accent: #3BDBBF;
  --accent-hover: #2FC4AB;
  --accent-ink: #06231E;
  --accent-soft: rgba(59, 219, 191, .12);
  --stat: #3BDBBF;
  --prussian-tint: rgba(0, 47, 86, .55);

  /* surfaces: near-black, no blue cast */
  --bg-0: #0B0B0C;
  --bg-1: #111315;
  --bg-2: #17191C;
  --bg-glass: rgba(255, 255, 255, .05);
  --bg-glass-brd: rgba(255, 255, 255, .10);

  /* text */
  --text-hi: #FFFFFF;
  --text-body: rgba(255, 255, 255, .78);
  --text-mute: rgba(255, 255, 255, .55);

  /* lines: subtle teal hairline instead of neutral grey */
  --line: rgba(59, 219, 191, .16);

  /* footer stays dark (same values as the dark theme) */
  --footer-bg-top: #0B0B0C;
  --footer-bg-bottom: #06131C;
  --footer-text: rgba(255, 255, 255, .62);
  --footer-heading: rgba(255, 255, 255, .85);
  --footer-link: rgba(255, 255, 255, .58);
  --footer-caption: rgba(255, 255, 255, .56);
  --footer-line: rgba(255, 255, 255, .09);
  --footer-brd-top: rgba(59, 219, 191, .25);

  /* corners: homepage-soft (24px cards) */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  /* client-intake wizard tokens (its inline CSS uses these names) */
  --primary: #3BDBBF;
  --primary-hover: #2FC4AB;
  --primary-soft: rgba(59, 219, 191, .10);
  --primary-border: rgba(59, 219, 191, .5);
  --teal: #3BDBBF;
  --bg: #0B0B0C;
  --card: #111315;
  --input-bg: #17191C;
  --input-border: rgba(59, 219, 191, .18);
  --text-high: #FFFFFF;
  --text-med: rgba(255, 255, 255, .78);
  --text-low: rgba(255, 255, 255, .55);
  --divider: rgba(59, 219, 191, .14);
  --shadow: 0 12px 24px rgba(0, 0, 0, .24);
  --track: #1C2A28;
  --font-body: "Neue Regrade", "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Neue Regrade", "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-card: 24px;
  --radius-input: 14px;
  --error: #FF6B6B;

  /* homepage gradient tokens (signed-off baseline) */
  --static-grad-numeral: linear-gradient(180deg, #37CDB7 0%, #26A39C 45%, #146C82 100%);
  --static-grad-hero:
    radial-gradient(110% 150% at 88% -10%, rgba(59, 219, 191, .14) 0%, rgba(0, 47, 86, .30) 42%, rgba(11, 11, 12, 0) 72%),
    linear-gradient(180deg, #070D12 0%, #0B0B0C 100%);
}

/* ── Base polish ─────────────────────────────────────────── */
body.static-v2 {
  background: var(--bg-0);
  color: var(--text-body);
  font-family: var(--font-display);
  letter-spacing: .002em;
}
body.static-v2 h1,
body.static-v2 h2,
body.static-v2 h3,
body.static-v2 h4 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}
body.static-v2 a {
  color: var(--accent);
}

/* Kickers / eyebrows / mono labels: Monomials, teal */
body.static-v2 .eyebrow,
body.static-v2 .hero-eyebrow,
body.static-v2 .section-label,
body.static-v2 .last-updated,
body.static-v2 .breadcrumbs,
body.static-v2 .progress-label,
body.static-v2 .autosave {
  font-family: var(--font-mono);
  font-weight: 400;
}
body.static-v2 .eyebrow,
body.static-v2 .section-label {
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Long-text prose: comfortable measure + line-height ────
   Legal pages and the long guide pages are reading pages;
   keep the measure near 68ch and the line-height generous. */
body.static-v2 main p,
body.static-v2 .policy-page p,
body.static-v2 .section-content p,
body.static-v2 .guide-body p {
  line-height: 1.7;
}
body.static-v2 .policy-page,
body.static-v2 main article,
body.static-v2 .guide-body {
  max-width: 68ch;
}
body.static-v2 .section-content ul,
body.static-v2 .section-content ol,
body.static-v2 .policy-list {
  line-height: 1.65;
}

/* ── Legal pages (privacy / terms / cookie / disclaimer) ───
   v2 design-system pass: homepage-style hero band (Monomials
   "LEGAL" kicker + H1 + thin teal rule), dark hairline cards
   around each numbered section, date pill, teal links, and a
   clear heading hierarchy. Measure stays at ~68ch; markup is
   unchanged (the kicker is a CSS-generated decorative label). */
body.static-v2 .policy-page {
  color: var(--text-body);
}
body.static-v2 .policy-page a {
  color: var(--accent);
  text-decoration-color: rgba(59, 219, 191, .45);
  text-underline-offset: 3px;
}
body.static-v2 .policy-page a:hover,
body.static-v2 .policy-page a:focus-visible {
  color: var(--accent-hover, #2FC4AB);
  text-decoration-color: var(--accent);
}

/* Hero band */
body.static-v2 .policy-header {
  position: relative;
  background: var(--static-grad-hero);
  background-color: var(--bg-1);
  border: 1px solid rgba(59, 219, 191, .18);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .24);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
}
/* Kicker: Monomials teal "LEGAL" above the H1.
   ug-brand.css §legal uses the same pseudo-elements for a glow blob
   and a centered underline, so every geometry property is reset here
   (higher specificity: body.static-v2 wins per-property). */
body.static-v2 .policy-header::before {
  content: "LEGAL";
  position: static;
  display: block;
  width: auto;
  height: auto;
  top: auto;
  right: auto;
  background: none;
  pointer-events: auto;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .30em;
  color: var(--accent);
  margin-bottom: .9rem;
}
/* Thin teal rule under the header block */
body.static-v2 .policy-header::after {
  content: "";
  position: static;
  display: block;
  left: auto;
  bottom: auto;
  transform: none;
  width: 64px;
  height: 2px;
  margin-top: 1.4rem;
  background: linear-gradient(90deg, var(--accent), rgba(59, 219, 191, 0));
  border-radius: 2px;
}
body.static-v2 .policy-title {
  color: var(--text-hi);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin: 0 0 .9rem;
}
/* Updated-date pill */
body.static-v2 .last-updated {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .10em;
  color: var(--accent);
  background: rgba(59, 219, 191, .10);
  border: 1px solid rgba(59, 219, 191, .28);
  border-radius: 999px;
  padding: .38em 1em;
  margin: 0;
}
body.static-v2 .last-updated::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: .6em;
  vertical-align: 1px;
}

/* Notice + callout containers */
body.static-v2 .effective-notice,
body.static-v2 .highlight-box {
  background: rgba(59, 219, 191, .07);
  border: 1px solid rgba(59, 219, 191, .22);
  border-radius: var(--radius-lg);
  color: var(--text-body);
}
body.static-v2 .effective-notice {
  border-left: 3px solid var(--accent);
}
body.static-v2 .warning-box {
  background: rgba(255, 159, 67, .08);
  border: 1px solid rgba(255, 159, 67, .30);
  border-left: 3px solid #FF9F43;
  border-radius: var(--radius-lg);
  color: var(--text-body);
}

/* Section-title pack glyph: right-aligned glass chip (2026-09-14 round 2) */
body.static-v2 .section-title__icon {
  margin-left: auto;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(59, 219, 191, .10);
  border: 1px solid rgba(59, 219, 191, .22);
}
body.static-v2 .section-title__icon img {
  display: block;
  object-fit: contain;
}

/* Section groups as dark hairline cards */
body.static-v2 .policy-section {
  background: var(--bg-1);
  border: 1px solid rgba(59, 219, 191, .14);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .20);
  padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.25rem, 3.5vw, 2.5rem);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}
body.static-v2 .section-title {
  color: var(--text-hi);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1rem;
}
body.static-v2 .section-number {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: .9em;
  color: var(--accent);
  background: rgba(59, 219, 191, .10);
  border: 1px solid rgba(59, 219, 191, .22);
  border-radius: 10px;
  padding: .18em .55em;
  flex-shrink: 0;
}
body.static-v2 .section-content h3 {
  color: var(--text-hi);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-top: 1.6em;
}
body.static-v2 .section-content h4 {
  color: var(--text-hi);
  font-size: .95rem;
  margin-top: 1.4em;
}
/* Sub-containers inside sections (third-party services etc.) */
body.static-v2 .third-party-service,
body.static-v2 .policy-page .contact-block {
  background: var(--bg-2);
  border: 1px solid rgba(59, 219, 191, .12);
  border-radius: var(--radius-md);
}
body.static-v2 .third-party-service h3,
body.static-v2 .third-party-service h4 {
  color: var(--accent);
}

/* ── Generic cards across the cluster ──────────────────────
   One dark family: near-black fill, teal hairline, 24px radius. */
body.static-v2 .featured-card,
body.static-v2 .form-card,
body.static-v2 .requirements-card,
body.static-v2 .link-btn,
body.static-v2 .btc-card,
body.static-v2 .btc-footer-card,
body.static-v2 .card,
body.static-v2 .sitemap-block {
  background: var(--bg-1);
  border: 1px solid rgba(59, 219, 191, .16);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .24);
}
body.static-v2 .sitemap-block h2,
body.static-v2 .featured-title,
body.static-v2 .form-card h1,
body.static-v2 .form-card h2 {
  color: var(--text-hi);
}
body.static-v2 .featured-tag {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Links-in-bio pages (links.html, links/index.html) */
body.static-v2 .profile {
  color: var(--text-body);
}
body.static-v2 .profile-name { color: var(--text-hi); }
body.static-v2 .profile-tagline,
body.static-v2 .link-desc,
body.static-v2 .footer-copy { color: var(--text-mute); }
body.static-v2 .link-btn {
  color: var(--text-hi);
}
body.static-v2 .link-btn:hover,
body.static-v2 .link-btn:focus-visible {
  border-color: var(--accent);
  background: rgba(59, 219, 191, .07);
}

/* ── Buttons: brand-standard primary (blue gradient) ─────── */
body.static-v2 .btn-primary,
body.static-v2 .submit-btn,
body.static-v2 .btn-gate-primary,
body.static-v2 .btn-restart {
  background: linear-gradient(135deg, #0767BB 0%, #0554A3 55%, #04438E 100%);
  color: #FFFFFF;
  border-color: transparent;
  border-radius: 6px;
  box-shadow: 0 2px 14px rgba(5, 84, 163, .28);
}
body.static-v2 .btn-primary:hover,
body.static-v2 .submit-btn:hover,
body.static-v2 .btn-gate-primary:hover,
body.static-v2 .btn-restart:hover {
  box-shadow: 0 4px 22px rgba(5, 84, 163, .46);
  color: #FFFFFF;
}
body.static-v2 .btn-primary:focus-visible,
body.static-v2 .submit-btn:focus-visible,
body.static-v2 .btn-gate-primary:focus-visible,
body.static-v2 .btn-restart:focus-visible {
  outline: 2px solid #0554A3;
  outline-offset: 3px;
}
body.static-v2 .btn-secondary,
body.static-v2 .btn-outline,
body.static-v2 .btn-ghost,
body.static-v2 .btn-gate-secondary,
body.static-v2 .hero-action.secondary {
  background: transparent;
  color: var(--text-hi);
  border-color: rgba(59, 219, 191, .30);
}

/* ── Forms: dark inputs with teal focus rings ────────────── */
body.static-v2 input,
body.static-v2 textarea,
body.static-v2 select,
body.static-v2 .ctrl,
body.static-v2 .btc-field input,
body.static-v2 .btc-input-row input,
body.static-v2 .btc-contact-form textarea,
body.static-v2 .form-group input,
body.static-v2 .form-group textarea,
body.static-v2 .form-group select {
  background: var(--bg-2);
  color: var(--text-hi);
  border: 1px solid rgba(59, 219, 191, .18);
  border-radius: var(--radius-md);
  caret-color: var(--accent);
}
body.static-v2 input::placeholder,
body.static-v2 textarea::placeholder {
  color: rgba(255, 255, 255, .40);
}
body.static-v2 input:focus,
body.static-v2 textarea:focus,
body.static-v2 select:focus,
body.static-v2 .ctrl:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 219, 191, .18);
}
body.static-v2 input:focus-visible,
body.static-v2 textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
body.static-v2 label,
body.static-v2 legend {
  color: var(--text-hi);
}

/* ── client-intake wizard (page-scoped attention) ──────────
   Its own inline CSS defines light defaults and a .dark class;
   the token overrides above force the dark homepage palette on
   body.static-v2 regardless of which class its JS toggle sets.
   These rules polish the wizard chrome to the homepage language. */
body.static-v2 .topbar {
  background: var(--bg-1);
  border-bottom: 1px solid rgba(59, 219, 191, .16);
}
body.static-v2 .card {
  background: var(--bg-1);
  border: 1px solid rgba(59, 219, 191, .16);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .24);
}
body.static-v2 .eyebrow {
  color: var(--accent);
}
body.static-v2 .opt {
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-input);
}
body.static-v2 .opt:hover {
  border-color: var(--accent);
}
body.static-v2 .opt.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
body.static-v2 .opt.selected .mark {
  border-color: var(--accent);
  background: var(--accent);
}
body.static-v2 .progress-fill {
  background: var(--accent);
}
body.static-v2 .autosave-dot {
  background: var(--accent);
}
body.static-v2 .qhint { color: var(--text-mute); font-style: italic; }
body.static-v2 .review-section h2 { color: var(--accent); }
body.static-v2 .divider { background: var(--divider); }
body.static-v2 .footer-note { color: var(--text-mute); }

/* ── business-trust-check (page-scoped attention) ──────────
   Its own CSS hardcodes rgba(59,189,198) (old teal) and
   rgba(26,127,200) (old blue); pull the key surfaces onto the
   signed-off teal and near-black tokens. */
body.static-v2 .btc-check-form {
  background: var(--bg-glass);
  border: 1px solid rgba(59, 219, 191, .18);
  border-radius: var(--radius-lg);
}
body.static-v2 .btc-input-row input:focus-visible,
body.static-v2 .btc-field input:focus-visible,
body.static-v2 .btc-contact-form textarea:focus-visible {
  outline: 2px solid rgba(59, 219, 191, .55);
  border-color: var(--accent);
}
body.static-v2 .btc-message-success,
body.static-v2 .btc-loading,
body.static-v2 .btc-success-panel,
body.static-v2 .btc-finding-fix {
  border-color: rgba(59, 219, 191, .30);
  background: rgba(59, 219, 191, .07);
}
body.static-v2 .btc-spinner { border-top-color: var(--accent); }
body.static-v2 .btc-shield {
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.22), transparent 45%),
    linear-gradient(180deg, rgba(59, 219, 191, .28), rgba(0, 47, 86, .35));
  border-color: rgba(59, 219, 191, .32);
}
body.static-v2 .btc-shield span {
  font-family: var(--font-mono);
  color: var(--accent);
}
body.static-v2 .btc-domain-pill,
body.static-v2 .btc-mini-label,
body.static-v2 .btc-finding-badge--info {
  font-family: var(--font-mono);
}
body.static-v2 .btc-footer-card {
  background: linear-gradient(180deg, rgba(17,19,21,.96), rgba(11,11,12,.96));
}

/* ── Error pages (404 / 500 / 403) ─────────────────────────
   Big status numeral in Monomials with the homepage teal
   gradient ink; recovery cards in the shared dark family.
   Pure CSS on the existing markup. */
body.static-v2 .hero-code {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: -0.02em;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  body.static-v2 .hero-code {
    background: var(--static-grad-numeral);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
body.static-v2 .hero-title {
  font-family: var(--font-display);
  color: var(--text-hi);
}
body.static-v2 .status-pill,
body.static-v2 .featured-tag {
  font-family: var(--font-mono);
  letter-spacing: .18em;
}
body.static-v2 .status-pill {
  background: rgba(59, 219, 191, .12);
  border: 1px solid rgba(59, 219, 191, .35);
  color: var(--accent);
}
body.static-v2 .hero-action.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
body.static-v2 .quick-action {
  background: var(--bg-1);
  border: 1px solid rgba(59, 219, 191, .18);
}
body.static-v2 .quick-action:hover,
body.static-v2 .quick-action:focus-visible {
  border-color: var(--accent);
  background: rgba(59, 219, 191, .07);
}
body.static-v2 .quick-action-title { color: var(--text-hi); }
body.static-v2 .quick-action-note { color: var(--accent); }
body.static-v2 .signal-copy {
  background: rgba(59, 219, 191, .06);
  border: 1px solid rgba(59, 219, 191, .16);
}
body.static-v2 .signal-line { color: var(--text-mute); }
body.static-v2 .blog-section-title { color: var(--text-hi); }
body.static-v2 .blog-section-title::after {
  background: var(--accent);
}

/* Footer: dark anchor with teal top rule where the global SSI
   footer is in play */
body.static-v2 .site-footer {
  background: var(--footer-bg-top);
  border-top: 1px solid var(--footer-brd-top);
}

/* ── Reduced motion: respect the homepage rule ───────────── */
@media (prefers-reduced-motion: reduce) {
  body.static-v2 *,
  body.static-v2 *::before,
  body.static-v2 *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Small screens ───────────────────────────────────────── */
@media (max-width: 600px) {
  body.static-v2 .policy-page,
  body.static-v2 main article,
  body.static-v2 .guide-body {
    max-width: none;
  }
}
