/* WCV public marketing site — shared stylesheet.
   Brand tokens match the app's own established identity exactly (same
   values as the pre-Flutter boot shell that used to live in web/index.html,
   and the same colors _WCVLogoPainter/AppColors use in-app): primary blue
   #2563EB, teal accent #14B8A6, ink #0F172A, muted #6B7A8D, hairline
   #E2E8F0, tint background #F0F6FF. Nothing invented here — reused, not
   redesigned. System font stack only (no @font-face, no webfont network
   dependency) — this is a lightweight, fast-loading marketing site, per
   the ticket's own performance requirement.

   No JavaScript is required for anything this stylesheet drives: the
   mobile nav uses a checkbox + sibling-selector toggle, FAQ uses native
   <details>/<summary>. The one page with any JS at all (site/index.html's
   hash-redirect shim) doesn't touch layout. */

:root {
  --wcv-primary: #2563EB;
  --wcv-primary-dark: #1D4ED8;
  --wcv-teal: #14B8A6;
  --wcv-ink: #0F172A;
  --wcv-muted: #6B7A8D;
  --wcv-border: #E2E8F0;
  --wcv-surface: #FFFFFF;
  --wcv-tint: #F0F6FF;
  --wcv-tint-2: #ECF2FF;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--wcv-surface);
  color: var(--wcv-ink);
  font-family: var(--font-stack);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wcv-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 32px);
}

/* ── Skip link (accessibility) ─────────────────────────────────────── */
.wcv-skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--wcv-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
  font-weight: 700;
  text-decoration: none;
}
.wcv-skip-link:focus {
  inset-inline-start: 0;
}

/* ── Focus visibility (accessibility) ──────────────────────────────── */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--wcv-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Header / nav ───────────────────────────────────────────────────── */
.wcv-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--wcv-border);
}
.wcv-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.wcv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.wcv-brand img {
  width: 32px;
  height: calc(32px / 0.76);
  border-radius: 8px;
}
.wcv-brand span {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--wcv-ink);
}

.wcv-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.wcv-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--wcv-muted);
}
.wcv-nav-links a:hover,
.wcv-nav-links a[aria-current="page"] {
  color: var(--wcv-primary);
  background: var(--wcv-tint);
}

.wcv-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.wcv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.wcv-btn-primary {
  background: var(--wcv-primary);
  color: #FFFFFF !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}
.wcv-btn-primary:hover { background: var(--wcv-primary-dark); }
.wcv-btn-ghost {
  background: transparent;
  color: var(--wcv-ink) !important;
  border-color: var(--wcv-border);
}
.wcv-btn-ghost:hover { background: var(--wcv-tint); }
.wcv-btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Mobile nav toggle — progressive enhancement, NOT required for the nav to
   work. By default (no JS, or JS hasn't run yet) .wcv-nav-links is normal
   flow and fully visible/usable at every width — satisfies "usable if
   JavaScript is disabled" for real, not just in theory. assets/nav.js only
   ever ADDS the .wcv-nav-collapsed class once it has successfully wired a
   real, keyboard-accessible <button> (aria-expanded/aria-controls) to
   toggle it, and only then reveals that button (it ships `hidden` in the
   HTML) — so a JS-disabled visitor never even sees an inert button. */
.wcv-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--wcv-border);
  background: var(--wcv-surface);
  cursor: pointer;
}
.wcv-menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .wcv-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    padding-bottom: 10px;
  }
  .wcv-nav-row { flex-wrap: wrap; }
  .wcv-nav-links a { min-height: 48px; width: 100%; }
  .wcv-menu-btn:not([hidden]) { display: inline-flex; }
  .wcv-nav-links.wcv-nav-collapsed {
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0;
  }
  .wcv-nav-actions .wcv-btn-ghost { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.wcv-hero {
  background: linear-gradient(135deg, var(--wcv-tint) 0%, var(--wcv-tint-2) 55%, #F8FAFF 100%);
  padding: clamp(40px, 8vw, 88px) 0 clamp(48px, 9vw, 96px);
}
.wcv-hero-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.wcv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--wcv-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.wcv-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 5.4vw, 48px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.wcv-hero p.wcv-lead {
  margin: 0 auto 30px;
  max-width: 620px;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.6;
  color: var(--wcv-muted);
}
.wcv-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Section shell ──────────────────────────────────────────────────── */
.wcv-section {
  padding: clamp(48px, 8vw, 88px) 0;
}
.wcv-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(28px, 5vw, 44px);
}
.wcv-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.wcv-section-head p {
  margin: 0;
  color: var(--wcv-muted);
  font-size: 16px;
  line-height: 1.6;
}
.wcv-section-alt { background: var(--wcv-tint); }

/* ── Feature / benefit cards ───────────────────────────────────────── */
.wcv-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.wcv-card {
  text-align: start;
  background: var(--wcv-surface);
  border: 1px solid var(--wcv-border);
  border-radius: 16px;
  padding: 24px;
}
.wcv-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--wcv-tint);
  color: var(--wcv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.wcv-card-icon svg { width: 22px; height: 22px; }
.wcv-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.wcv-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--wcv-muted);
}

