@import url('https://fonts.bunny.net/css?family=fraunces:600&family=archivo:800&display=swap');

/* Wizewerx landing page.
   @import MUST stay first — browsers ignore one that follows any other rule.
   Bunny Fonts, not Google: the page claims 'no hyperscalers, no big tech'. */

/* ── THEME TOKENS ──
   The engine toggles a CLASS on <html>: document.documentElement.classList
   .toggle('dark'), honouring prefers-color-scheme until the visitor chooses.
   So dark rules must be written `html.dark`. They were written
   html[data-theme="dark"] here, which the engine NEVER sets — every dark rule
   below was inert, and dark mode fell through to the engine's own blue-grey
   (#0f172a) instead of this warm palette.
   Do NOT use @media prefers-color-scheme either: that ignores the toggle.

   These also re-point the ENGINE's own tokens (--bg-primary, --text-primary,
   --border-color, defined in Base.astro :root / html.dark). The header,
   footer and the blog's legacy classes read those, not --wzx-*, so without
   the bridge further down the chrome stays #ffffff while the body is warm
   — two palettes on one page. */
:root,
html:not(.dark) {
  --wzx-bg: #fbf9f5;
  --wzx-ink: #1f1c19;
  --wzx-soft: #55504a;
  --wzx-dim: #8b847b;
  --wzx-line: rgba(128,128,128,0.25);
  --wzx-hairline: rgba(128,128,128,0.18);
  --wzx-panel: rgba(255,255,255,0.55);
  --wzx-warm: #fdf2e9;
  --wzx-warm-line: #f3dfc9;
  --wzx-field: #fff;
  --wzx-field-line: #e5ded3;
  --wzx-go: #1f7a45;
  --wzx-go-bg: rgba(31,122,69,0.12);
  --wzx-accent: #C8201F;
  --wzx-on-accent: #fff;
}

html.dark {
  --wzx-bg: #17161a;
  --wzx-ink: #f1efeb;
  --wzx-soft: #b5afa6;
  --wzx-dim: #8a8479;
  --wzx-line: rgba(255,255,255,0.14);
  --wzx-hairline: rgba(255,255,255,0.09);
  --wzx-panel: rgba(255,255,255,0.035);
  --wzx-warm: #26211b;
  --wzx-warm-line: #3d342a;
  --wzx-field: #201f24;
  --wzx-field-line: #3d3a44;
  --wzx-go: #5fd18f;
  --wzx-go-bg: rgba(95,209,143,0.14);
  --wzx-accent: #ff6b5e;
  --wzx-on-accent: #1f1c19;
}

body { background: var(--wzx-bg); color: var(--wzx-ink); }

h1, h2 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  color: var(--wzx-ink);
}

/* ── LANDING PAGE ──
   Every style for the homepage markup lives here; the page content carries
   classes only, no inline styles. Colour comes from the themed --wzx-* tokens;
   layout and type are fixed. .container is kept on the wrappers because the
   engine styles it — .wzx-wrap (same specificity, later in the cascade)
   overrides its width. */
.wzx-wrap { max-width: 900px; margin: 0 auto; }
.wzx-section { padding: 0 2rem 4.5rem; }

/* Header */
.wzx-header { padding: 1.4rem 2rem; }
.wzx-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wzx-header__end,
.wzx-nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.wzx-nav a { text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.wzx-nav .wzx-nav__cta { color: var(--wzx-accent); font-weight: 600; }
.wzx-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 5px;
  background: #E42928;
  color: #fff;
  font-family: 'Archivo', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-decoration: none;
}

/* Hero */
.wzx-hero { padding: 4.5rem 2rem 4rem; }
.wzx-hero h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); line-height: 1.1; margin: 0 0 1.5rem; max-width: 18ch; }
.wzx-lede { font-size: clamp(1.1rem, 2.5vw, 1.375rem); line-height: 1.55; max-width: 52ch; margin: 0; }

