/* ============================================================
   FastVisa — Nonprofit Google Ads landing pages
   SHARED design system + components (used by v1 / v2 / v3).
   Brand: navy #02456B + white/gray + sparing gold #f0a830.
   Type: IBM Plex Sans (body) · IBM Plex Mono (case codes) ·
   Fraunces (display, used by v1). Self-contained (no fastvisa.css).
   Per-variant LAYOUT lives in each page's own <style>.
   ============================================================ */

:root {
  /* brand */
  --navy: #02456B;
  --navy-deep: #013552;
  --navy-700: #063a58;
  --navy-tint: #e8f1f7;
  --navy-mid: #b8d3e4;
  /* gold accent — used sparingly */
  --gold: #f0a830;
  --gold-deep: #b9781a;      /* AA text on light */
  --gold-tint: #fdf3e0;
  /* brand red — the FastVisa logo mark + urgency semantics */
  --brand-red: #d8302f;
  --brand-red-deep: #b91c1c;
  /* neutrals */
  --white: #ffffff;
  --paper: #f7f9fb;
  --frame: #edf0f4;
  --ink: #0f1b26;
  --ink-2: #37474f;
  --muted: #5b6b78;
  --hair: #dbe3ea;
  --hair-2: #eef2f6;
  /* status (for product mockups) */
  --success: #15803d; --success-bg: #f0fdf4; --success-bd: #bbf7d0;
  --warning: #c2410c; --warning-bg: #fff7ed; --warning-bd: #fed7aa;
  --danger:  #b91c1c; --danger-bg:  #fef2f2; --danger-bd:  #fecaca;
  --info:    #1d4ed8; --info-bg:    #eff6ff;
  /* type */
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  /* rhythm */
  --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(2,69,107,.06), 0 1px 3px rgba(2,69,107,.05);
  --shadow: 0 6px 24px -8px rgba(2,69,107,.18), 0 2px 6px rgba(2,69,107,.06);
  --shadow-lg: 0 24px 60px -18px rgba(2,69,107,.28);
  --maxw: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 650; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: .75rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--gold); border-radius: 2px; }
