/* =========================================================================
   Draco Investigative Services — corporate, elegant, confidential.
   Palette: charcoal ink + steel blue + paper (light) / deep ink (dark).
   Type: Fraunces (display serif) · Inter (sans body).
   ====================================================================== */

:root {
    --ink:        #0e1216;
    --ink-2:      #131a21;
    --ink-3:      #1b242d;
    --ink-line:   rgba(255,255,255,.10);
    --ink-line-2: rgba(255,255,255,.16);

    --paper:      #f4f5f6;   /* neutral light grey page ground (no warm tint) */
    --paper-2:    #e9ebee;   /* slightly deeper neutral grey */
    --white:      #ffffff;

    --text:       #14191e;
    --muted:      #4a545f;
    --muted-dark: #adbac5;

    --line:       rgba(14,18,22,.12);
    --line-soft:  rgba(14,18,22,.07);

    --gold:       #35688f;
    --gold-2:     #2a5c82;   /* readable gold on light backgrounds */
    --gold-3:     #9cc4e0;
    --gold-soft:  rgba(53,104,143,.14);

    /* Theme-flipping surfaces (LIGHT defaults) --------------------------- */
    --hero-grad: radial-gradient(1150px 600px at 80% -10%, rgba(20,25,30,.045), transparent 60%),
                 linear-gradient(180deg, #fbfbfc 0%, #eef0f2 62%, #f4f5f6 100%);
    --hero-ink:  #12181d;
    --hero-sub:  #4a545f;
    --hero-rule: rgba(14,18,22,.12);
    --hero-accent: #2a5c82;
    --dragon-img: url('/assets/images/draco_b.png');
    --dragon-op:  .06;
    --nav-text:        rgba(20,25,30,.74);
    --nav-text-strong: #12181d;
    --header-solid-bg: rgba(248,249,250,.94);
    --header-border:   rgba(14,18,22,.10);
    --header-scrim:    linear-gradient(180deg, rgba(248,249,250,.85) 0%, rgba(248,249,250,0) 100%);
    --logo-filter:     invert(1) brightness(.10);

    /* Visual-enrichment surfaces */
    --tint:      #eef0f2;                 /* neutral light-grey section wash */
    --tint-2:    #f3f4f6;
    --navy-grad: linear-gradient(135deg, #122a3d 0%, #1e4d6b 55%, #0f2231 100%);
    --navy-ink:  #ffffff;
    --navy-sub:  #b7cbdb;
    --navy-line: rgba(255,255,255,.12);
    --tile-bg:   rgba(53,104,143,.10);    /* accent icon tile */
    --tile-fg:   #2a5c82;
    --pattern:   rgba(53,104,143,.10);    /* dot-grid / lines */

    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --wrap: 1180px;
    --radius: 4px;
    --shadow-sm: 0 1px 2px rgba(14,18,22,.06), 0 4px 14px rgba(14,18,22,.06);
    --shadow-md: 0 10px 40px rgba(14,18,22,.12);
    --shadow-lg: 0 24px 70px rgba(14,18,22,.22);
    --t: .3s cubic-bezier(.2,.7,.3,1);
}

/* Dark mode — opt-in via [data-theme="dark"]; light is the default. The brand's
   inherently-dark sections (hero, approach, footer, page-hero) stay dark in both. */
:root[data-theme="dark"] {
    --paper:      #0e1317;
    --paper-2:    #121a20;
    --white:      #172029;
    --text:       #eef2f6;
    --muted:      #a9b5bf;
    --line:       rgba(255,255,255,.13);
    --line-soft:  rgba(255,255,255,.08);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.45);
    --shadow-md: 0 12px 42px rgba(0,0,0,.55);
    --shadow-lg: 0 26px 74px rgba(0,0,0,.65);

    --gold-2: #7fb2d6;   /* brighter gold reads better on dark */
    --hero-grad: radial-gradient(1200px 620px at 78% -8%, rgba(53,104,143,.16), transparent 60%),
                 radial-gradient(900px 500px at 12% 108%, rgba(56,86,110,.20), transparent 62%),
                 linear-gradient(180deg, #0c1014 0%, #0e1318 55%, #0b0f13 100%);
    --hero-ink:  #ffffff;
    --hero-sub:  rgba(233,238,242,.82);
    --hero-rule: rgba(255,255,255,.10);
    --hero-accent: #9cc4e0;
    --dragon-img: url('/assets/images/draco_w.png');
    --dragon-op:  .05;
    --nav-text:        rgba(255,255,255,.82);
    --nav-text-strong: #ffffff;
    --header-solid-bg: rgba(13,17,21,.92);
    --header-border:   rgba(255,255,255,.10);
    --header-scrim:    linear-gradient(180deg, rgba(11,15,19,.66) 0%, rgba(11,15,19,0) 100%);
    --logo-filter:     none;

    --tint:      #101820;
    --tint-2:    #121a21;
    --tile-bg:   rgba(124,178,214,.12);
    --tile-fg:   #9cc4e0;
    --pattern:   rgba(255,255,255,.05);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.01em;
    margin: 0 0 .5em;
}

p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--gold); color: var(--ink); padding: 10px 18px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Shared -------------------------------------------------------------- */

/* (Section eyebrows were removed site-wide per owner request; rules deleted.) */

.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-head { max-width: 900px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 600; letter-spacing: -.01em; }
/* Restore a restrained accent under centered heads now that eyebrows are gone. */
.section-head.center h2::after { content: ""; display: block; width: 46px; height: 3px; margin: 18px auto 0; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-3)); }
.approach .section-head.center h2::after { background: linear-gradient(90deg, var(--gold-3), var(--gold)); }

/* Homepage "services at a glance" two-column list */
.svc-glance { background: var(--white); }
.svc-list-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 920px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 44px; }
.svc-list-grid li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.02rem; color: var(--text); font-weight: 500; padding: 12px 2px; border-bottom: 1px solid var(--line-soft); }
.svc-list-grid li svg { width: 19px; height: 19px; color: var(--gold); flex: none; margin-top: 3px; }
@media (max-width: 640px) { .svc-list-grid { grid-template-columns: 1fr; gap: 0; } }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.lead { font-size: 1.16rem; color: var(--muted); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .01em;
    min-height: 48px; padding: 0 28px; border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); background: var(--white); color: var(--text);
    cursor: pointer; transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
    white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }
/* Small variant — same font, one consistent shorter height for compact toolbars */
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-gold { background: linear-gradient(135deg, #3a719b 0%, #2a5c82 100%); color: #ffffff; border-color: rgba(18,40,58,.35); box-shadow: 0 4px 14px rgba(53,104,143,.30); }
.btn-gold:hover { background: linear-gradient(135deg, #427ba7 0%, #29587c 100%); box-shadow: 0 14px 32px rgba(53,104,143,.45); }
.btn-dark { background: var(--ink); color: var(--white); border-color: rgba(0,0,0,.35); }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: var(--white); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); background: var(--white); }
.btn-ghost-light { background: rgba(255,255,255,.06); color: var(--white); border-color: var(--ink-line-2); box-shadow: 0 2px 12px rgba(0,0,0,.22); }
.btn-ghost-light:hover { border-color: var(--gold-3); color: var(--gold-3); background: rgba(255,255,255,.12); }

/* Header / Nav -------------------------------------------------------- */

.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    background: var(--header-solid-bg);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 2px 14px rgba(14,18,22,.07);
    transition: box-shadow var(--t), background var(--t), border-color var(--t);
}
.site-header.solid {
    box-shadow: 0 6px 26px rgba(14,18,22,.10);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; }
.site-header .brand-mark { filter: var(--logo-filter); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
    font-family: var(--serif); font-weight: 600; font-size: 1.32rem; color: #fff;
    letter-spacing: .22em; padding-left: .1em;   /* match .brand-sub so DRACO left-aligns with the subtitle */
}
.site-header .brand-name { color: var(--nav-text-strong); }
.brand-sub {
    font-family: var(--sans); font-size: 10.5px; font-weight: 500; letter-spacing: .2em;
    text-transform: uppercase; color: var(--gold-3); margin-top: 5px; padding-left: .1em;
}
.site-header .brand-sub { color: var(--gold-2); }

.nav-menu {
    display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0;
}
.nav-menu > li { flex: 0 0 auto; }
.nav-menu > li > a:not(.btn) {
    display: inline-block; padding: 10px 12px; font-size: 15px; font-weight: 500; white-space: nowrap;
    color: var(--nav-text); letter-spacing: .01em; position: relative; transition: color var(--t);
}
.nav-menu > li > a:not(.btn)::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px;
    background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.nav-menu > li > a:not(.btn):hover,
.nav-menu > li > a.is-active { color: var(--nav-text-strong); }
.nav-menu > li > a:not(.btn):hover::after,
.nav-menu > li > a.is-active::after { transform: scaleX(1); }
.nav-cta { margin-left: 14px; }

.nav-toggle {
    display: none; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--nav-text-strong); transition: transform var(--t), opacity var(--t), background var(--t); }

