﻿/* Verapath marketing - design tokens, base and shared components (design_handoff_v16 'v16-verapath.css'). */
/* ============================================================
   VERAPATH - Design System foundation
   Pulled from the live Framer build (tokens + fonts verified).
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face{
  font-family:"Serrif";
  src:url("/fonts/serrif-regular.woff") format("woff");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Serrif";
  src:url("/fonts/serrif-medium.woff") format("woff");
  font-weight:500; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Serrif";
  src:url("/fonts/serrif-regular-italic.woff") format("woff");
  font-weight:400; font-style:italic; font-display:swap;
}
@font-face{
  font-family:"Season Sans";
  src:url("/fonts/season-sans-regular.woff") format("woff");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Season Sans";
  src:url("/fonts/season-sans-regular-italic.woff") format("woff");
  font-weight:400; font-style:italic; font-display:swap;
}
@font-face{
  font-family:"Season Sans";
  src:url("/fonts/season-sans-semibold.woff") format("woff");
  font-weight:650; font-style:normal; font-display:swap;
}

/* ---------- Tokens ---------- */
:root{
  /* core brand */
  --forest:#223029;        /* primary ink / dark surfaces */
  --forest-2:#223029;      /* Midnight (was #1a241f, off-palette) */
  --forest-hover:#2b3b33;  /* Midnight, lifted - dark card hover */
  --forest-lift:#2e3f36;   /* Midnight, lifted further - gradient highlight */
  --forest-3:#223029;      /* Midnight (was #0f1612, off-palette) */
  --lime:#a3e96b;          /* signature accent */
  --green:#0ea665;         /* Verapath Green - brand value, graphics & dark surfaces */
  --green-ink:#0c975c;     /* Verapath Green, accessible variant: green TEXT/glyphs on
                              light surfaces. #0ea665 measures only 2.94:1 on Gray 04,
                              under the 3:1 minimum. This clears it on every light
                              surface we use - Gray 04 3.50:1, White 3.75:1, Mint 3.21:1. */
  --ink:#223029;           /* Verapath Midnight - body text on light */

  /* paper / neutrals */
  --paper:#f7f7f7;         /* Gray 04 - page background */
  --gray-04:#f7f7f7;       /* Gray 04 */
  --paper-2:#ffffff;       /* White - card / panel surface */
  --paper-3:#f7f7f7;       /* Gray 04 - secondary surface */
  --beige:#f1e9e2;         /* Beige - ACCENT ONLY (data-viz, emphasis) */
  --beige-50:#f8f4f0;      /* Beige 50% - ACCENT ONLY */
  --line:#e0e3e2;          /* hairline on light */
  --line-soft:#22302922;   /* hairline tint */
  --mute:#909893;          /* muted text */
  --mute-2:#b9c0be;

  /* tints */
  --mint:#daf4dd;
  --mint-2:#edfaee;
  --violet:#bca9f1;
  --violet-2:#e5daf4;
  --violet-3:#f1edfa;
  --coral:#f9574d;
  /* small status text on light surfaces (form messages): the brand green and coral mixed
     toward Midnight so they clear 4.5:1 on Gray 04 and White, which --green-ink (3.5:1,
     fine for large text and glyphs) and --coral do not */
  --ok-ink:color-mix(in srgb,var(--green-ink) 70%,var(--ink));
  --error-ink:color-mix(in srgb,var(--coral) 70%,var(--ink));

  /* on dark */
  --on-dark:#f8f8f3;
  --on-dark-mute:#b9c0be;
  --on-dark-line:#ffffff1f;

  /* type */
  --serif:"Serrif","Iowan Old Style","Times New Roman",serif;
  --sans:"Season Sans","Helvetica Neue",Arial,sans-serif;

  /* fluid type scale */
  --t-display: clamp(3rem, 1.2rem + 6.2vw, 7rem);
  --t-h1:      clamp(2.4rem, 1.2rem + 4vw, 4.6rem);
  --t-h2:      clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem);
  --t-h3:      clamp(1.35rem, 1rem + 1.2vw, 1.9rem);
  --t-lead:    clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem);
  --t-body:    1.0625rem;
  --t-small:   0.875rem;
  --t-eyebrow: 0.78rem;

  /* spacing rhythm */
  --shell: min(92vw, 1240px);
  --radius:18px;
  --radius-lg:28px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --ease-soft:cubic-bezier(.44,0,.56,1);
}