/* Shared panel furniture */
.wzx-panel { background: var(--wzx-panel); border: 1px solid var(--wzx-line); }
.wzx-name { color: var(--wzx-ink); }
.wzx-sub { color: var(--wzx-soft); }
.wzx-dim { color: var(--wzx-dim); }
.wzx-h2 { font-size: clamp(1.5rem, 3.5vw, 1.875rem); margin: 0 0 0.5rem; }

/* Platform list */
.wzx-list { border-radius: 14px; overflow: hidden; }
.wzx-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--wzx-hairline);
  color: inherit;
  text-decoration: none;
  transition: background .14s;
}
.wzx-row:last-child { border-bottom: none; }
.wzx-row:hover { background: var(--wzx-warm); }
.wzx-row__sector { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--wzx-accent); }
.wzx-row__name { display: block; font-size: 1rem; font-weight: 650; }
.wzx-row__desc { display: block; font-size: 0.875rem; line-height: 1.45; margin-top: 0.2rem; }
.wzx-live {
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  background: var(--wzx-go-bg);
  color: var(--wzx-go);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Under 640px the 150px sector column crushes name/description to a word
   per line: sector + Live chip share the top line, the rest goes full width. */
@media (max-width: 640px) {
  .wzx-row { grid-template-columns: 1fr auto; gap: 0.35rem 1rem; }
  .wzx-row > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}

/* How grid */
.wzx-intro { font-size: 1rem; line-height: 1.55; max-width: 56ch; margin: 0 0 1.75rem; }
.wzx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--wzx-min, 240px), 1fr));
  border-radius: 14px;
  overflow: hidden;
  background: var(--wzx-bg);
  border: 1px solid var(--wzx-line);
}
.wzx-grid--narrow { --wzx-min: 200px; }
.wzx-grid--wide { --wzx-min: 280px; }
/* Dividers are real borders. Not a 1px gap over a coloured background (rounds
   to nothing at fractional column widths) and not a box-shadow (drawn off the
   pixel grid, so it fades or vanishes on some screens) - both failed
   2026-10-11. Each cell draws its own left and top border and is pulled back
   1px, so the first column's and first row's border sits outside the grid's
   padding box and is clipped by overflow:hidden; the grid's own border is the
   outer frame. One rule, every grid. */
.wzx-cell { padding: 1.4rem; margin: -1px 0 0 -1px; border-left: 1px solid var(--wzx-line); border-top: 1px solid var(--wzx-line); }
.wzx-cell h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.4rem; }
.wzx-cell p { font-size: 0.9rem; line-height: 1.55; margin: 0; }

/* Tools band */
.wzx-tools { border-radius: 14px; padding: 2.25rem 2rem; }
.wzx-tools h2 { font-size: clamp(1.5rem, 3.5vw, 1.875rem); line-height: 1.2; margin: 0 0 1rem; max-width: 24ch; }
.wzx-tools p { font-size: 1rem; line-height: 1.6; max-width: 58ch; margin: 0 0 0.9rem; }
.wzx-tools .wzx-tools__kicker { font-weight: 650; line-height: inherit; margin: 0 0 1.5rem; }

/* Build-with-us CTA */
.wzx-cta { border-radius: 18px; padding: 3rem 2rem; text-align: center; background: var(--wzx-warm); border: 1px solid var(--wzx-warm-line); }
.wzx-cta h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; margin: 0 auto 1rem; max-width: 20ch; color: var(--wzx-ink); }
.wzx-cta p { color: var(--wzx-soft); }
.wzx-cta .wzx-cta__lede { font-size: 1.0625rem; line-height: 1.6; margin: 0 auto 2rem; max-width: 46ch; }
.wzx-cta .wzx-cta__alt { font-size: 0.8125rem; margin: 1rem 0 0; }
.bwu-input { background: var(--wzx-field) !important; border-color: var(--wzx-field-line) !important; color: var(--wzx-ink) !important; }
.bwu-input::placeholder { color: var(--wzx-dim); }