/* Services dropdown (desktop: hover/focus flyout; mobile: inline expanded list) */
.nav-services { position: relative; }
.nav-services > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-services > a .nav-chev { transition: transform var(--t); opacity: .75; }
.nav-dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
    min-width: 264px; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 8px; z-index: 200;
    display: flex; flex-direction: column; gap: 1px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nav-services:hover .nav-dropdown,
.nav-services:focus-within .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(4px); }
.nav-services:hover > a .nav-chev,
.nav-services:focus-within > a .nav-chev { transform: rotate(180deg); }
.nav-dropdown a { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 9px; color: var(--text); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.nav-dropdown a::after { display: none; }   /* cancel the underline sweep from nav links */
.nav-dropdown a:hover { background: var(--paper); color: var(--gold-2); }
.nav-dropdown a svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.nav-dropdown-all { margin-top: 4px; border-top: 1px solid var(--line-soft); border-radius: 0 0 9px 9px; color: var(--gold-2); font-weight: 600; }

/* Theme toggle (sits on the dark header bar in both modes) */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
body { transition: background-color .35s ease, color .3s ease; }
.nav-theme { display: flex; align-items: center; }
.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--header-border);
    background: transparent; color: var(--nav-text); cursor: pointer;
    display: grid; place-items: center; padding: 0;
    transition: background var(--t), color var(--t), border-color var(--t);
}
.theme-toggle:hover { color: var(--gold-2); border-color: rgba(53,104,143,.5); background: rgba(53,104,143,.12); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ti-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ti-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ti-moon { display: none; }
/* Theme toggle relocated into the profile dropdown (light is the default until a signed-in user changes it) */
.profile-theme { font: inherit; }
.profile-theme .pt-dark, .profile-theme .pt-light { display: inline-flex; align-items: center; gap: 10px; }
.profile-theme .pt-light { display: none; }
:root[data-theme="dark"] .profile-theme .pt-dark { display: none; }
:root[data-theme="dark"] .profile-theme .pt-light { display: inline-flex; }
.nav-admin a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 13px; font-weight: 500; color: var(--nav-text); opacity: .78; transition: color var(--t), opacity var(--t); }
.nav-admin a svg { width: 15px; height: 15px; }
.nav-admin a:hover, .nav-admin a.is-active { color: var(--gold-2); opacity: 1; }

/* Hero ---------------------------------------------------------------- */

.hero {
    position: relative; background: var(--bg); color: var(--hero-ink);
    padding: 168px 0 92px; overflow: hidden; isolation: isolate;
    transition: background-color .35s ease, color .3s ease;
}
.hero::before {  /* layered depth: radial glow + vertical vignette (theme-aware) */
    content: ""; position: absolute; inset: 0; z-index: -2;
    background: var(--hero-grad);
}
.hero-mark {  /* faint dragon watermark, right side — swaps with theme */
    position: absolute; z-index: -1; right: -80px; top: 50%; transform: translateY(-50%);
    width: min(680px, 62vw); height: 78%; opacity: var(--dragon-op); pointer-events: none;
    background: var(--dragon-img) center right / contain no-repeat;
}
.hero-inner { max-width: 1040px; }
.hero h1 {
    font-size: clamp(2.4rem, 5.4vw, 3.9rem); color: var(--hero-ink); margin-bottom: .28em;
    font-weight: 700; letter-spacing: -.02em; line-height: 1.08;
}
.hero h1 .accent { color: var(--hero-accent); }
.hero p.lead { color: var(--hero-sub); font-size: clamp(1.05rem, 2.2vw, 1.28rem); max-width: 780px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-subnote { margin: 16px 0 0; font-size: 14px; color: rgba(255,255,255,.72); max-width: 560px; line-height: 1.5; }
.hero-subnote strong { color: var(--gold-3); font-weight: 600; }
.hero-assurances {
    display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 46px;
    padding-top: 30px; border-top: 1px solid var(--hero-rule);
}
.hero-assurances span {
    display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500;
    color: var(--hero-sub); letter-spacing: .02em;
}
.hero-assurances svg { width: 17px; height: 17px; color: var(--gold); flex: none; }

/* Employer-page stat stack */
.stat-stack { display: grid; gap: 16px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.stat-card strong { display: block; font-family: var(--sans); font-size: 1.02rem; color: var(--text); margin-bottom: 6px; }
.stat-card span { display: block; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* Capability check-card (service landing pages) */
.check-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; box-shadow: var(--shadow-sm); }
.check-card-head { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 600; font-size: 1.06rem; color: var(--text); margin: 0 0 18px; }
.check-card-head svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .98rem; color: var(--muted); line-height: 1.5; }
.check-list li svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }
.svc-detail-more { margin: 14px 0 0; }

/* Guides (editorial article pages) */
.guide-meta { color: var(--muted); font-size: 14px; margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; }
.guide-meta svg { width: 16px; height: 16px; color: var(--gold); }
.guide-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 1.7em 0 .5em; }
.guide-body h2:first-child { margin-top: 0; }
.guide-body p { margin: 0 0 1.1em; line-height: 1.75; }
.guide-body > ul { margin: 0 0 1.4em; padding-left: 0; list-style: none; }
.guide-body > ul li { position: relative; padding-left: 26px; margin-bottom: 10px; line-height: 1.6; }
.guide-body > ul li::before { content: ""; position: absolute; left: 5px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.guide-callout { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 14px; padding: 24px 26px; margin: 2em 0; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.guide-callout > div { flex: 1 1 260px; }
.guide-callout strong { display: block; font-family: var(--sans); font-size: 1.1rem; margin-bottom: 6px; color: var(--text); }
.guide-callout p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.55; }
.guide-callout .btn { flex: 0 0 auto; }

/* Local metro pages */
.local-trust { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 14.5px; }
.local-trust svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.area-chips { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.area-chips li { display: inline-flex; align-items: center; gap: 7px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: .95rem; color: var(--text); box-shadow: var(--shadow-sm); }
.area-chips li svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* Password show/hide toggle */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 62px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; cursor: pointer; padding: 6px 9px; border-radius: 7px; line-height: 1; }
.pw-toggle:hover { color: var(--gold); }
.pw-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Link-styled danger button (e.g. Cancel a pending request) */
.btn-linkdanger { background: none; border: 0; color: #c0392b; font-family: var(--sans); font-size: .95rem; font-weight: 500; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.btn-linkdanger:hover { text-decoration: underline; }
.btn-linkdanger svg { width: 15px; height: 15px; }
.pay-secondary a { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.pay-secondary a svg { width: 15px; height: 15px; }

/* Related-guides box on service landing pages */
.guide-links-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; }
.guide-links-head { display: flex; align-items: center; gap: 9px; font-family: var(--sans); font-weight: 600; font-size: 1rem; margin: 0 0 12px; color: var(--text); }
.guide-links-head svg { width: 18px; height: 18px; color: var(--gold); }
.guide-links-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.guide-links-box li a { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-2); font-weight: 600; text-decoration: none; }
.guide-links-box li a:hover { text-decoration: underline; }
.guide-links-box li a svg { width: 14px; height: 14px; flex: none; }

/* Full-width feature image band */
.image-band { position: relative; background: var(--band-img) center right / cover no-repeat; padding: 92px 0; overflow: hidden; }
.image-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,20,28,.94) 0%, rgba(11,20,28,.82) 40%, rgba(11,20,28,.38) 68%, rgba(11,20,28,.12) 100%); }
.image-band .wrap { position: relative; z-index: 1; }
.image-band-copy { max-width: 560px; color: #fff; }
.image-band-copy h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 6px 0 14px; font-weight: 400; }
.image-band-copy p { color: rgba(233,238,242,.86); margin: 0 0 26px; font-size: 1.05rem; }
@media (max-width: 640px) {
    .image-band { padding: 60px 0; }
    .image-band::before { background: linear-gradient(180deg, rgba(11,20,28,.82) 0%, rgba(11,20,28,.92) 100%); }
}