/* ---------- Resets / base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;scroll-behavior:smooth}
body{margin:0;font-family:var(--sans);font-size:var(--t-body);line-height:1.55;color:var(--ink);background:var(--paper);
  font-feature-settings:"ss01","cv09","cv03","cv04","cv11";}
h1,h2,h3,h4,p,figure{margin:0}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font-family:inherit}

/* ---------- Shared type helpers ---------- */
.serif{font-family:var(--serif);font-weight:400;letter-spacing:-.01em;line-height:1.04}
.eyebrow{font-family:var(--sans);font-weight:650;font-size:var(--t-eyebrow);letter-spacing:.18em;text-transform:uppercase}
.lead{font-size:var(--t-lead);line-height:1.5;color:color-mix(in srgb,var(--ink) 78%,transparent)}

/* italic emphasis in headlines uses the serif italic - a brand signature */
.serif em, .ital{font-style:italic;font-family:var(--serif)}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:.55em;font-family:var(--sans);font-weight:650;white-space:nowrap;
  font-size:.98rem;letter-spacing:.005em;padding:.85em 1.35em;border-radius:4px;border:1px solid transparent;
  cursor:pointer;transition:transform .35s var(--ease),background .35s var(--ease),color .35s var(--ease),border-color .35s var(--ease);
  will-change:transform}