/* Footer */
.wzx-footer { padding: 2rem 2rem 3rem; border-top: 1px solid var(--wzx-line); }
.wzx-footer__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.wzx-footer__legal { margin: 0; font-size: 0.8125rem; line-height: 1.7; }
.wzx-footer__addr { font-size: 0.75rem; }
.wzx-footer__links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.wzx-footer__links a { font-size: 0.8125rem; text-decoration: none; }

/* ── Standalone landing page ──
   The homepage ships its own header and footer, so the engine's chrome is
   hidden THERE ONLY — scoped via :has() on a marker in the page content,
   because <body> carries no page-identifying class. A bare
   `.site-header{display:none}` would strip the chrome from the blog too. */
body:has(#wzx-standalone) .site-header,
body:has(#wzx-standalone) .site-footer { display: none !important; }

/* Fallback for browsers without :has() — the page sets this class via JS. */
body.wzx-standalone .site-header,
body.wzx-standalone .site-footer { display: none !important; }

/* ── ENGINE TOKEN BRIDGE ──
   Everything the engine itself paints — site header, site footer, and the
   blog's legacy .post-card / .blog-listing / .featured-post classes — reads
   the tokens Base.astro defines, not --wzx-*. Re-pointing them here is what
   makes the BLOG inherit the landing page's palette with no engine change.

   custom_css is injected as the first element inside <body>, after Astro's
   head styles, so these win at equal specificity. Header/footer rules are
   Astro-SCOPED though (they carry a [data-astro-cid-*] selector and so
   out-specify plain classes) — which is exactly why this works at the token
   level rather than by restyling .site-header directly.

   --bg-secondary stays distinct from --bg-primary: Base.astro stripes
   alternating <section> children of <main> with it, and collapsing the two
   would flatten that. --code-* left alone; code blocks are dark by design.

   --color-primary is the engine's ACCENT, not an ink: it fills .featured-badge
   and .pagination-link (both with a hardcoded color:#fff on top), and colours
   link hovers, focus rings and the nav button — ~35 call sites. Mapping it to
   --wzx-ink made the FEATURED chip white-on-near-white in dark mode.

   One token, two conflicting jobs: as a chip BACKGROUND it must be dark enough
   for white text; as link-hover TEXT on near-black it must be light. In dark
   mode those pull opposite ways, so the chip's text flips to dark ink on a
   bright red rather than forcing white onto a colour that cannot carry it.
   Contrast (WCAG AA needs 4.5:1 — the chip is 0.75rem bold, i.e. normal text):
     light  chip #fff on #C8201F 5.70:1 · link #C8201F on #fbf9f5 5.42:1
     dark   chip #1f1c19 on #ff6b5e 6.07:1 · link #ff6b5e on #17161a 6.45:1
   The brand red #E42928 stays on the landing-page logo, where it sits on white
   and is not small text; it only reached 3.08:1 as a dark-mode chip. */
:root {
  --bg-primary: var(--wzx-bg);
  --bg-secondary: var(--wzx-warm);
  --bg-tertiary: var(--wzx-panel);
  --text-primary: var(--wzx-ink);
  --text-secondary: var(--wzx-soft);
  --text-tertiary: var(--wzx-dim);
  --border-color: var(--wzx-line);
  --border-color-light: var(--wzx-hairline);
  --color-primary: var(--wzx-accent);
  --color-secondary: var(--wzx-soft);
}

/* Repeated under html.dark because Base.astro re-declares these same tokens
   there; without this the engine's dark values would beat the :root bridge.
   The values are identical — the --wzx-* behind them are what change. */
html.dark {
  --bg-primary: var(--wzx-bg);
  --bg-secondary: var(--wzx-warm);
  --bg-tertiary: var(--wzx-panel);
  --text-primary: var(--wzx-ink);
  --text-secondary: var(--wzx-soft);
  --text-tertiary: var(--wzx-dim);
  --border-color: var(--wzx-line);
  --border-color-light: var(--wzx-hairline);
  --color-primary: var(--wzx-accent);
  --color-secondary: var(--wzx-soft);
}

/* ── BLOG TYPOGRAPHY ──
   h1/h2 already get Fraunces above (venture-wide, so the blog has it too).
   These are the blog's other headings — card titles the engine renders as h3
   — which would otherwise stay system-ui next to serif headings.
   .cc-listing__* is the newer vocabulary; this venture has no listing_layout
   so it currently renders the legacy classes. Both are covered so a future
   layout row does not silently lose the typography. */
.post-content h3,
.featured-content h2,
.magazine-content h2,
.cc-listing__card-title,
.cc-listing__row-title,
.blog-post .post-header h1 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* The engine hardcodes #e5e7eb on the related-posts divider, in a block that
   is injected AFTER this file, so it needs the specificity bump. */
body .related-posts { border-top-color: var(--wzx-line); }

/* ── HEADER BRAND MARK (CSS logo) ──
   The engine's header renders EITHER <img class="logo-image"> when
   ventures.logo is set, OR <span class="brand-name">{brand_name}</span> when
   it is null. There is no SVG/markup field, so a CSS logo can only live in
   that text fallback.

   This reproduces the landing page's mark exactly: red tag, Archivo 800,
   0.16em tracking, 30px tall, 5px radius. Unlike the <img> it needs no
   dark_logo — white on red reads on either background. It keeps the true
   brand red #E42928 rather than --wzx-accent: this is the logo, not UI
   chrome, and at 12.5px/800 on white it is a graphic mark, not body text. */
.site-header .logo { display: inline-flex; align-items: center; }

.site-header .brand-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E42928;
  color: #fff;
  font-family: 'Archivo', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.16em;
  height: 30px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 5px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── ACCENT-FILLED CHROME ──
   .featured-badge and .pagination-link hardcode color:#fff on a
   var(--color-primary) fill, so in dark mode the text must be overridden too
   — the fill alone cannot be made both readable and visible.

   .pagination-link is scoped to .blog-listing deliberately. There are TWO of
   them with opposite designs: LegacyBlogListing's is FILLED (white on accent),
   while page/[page].astro's — blog page 2+ — is OUTLINED on a transparent
   background and only takes the accent on hover. An unscoped override would
   paint dark ink on a dark background there. Both files use the same class
   name; only the listing's is inside .blog-listing. */
.featured-badge { color: var(--wzx-on-accent); }
.blog-listing .pagination-link { color: var(--wzx-on-accent); }

/* ── LANDING THEME TOGGLE ──
   The engine's .theme-toggle lives in the .site-header hidden above, so the
   landing page carries its own button (.wzx-theme) wired to the same
   html.dark / localStorage 'theme' contract. Icon shows the CURRENT theme,
   as the engine's does. */
.wzx-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--wzx-line);
  border-radius: 8px;
  background: transparent;
  color: var(--wzx-soft);
  cursor: pointer;
  transition: color .14s, border-color .14s;
}
.wzx-theme:hover { color: var(--wzx-ink); border-color: var(--wzx-soft); }
.wzx-theme:focus-visible { outline: 2px solid var(--wzx-accent); outline-offset: 2px; }
.wzx-theme .wzx-moon { display: none; }
html.dark .wzx-theme .wzx-sun { display: none; }
html.dark .wzx-theme .wzx-moon { display: block; }