.lede { font-size: 1.18rem; color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.gold-underline { background: linear-gradient(transparent 62%, var(--gold-tint) 62%); }

/* ---- buttons ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: 13px 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  transition: transform .15s var(--ease), background .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--navy-deep); font-weight: 700; }
.btn-gold:hover { background: #e79b1e; box-shadow: 0 8px 22px -8px rgba(240,168,48,.7); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--hair); }
.btn-outline:hover { border-color: var(--navy-mid); background: var(--navy-tint); }
.btn-ghost { background: transparent; color: var(--navy); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { color: var(--navy-deep); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn .ar { transition: transform .2s var(--ease); }
.btn:hover .ar { transform: translateX(3px); }
.btn-block { width: 100%; }

/* ---- header ------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--hair-2);
}
.nav-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: baseline; gap: 0; font-weight: 750; font-size: 1.32rem; letter-spacing: -.03em; color: var(--navy); }
.brand b { font-weight: 750; color: var(--navy); }
.brand .v { color: var(--brand-red); }   /* FastVisa mark: Fast (navy) + Visa (red) */
.nav-links { display: flex; gap: 26px; margin-left: 18px; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--navy); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-phone { font-size: .9rem; font-weight: 600; color: var(--navy); }
@media (max-width: 860px) { .nav-links, .nav-phone { display: none; } }

/* ---- trust / logo wall ------------------------------------- */
.trust { padding: 26px 0; border-top: 1px solid var(--hair-2); border-bottom: 1px solid var(--hair-2); background: var(--paper); }
.trust-label { text-align: center; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.logo-wall { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; }
.logo-item {
  display: inline-flex; align-items: center; gap: 9px; height: 34px;
  color: var(--navy); opacity: .78; filter: grayscale(1); transition: opacity .2s, filter .2s;
}
.logo-item:hover { opacity: 1; filter: grayscale(0); }
.logo-item img { height: 30px; width: auto; object-fit: contain; }
/* text wordmark fallback (when no logo file) */
.logo-word { font-weight: 650; font-size: .95rem; letter-spacing: -.01em; color: var(--navy); white-space: nowrap; }
.logo-word .mk { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--navy-tint); color: var(--navy); font-size: .7rem; font-weight: 800; margin-right: 7px; vertical-align: -6px; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--r-full);
  background: #fff; border: 1px solid var(--hair); font-size: .8rem; font-weight: 600; color: var(--navy);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* ---- section scaffolding ----------------------------------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-head { max-width: 680px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--ink); margin: 14px 0 12px; }
.section-head p { font-size: 1.08rem; color: var(--muted); }

/* ============================================================
   INTERACTIVE MOCKUP LIBRARY  (shared "product" surface)
   Flat, product-accurate cards — deliberately quieter than the
   marketing chrome so the demos read as "the real app".
   ============================================================ */
.mock {
  background: #fff; border: 1px solid var(--hair); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--hair-2); background: var(--paper); }
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #d7dee5; display: block; }
.mock-bar .title { font-size: .78rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.mock-bar .title b { color: var(--navy); font-weight: 700; }

/* case card / workspace */
.case-head { padding: 16px 18px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--hair-2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.case-id { font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.case-name { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.case-type { font-size: .82rem; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-full); font-size: .72rem; font-weight: 650; line-height: 1.5; }
.pill-todo { background: var(--frame); color: var(--muted); }
.pill-progress, .pill-info { background: var(--info-bg); color: var(--info); }
.pill-wait { background: var(--warning-bg); color: var(--warning); }
.pill-done { background: var(--success-bg); color: var(--success); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }

/* progress */
.prog { height: 7px; border-radius: 4px; background: var(--frame); overflow: hidden; }
.prog > i { display: block; height: 100%; background: var(--navy); border-radius: 4px; transition: width .6s var(--ease); }

/* task rows */
.tasks { list-style: none; margin: 0; padding: 6px 0; }
.task { display: flex; align-items: center; gap: 11px; padding: 10px 18px; border-top: 1px solid var(--hair-2); font-size: .9rem; }
.task:first-child { border-top: none; }
.check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--hair); flex: none; display: grid; place-items: center; }
.task.done .check { background: var(--success); border-color: var(--success); }
.task.done .check::after { content: "✓"; color: #fff; font-size: .7rem; font-weight: 800; }
.task.done .t-label { color: var(--muted); text-decoration: line-through; }
.task .t-label { flex: 1; color: var(--ink); }
.task .t-meta { font-family: var(--mono); font-size: .72rem; color: var(--muted); }

/* generic data rows (field mapping / audit) */
.rows { padding: 6px 0; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-top: 1px solid var(--hair-2); font-size: .84rem; }
.row:first-child { border-top: none; }
.row .k { font-family: var(--mono); color: var(--navy); }
.row .arrow { color: var(--gold-deep); }
.row .v { color: var(--ink-2); margin-left: auto; }

/* step-through scenario control */
.stepper { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.step-count { font-family: var(--mono); font-size: .8rem; color: var(--muted); background: var(--frame); padding: 5px 10px; border-radius: var(--r-sm); }
.step-count b { color: var(--navy); }
.timeline { display: flex; gap: 0; margin: 22px 0 8px; }
.tl-node { flex: 1; text-align: center; position: relative; padding-top: 26px; font-size: .74rem; color: var(--muted); font-weight: 600; }
.tl-node::before { content: ""; position: absolute; top: 8px; left: 50%; width: 100%; height: 2px; background: var(--hair); }
.tl-node:last-child::before { display: none; }
.tl-node .n { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--hair); z-index: 1; }
.tl-node.active { color: var(--navy); }
.tl-node.active .n { border-color: var(--navy); background: var(--navy); box-shadow: 0 0 0 4px var(--navy-tint); }
.tl-node.past .n { border-color: var(--success); background: var(--success); }
.tl-node.past::before { background: var(--success); }

/* reveal-in card used inside scenario */
.reveal-card { animation: pop .45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* expandable "why this matters" */
.disclosure { border-top: 1px solid var(--hair-2); }
.disclosure > summary { list-style: none; cursor: pointer; padding: 13px 18px; font-size: .86rem; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary .chev { margin-left: auto; transition: transform .2s var(--ease); }
.disclosure[open] > summary .chev { transform: rotate(180deg); }
.disclosure .body { padding: 0 18px 15px; font-size: .86rem; color: var(--ink-2); }

/* tabs (dual view) */
.tabs { display: inline-flex; padding: 4px; background: var(--frame); border-radius: var(--r-full); gap: 4px; }
.tab { border: none; background: transparent; font: inherit; font-size: .84rem; font-weight: 600; color: var(--muted); padding: 7px 16px; border-radius: var(--r-full); cursor: pointer; transition: .15s; }
.tab[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: #fff; padding: 26px 20px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; color: var(--navy); letter-spacing: -.02em; }
.stat .num .u { color: var(--gold-deep); }
.stat .lbl { font-size: .82rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* testimonial */
.quote { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.35; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.quote-mark { color: var(--gold); font-family: var(--serif); font-size: 2.2rem; line-height: 0; }
.cite { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.cite .avatar { width: 44px; height: 44px; }
.cite b { display: block; color: var(--ink); font-size: .95rem; }
.cite span { color: var(--muted); font-size: .85rem; }

/* lead form */
.lead { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow-lg); }
.lead h3 { font-size: 1.5rem; color: #fff; }
.lead .sub { color: #b9d2e2; margin: 8px 0 22px; font-size: .96rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .78rem; font-weight: 600; color: #a9c6d8; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: .95rem; padding: 11px 13px; border-radius: var(--r-sm);
  border: 1px solid #2a5f80; background: #023a5a; color: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #6e93aa; }
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,168,48,.25); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: .78rem; color: #9fbdd0; margin: 4px 0 18px; }
.consent a { color: #fff; text-decoration: underline; }
.form-ok { display: none; text-align: center; padding: 20px; }
.form-ok.show { display: block; }
.form-ok .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; margin: 0 auto 14px; }

/* footer */
.foot { background: var(--navy-deep); color: #cfe0ea; padding: 56px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.foot h5 { color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
.foot a { display: block; color: #a9c6d8; font-size: .9rem; padding: 5px 0; }
.foot a:hover { color: #fff; }
.foot-bar { margin-top: 40px; padding-top: 20px; border-top: 1px solid #0a4a6e; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .82rem; color: #7ea6bf; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* reveal on scroll — only hidden when JS is active (html.js set inline in
   <head>), so a JS failure or JS-disabled browser still shows all content. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- CLINIC partner banner (highlighted, near top) --------- */
.clinic-band { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 22px 26px; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; box-shadow: var(--shadow); }
.clinic-band .ct { font-size: 1.02rem; line-height: 1.5; color: #dcebf4; max-width: 62ch; }
.clinic-band .ct b { color: #fff; font-weight: 700; }
.clinic-band .ct .cl { color: var(--gold); font-weight: 800; letter-spacing: .01em; }
.sec-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.sec-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--r-full); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: .8rem; font-weight: 600; color: #eaf2f8; white-space: nowrap; }
.sec-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
@media (max-width: 820px) { .clinic-band { grid-template-columns: 1fr; } .sec-chips { justify-content: flex-start; } }

/* ---- form autofill demo ------------------------------------ */
.autofill { display: grid; grid-template-columns: 260px 1fr; gap: 0; }
.autofill .src { background: var(--paper); border-right: 1px solid var(--hair-2); padding: 16px 18px; }
.autofill .src h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.src-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px dashed var(--hair); font-size: .82rem; }
.src-row:first-of-type { border-top: none; }
.src-row .sl { color: var(--muted); }
.src-row .sv { font-family: var(--mono); color: var(--navy); font-weight: 500; }
.gov-form { padding: 18px 20px; }
.gov-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.gov-title { font-weight: 700; color: var(--ink); font-size: .95rem; }
.gov-title small { display: block; font-family: var(--mono); font-size: .72rem; color: var(--muted); font-weight: 400; }
.gov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.gov-field { }
.gov-field label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.gov-input { height: 34px; border: 1px solid var(--hair); border-radius: var(--r-sm); background: #fff; display: flex; align-items: center; padding: 0 10px; font-family: var(--mono); font-size: .82rem; color: var(--ink); transition: background .3s, border-color .3s; }
.gov-input.empty { color: transparent; background: repeating-linear-gradient(100deg, var(--frame) 0 10px, #fff 10px 20px); }
.gov-input.filled { background: var(--gold-tint); border-color: var(--gold); animation: fillflash .5s var(--ease); }
.gov-field.wide { grid-column: 1 / -1; }
@keyframes fillflash { 0% { background: #fff3d6; } 100% { background: var(--gold-tint); } }
@media (max-width: 640px) { .autofill { grid-template-columns: 1fr; } .autofill .src { border-right: none; border-bottom: 1px solid var(--hair-2); } }

/* ---- staff / client dual view (rich) ----------------------- */
.dv-stage { display: grid; place-items: center; min-height: 520px; }
.dv-panel[hidden] { display: none; }
.dv-panel { animation: pop .45s var(--ease) both; }
.metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--hair-2); border-bottom: 1px solid var(--hair-2); }
.metric { background: #fff; padding: 12px 16px; }
.metric .m-lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.metric .m-val { font-family: var(--mono); font-weight: 600; color: var(--navy); font-size: 1rem; margin-top: 2px; }
.metric .m-val.danger { color: var(--danger); }
.assignee { width: 22px; height: 22px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); display: grid; place-items: center; font-size: .62rem; font-weight: 700; flex: none; }
.activity-line { padding: 11px 18px; border-top: 1px solid var(--hair-2); font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.activity-line .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(21,128,61,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(21,128,61,.45);} 70%{box-shadow:0 0 0 7px rgba(21,128,61,0);} 100%{box-shadow:0 0 0 0 rgba(21,128,61,0);} }

/* phone frame (client portal) */
.phone { width: 320px; max-width: 100%; background: #0b1b26; border-radius: 34px; padding: 10px; box-shadow: var(--shadow-lg); }
.phone-screen { background: #fff; border-radius: 26px; overflow: hidden; }
.phone-status { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 4px; font-size: .68rem; font-family: var(--mono); color: var(--muted); }
.phone-top { display: flex; align-items: center; gap: 9px; padding: 10px 18px 12px; border-bottom: 1px solid var(--hair-2); }
.phone-top .brand { font-size: 1rem; }
.phone-lang { margin-left: auto; font-size: .68rem; font-weight: 700; color: var(--navy); background: var(--navy-tint); border-radius: var(--r-full); padding: 3px 9px; }
.phone-body { padding: 16px 18px 20px; }
.phone-hello { font-size: .82rem; color: var(--muted); }
.phone-hello b { color: var(--ink); font-weight: 700; }

/* milestone tracker (client-facing, plain language) */
.milestones { list-style: none; margin: 16px 0; padding: 0; position: relative; }
.milestones::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--hair); }
.ms { display: flex; gap: 12px; padding: 8px 0; position: relative; }
.ms .mn { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--hair); display: grid; place-items: center; font-size: .7rem; color: var(--muted); z-index: 1; flex: none; }
.ms.done .mn { background: var(--success); border-color: var(--success); color: #fff; }
.ms.current .mn { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: 0 0 0 4px var(--navy-tint); }
.ms .mt { font-size: .86rem; font-weight: 600; color: var(--ink); }
.ms .md { font-size: .74rem; color: var(--muted); }
.ms.upcoming .mt { color: var(--muted); font-weight: 500; }
.action-card { background: var(--gold-tint); border: 1px solid var(--gold); border-radius: var(--r); padding: 13px 14px; margin-top: 6px; }
.action-card .ac-lbl { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-deep); }
.action-card .ac-t { font-size: .9rem; font-weight: 600; color: var(--ink); margin: 3px 0 10px; }
.dual-note { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-top: 12px; }
.dual-note .k { width: 9px; height: 9px; border-radius: 50%; }

/* ---- AI procedure generator (interactive) ------------------ */
.ai-gen { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hair); box-shadow: var(--shadow-lg); background: #fff; }
.ai-head { background: linear-gradient(120deg, var(--navy-deep), var(--navy)); color: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.ai-head .zap { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.ai-head h4 { color: #fff; font-size: 1rem; }
.ai-head .sub { color: #b9d2e2; font-size: .8rem; }
.ai-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: rgba(74,222,128,.16); color: #4ade80; border: 1px solid rgba(74,222,128,.4); font-size: .7rem; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: var(--r-full); }
.ai-live .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }
.ai-prompt-wrap { padding: 18px 20px; }
.ai-prompt-lbl { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ai-prompt { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r); padding: 14px 16px; font-size: .95rem; color: var(--ink-2); font-style: italic; line-height: 1.5; }
.ai-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.ai-hint { font-size: .8rem; color: var(--muted); }
.ai-draft { border-top: 1px solid var(--hair-2); padding: 18px 20px 22px; }
.ai-draft[hidden] { display: none; }
.ai-draft-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ai-draft-bar .ok { color: var(--success); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.ai-draft-bar .ok::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; font-size: .7rem; }
.ai-draft h5 { font-size: 1.1rem; color: var(--ink); }
.ai-meta { font-family: var(--mono); font-size: .76rem; color: var(--muted); margin: 3px 0 14px; }
.ai-sub-lbl { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.ai-forms { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.form-chip { font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--navy); background: var(--navy-tint); border: 1px solid var(--navy-mid); border-radius: var(--r-sm); padding: 4px 10px; }
.ai-seq { list-style: none; margin: 0; padding: 0; }
.ai-task { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--paper); margin-bottom: 6px; font-size: .88rem; }
.ai-task .an { font-family: var(--mono); font-size: .74rem; color: var(--muted); width: 18px; text-align: center; flex: none; }
.ai-task .at { flex: 1; color: var(--ink); }
.ai-task .ad { font-family: var(--mono); font-size: .74rem; color: var(--navy); }
.ai-task.in { animation: pop .35s var(--ease) both; }
@media (max-width: 560px) { .ai-actions { flex-wrap: wrap; } }

/* ---- connected-systems live-sync (V2 signature interactive) -- */
.sync { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hair); box-shadow: var(--shadow-lg); background: #fff; }
.sync-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: center; padding: 14px 18px; background: var(--paper); border-bottom: 1px solid var(--hair-2); }
.sync-flow .src-b, .sync-flow .dst-b { display: flex; align-items: center; gap: 10px; }
.sync-flow .src-b b, .sync-flow .dst-b b { font-size: .88rem; color: var(--ink); }
.sync-flow .src-b .srcbare, .sync-flow .dst-b .dstbare { color: var(--muted); font-size: .74rem; }
.sync-flow .ico { width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid var(--hair); display: grid; place-items: center; font-size: .82rem; color: var(--navy); font-weight: 800; flex: none; }
.sync-flow .pipe { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0 18px; }
.sync-flow .pipe .line { width: 64px; height: 3px; background: var(--hair); border-radius: 2px; position: relative; overflow: hidden; }
.sync-flow .pipe.running .line { background: var(--navy-tint); }
.sync-flow .pipe.running .line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--navy), transparent); animation: syncflow 1.2s linear infinite; }
.sync-flow .pipe.done .line { background: var(--success); }
.sync-flow .pipe .lbl { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sync-flow .pipe.running .lbl { color: var(--info); }
.sync-flow .pipe.done .lbl { color: var(--success); }
@keyframes syncflow { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.sync-rowhead { background: var(--frame); padding: 9px 18px; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--hair-2); }
.sync-rows { padding: 4px 0; }
.sync-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 10px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--hair-2); font-size: .86rem; }
.sync-row:first-child { border-top: none; }
.sync-row .k { font-family: var(--mono); color: var(--navy); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-row .arr { color: var(--gold-deep); font-weight: 700; }
.sync-row .val { color: var(--ink-2); font-family: var(--mono); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-row.synced .val { color: var(--success); }
.sync-status { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: var(--r-full); white-space: nowrap; }
.sync-status.pending { background: var(--frame); color: var(--muted); }
.sync-status.syncing { background: var(--info-bg); color: var(--info); }
.sync-status.synced { background: var(--success-bg); color: var(--success); }
.sync-status.conflict { background: var(--warning-bg); color: var(--warning); }
.sync-status .tick { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: .62rem; line-height: 1; }
.sync-status.synced .tick { background: var(--success); border-color: var(--success); color: #fff; }
.sync-status.synced .tick::after { content: "✓"; }
.sync-status.conflict .tick { border-style: dashed; }

/* conflict resolution disclosure */
.sync .conflict-disclosure { background: var(--gold-tint); }
.sync .conflict-disclosure > summary { color: var(--gold-deep); }
.sync .conflict-disclosure .body { padding-top: 4px; }
.sync .conflict-options { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.sync .conflict-opt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--warning-bd); border-radius: var(--r-sm); background: #fff; font-size: .82rem; }
.sync .conflict-opt .co-k { font-family: var(--mono); color: var(--navy); font-weight: 600; }
.sync .conflict-opt .co-val { color: var(--ink-2); margin-left: auto; }
.sync .conflict-opt .co-act { background: var(--navy); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: var(--r-sm); border: none; cursor: pointer; }
.sync .conflict-opt .co-act:hover { background: var(--navy-deep); }

/* sync audit log */
.sync-audit { border-top: 1px solid var(--hair-2); background: var(--navy-deep); color: #eaf2f8; }
.sync-audit .ah { padding: 12px 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sync-audit .ah .ic { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; }
.sync-audit .ah h5 { color: #fff; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.sync-audit .ah .cnt { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: #8fb4ce; }
.sync-audit ul { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.sync-audit li { display: flex; gap: 12px; padding: 9px 18px; border-top: 1px solid rgba(255,255,255,.06); font-size: .78rem; color: #cfe0ea; }
.sync-audit li:first-child { border-top: none; }
.sync-audit li .ts { font-family: var(--mono); font-size: .68rem; color: #7ea6bf; flex: none; width: 64px; }
.sync-audit li .ev { color: #eaf2f8; }
.sync-audit li .ev.warn { color: var(--gold); }
.sync-audit li.empty { color: #7ea6bf; font-style: italic; padding: 11px 18px; }

/* ---- integration cards (V2) -------------------------------- */
.integ-strip { display: flex; flex-wrap: wrap; gap: 14px; }
.integ-card { flex: 1 1 165px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--hair); background: #fff; display: flex; align-items: center; gap: 11px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s; }
.integ-card:hover { border-color: var(--navy-mid); box-shadow: var(--shadow); transform: translateY(-2px); }
.integ-card .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--navy-tint); color: var(--navy); display: grid; place-items: center; font-size: .9rem; font-weight: 800; flex: none; }
.integ-card b { font-size: .86rem; color: var(--ink); display: block; }
.integ-card small { font-size: .7rem; color: var(--muted); display: block; }

/* ---- security pillars band (V2) --------------------------- */
.sec-band { background: var(--navy-deep); color: #fff; padding: 92px 0; position: relative; overflow: hidden; }
.sec-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 20% 0%, rgba(255,255,255,.05), transparent 60%); }
.sec-band .wrap { position: relative; }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.sec-card { padding: 22px 24px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); background: rgba(255,255,255,.04); backdrop-filter: blur(4px); }
.sec-card .si { width: 38px; height: 38px; border-radius: 10px; background: rgba(240,168,48,.16); color: var(--gold); display: grid; place-items: center; font-size: 1rem; margin-bottom: 14px; }
.sec-card h3 { font-size: 1rem; color: #fff; margin-bottom: 7px; }
.sec-card p { font-size: .88rem; color: #a9c6d8; }
.sec-band .section-head { color: #fff; }
.sec-band .eyebrow { color: var(--gold); }
.sec-band .section-head h2 { color: #fff; }
.sec-band .section-head p { color: #a9c6d8; }

/* ---- CTA quote band (V2) ---------------------------------- */
.cta-band { background: linear-gradient(140deg, var(--navy), var(--navy-deep)); color: #fff; padding: 80px 0; }
.cta-band .eyebrow { color: var(--gold); }

/* focus visibility (a11y floor) */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

/* responsive helpers */
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sec-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .sync-flow { grid-template-columns: 1fr; gap: 10px; }
  .sync-flow .pipe { flex-direction: row; padding: 4px 0; }
  .sync-flow .pipe .line { width: 100%; }
  .sync-flow .dst-b { justify-content: flex-start; }
  .sync-flow .dst-b > div { text-align: left !important; margin: 0 !important; }
  .sync-rowhead { grid-template-columns: 1fr auto auto; }
  .sync-rowhead > :nth-child(3) { display: none; }
  .sync-row { grid-template-columns: 1fr auto; gap: 8px; }
  .sync-row .arr { display: none; }
  .sync-row .val { grid-column: 1; font-size: .76rem; }
  .sync-row .sync-status { grid-column: 2; grid-row: 1; }
  .sync-row .k { grid-column: 1 / -1; font-size: .76rem; }
}

/* ---- grant report builder (V3 signature interactive) ------- */
.report-builder { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); color: var(--ink); }
.report-top { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--hair-2); background: var(--paper); }
.report-top .report-mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--mono); font-size: .72rem; font-weight: 700; flex: none; }
.report-top h4 { color: var(--ink); font-size: .95rem; }
.report-top p { color: var(--muted); font-size: .72rem; margin-top: 2px; }
.report-top .report-saved { margin-left: auto; color: var(--success); font-size: .7rem; font-weight: 700; }
.report-workspace { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 440px; }
.report-sidebar { padding: 16px; border-right: 1px solid var(--hair-2); background: #fbfcfd; }
.report-control + .report-control { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hair-2); }
.report-control h5 { margin: 0 0 9px; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; }
.report-option { width: 100%; display: flex; align-items: center; gap: 9px; padding: 7px 0; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: .78rem; text-align: left; cursor: pointer; }
.report-option .toggle { width: 28px; height: 16px; border-radius: 10px; background: #cbd5df; padding: 2px; transition: background .18s; flex: none; }
.report-option .toggle::after { content: ""; display: block; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18); transition: transform .18s; }
.report-option.active .toggle { background: var(--navy); }
.report-option.active .toggle::after { transform: translateX(12px); }
.report-filter { display: inline-flex; align-items: center; gap: 5px; margin: 0 5px 6px 0; padding: 5px 8px; border: 1px solid var(--hair); border-radius: var(--r-full); background: #fff; color: var(--muted); font: inherit; font-size: .68rem; cursor: pointer; }
.report-filter.active { border-color: var(--navy-mid); background: var(--navy-tint); color: var(--navy); font-weight: 600; }
.report-main { min-width: 0; display: flex; flex-direction: column; }
.report-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair-2); border-bottom: 1px solid var(--hair-2); }
.report-summary div { padding: 14px 16px; background: #fff; }
.report-summary span { display: block; color: var(--muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; }
.report-summary b { display: block; margin-top: 3px; color: var(--navy); font-family: var(--mono); font-size: 1.05rem; }
.report-table-wrap { flex: 1; min-width: 0; overflow: auto; }
.report-table { width: 100%; border-collapse: collapse; min-width: 500px; table-layout: fixed; }
.report-table th, .report-table td { padding: 11px 12px; border-bottom: 1px solid var(--hair-2); text-align: left; font-size: .72rem; vertical-align: middle; }
.report-table th { position: sticky; top: 0; background: var(--frame); color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; z-index: 1; }
.report-table td:first-child { color: var(--ink); font-weight: 600; }
.report-table td.mono { color: var(--navy); }
.report-table [data-report-field].is-hidden { display: none; }
.report-footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 13px 16px; border-top: 1px solid var(--hair-2); background: var(--paper); }
.report-footer select { min-height: 34px; padding: 0 30px 0 10px; border: 1px solid var(--hair); border-radius: var(--r-sm); background: #fff; color: var(--ink-2); font: inherit; font-size: .74rem; }
.report-footer .report-status { margin-left: auto; color: var(--muted); font-size: .7rem; }
.report-footer .report-status.success { color: var(--success); font-weight: 700; }
@media (max-width: 760px) {
  .report-workspace { grid-template-columns: 1fr; }
  .report-sidebar { border-right: 0; border-bottom: 1px solid var(--hair-2); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .report-control + .report-control { margin: 0; padding: 0; border-top: 0; }
  .report-summary div { padding: 11px 10px; }
  .report-summary b { font-size: .88rem; }
  .report-footer .report-status { width: 100%; margin-left: 0; }
}
@media (max-width: 480px) { .report-sidebar { grid-template-columns: 1fr; } }