.btn:hover{transform:translateY(-2px)}
.btn-lime{background:var(--lime);color:var(--forest)}
.btn-lime:hover{background:#b6f184}
.btn-forest{background:var(--forest);color:var(--on-dark)}
/* V13: guide Button Styles - filled Gray 03 secondary on light surfaces.
   .btn-ghost-dark is untouched, so buttons over the hero video and the
   Midnight CTA panels keep the outline treatment that reads there. */
.btn-ghost{background:var(--line);border-color:var(--line);color:var(--ink)}
.btn-ghost:hover{background:#cdd2d0;border-color:#cdd2d0}
.btn-ghost:active{background:#b9c0be;border-color:#b9c0be}
.btn-ghost-dark{background:transparent;border-color:var(--on-dark-line);color:var(--on-dark)}
.btn .arr{transition:transform .35s var(--ease)}
.btn:hover .arr{transform:translateX(4px)}

/* ---------- Reveal (works without a host; JS opt-in) ---------- */
/* Retained from v12: production drives the entrance animation purely in CSS, so a .reveal never waits on JavaScript - it plays from first paint and ends visible with no script at all (the no-JS fallback NEWS_FIX.md §4 asks for). The handoff's base rule (opacity:0 until a JS-applied .in) is deliberately not taken: Blazor's prerender -> interactive swap replaces the nodes and wipes the class, which is how a hero ships blank. .vp-drawn = already drawn, so nothing replays: Verapath.Website.lib.module.js stamps it on the nodes the hydration swap inserts, and vp-marketing.js once a reveal has finished (which also stops the animation's fill pinning transform:none over hover lifts). */
.B .reveal{animation:vp-reveal .9s var(--ease) both}
.B .reveal.vp-drawn{animation:none}
@keyframes vp-reveal{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
/* V16 scroll reveal, opt-in. Hiding happens ONLY under html.js-reveal, which vp-marketing.js sets when it arms the reveal watcher, and only on .vp-await: the reveals that were still below the fold when it armed. They fade in as they scroll into view (.in, staggered by data-delay), then settle to .vp-drawn. Anything already on screen keeps the CSS entrance above, so painted content never blinks out. Re-armed after every Blazor navigation (enhancedload and each page's vpInitInteractions call). */
html.js-reveal .B .reveal.vp-await{opacity:0;transform:translateY(26px);animation:none}
html.js-reveal .B .reveal.vp-await.in{opacity:1;transform:none;transition:opacity .9s var(--ease),transform .9s var(--ease)}
@media (prefers-reduced-motion:reduce){
  .B .reveal{animation:none}
  html.js-reveal .B .reveal.vp-await{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
}

/* shared brand mark path data is inlined per-page for color control */

/* Nav CTAs (Log in + Request a demo). .navcta is the bar's last child, so
   `.bar > *:last-child{margin-left:auto}` in vp-site.css pins it to the right
   end of the bar, and vp-marketing.js injects the hamburger into it. V16 keeps
   both buttons in the bar at every width (gap as the handoff's 12px wrapper);
   only at 640px and below does Log in leave the bar for the drawer
   (.drawer-login, in the phone block at the end of this file). */
.B .navcta{display:flex;align-items:center;gap:12px;flex:none}

/* ---------- mobile nav drawer ---------- */
.B .navburger{display:none;flex:none;width:42px;height:42px;border-radius:12px;border:1px solid currentColor;background:transparent;color:inherit;cursor:pointer;padding:0;align-items:center;justify-content:center;opacity:.75;transition:opacity .25s}
.B .navburger:hover{opacity:1}
.B .navburger span{display:block;position:relative;width:18px;height:1.5px;background:currentColor;transition:transform .3s var(--ease),opacity .2s}
.B .navburger span::before,.B .navburger span::after{content:"";position:absolute;left:0;width:18px;height:1.5px;background:currentColor;transition:transform .3s var(--ease)}
.B .navburger span::before{top:-6px}
.B .navburger span::after{top:6px}
.B nav[data-nav].navopen .navburger span{background:transparent}
.B nav[data-nav].navopen .navburger span::before{transform:translateY(6px) rotate(45deg)}
.B nav[data-nav].navopen .navburger span::after{transform:translateY(-6px) rotate(-45deg)}
@media(max-width:1090px){
  .B .navburger{display:inline-flex}
  .B nav[data-nav]{background:color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(16px) saturate(1.2)}
  .B nav[data-nav] .brand,.B nav[data-nav] .brand .mk,.B nav[data-nav] .navburger{color:var(--forest)!important}
  .B nav[data-nav] .btn-ghost[data-login]{border-color:var(--line)!important;color:var(--ink)!important}
  .B nav[data-nav].navopen .navlinks{display:flex;flex-direction:column;gap:0;position:fixed;top:76px;left:0;right:0;
    background:var(--paper);border-top:1px solid var(--line);border-bottom:1px solid var(--line);
    padding:14px max(20px,calc((100vw - var(--shell)) / 2)) 24px;max-height:calc(100vh - 76px);overflow-y:auto;
    box-shadow:0 30px 70px -34px rgba(34,48,41,.4);color:var(--forest);font-size:1.06rem}
  .B nav[data-nav].navopen .navlinks > a,.B nav[data-nav].navopen .navlinks .has-drop > .trg{display:block;padding:14px 2px;border-bottom:1px solid var(--line);font-weight:650;color:var(--forest)}
  .B nav[data-nav].navopen .navlinks .has-drop{position:static}
  .B nav[data-nav].navopen .navlinks .has-drop > .trg::after{float:right;margin-top:.45em}
  .B nav[data-nav].navopen .navlinks .drop{position:static;transform:none;opacity:1;visibility:visible;pointer-events:auto;
    display:none;box-shadow:none;border:0;border-radius:0;background:transparent;min-width:0;padding:2px 0 10px;transition:none}
  .B nav[data-nav].navopen .navlinks .has-drop.open > .drop{display:flex}
  .B nav[data-nav].navopen .navlinks .drop a{padding:10px 12px;font-weight:400}
  .B nav[data-nav] .navlinks .has-drop::after{display:none}
}

/* ---------- nav dropdown hover bridge (loaded on every page) ---------- */
.B .navlinks .has-drop::after{content:"";position:absolute;left:0;right:0;top:100%;height:22px;display:none}
.B .navlinks .has-drop:hover::after{display:block}
.B .navlinks .drop{transition-delay:.28s}
.B .navlinks .has-drop:hover .drop,.B .navlinks .has-drop:focus-within .drop{transition-delay:0s}

/* ---------- scroll-to-top button (auto-injected by verapath.js) ---------- */
.B .to-top{position:fixed;right:26px;bottom:30px;z-index:80;width:52px;height:52px;border-radius:50%;border:1px solid color-mix(in srgb,var(--lime) 40%,transparent);background:var(--forest);color:var(--lime);display:grid;place-items:center;cursor:pointer;box-shadow:0 18px 40px -16px rgba(34,48,41,.6);opacity:0;visibility:hidden;transform:translateY(14px) scale(.9);transition:opacity .35s ease,transform .35s ease,visibility .35s,background .25s,color .25s;padding:0}
.B .to-top.show{opacity:1;visibility:visible;transform:none}
.B .to-top:hover{background:var(--lime);color:var(--forest);transform:translateY(-3px)}
.B .to-top svg{width:22px;height:22px}
@media(max-width:640px){.B .to-top{right:16px;bottom:18px;width:46px;height:46px}}

/* ---------- Official Verapath logotype ---------- */
/* Trademarked artwork used unmodified; color applied via currentColor
   in sanctioned palette values only (Midnight / White). */
.B .brand{gap:.22rem;align-items:flex-end;line-height:0}
.B .brand .lg{display:block;height:35px}          /* brand minimum: 35px */
.B .brand .lg svg{height:100%;width:auto;display:block}
.B .brand .brandr{font-family:var(--sans);font-size:8px;line-height:1;font-weight:400;letter-spacing:0;margin-bottom:5px;opacity:.7}
/* clear space: safe area equal to the icon height on all sides */
.B nav .bar .brand{margin-right:35px}
.B footer .brand .lg{height:44px}

@media(max-width:520px){.B .brand .lg{height:30px}}

/* ---------- item 07 (option C) — green only where it passes -----------
   Verapath Green #0ea665 measures 3.153:1 on White but only 2.943:1 on the
   Gray 04 canvas this version uses, so it clears neither the AA large-text
   nor the non-text minimum there. Small UI text therefore moves to Midnight,
   and the large emphasis + glyphs that keep green draw on --green-ink, the
   accessible variant, which clears 3:1 on Gray 04, White and Mint alike. */
.B .eyebrow{color:var(--forest)}
.B .pg .k,
.B .prod .cat,
.B .res-card .k,
.B .art-eyb{color:var(--forest)}
.B .go,
.B .pg .go{color:var(--forest)}
.B label,
.B .field label,
.B .hint,
.B .helper{color:var(--forest)}
/* inline links: Midnight + underline keeps the affordance without relying on
   a green that clears neither threshold on this canvas */
.B p a:not(.btn):not(.go),
.B li a:not(.btn):not(.go){color:var(--forest);text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:.06em;text-decoration-color:color-mix(in srgb,var(--green) 55%,transparent)}
.B p a:not(.btn):not(.go):hover,
.B li a:not(.btn):not(.go):hover{color:var(--green);text-decoration-color:var(--green)}
/* dark surfaces are unaffected: Bright Green on Midnight is 9.47:1 */
.B .icta .eyebrow,
.B .cta .eyebrow,
.B [class*="dark"] .eyebrow{color:var(--lime)}

/* ---------- headline italic: off ----------
   Brand Guidelines type hierarchy lists Headlines and Subheaders as
   "Serrif Regular & Medium" - italic is sanctioned only for Large Bodycopy
   and Bodycopy. <em> is italic in the UA stylesheet, so removing the
   declaration is not enough; headings set it back to normal explicitly and
   keep <em> purely as a colour accent. Body-scale italic (pull quotes,
   .art-note, .ftag, the cooperative statement) is untouched. */
.B h1 em,.B h2 em,.B h3 em,.B h4 em,.B h5 em,
.B .big em,.B .head em,.B .midcta em, .B .midcta .t em,.B .proof .n em,
.B .art-dl .t em,.B .pdef em,.B .tg em{font-style:normal}
.B .ftag{font-style:normal!important}

/* V13: ghost buttons over media stay translucent (V10 behaviour); the filled
   Gray 03 secondary applies on light surfaces.

   NO global nav [data-login] override: only 4 of 18 pages have a media hero
   (Platform + the 3 industry pages) and each declares that rule itself. A
   global one made the label white on the 14 light pages. Surface darkness is
   verified from the rendered page, never inferred from a class name - only
   .midcta and the architecture panel are Midnight, and both already use
   .btn-ghost-dark. */
html .B nav[data-nav].scrolled .btn-ghost[data-login]{background:var(--line);border-color:var(--line);color:var(--ink)}
html .B nav[data-nav].scrolled .btn-ghost[data-login]:hover{background:#cdd2d0;border-color:#cdd2d0}
html .B .hero .btn-ghost{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.3);color:#fff}
html .B .hero .btn-ghost:hover{background:rgba(255,255,255,.16);border-color:#fff}
html .B .cb-hero .btn-ghost,html .B .cu-hero .btn-ghost,html .B .w-hero .btn-ghost{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.32);color:#fff}
/* NOTE: .icta is a LIGHT section on every page (the closing CTA was moved
   to a light gradient earlier in the project), so it deliberately gets NO
   translucent override - it falls through to the filled Gray 03 secondary.
   The only genuinely Midnight panels are .midcta and the architecture/quote
   panels, and those already use .btn-ghost-dark. */

/* ---------- Midnight footer ----------
   Grounds the page with a dark base. `html` prefix so it outranks the pages'
   own inline footer rules (V13 Platform.html sets background:transparent).
   All values are guide colours on Midnight, where each is documented:
   White #f8f8f3 12.90:1, Gray 02 #b9c0be 7.29:1, Bright Green #a3e96b 9.47:1. */
html .B footer{background:var(--forest);color:var(--on-dark-mute);border-top:none;padding:66px 0 34px;position:relative}
html .B footer .brand{color:var(--on-dark)}
html .B footer .brand .lg,html .B footer .brand .mk{color:var(--on-dark)}
html .B footer h5{color:rgba(255,255,255,.5)}
html .B footer .ftag{color:var(--on-dark-mute)}
html .B footer a,html .B footer .vp-consent-manage-link{color:var(--on-dark-mute)}
html .B footer a:hover,html .B footer .vp-consent-manage-link:hover{color:var(--lime)}
html .B footer .fbar{border-top:1px solid var(--on-dark-line);color:rgba(255,255,255,.55)}

/* ---------- visually hidden text ----------
   Read by screen readers, never shown: e.g. "(opens in a new tab)" on the
   links that leave the site for virawealth.com. */
.B .vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- trusted-by marquee: no layout shift ----------
   The logos are sized by CSS height with auto width, so without intrinsic
   dimensions each cell measured 0 wide until decode and the track collapsed.
   width/height attributes are now on every <img>; this pins the cell as a
   belt-and-braces guard and keeps the row steady if an asset ever fails. */
html .B .trust .lg{min-width:70px;min-height:30px}
html .B .trust .lg img{max-width:none}

/* ---------- touch targets (WCAG 2.2 AA, 2.5.8) ----------
   These are inline text links whose boxes measured 17-23px tall on mobile.
   Each is wide enough; only the height fell short, so vertical padding lifts
   them past 24px without altering type size or layout. */
.B .ilink{display:inline-block;padding-block:3px}
.B .tm .tmli{padding-block:4px}
.B .art-back a{display:inline-block;padding-block:5px}
.B .nx a{display:inline-block;padding-block:4px}

/* ---------- secondary button on a photo hero ----------
   .btn-ghost-dark has a transparent fill, so the border is the only thing
   identifying it as a control - WCAG 1.4.11 non-text contrast, 3:1. The
   global rgba(255,255,255,.12) at a sub-pixel 0.667px width measures ~1.4:1
   over a photograph. .48 at a full 1px clears 3:1 on the brightest of the
   three photos with margin. */
html .B .cu-hero .btn-ghost-dark,
html .B .cb-hero .btn-ghost-dark,
html .B .w-hero .btn-ghost-dark{border-width:1px;border-color:rgba(255,255,255,.48)}
html .B .cu-hero .btn-ghost-dark:hover,
html .B .cb-hero .btn-ghost-dark:hover,
html .B .w-hero .btn-ghost-dark:hover{border-color:rgba(255,255,255,.78)}

/* ---------- phone optimisation (<=640px) ----------
   Measured at 375-390px: the bar's Log in + Request a demo + menu button were
   ~458px wide, pushing the menu button off-screen. Several labels sat at
   10.5-11.8px and many tap targets were under 44px tall.
   Blazor: the drawer's Log in (.drawer-login) is rendered by MarketingNav
   inside .navlinks rather than injected by script. Its hide rule is weighted
   to tie the drawer's `.navlinks > a{display:block}` and wins on order, so
   at 641-1090px - where Log in is still in the bar - the open drawer does not
   list it a second time. */
.B nav[data-nav] .navlinks > a.drawer-login{display:none}
@media(max-width:640px){
  .B nav[data-nav] .bar [data-login]{display:none}
  .B nav[data-nav].navopen .navlinks > a.drawer-login{display:block}
  .B nav[data-nav] .bar .btn-lime{padding:.6rem 1rem;font-size:.9rem}
  .B nav[data-nav] .bar .brand{min-height:44px;display:flex;align-items:center}
  .B .navburger{width:44px;height:44px}

  /* 12px floor for small labels on phones */
  .B .k,.B .rtype,.B .rdate,.B .bdg,.B .wk,.B .indlabel,.B .plat-badge,.B .cat,
  .B .ar-zlab,.B .ar-pill,.B .tg,.B .lab,.B .chk i,.B .f,.B .s,.B .sec,.B .art-eyb,.B .art-eyb span,.B .eyebrow{font-size:12px!important}

  /* 44px tap targets */
  .B .btn,.B button,.B .ar-chip,.B .rjump a{min-height:44px}
  .B .inds a{display:inline-flex;align-items:center;min-height:44px}
  .B .cue{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .B .art2-back,.B .tmli{display:inline-flex;align-items:center;min-height:44px}
  .B footer .fgrid a,.B footer .fgrid .vp-consent-manage-link{display:block;padding:.6rem 0;min-height:44px;box-sizing:border-box}
  .B .tnlink{display:inline-flex;align-items:center;min-height:44px}
  /* Blazor: the footer social icons are a production-only element the
     handoff's list cannot know about; same 44px rule. */
  .B footer .fsocial a{min-width:44px;min-height:44px;align-items:center;justify-content:center}
}
/* Below 360px (the handoff was measured at 375-390px) the logo's clear space
   + Request a demo + the menu button no longer fit: at 320px the menu button
   sat 23px off-screen, leaving no way to open the menu. Request a demo leaves
   the bar there; the drawer still lists Contact, the demo request page. */
@media(max-width:359px){
  .B nav[data-nav] .bar .btn-lime{display:none}
}