/* ── SECONDARY BUTTON (tools/shop band) ──
   Outlined in ink so it does not compete with the filled red CTA below it. */
.wzx-btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--wzx-ink);
  border-radius: 100px;
  color: var(--wzx-ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .14s, color .14s;
}
.wzx-btn:hover { background: var(--wzx-ink); color: var(--wzx-bg); }
.wzx-btn:focus-visible { outline: 2px solid var(--wzx-accent); outline-offset: 2px; }

/* ── OFFER PAGES: /vibe-to-production and /done-for-you ──
   Same rule as the homepage: the page content carries classes only, every
   style lives here. Reuses the homepage furniture where it fits (.wzx-hero,
   .wzx-lede, .wzx-section, .wzx-h2, .wzx-intro, .wzx-grid/.wzx-cell,
   .wzx-panel, .wzx-tools, .wzx-cta, .wzx-btn, .wzx-live, .wzx-footer); what
   follows is only what those pages add. */
.wzx-eyebrow { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--wzx-accent); margin: 0 0 1rem; }
.wzx-hero .wzx-lede { max-width: 54ch; }
.wzx-cell ul,
.wzx-card ul,
.wzx-split ul { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; line-height: 1.5; color: var(--wzx-soft); display: flex; flex-direction: column; gap: 0.35rem; }
/* .wzx-section prefix: these must beat older element rules such as
   .wzx-cell p and .wzx-tools p (class + element), which otherwise win. */