/* Abstract dark hero — full-bleed background image + left-weighted overlay */
.hero-abstract {
    background:
        linear-gradient(90deg, rgba(9,15,24,.95) 0%, rgba(9,15,24,.82) 42%, rgba(9,15,24,.5) 78%, rgba(9,15,24,.34) 100%),
        url('/assets/images/hero-abstract.jpg') center / cover no-repeat;
    color: #fff;
}
.hero-abstract::before { display: none; }
.hero-abstract .hero-inner { max-width: 760px; }
.hero-abstract h1 { color: #fff; }
.hero-abstract h1 .accent { color: var(--gold-3); }
.hero-abstract p.lead { color: rgba(233,238,242,.87); max-width: 690px; }
.hero-abstract .hero-assurances { border-top-color: rgba(255,255,255,.15); }
.hero-abstract .hero-assurances span { color: rgba(233,238,242,.84); }
.hero-abstract .hero-assurances svg { color: var(--gold-3); }
@media (max-width: 640px) {
    .hero-abstract { background:
        linear-gradient(180deg, rgba(9,15,24,.9) 0%, rgba(9,15,24,.86) 100%),
        url('/assets/images/hero-abstract.jpg') center / cover no-repeat; }
}


/* Corporate hero (home): restrained editorial treatment — no stock graphic, no portrait */
.hero-corporate { padding: 178px 0 96px; }
.hero-corporate .hero-inner { max-width: 1040px; }
.hero-corporate .hero-copy { max-width: 700px; }
.hero-corporate h1 { font-size: clamp(2.5rem, 5vw, 3.7rem); font-weight: 600; letter-spacing: -.015em; margin-bottom: .45em; }
.hero-corporate p.lead { max-width: 660px; font-size: clamp(1.02rem, 1.9vw, 1.16rem); line-height: 1.7; }
.hero-corporate .hero-actions { margin-top: 34px; }
.hero-credential { display: inline-flex; align-items: center; gap: 9px; margin: 38px 0 0; padding-top: 22px; border-top: 1px solid var(--hero-rule); color: var(--hero-sub); font-size: 14px; letter-spacing: .01em; }
.hero-credential svg { width: 16px; height: 16px; color: var(--gold); flex: none; }

/* Two-column hero with a framed portrait */
.hero.has-figure .hero-mark { opacity: calc(var(--dragon-op) * .45); right: -160px; }
.hero.has-figure .hero-inner { max-width: 1200px; display: grid; grid-template-columns: 1.04fr .82fr; gap: 60px; align-items: center; }
.hero.has-figure .hero-copy { max-width: 640px; }
.hero.has-figure .hero-copy p.lead { max-width: none; }
.hero-figure { position: relative; justify-self: end; width: 100%; max-width: 440px; }
.hero-figure-frame { position: relative; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; background: var(--navy-grad); box-shadow: 0 40px 80px -34px rgba(15,32,51,.6); border: 1px solid var(--line-soft); }
.hero-figure-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,32,51,.28)); }
.hero-figure-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-figure-badge { position: absolute; left: -22px; bottom: 26px; display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-md); }
.hero-figure-badge svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.hero-figure-badge span { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.hero-figure-badge strong { font-family: var(--sans); font-size: 14px; color: var(--text); }
@media (max-width: 920px) {
    .hero.has-figure .hero-inner { grid-template-columns: 1fr; gap: 44px; max-width: 640px; }
    .hero-figure { justify-self: center; max-width: 360px; }
    .hero.has-figure .hero-copy { max-width: none; }
    .hero-figure-badge { left: 0; }
}

/* Trust strip --------------------------------------------------------- */

.trust {
    background: var(--tint); color: var(--text); border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background-image: radial-gradient(var(--pattern) 1px, transparent 1.4px);
    background-size: 22px 22px;
}
.trust-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust-item { padding: 42px 28px; text-align: center; border-right: 1px solid var(--border); }
.trust-item:last-child { border-right: 0; }
.trust-item .ti-ic {
    width: 58px; height: 58px; border-radius: 15px; color: var(--tile-fg);
    background: linear-gradient(135deg, rgba(53,104,143,.16), rgba(53,104,143,.05));
    display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
    box-shadow: inset 0 0 0 1px rgba(53,104,143,.16);
    transition: transform var(--t);
}
.trust-item:hover .ti-ic { transform: translateY(-3px); }
.trust-item .ti-ic svg { width: 27px; height: 27px; }
.trust-item .ti-title { font-family: var(--serif); font-size: 1.3rem; color: var(--text); margin-bottom: 6px; }
.trust-item .lbl { font-size: 13.5px; color: var(--muted); letter-spacing: .02em; }

/* Services ------------------------------------------------------------ */

.services { background: var(--paper); position: relative; }
.services::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(var(--pattern) 1px, transparent 1.4px);
    background-size: 24px 24px; opacity: .55; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.services .wrap { position: relative; z-index: 1; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card {
    background: var(--white); border: 1px solid var(--line-soft); border-radius: 12px;
    padding: 38px 34px; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.svc-card::before {
    content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-3)); transform: scaleX(0);
    transform-origin: left; transition: transform var(--t);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon {
    width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(53,104,143,.16), rgba(53,104,143,.05)); color: var(--tile-fg); margin-bottom: 22px;
    box-shadow: inset 0 0 0 1px rgba(53,104,143,.16);
    transition: background var(--t), color var(--t), box-shadow var(--t), transform var(--t);
}
.svc-card:hover .svc-icon { background: linear-gradient(135deg, #3a719b, #2a5c82); color: #fff; box-shadow: 0 10px 22px rgba(53,104,143,.35); transform: translateY(-2px); }
.svc-icon svg { width: 26px; height: 26px; }
.svc-card h3 { font-size: 1.32rem; margin-bottom: .4em; }
.svc-card p { color: var(--muted); font-size: .98rem; margin: 0; }
.svc-card .more, .serve-item .more {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
    font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: .03em;
    color: var(--gold-2); text-transform: uppercase; text-decoration: none;
}
.svc-card .more svg, .serve-item .more svg { width: 14px; height: 14px; transition: transform var(--t); }
.svc-card:hover .more svg, .serve-item .more:hover svg { transform: translateX(4px); }

/* Approach / process -------------------------------------------------- */

.approach { background: var(--navy-grad); color: var(--navy-ink); position: relative; overflow: hidden; }
.approach::after {
    content: ""; position: absolute; right: -70px; bottom: -60px; width: 360px; height: 360px; z-index: 0;
    background: url('/assets/images/draco_w.png') center/contain no-repeat; opacity: .05; pointer-events: none;
}
.approach .wrap { position: relative; z-index: 1; }
.approach .section-head h2 { color: #fff; }
.approach .section-head p { color: var(--navy-sub); }
.approach .eyebrow { color: #9cc4e0; }
.approach .eyebrow::before { background: #9cc4e0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 12px; }
.step { padding: 34px 30px 34px 0; border-top: 1px solid var(--navy-line); position: relative; }
.step + .step { padding-left: 34px; }
.step-num {
    font-family: var(--serif); font-size: 1.15rem; color: #cfe3f2;
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    margin-bottom: 18px; background: rgba(124,178,214,.14); border: 1px solid rgba(124,178,214,.4); border-radius: 50%;
}
.step h3 { font-size: 1.28rem; color: #fff; }
.step p { color: var(--navy-sub); font-size: .96rem; margin: 0; }
/* Light-background variant of the process steps (for light sections) */
.steps.on-light .step { border-top-color: var(--line); }
.steps.on-light .step-num { color: var(--gold-2); background: var(--gold-soft); border-color: rgba(53,104,143,.35); }
.steps.on-light .step h3 { color: var(--text); }
.steps.on-light .step p { color: var(--muted); }

/* Two-column interior page-hero (with a framed image) */
.page-hero.has-figure::after { display: none; }
.page-hero.has-figure .page-hero-grid { display: grid; grid-template-columns: 1.05fr .82fr; gap: 56px; align-items: center; max-width: 1180px; }
.page-hero-figure { position: relative; justify-self: end; width: 100%; max-width: 420px; }
.page-hero-figure .hero-figure-frame { aspect-ratio: 3/2; }
@media (max-width: 920px) {
    .page-hero.has-figure .page-hero-grid { grid-template-columns: 1fr; gap: 8px; }
    .page-hero-figure { display: none; }
}

/* Who we serve -------------------------------------------------------- */

.serve { background: var(--tint); }
.serve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.serve-item {
    text-align: center; padding: 46px 32px; background: var(--white);
    border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
}
.serve-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.serve-item .si {
    width: 66px; height: 66px; border-radius: 50%; background: var(--navy-grad); color: #cfe3f2;
    display: grid; place-items: center; margin: 0 auto 22px; box-shadow: 0 10px 24px rgba(18,42,61,.28);
}
.serve-item .si svg { width: 28px; height: 28px; }
.serve-item h3 { font-size: 1.32rem; margin-bottom: .45em; }
.serve-item p { color: var(--muted); margin: 0; font-size: .99rem; }
@media (max-width: 860px) { .serve-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* Why / features (split) ---------------------------------------------- */

.why { background: var(--tint); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.feature-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.feature-list li { display: flex; gap: 18px; }
.feature-list .fi {
    width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: var(--navy-grad); color: #cfe3f2; box-shadow: 0 8px 18px rgba(18,42,61,.22);
    transition: transform var(--t);
}
.feature-list li:hover .fi { transform: translateY(-3px) scale(1.04); }
.feature-list .fi svg { width: 21px; height: 21px; }
.feature-list h3 { font-size: 1.12rem; margin-bottom: .25em; }
.feature-list p { color: var(--muted); font-size: .96rem; margin: 0; }

.pledge {
    background: var(--navy-grad); color: #fff; border-radius: 14px; padding: 48px;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.pledge::before {
    content: ""; position: absolute; right: -50px; bottom: -50px; width: 260px; height: 260px; z-index: 0;
    background: url('/assets/images/draco_w.png') center/contain no-repeat; opacity: .05;
}
.pledge::after {
    content: "\201C"; position: absolute; right: 22px; bottom: -30px; font-family: var(--serif);
    font-size: 12rem; color: rgba(53,104,143,.14); line-height: 1;
}
.pledge .eyebrow { color: var(--gold-3); }
.pledge h3 { color: #fff; font-size: 1.7rem; }
.pledge p { color: rgba(233,238,242,.8); position: relative; z-index: 1; }
.pledge .sig { margin-top: 20px; font-family: var(--serif); color: var(--gold-3); font-size: 1.05rem; }

/* Callout band -------------------------------------------------------- */

.band {
    background: linear-gradient(135deg, #10161c 0%, #1e4d6b 55%, #0f1a20 100%);
    color: #fff; text-align: center; position: relative; overflow: hidden;
}
.band::after {
    content: ""; position: absolute; right: -60px; bottom: -60px; width: 320px; height: 320px; z-index: 0;
    background: url('/assets/images/draco_w.png') center/contain no-repeat; opacity: .05; pointer-events: none;
}
.band > * { position: relative; z-index: 1; }
.band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 760px; margin: 0 auto .4em; }
.band p { color: #c6d3de; max-width: 680px; margin: 0 auto 30px; }

/* About teaser -------------------------------------------------------- */

.about-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-portrait {
    background: var(--navy-grad); border-radius: 14px; aspect-ratio: 3/2; position: relative;
    overflow: hidden; box-shadow: var(--shadow-lg); display: grid; place-items: center;
}
.about-portrait img { width: 60%; opacity: .92; }
.about-portrait.has-photo { display: block; }
.about-portrait.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.about-portrait .pf {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 26px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.7)); color: #fff;
}
.about-portrait .pf strong { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.about-portrait .pf span { display: block; color: var(--gold-3); font-size: 13px; letter-spacing: .04em; margin-top: 3px; }
.about-cred { background: var(--paper); border-top: 1px solid var(--line); }
.about-cred .svc-card { cursor: default; }
.about-cred .svc-card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
.about-cred .svc-card:hover::before { transform: scaleX(0); }
.about-cred .svc-card:hover .svc-icon { background: linear-gradient(135deg, rgba(53,104,143,.16), rgba(53,104,143,.05)); color: var(--tile-fg); box-shadow: inset 0 0 0 1px rgba(53,104,143,.16); transform: none; }

/* FAQ ----------------------------------------------------------------- */

.faq { background: var(--paper); position: relative; }
.faq::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(var(--pattern) 1px, transparent 1.4px);
    background-size: 24px 24px; opacity: .5;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.faq .wrap { position: relative; z-index: 1; }
.faq-list { max-width: 840px; margin: 0 auto; }
.faq-item {
    background: var(--white); border: 1px solid var(--line-soft); border-radius: 12px;
    margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden;
    transition: box-shadow var(--t), border-color var(--t), transform var(--t);
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-item.open { box-shadow: var(--shadow-md); border-color: rgba(53,104,143,.35); }
.faq-q {
    width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 22px 26px; font-family: var(--serif); font-size: 1.18rem; color: var(--text);
    transition: color var(--t);
}
.faq-item.open .faq-q { color: var(--gold-2); }
.faq-q .ic {
    flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--tile-bg); color: var(--tile-fg); transition: transform var(--t), background var(--t), color var(--t);
}
.faq-q .ic svg { width: 16px; height: 16px; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); background: linear-gradient(135deg, #3a719b, #2a5c82); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 26px 24px; color: var(--muted); }
.faq-a-inner p { margin: 0; }

/* Contact ------------------------------------------------------------- */

.contact { background: var(--tint); }
.contact-card {
    display: grid; grid-template-columns: 1.1fr .9fr; background: var(--white);
    border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.contact-form-wrap { padding: 52px 54px; }
.contact-aside {
    background: var(--navy-grad); color: #fff; padding: 52px 44px; position: relative; overflow: hidden;
}
.contact-aside::before {
    content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(53,104,143,.16), transparent 70%);
}
.contact-aside .eyebrow { color: var(--gold-3); }
.contact-aside h2 { color: #fff; font-size: 1.7rem; }
.contact-aside p { color: var(--muted-dark); }
.contact-detail { display: flex; gap: 16px; margin-top: 26px; align-items: flex-start; position: relative; z-index: 1; }
.contact-detail .ci {
    width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255,255,255,.08); color: var(--gold-3);
}
.contact-detail .ci svg { width: 20px; height: 20px; }
.contact-detail h3 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-dark); margin: 2px 0 4px; font-weight: 600; }
.contact-detail a, .contact-detail p { color: #fff; margin: 0; font-size: 1.02rem; }
.contact-detail a:hover { color: var(--gold-3); }

.field { margin-bottom: 20px; }
.field label {
    display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 8px;
}
.field label .req { color: var(--gold-2); }
.field input, .field select, .field textarea {
    width: 100%; font-family: var(--sans); font-size: 16px; color: var(--text);
    padding: 14px 16px; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px var(--gold-soft);
}
/* Visible keyboard focus for links, buttons, menu items, and FAQ toggles (both themes). */
a:focus-visible, button:focus-visible, .btn:focus-visible,
[role="menuitem"]:focus-visible, .faq-q:focus-visible, summary:focus-visible {
    outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 4px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.form-consent { font-size: 13px; color: var(--muted); margin: 6px 0 22px; }
.form-consent a { color: var(--gold-2); text-decoration: none; }

.alert { border-radius: var(--radius); padding: 16px 18px; margin-bottom: 24px; font-size: 15px; }
.alert-error { background: #fbeaea; border: 1px solid #e6b8b8; color: #8a2b2b; }
.alert-error ul { margin: 8px 0 0; padding-left: 18px; }
.alert-ok { background: #e8f4ec; border: 1px solid #b6ddc4; color: #1c6b3c; }

.form-success { text-align: center; padding: 30px 10px; }
.form-success .tick {
    width: 78px; height: 78px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-2);
    display: grid; place-items: center; margin: 0 auto 22px;
}
.form-success .tick svg { width: 38px; height: 38px; }
.form-success h2 { font-size: 1.9rem; }
.form-success p { color: var(--muted); max-width: 440px; margin: 0 auto 24px; }

/* Page hero (interior pages) ------------------------------------------ */

.page-hero {
    background: var(--hero-grad); color: var(--hero-ink); padding: 104px 0 34px; position: relative; overflow: hidden;
    border-bottom: 1px solid var(--border);
}
/* First content section after an interior hero — pull it up (less dead space) */
.page-hero + .section { padding-top: 40px; }
/* Centered auth/portal card layout (clears the fixed header, no redundant hero text) */
.auth-section { padding: 122px 0 80px; }
.page-hero::after {
    content: ""; position: absolute; right: -60px; top: 50%; transform: translateY(-50%); z-index: 0;
    width: min(460px, 46vw); height: 84%; opacity: var(--dragon-op); pointer-events: none;
    background: var(--dragon-img) center right / contain no-repeat;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--hero-ink); font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.page-hero p { color: var(--hero-sub); max-width: 880px; font-size: 1.12rem; margin: 0; }
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 22px; letter-spacing: .01em; opacity: .8; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--gold-2); }
.crumb span { color: var(--muted); }

/* Service detail rows ------------------------------------------------- */

.svc-detail { padding: 44px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.svc-detail:first-child { padding-top: 12px; }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail h2 { font-size: 1.7rem; margin-bottom: .55em; }
.svc-detail .svc-photo { margin: 4px 0 22px; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: var(--navy-grad); box-shadow: 0 18px 40px -22px rgba(15,32,51,.5); border: 1px solid var(--line-soft); }
.svc-detail .svc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.svc-detail p { color: var(--muted); margin: 0 0 .8rem; }
.svc-detail ul { color: var(--muted); margin: 14px 0 0; padding-left: 20px; columns: 2; column-gap: 34px; }
.svc-detail ul li { margin-bottom: 7px; }

/* Prose (about / legal) ---------------------------------------------- */

.prose { max-width: 780px; }
/* Standalone legal/FCRA pages use `.wrap.prose`: keep the container at the page width so the first
   line aligns under the left-aligned H1, but cap the reading measure on the inner blocks. */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 820px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.28rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a:not(.btn) { color: var(--gold-2); text-decoration: none; font-weight: 600; }
.prose strong { color: var(--text); }

/* Footer -------------------------------------------------------------- */

.site-footer { background: var(--ink); color: var(--muted-dark); padding-top: 52px; text-align: left; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 34px; align-items: start; }
.footer-brand-col .brand { margin-bottom: 14px; }
.footer-blurb { color: var(--muted-dark); font-size: .93rem; line-height: 1.6; margin: 0 0 16px; max-width: 320px; }
.footer-license { font-size: 12.5px; color: var(--gold-3); letter-spacing: .03em; margin: 0; }
.footer-col h2 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a:not(.btn), .footer-col li { font-size: 14px; color: var(--muted-dark); transition: color var(--t); white-space: nowrap; }
.footer-col a:not(.btn):hover { color: var(--gold-3); }
.footer-col-note { font-size: 13.5px; color: var(--muted-dark); line-height: 1.55; margin: 0 0 16px; }
.footer-cta { margin: 0; }
.footer-social { display: flex; justify-content: flex-start; gap: 10px; padding: 0 0 16px; }
.footer-social .social-ic {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255,255,255,.05); border: 1px solid var(--ink-line); color: var(--muted-dark);
    transition: color var(--t), background var(--t), border-color var(--t), transform var(--t);
}
.footer-social .social-ic svg { width: 16px; height: 16px; }
.footer-social .social-ic:hover { color: var(--gold-3); background: rgba(53,104,143,.12); border-color: rgba(53,104,143,.4); transform: translateY(-2px); }

.footer-bottom { border-top: 1px solid var(--ink-line); padding: 24px 0 34px; }
.footer-bottom-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer-bottom p { margin: 0; font-size: 13px; color: #93a1ad; }
.footer-version { color: #6f7c88; margin-left: 6px; letter-spacing: .04em; }
.footer-admin { color: #6f7c88; margin-left: 10px; text-decoration: none; transition: color var(--t); }
.footer-admin:hover { color: var(--gold-3); }
.footer-disclaimer { max-width: none; }

/* Toasts -------------------------------------------------------------- */
#toast-root { position: fixed; top: 92px; right: 22px; z-index: 300; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast {
    pointer-events: auto; min-width: 290px; max-width: 390px; display: flex; align-items: flex-start; gap: 13px;
    background: var(--white); color: var(--text); border: 1px solid var(--line); border-left: 4px solid var(--gold);
    border-radius: 10px; padding: 16px 18px; box-shadow: var(--shadow-lg);
    transform: translateX(120%); opacity: 0; transition: transform .4s cubic-bezier(.2,.7,.3,1), opacity .4s;
}
.toast.show { transform: none; opacity: 1; }
.toast.success { border-left-color: #2e9e6a; }
.toast.error { border-left-color: #cf5757; }
.toast .toast-ic { flex: none; width: 22px; height: 22px; color: var(--gold-2); }
.toast.success .toast-ic { color: #2e9e6a; }
.toast.error .toast-ic { color: #cf5757; }
.toast .toast-ic svg { width: 22px; height: 22px; }
.toast-body { font-size: 14px; line-height: 1.5; }
.toast-body strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 15px; margin-bottom: 2px; }
@media (max-width: 560px) { #toast-root { left: 14px; right: 14px; top: 80px; } .toast { max-width: none; } }

/* reCAPTCHA v3 badge hidden (attribution shown by the form instead, per Google's
   terms). Also avoids the floating badge cluttering the corner. */
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
.recaptcha-note a { color: var(--gold-2); text-decoration: none; }

/* Reveal on scroll ---------------------------------------------------- */

/* Scoped to .js so scroll-reveal content is fully visible when JavaScript is off. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive ---------------------------------------------------------- */

@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .step, .step + .step { padding: 30px 24px 30px 24px; }
    .footer-grid { gap: 30px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(2) { border-right: 0; }
    .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; z-index: 120; }
    .nav-menu {
        position: fixed; inset: 0 0 0 auto; width: min(340px, 84vw); height: 100dvh;
        background: var(--ink-2); border-left: 1px solid var(--ink-line);
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        padding: 100px 28px 40px; gap: 4px; transform: translateX(100%);
        transition: transform var(--t); box-shadow: var(--shadow-lg);
    }
    .nav-menu.open { transform: none; }
    .nav-menu > li > a:not(.btn) { display: block; padding: 15px 8px; font-size: 17px; color: #fff; border-bottom: 1px solid var(--ink-line); }
    .nav-menu > li > a:not(.btn)::after { display: none; }
    /* Services dropdown becomes an always-expanded, indented sublist in the mobile drawer */
    .nav-services > a .nav-chev { display: none; }
    .nav-dropdown {
        position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
        min-width: 0; background: transparent; border: 0; box-shadow: none; padding: 4px 0 10px 12px; gap: 0;
    }
    .nav-dropdown a { color: rgba(255,255,255,.82); padding: 12px 8px; font-size: 15.5px; }
    .nav-dropdown a:hover { background: transparent; color: #fff; }
    .nav-dropdown a svg { color: var(--gold-3); }
    .nav-dropdown-all { border-top: 1px solid var(--ink-line); border-radius: 0; margin-top: 4px; color: var(--gold-3); }
    .nav-cta { margin: 18px 0 0; }
    .nav-cta .btn { width: 100%; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    body.nav-open { overflow: hidden; }

    .split, .about-split, .contact-card { grid-template-columns: 1fr; }
    .split { gap: 40px; }
    .about-split { gap: 36px; }
    .about-portrait { max-width: 380px; margin: 0 auto; }
    .contact-form-wrap { padding: 40px 28px; }
    .contact-aside { padding: 40px 28px; }
    .svc-detail ul { columns: 1; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 28px; } .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .section { padding: 56px 0; }
    .card-grid, .steps { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-item { border-right: 0 !important; border-bottom: 1px solid var(--border); }
    .hero { padding: 122px 0 64px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; padding-left: 18px; padding-right: 18px; }
    .field-row { grid-template-columns: 1fr !important; } /* beat inline grid-template-columns on phones */
    .brand-sub { display: block; font-size: 9.5px; letter-spacing: .16em; } /* keep "Investigative Services" under DRACO on phones */
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-bottom-inner { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* Admin dashboard (themed, light + dark) ------------------------------ */
.admin-login { max-width: 430px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 40px 36px; box-shadow: var(--shadow-md); text-align: center; }
.admin-login h2 { font-size: 1.6rem; margin-bottom: 4px; }
.admin-login-sub { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 24px; }
.admin-login .field { text-align: left; }
.admin-login .field label { text-transform: none; letter-spacing: 0; font-size: 13px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 16px; }
.admin-stat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.admin-stat .n { display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold-2); line-height: 1; }
.admin-stat .l { display: block; color: var(--muted); font-size: 12.5px; margin-top: 7px; }
.admin-panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.admin-panel h2 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.admin-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-panel table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-panel th, .admin-panel td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.admin-panel tr:last-child td { border-bottom: 0; }
.admin-panel th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.admin-panel td.num { text-align: right; color: var(--gold-2); font-weight: 600; }
.admin-panel .muted, .admin-panel td.muted { color: var(--muted); }
.admin-panel td.nowrap, .admin-panel th { white-space: nowrap; }
.admin-panel td.wrap-cell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-scroll { overflow-x: auto; }
.admin-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-bottom: 22px; }
.admin-bars .b { flex: 1; display: flex; align-items: flex-end; position: relative; height: 100%; }
.admin-bars .b i { display: block; width: 100%; background: var(--navy-grad); border-radius: 4px 4px 0 0; min-height: 3px; }
.admin-bars .b span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.tag-new { background: rgba(53,104,143,.16); color: var(--gold-2); }
.tag-ret { background: rgba(120,132,145,.18); color: var(--muted); }
@media (max-width: 820px) { .admin-grid2 { grid-template-columns: 1fr; } }

/* Admin profile menu -------------------------------------------------- */
.profile-menu { position: relative; }
.profile-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 40px; padding: 6px 12px 6px 6px; cursor: pointer; color: var(--text); box-shadow: var(--shadow-sm); transition: border-color .16s, box-shadow .16s; }
.profile-btn:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }
.profile-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.profile-avatar.lg { width: 40px; height: 40px; font-size: 16px; }
.profile-name { font-size: 14px; font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-chev { color: var(--muted); transition: transform .18s; flex: none; }
.profile-menu.open .profile-chev { transform: rotate(180deg); }
.profile-dropdown { position: absolute; top: calc(100% + 10px); right: 0; min-width: 260px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); padding: 8px; z-index: 60; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s; }
.profile-menu.open .profile-dropdown { opacity: 1; visibility: visible; transform: none; }
.profile-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.profile-head strong { display: block; font-family: var(--sans); font-size: 14px; }
.profile-head span { display: block; color: var(--muted); font-size: 12.5px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: 9px; padding: 10px 12px; font-size: 14px; color: var(--text); cursor: pointer; text-decoration: none; }
.profile-item:hover { background: var(--tint); }
.profile-item svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.profile-item.danger { color: #a23434; }
.profile-item.danger:hover { background: #fbeaea; }
.profile-item.danger svg { color: #a23434; }
.profile-btn.compact { padding: 5px 8px 5px 6px; }
.admin-toolbar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-toolbar-actions .btn svg { width: 15px; height: 15px; }
.nav-profile { display: flex; align-items: center; }
.account-panel { max-width: 560px; }
.account-form .field { margin-bottom: 16px; }
.account-form .field label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--text); }
.account-form .field label .muted { font-weight: 400; }
.account-actions { display: flex; gap: 12px; align-items: center; margin-top: 22px; }
@media (max-width: 560px) { .profile-name { display: none; } .profile-dropdown { min-width: 240px; } }

/* Motion & depth ------------------------------------------------------ */
@keyframes dsvcFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes dsvcFloat  { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 16px)); } }

/* Hero entrance on load (staggered) */
.hero-inner > * { opacity: 0; animation: dsvcFadeUp .8s cubic-bezier(.2,.7,.3,1) forwards; }
.hero-inner > *:nth-child(1) { animation-delay: .06s; }
.hero-inner > *:nth-child(2) { animation-delay: .14s; }
.hero-inner > *:nth-child(3) { animation-delay: .22s; }
.hero-inner > *:nth-child(4) { animation-delay: .30s; }
.hero-inner > *:nth-child(5) { animation-delay: .38s; }
.hero-mark { animation: dsvcFloat 11s ease-in-out infinite; }

/* Reveal cascade inside grids */
.card-grid .reveal:nth-child(2), .serve-grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .09s; }
.card-grid .reveal:nth-child(3), .serve-grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .18s; }
.card-grid .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .27s; }
.card-grid .reveal:nth-child(5) { transition-delay: .36s; }
.card-grid .reveal:nth-child(6) { transition-delay: .45s; }

/* Subtle accent line at the top of the footer */
.site-footer { position: relative; }
.site-footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(53,104,143,.55), transparent);
}

@media (prefers-reduced-motion: reduce) {
    .hero-inner > * { opacity: 1 !important; animation: none !important; }
    .hero-mark { animation: none !important; }
    .reveal { transition-delay: 0s !important; }
}

/* =========================================================================
   CUSTOMER PORTAL — dashboard shell, sidebar, cards, stats, tables
   ====================================================================== */
.portal-body { background: var(--paper); }

/* Header portal profile button: show the name beside the avatar (desktop). */
.profile-btn-name { font-weight: 600; font-size: 14px; color: var(--nav-text-strong, var(--text)); }
@media (max-width: 720px) { .profile-btn-name { display: none; } }

/* Shell: fixed 78px header clearance + sidebar/content split. */
.portal-shell { display: flex; align-items: flex-start; max-width: 1340px; margin: 0 auto; padding-top: 78px; }
.portal-sidebar {
    width: 252px; flex: none; align-self: stretch;
    position: sticky; top: 78px; height: calc(100vh - 78px);
    background: var(--white); border-right: 1px solid var(--line);
    padding: 20px 14px; display: flex; flex-direction: column; overflow-y: auto;
}
.psb-user { display: flex; align-items: center; gap: 11px; padding: 6px 8px 16px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.psb-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex: none;
    background: var(--gold); color: #fff; font-weight: 700; font-size: 17px;
    display: grid; place-items: center; font-family: var(--sans);
}
.psb-user-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.psb-user-meta strong { font-size: 14.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.psb-user-meta span { font-size: 12px; color: var(--muted); }
.psb-nav { display: flex; flex-direction: column; gap: 2px; }
.psb-link {
    display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 8px;
    color: var(--muted); font-weight: 500; font-size: 14.5px; text-decoration: none; transition: background .15s, color .15s;
}
.psb-link svg { width: 19px; height: 19px; flex: none; }
.psb-link:hover { background: var(--tint); color: var(--text); }
.psb-link.is-active { background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); font-weight: 600; }
.psb-link.is-active svg { color: var(--gold); }
.psb-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.psb-signout { color: #b4442f; }
.psb-signout:hover { background: rgba(180,68,47,.10); color: #b4442f; }
.psb-back { display: flex; align-items: center; gap: 9px; padding: 9px 12px; font-size: 13px; color: var(--muted); text-decoration: none; }
.psb-back svg { width: 15px; height: 15px; transform: rotate(180deg); }
.psb-back:hover { color: var(--text); }

/* Content column */
.portal-content { flex: 1 1 auto; min-width: 0; padding: 24px 32px 48px; }
.portal-topbar { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.portal-head-text { flex: 1 1 auto; min-width: 0; }
.portal-topbar h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; color: var(--text); line-height: 1.1; }
.portal-crumb { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.portal-crumb a { color: var(--muted); text-decoration: none; }
.portal-crumb a:hover { color: var(--gold); }
.crumb-sep { opacity: .5; margin: 0 2px; }
.portal-sub { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.portal-head-actions { flex: none; padding-top: 4px; }
.psb-toggle { display: none; }

/* Welcome banner */
.portal-welcome { background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 12%, var(--white)), var(--white)); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 20px; }
.portal-welcome h2 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 6px; color: var(--text); }
.portal-welcome p { margin: 0; color: var(--muted); max-width: 70ch; font-size: 14.5px; }

/* Dashboard banners (verify-email nudge, resume-payment) */
.portal-banner { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); margin-bottom: 16px; }
.portal-banner > svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--gold-2); }
.portal-banner > div { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.portal-banner strong { font-size: 15px; color: var(--text); }
.portal-banner span { font-size: 13px; color: var(--muted); }
.portal-banner .btn { flex: 0 0 auto; }
.portal-banner-warn { background: #fff8ec; border-color: #f0d9a8; }
.portal-banner-warn > svg { color: #b7791f; }
.portal-banner-action { background: color-mix(in srgb, var(--gold) 9%, var(--white)); border-color: color-mix(in srgb, var(--gold) 28%, var(--line)); }
:root[data-theme="dark"] .portal-banner-warn { background: #33290f; border-color: #5a4a1e; }
:root[data-theme="dark"] .portal-banner-warn > svg { color: #e0b45a; }
:root[data-theme="dark"] .portal-banner-action { background: color-mix(in srgb, var(--gold) 16%, var(--white)); }
@media (max-width: 560px) { .portal-banner { flex-wrap: wrap; } .portal-banner .btn { width: 100%; } }

/* First-run get-started hero (shown instead of five zero tiles) */
.portal-getstarted { margin-bottom: 22px; }
.portal-getstarted h3 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 8px; color: var(--text); }
.portal-getstarted p { color: var(--muted); margin: 0 0 16px; max-width: 62ch; font-size: 14.5px; }

/* Stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-grid-sm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); max-width: 480px; }
.stat-tile { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm); }
.stat-ic { width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--gold); display: grid; place-items: center; margin-bottom: 8px; }
.stat-ic svg { width: 19px; height: 19px; }
.stat-num { font-family: var(--serif); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--text); }
.stat-lbl { font-size: 13px; color: var(--muted); }

/* Two-column content */
.portal-cols { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .portal-cols { grid-template-columns: 1fr; } }

/* Cards */
.portal-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.portal-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.portal-card-head h3, .portal-card > h3 { font-family: var(--serif); font-size: 1.12rem; margin: 0 0 2px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.portal-card > h3 svg { width: 18px; height: 18px; color: var(--gold); }
.portal-card-link { font-size: 13.5px; color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.portal-card-link svg { width: 15px; height: 15px; }
.portal-card-link:hover { color: var(--gold-2); }

/* Guide / steps / support */
.portal-guide p, .portal-support p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.portal-steps { margin: 4px 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.portal-steps li { color: var(--muted); font-size: 14px; line-height: 1.55; }
.portal-steps li strong { color: var(--text); }
.portal-steps-lg li { font-size: 14.5px; margin-bottom: 3px; }
.portal-deflist { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.portal-deflist li { font-size: 14px; color: var(--muted); line-height: 1.55; }
.portal-deflist .pstat { margin-right: 6px; }
.portal-support + .portal-support, .portal-guide + .portal-support { margin-top: 0; }
.portal-support a { color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.portal-support a:hover { color: var(--gold-2); }
.portal-support a svg { width: 16px; height: 16px; }
/* Scoped to the portal help card so these do NOT override the marketing FAQ accordion (.faq-q/.faq-a). */
.portal-support .faq-q { font-weight: 600; color: var(--text); font-size: 14px; margin: 12px 0 2px; }
.portal-support .faq-a { margin: 0; font-size: 13.5px; }

/* Info note callout */
.portal-note { display: flex; gap: 12px; align-items: flex-start; background: color-mix(in srgb, var(--gold) 7%, var(--white)); border: 1px solid color-mix(in srgb, var(--gold) 25%, var(--line)); border-radius: 10px; padding: 14px 16px; }
.portal-note svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 1px; }
.portal-note p { margin: 0; font-size: 13.8px; color: var(--muted); line-height: 1.55; }
.portal-note strong { color: var(--text); }

/* Empty state */
.portal-empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.portal-empty svg { width: 34px; height: 34px; color: var(--muted); opacity: .5; margin-bottom: 8px; }
.portal-empty p { max-width: 46ch; margin: 0 auto 14px; font-size: 14px; line-height: 1.55; }

/* Tables */
.portal-tablewrap { overflow-x: auto; }
.portal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.portal-table th { text-align: left; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 14px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.portal-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft, var(--line)); vertical-align: middle; }
.portal-table tbody tr:last-child td { border-bottom: none; }
.portal-table tbody tr:hover { background: var(--tint); }
.pt-num { color: var(--muted); font-variant-numeric: tabular-nums; width: 1%; }
.pt-item { font-weight: 600; color: var(--text); }
.pt-muted { color: var(--muted); }
.pt-ref { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.pt-right, .ta-right { text-align: right; }
.ta-center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Status pills */
.pstat { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.pstat.is-done { background: rgba(31,122,77,.15); color: #1c7a4b; }
.pstat.is-progress { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.pstat.is-wait { background: rgba(176,120,20,.16); color: #9a6a12; }
.pstat.is-off { background: rgba(120,128,136,.16); color: var(--muted); }
:root[data-theme="dark"] .pstat.is-done { color: #5bd196; }
:root[data-theme="dark"] .pstat.is-wait { color: #e0b45a; }

/* Summary table (pay page) */
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table td { padding: 9px 0; border-bottom: 1px solid var(--line-soft, var(--line)); font-size: 14.5px; }
.summary-table .summary-total td { border-bottom: none; border-top: 2px solid var(--line); padding-top: 12px; font-size: 1.05rem; }

/* Buttons: outline + tiny + block (extend existing set) */
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--text); box-shadow: none; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: color-mix(in srgb, var(--gold) 7%, transparent); }
.btn-xs { padding: 5px 11px; font-size: 12.5px; border-radius: 7px; display: inline-flex; align-items: center; gap: 5px; }
.btn-xs svg { width: 14px; height: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* Field hint + narrow wrap */
.field-hint { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; }
.wrap-narrow { width: 100%; }

/* Admin: report upload sub-panel */
.admin-subpanel { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-subpanel h3 { font-size: 1rem; margin: 0 0 10px; color: var(--text); }
.report-upload label { font-size: 13.5px; color: var(--muted); }
.report-upload input[type=file] { font-size: 13px; }

/* Slim portal footer */
.portal-footer { border-top: 1px solid var(--line); background: var(--white); margin-top: 20px; }
.portal-footer-inner { padding: 20px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.portal-footer-inner p { margin: 0; font-size: 12.5px; color: var(--muted); }
.portal-footer-links { display: flex; gap: 16px; }
.portal-footer-links a { color: var(--muted); text-decoration: none; }
.portal-footer-links a:hover { color: var(--gold); }
.portal-footer-note { flex-basis: 100%; opacity: .8; }

/* Mobile: collapsible sidebar */
@media (max-width: 860px) {
    .portal-shell { flex-direction: column; padding-top: 78px; }
    .portal-sidebar {
        position: fixed; top: 78px; left: 0; right: 0; width: auto; height: auto; max-height: 0;
        z-index: 90; border-right: none; border-bottom: 1px solid var(--line);
        padding: 0 14px; overflow: hidden; transition: max-height .25s ease, padding .25s ease; box-shadow: var(--shadow-md);
    }
    .portal-shell.psb-open .portal-sidebar { max-height: 80vh; padding: 16px 14px; overflow-y: auto; }
    .portal-content { padding: 18px 18px 40px; width: 100%; }
    .psb-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; padding: 0 10px; }
    .psb-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
    .portal-cols { grid-template-columns: 1fr; }
    .portal-footer-inner { padding: 18px; }
}

/* Constrain inline icons inside alerts (were rendering full-width). */
.alert svg, .alert-ok svg, .alert-error svg { width: 18px; height: 18px; flex: none; vertical-align: -3px; margin-right: 5px; display: inline-block; }

/* Employer onboarding checklist */
.onboard-card { border-left: 3px solid var(--gold); }
.onboard-count { font-size: 12.5px; color: var(--muted); background: var(--tint); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.onboard-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.onboard-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.onboard-steps li.is-done { opacity: .62; }
.onboard-mark { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--tint); color: var(--muted); }
.onboard-steps li.is-done .onboard-mark { background: rgba(31,122,77,.16); color: #1c7a4b; }
.onboard-steps li.is-done .onboard-mark svg { width: 15px; height: 15px; }
.onboard-label { flex: 1 1 auto; font-size: 14.5px; color: var(--text); font-weight: 500; }
.onboard-steps li.is-done .onboard-label { text-decoration: line-through; }

/* Signup steps rail */
.steprail-item { font-size: 13px; color: var(--muted); background: var(--white); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }
.steprail-item.is-current { border-color: var(--gold); color: var(--gold); font-weight: 600; }

/* Saved card display */
.saved-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); }
.saved-card-brand { font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.saved-card-num { font-family: ui-monospace, Menlo, monospace; letter-spacing: .12em; color: var(--text); }
.saved-card-exp { font-size: 13px; color: var(--muted); margin-left: auto; }

/* Constrain icons in card-head headings (onboarding check-circle etc.) */
.portal-card-head h3 svg { width: 18px; height: 18px; flex: none; }

/* Inline icons inside portal paragraphs (e.g. "Processed securely by Stripe"). */
.portal-main p svg { width: 16px; height: 16px; flex: none; vertical-align: -3px; }

/* ===== Employer signup — conversion layout ===== */
.esignup-lead { text-align: center; max-width: 720px; margin: 0 auto; }
.esignup-lead h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 8px 0 10px; letter-spacing: -.02em; }
.esignup-lead .lead { color: var(--muted); font-size: 1.02rem; line-height: 1.5; }
.esignup-rail { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 22px auto 32px; padding: 0; }
.esignup-rail li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 15px 6px 6px; }
.esignup-rail li span { width: 22px; height: 22px; border-radius: 50%; background: var(--tint); color: var(--muted); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.esignup-rail li.is-current { border-color: var(--gold); color: var(--gold); font-weight: 600; }
.esignup-rail li.is-current span { background: var(--gold); color: #fff; }
.esignup-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: start; max-width: 1000px; margin: 0 auto; }
@media (max-width: 880px) { .esignup-grid { grid-template-columns: 1fr; gap: 26px; } .esignup-benefits { order: 2; } }
.esignup-benefits h2, .esignup-form h2 { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 16px; color: var(--text); }
.esignup-points { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.esignup-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.esignup-points li strong { color: var(--text); }
.esignup-points svg { width: 22px; height: 22px; flex: none; color: #1c7a4b; background: rgba(31,122,77,.12); border-radius: 50%; padding: 4px; margin-top: 1px; }
.esignup-trust { display: flex; gap: 10px; align-items: flex-start; background: var(--tint); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.esignup-trust svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.esignup-form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px 30px; box-shadow: var(--shadow-md); }
.form-section-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 20px 0 10px; }
.form-section-label:first-of-type { margin-top: 0; }
.attest-check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 18px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.attest-check input { margin-top: 4px; }
/* Per-purpose FCRA certification blocks on the individual request form */
.ppurpose-cert { background: var(--tint); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; }
.ppurpose-cert .attest-check { margin: 0; }
.ppurpose-cert .field { margin-bottom: 10px; }

/* ===== Dark-mode fixes (audit #12, #22) — opt-in [data-theme="dark"] only ===== */
/* Portal accent foregrounds: bare --gold (#35688f) is too dark on the dark card
   ground; --gold-2 brightens to #7fb2d6 in dark for AA contrast. Solid gold
   fills (.psb-avatar, rail number chips) are intentionally left untouched. */
:root[data-theme="dark"] .pstat.is-progress,
:root[data-theme="dark"] .psb-link.is-active,
:root[data-theme="dark"] .psb-link.is-active svg,
:root[data-theme="dark"] .stat-ic,
:root[data-theme="dark"] .portal-card > h3 svg,
:root[data-theme="dark"] .portal-card-head h3 svg,
:root[data-theme="dark"] .portal-card-link,
:root[data-theme="dark"] .portal-card-link svg,
:root[data-theme="dark"] .portal-support a,
:root[data-theme="dark"] .portal-support a svg,
:root[data-theme="dark"] .portal-note svg,
:root[data-theme="dark"] .portal-crumb a:hover,
:root[data-theme="dark"] .stat-num + .stat-lbl { color: var(--gold-2); }
:root[data-theme="dark"] .steprail-item.is-current,
:root[data-theme="dark"] .esignup-rail li.is-current { color: var(--gold-2); border-color: var(--gold-2); }

/* Alert banners: the light green/red boxes are too bright on a dark ground. */
:root[data-theme="dark"] .alert-ok    { background: rgba(31,122,77,.16);  border-color: rgba(91,209,150,.35); color: #cfe9d9; }
:root[data-theme="dark"] .alert-error { background: rgba(180,68,47,.16);  border-color: rgba(224,120,100,.4); color: #f0cfc6; }
:root[data-theme="dark"] .alert-ok svg    { color: #5bd196; }
:root[data-theme="dark"] .alert-error svg { color: #e6a08c; }

/* ===== Employer signup — depth pass (gradients, shadows, borders) ===== */
.esignup-page { background:
    radial-gradient(1100px 460px at 50% -120px, color-mix(in srgb, var(--gold) 12%, transparent), transparent 65%),
    linear-gradient(180deg, var(--tint) 0%, var(--paper) 46%); }
.esignup-rail li { box-shadow: var(--shadow-sm); }
.esignup-rail li.is-current { box-shadow: 0 3px 12px color-mix(in srgb, var(--gold) 32%, transparent); }
.esignup-benefits {
    background: linear-gradient(165deg, var(--white), color-mix(in srgb, var(--gold) 7%, var(--white)));
    border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; box-shadow: var(--shadow-md);
}
.esignup-benefits h2 { margin-top: 0; }
.esignup-trust { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 8%, var(--white)), var(--tint)); box-shadow: var(--shadow-sm); }
.esignup-form {
    border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    border-top: 3px solid var(--gold); position: relative;
}
/* Nicer, deeper form fields on the signup card */
.esignup-form .field input {
    background: var(--white); border: 1px solid var(--line); border-radius: 9px; padding: 13px 15px;
    box-shadow: inset 0 1px 2px rgba(14,18,22,.05); transition: border-color var(--t), box-shadow var(--t);
}
.esignup-form .field input:focus {
    border-color: var(--gold); box-shadow: inset 0 1px 2px rgba(14,18,22,.03), 0 0 0 4px var(--gold-soft);
}
.esignup-form .field input::placeholder { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.esignup-form .form-section-label { padding-bottom: 4px; border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .esignup-form .field input { box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }

/* 4-across step cards (background-check "how it works") */
.card-grid.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 940px) { .card-grid.steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .card-grid.steps-4 { grid-template-columns: 1fr; } }