/* ── How it works ───────────────────────────────────────────────────── */
.wcv-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: wcv-step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.wcv-steps li {
  counter-increment: wcv-step;
  text-align: start;
  background: var(--wcv-surface);
  border: 1px solid var(--wcv-border);
  border-radius: 16px;
  padding: 22px;
  position: relative;
}
.wcv-steps li::before {
  content: counter(wcv-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--wcv-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.wcv-steps h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; }
.wcv-steps p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--wcv-muted); }

/* ── FAQ (native <details>, no JS) ──────────────────────────────────── */
.wcv-faq {
  max-width: 760px;
  margin: 0 auto;
}
.wcv-faq details {
  background: var(--wcv-surface);
  border: 1px solid var(--wcv-border);
  border-radius: 14px;
  padding: 4px 20px;
  margin-bottom: 12px;
}
.wcv-faq summary {
  cursor: pointer;
  list-style: none;
  padding-block: 16px;
  padding-inline: 0 28px;
  font-weight: 700;
  font-size: 15.5px;
  position: relative;
}
.wcv-faq summary::-webkit-details-marker { display: none; }
.wcv-faq summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0;
  top: 14px;
  font-size: 22px;
  font-weight: 400;
  color: var(--wcv-primary);
  transition: transform 160ms ease;
}
.wcv-faq details[open] summary::after {
  content: "\2212";
}
.wcv-faq p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--wcv-muted);
}

/* ── Generic content blocks (used on pricing / feature explainer pages) */
.wcv-prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--wcv-ink);
}
.wcv-prose p { margin: 0 0 16px; }
.wcv-note {
  border: 1px solid var(--wcv-border);
  background: var(--wcv-tint);
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--wcv-ink);
  max-width: 720px;
  margin: 0 auto 16px;
}

/* ── Final CTA band ─────────────────────────────────────────────────── */
.wcv-cta-band {
  background: var(--wcv-ink);
  color: #fff;
  border-radius: 24px;
  padding: clamp(36px, 7vw, 56px) clamp(24px, 6vw, 48px);
  text-align: center;
  margin: 0 clamp(16px, 5vw, 32px);
}
.wcv-cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.wcv-cta-band p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15.5px;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.wcv-site-footer {
  border-top: 1px solid var(--wcv-border);
  padding: clamp(36px, 6vw, 52px) 0 28px;
}
.wcv-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 28px;
}
.wcv-footer-brand p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--wcv-muted);
  max-width: 320px;
  line-height: 1.6;
}
.wcv-footer-col h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--wcv-muted);
}
.wcv-footer-col ul { list-style: none; margin: 0; padding: 0; }
.wcv-footer-col li { margin-bottom: 8px; }
.wcv-footer-col a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--wcv-ink);
}
.wcv-footer-col a:hover { color: var(--wcv-primary); }
.wcv-footer-bottom {
  border-top: 1px solid var(--wcv-border);
  padding-top: 20px;
  font-size: 13px;
  color: var(--wcv-muted);
}
@media (max-width: 700px) {
  .wcv-footer-grid { grid-template-columns: 1fr 1fr; }
  .wcv-footer-brand { grid-column: 1 / -1; }
}

/* ── Language switcher (plain HTML links — section 16: no JS-driven or
   Accept-Language-driven redirects; every language is a real, separately
   crawlable <a href>) ──────────────────────────────────────────────── */
.wcv-lang-switcher {
  position: relative;
  flex: none;
}
.wcv-lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--wcv-border);
  background: var(--wcv-surface);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--wcv-ink);
  cursor: pointer;
}
.wcv-lang-current svg { width: 14px; height: 14px; opacity: 0.7; }
.wcv-lang-panel {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 180px;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--wcv-surface);
  border: 1px solid var(--wcv-border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
/* Native <details> disclosure — no JS required (see section 16/17). */
.wcv-lang-switcher:not([open]) .wcv-lang-panel { display: none; }
.wcv-lang-switcher[open] .wcv-lang-panel { display: grid; }
.wcv-lang-switcher > summary { list-style: none; }
.wcv-lang-switcher > summary::-webkit-details-marker { display: none; }
.wcv-lang-panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  text-decoration: none;
  color: var(--wcv-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wcv-lang-panel a:hover,
.wcv-lang-panel a[aria-current="true"] {
  background: var(--wcv-tint);
  color: var(--wcv-primary);
}
@media (max-width: 860px) {
  .wcv-lang-panel { grid-template-columns: 1fr; inset-inline-end: auto; inset-inline-start: 0; }
}

/* ── Utility ────────────────────────────────────────────────────────── */
.wcv-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