.wzx-section .wzx-stat { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.875rem; line-height: 1.1; color: var(--wzx-ink); margin: 0 0 0.4rem; }
.wzx-cell a:not(.wzx-btn),
.wzx-bar a:not(.wzx-btn) { color: var(--wzx-accent); }
.wzx-lead-out { max-width: 60ch; margin: 1.5rem 0 0; }

/* Numbered steps (meetings, how it works) */
.wzx-steps { border-radius: 14px; overflow: hidden; }
.wzx-step { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0.5rem 1.1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--wzx-hairline); }
.wzx-step:last-child { border-bottom: none; }
.wzx-step .wzx-eyebrow { margin: 0; padding-top: 0.2rem; }
.wzx-step__title { display: block; font-weight: 650; color: var(--wzx-ink); }
.wzx-step__body { display: block; font-size: 0.875rem; color: var(--wzx-soft); }
.wzx-step__note { display: block; font-size: 0.875rem; margin-top: 0.4rem; color: var(--wzx-dim); }
.wzx-step__note strong { color: var(--wzx-accent); font-weight: 600; }
@media (max-width: 560px) { .wzx-step { grid-template-columns: 1fr; } }

/* Warm call-out under a section */
.wzx-note { margin-top: 1.25rem; padding: 1.1rem 1.4rem; border-radius: 14px; background: var(--wzx-warm); border: 1px solid var(--wzx-warm-line); }
.wzx-note p { margin: 0; font-size: 0.97rem; color: var(--wzx-soft); }
.wzx-note strong { color: var(--wzx-ink); }

/* Two-column split inside a panel (what you get / what you bring) */
.wzx-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--wzx-hairline); }
.wzx-split h3,
.wzx-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--wzx-ink); }
.wzx-section .wzx-fine { font-size: 0.8125rem; line-height: 1.55; margin: 0.9rem 0 0; color: var(--wzx-dim); }
.wzx-fine strong { color: var(--wzx-soft); }

/* Cards: offers and the builders community */
.wzx-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; align-items: start; }
.wzx-duo--even { align-items: stretch; }
.wzx-card { padding: 1.6rem; border-radius: 14px; background: var(--wzx-panel); border: 1px solid var(--wzx-line); display: flex; flex-direction: column; gap: 0.85rem; }
.wzx-card h2 { font-size: 1.75rem; line-height: 1.15; margin: 0; }
.wzx-card p { margin: 0; font-size: 0.95rem; color: var(--wzx-soft); }
.wzx-card .wzx-eyebrow { margin: 0; }
.wzx-card__foot { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--wzx-hairline); }
.wzx-price { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 2.1rem; line-height: 1.1; color: var(--wzx-ink); }
.wzx-price small { font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-size: 1rem; font-weight: 500; color: var(--wzx-soft); }
.wzx-section .wzx-card .wzx-fine { margin: 0.25rem 0 0; }

/* A one-line bar: text one side, link or button the other */
.wzx-bar { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1.5rem 1.6rem; border-radius: 14px; border: 1px solid var(--wzx-line); }
.wzx-bar p { margin: 0; max-width: 56ch; color: var(--wzx-soft); }
.wzx-bar strong { color: var(--wzx-ink); }
.wzx-bar h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.2; margin: 0 0 0.6rem; }
.wzx-bar a { font-weight: 600; }

/* Numbered "how to join" row inside the warm CTA */
.wzx-join { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; max-width: 640px; margin: 0 auto 2rem; text-align: left; counter-reset: wzx-join; }
.wzx-join li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9rem; color: var(--wzx-soft); counter-increment: wzx-join; }
.wzx-join li::before { content: counter(wzx-join); flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--wzx-accent); color: var(--wzx-accent); font-size: 0.8125rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.wzx-join strong { color: var(--wzx-ink); }

/* Filled primary button (the red pill), and the CTA's small print.
   Accent + on-accent, not the logo red #E42928: white on #E42928 is ~4.4:1,
   under AA for 16px text; the accent pair is 5.70:1 light / 6.07:1 dark. */
.wzx-btn--primary { border: none; background: var(--wzx-accent); color: var(--wzx-on-accent); min-height: 48px; padding: 0.95rem 1.9rem; display: inline-flex; align-items: center; justify-content: center; }
.wzx-btn--primary:hover { background: var(--wzx-accent); color: var(--wzx-on-accent); filter: brightness(0.92); }
.wzx-section .wzx-cta .wzx-fine { margin: 1rem 0 0; color: var(--wzx-soft); }

/* Questions */
.wzx-faq { border-radius: 14px; overflow: hidden; }
.wzx-faq > div { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--wzx-hairline); }
.wzx-faq > div:last-child { border-bottom: none; }
.wzx-faq strong { display: block; font-weight: 650; color: var(--wzx-ink); }
.wzx-faq span { display: block; font-size: 0.875rem; margin-top: 0.2rem; color: var(--wzx-soft); }

/* ── Forms (.wzx-form) — vtp-apply component; reusable for any multi-field form ── */
.wzx-form { max-width: 640px; margin: 0 auto; text-align: left; display: grid; gap: 1.15rem; }
.wzx-form__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.15rem; }
.wzx-form .wzx-field { display: grid; gap: 0.4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.wzx-form .wzx-field__label { display: block; padding: 0; margin: 0 0 0.4rem; font-size: 0.9rem; font-weight: 600; color: var(--wzx-ink); }
.wzx-form div.wzx-field > .wzx-field__label { margin: 0; }
.wzx-form .wzx-field__hint { font-weight: 400; color: var(--wzx-dim); }
.wzx-form .wzx-input { width: 100%; box-sizing: border-box; padding: 0.8rem 1rem; border-radius: 10px; border: 1.5px solid var(--wzx-field-line); background: var(--wzx-field); color: var(--wzx-ink); font: inherit; font-size: 1rem; line-height: 1.5; }
.wzx-form textarea.wzx-input { min-height: 6rem; resize: vertical; }
.wzx-form .wzx-input::placeholder { color: var(--wzx-dim); }
.wzx-form .wzx-input:focus-visible { outline: 2px solid var(--wzx-accent); outline-offset: 1px; border-color: var(--wzx-accent); }
.wzx-form .wzx-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wzx-form .wzx-choice { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; box-sizing: border-box; padding: 0.5rem 1rem; border: 1.5px solid var(--wzx-field-line); border-radius: 100px; background: var(--wzx-field); color: var(--wzx-ink); font-size: 0.95rem; cursor: pointer; }
.wzx-form .wzx-choice input { accent-color: var(--wzx-accent); margin: 0; }
.wzx-form .wzx-choice:has(input:checked) { border-color: var(--wzx-accent); }
.wzx-form .wzx-choice:has(input:focus-visible) { outline: 2px solid var(--wzx-accent); outline-offset: 2px; }
.wzx-form__submit { text-align: center; margin-top: 0.4rem; }
.wzx-form__submit .wzx-btn { font-family: inherit; cursor: pointer; }
.wzx-section .wzx-form .wzx-fine { text-align: center; margin: 0; }
.wzx-form__msg { display: none; padding: 0.9rem 1rem; border-radius: 10px; font-size: 0.95rem; text-align: center; color: var(--wzx-ink); }
.wzx-form__msg.cc-message-success { background: var(--wzx-go-bg); border: 1px solid var(--wzx-go); }
.wzx-form__msg.cc-message-error { background: rgba(200,32,31,0.08); border: 1px solid var(--wzx-accent); }
.wzx-form__msg.cc-message-loading { color: var(--wzx-soft); }
.wzx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* Privacy and other long-form legal pages */
.wzx-legal { max-width: 64ch; }
.wzx-section .wzx-legal h2 { font-size: 1.375rem; line-height: 1.3; margin: 2.25rem 0 0.6rem; color: var(--wzx-ink); }
.wzx-section .wzx-legal p, .wzx-section .wzx-legal li { font-size: 1rem; line-height: 1.65; color: var(--wzx-soft); }
.wzx-section .wzx-legal p { margin: 0 0 0.9rem; }
.wzx-section .wzx-legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.wzx-section .wzx-legal li { margin: 0 0 0.5rem; }
.wzx-section .wzx-legal strong { color: var(--wzx-ink); }
.wzx-section .wzx-legal a { color: var(--wzx-ink); text-decoration: underline; text-underline-offset: 2px; }


/* ── Small screens and touch ──
   Audit 2026-10-12 (320–1440px): no horizontal scroll anywhere, but at 375px
   the header wrapped to four rows (~260px), nav and footer links were 21–23px
   tap targets, and eyebrow/sector/Live labels were 10–11px. Links get a 24px
   floor everywhere and 44px on phones; small labels a 12px floor. */
.wzx-nav a, .wzx-footer__links a { display: inline-flex; align-items: center; min-height: 24px; }
.wzx-footer__links a { font-size: 0.875rem; }
.wzx-eyebrow, .wzx-row__sector, .wzx-live { font-size: 0.75rem; }
.back-link { display: inline-flex; align-items: center; min-height: 24px; }

/* Phones: logo and theme toggle share the top row; the nav becomes one
   swipeable row below, CTA first so it shows without swiping.
   .wzx-header__end is unwrapped (display: contents) so its two children can
   sit in different rows. The nav bleeds to the screen edges and fades on the
   right to show there is more; its right padding clears the fade at the end. */
@media (max-width: 640px) {
  .wzx-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .wzx-hero { padding: 3rem 1.25rem 2.75rem; }
  .wzx-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .wzx-tools { padding: 1.75rem 1.25rem; }
  .wzx-cta { padding: 2.25rem 1.25rem; }

  .wzx-header { padding: 0.75rem 1.25rem 0.25rem; }
  .wzx-header__inner { gap: 0.25rem 1rem; }
  .wzx-header__end { display: contents; }
  .wzx-theme { order: 1; margin-left: auto; width: 44px; height: 44px; }
  .wzx-nav {
    order: 2;
    flex: 0 0 calc(100% + 2.5rem);
    margin: 0 -1.25rem;
    padding: 0 2.5rem 0 1.25rem;
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
  }
  .wzx-nav::-webkit-scrollbar { display: none; }
  .wzx-nav a { flex: none; white-space: nowrap; min-height: 44px; }
  .wzx-nav .wzx-nav__cta { order: -1; }

  .wzx-footer__links { gap: 0 1.25rem; }
  .wzx-footer__links a { min-height: 44px; }
  .back-link { min-height: 44px; }
}


/* engine: style v1 tokens */
:where(:root) {
  --fontFamily: Inter;
  --borderRadius: 8px;
  --primaryColor: #1a1a1a;
  --secondaryColor: #6b7280;
}
