/* ============================================================
   AskHrAI — Design System v2
   Theme: Black & White, with a single Orange accent reserved for
   interactive elements (buttons, hover, active nav, focus rings) —
   restored 2026-09-07 after a prior pass removed it entirely in the
   course of an accessibility contrast fix. The contrast problem was
   real (the original #F97316 measured ~2.8:1); the fix didn't need to
   delete the color, just use the already-darkened #C2410C shade this
   codebase had already proven passes WCAG AA (4.5:1+ both as text-on-
   white and white-text-on-orange) — see the --orange tokens below.
   Fonts: Playfair Display (display) + Plus Jakarta Sans (UI)
   Aesthetic: Premium editorial — WSJ meets modern SaaS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  /* Orange accent — reserved for interactive elements only (buttons,
     hover states, active nav, focus rings). Darkened from #F97316 to
     #C2410C to meet WCAG AA 4.5:1 text contrast (both as text-on-white
     and white-text-on-orange; the original shade measured ~2.8:1). Every
     other surface in the app stays black/white/gray — see the neutral
     tokens below — so orange keeps meaning "you can act on this". */
  --orange:        #C2410C;
  --orange-dark:   #9A3412;
  --orange-light:  #FED7AA;
  --orange-xl:     #FFF7ED;
  --orange-2xl:    #FFFBF5;

  /* Neutrals — pure whites */
  --white:         #FFFFFF;
  --white-rgb:     255,255,255;
  --bg:            #FAFAFA;
  --bg-2:          #F5F5F5;
  --bg-3:          #EEEEEE;

  /* Ink — neutral blacks */
  --ink:           #18181B;
  --ink-2:         #3F3F46;
  /* Darkened slightly from #71717A — passed 4.5:1 on white (4.83:1) but
     fell just short on the --bg-2 surface color used under a lot of card
     text (4.39:1). */
  --ink-3:         #6A6A73;
  /* Darkened from #A1A1AA (2.56:1 on white) to meet WCAG AA 4.5:1 — this
     token is used for readable hint/secondary text sitewide, not just
     decoration. Slightly darker than --ink-3 for the same --bg-2 margin. */
  --ink-4:         #68686F;
  --ink-5:         #D4D4D8;

  /* Aliases for the "--c-*" token names referenced across several
     stylesheets (dashboard.css, compliance.css, try.css, affiliate.css,
     documents.css, stripe.css, email-settings.css) that were never
     actually defined anywhere — every var(--c-dark)/var(--c-indigo)/etc.
     was silently resolving to nothing, which is why e.g. the affiliate
     earnings-calculator "dark" section had no background and rendered
     white text on white. --c-dark/--c-indigo* map to monochrome
     black/gray values (logo tiles, hover states) rather than the old
     navy/indigo brand pair — orange is the only accent color in this
     system now, so a second accent family was retired on purpose;
     the rest alias the equivalent non-prefixed token above. */
  --c-dark:        #111111;
  /* Legacy "indigo" alias family — kept monochrome black/gray under the
     old names for compatibility, not restored to navy/indigo. */
  --c-indigo:      #111111;
  --c-indigo-d:    #000000;
  --c-indigo-xl:   #F0F0F0;
  --c-surface:     var(--white);
  --c-bg:          var(--bg);
  --c-bg-2:        var(--bg-2);
  --c-bg-3:        var(--bg-3);
  --c-border:      var(--border);
  --c-border-2:    var(--border-2);
  --c-ink:         var(--ink);
  --c-ink-2:       var(--ink-2);
  --c-ink-3:       var(--ink-3);
  --c-ink-4:       var(--ink-4);
  --c-danger:      var(--danger);
  --c-success:     var(--success);
  --c-warning:     var(--warning);

  /* Border */
  --border:        #E4E4E7;
  --border-2:      #F0F0F0;

  /* Semantic */
  /* Darkened from #16A34A (3.15:1 as text on white) to meet 4.5:1. */
  --success:       #15803D;
  --success-bg:    #DCFCE7;
  --warning:       #D97706;
  --warning-bg:    #FEF3C7;
  --danger:        #DC2626;
  --danger-bg:     #FEE2E2;
  --info:          #525252;
  --info-bg:       #F0F0F0;

  /* Typography */
  --f-display:     'Playfair Display', Georgia, serif;
  --f-ui:          'Plus Jakarta Sans', system-ui, sans-serif;

  /* Spacing */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   18px;
  --r-2xl:  24px;
  --r-3xl:  32px;
  --r-pill: 100px;

  /* Shadows */
  --sh-xs: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh-sm: 0 4px 12px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --sh-md: 0 8px 24px rgba(0,0,0,.09), 0 4px 8px rgba(0,0,0,.05);
  --sh-lg: 0 20px 48px rgba(0,0,0,.11), 0 8px 16px rgba(0,0,0,.06);
  --sh-orange: 0 4px 20px rgba(0,0,0,.25);

  /* Transitions */
  --t: all .18s ease;
}

/* ── Dark mode ─────────────────────────────────────────────────
   Colors go "vice versa": every neutral surface/text token below is
   swapped, using the same soft near-black / off-white tones as the
   light palette above (not pure #000/#FFF, for the same reason the
   light mode isn't pure white — softer on the eyes, still reads as
   black/white at a glance). --orange and its family, plus --c-dark/
   --c-indigo* (the fixed "always-black" surface used by buttons, the
   footer, and featured cards), are deliberately NOT redefined here —
   the orange accent and the black button/card look stay identical in
   both themes, exactly like a printed logo doesn't change color.

   Dark is the sitewide default now, for every visitor, regardless of
   OS preference — not just an OS-preference fallback. This block
   applies to `:root:not([data-theme="light"])`, i.e. always, unless a
   visitor has explicitly picked light with the toggle in the nav
   (stored in localStorage, applied via [data-theme] on <html> — see
   public/js/theme.js). That's the only way back to the light palette;
   there's no longer an @media(prefers-color-scheme) branch, since the
   default no longer depends on the OS setting. The
   [data-theme="dark"] block right after this one is now redundant
   with it in practice (same values) but kept for explicitness/clarity
   when a visitor has actively chosen dark rather than gotten it as
   the default. */
:root:not([data-theme="light"]) {
  --white:    #17171A;
  --white-rgb: 23,23,26;
  --bg:       #0E0E10;
  --bg-2:     #1E1E22;
  --bg-3:     #28282D;

  --ink:      #F2F2F0;
  --ink-2:    #C7C7CC;
  --ink-3:    #9D9DA6;
  --ink-4:    #97979F;
  --ink-5:    #3A3A40;

  --border:   #313136;
  --border-2: #222226;

  --success:    #22C55E;
  --success-bg: rgba(34,197,94,.12);
  --warning:    #F59E0B;
  --warning-bg: rgba(245,158,11,.12);
  --danger:     #EF4444;
  --danger-bg:  rgba(239,68,68,.14);
  --info:       #A1A1AA;
  --info-bg:    #1E1E22;

  --c-indigo-xl: #1E1E22;

  --sh-xs: 0 1px 3px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.25);
  --sh-sm: 0 4px 12px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.25);
  --sh-md: 0 8px 24px rgba(0,0,0,.45), 0 4px 8px rgba(0,0,0,.3);
  --sh-lg: 0 20px 48px rgba(0,0,0,.5), 0 8px 16px rgba(0,0,0,.3);
}
:root[data-theme="dark"] {
  --white:    #17171A;
  --white-rgb: 23,23,26;
  --bg:       #0E0E10;
  --bg-2:     #1E1E22;
  --bg-3:     #28282D;

  --ink:      #F2F2F0;
  --ink-2:    #C7C7CC;
  --ink-3:    #9D9DA6;
  --ink-4:    #97979F;
  --ink-5:    #3A3A40;

  --border:   #313136;
  --border-2: #222226;

  --success:    #22C55E;
  --success-bg: rgba(34,197,94,.12);
  --warning:    #F59E0B;
  --warning-bg: rgba(245,158,11,.12);
  --danger:     #EF4444;
  --danger-bg:  rgba(239,68,68,.14);
  --info:       #A1A1AA;
  --info-bg:    #1E1E22;

  --c-indigo-xl: #1E1E22;

  --sh-xs: 0 1px 3px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.25);
  --sh-sm: 0 4px 12px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.25);
  --sh-md: 0 8px 24px rgba(0,0,0,.45), 0 4px 8px rgba(0,0,0,.3);
  --sh-lg: 0 20px 48px rgba(0,0,0,.5), 0 8px 16px rgba(0,0,0,.3);
}
/* Belt-and-braces: color-scheme tells the browser to draw its own native
   UI (scrollbars, form controls, autofill) in the matching mode instead
   of always-light, on top of everything above. Dark by default, same as
   the token block above — light only once a visitor explicitly toggles. */
:root:not([data-theme="light"]) { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Visually hidden but still exposed to screen readers / the a11y tree */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--f-ui);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--f-display);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; font-family: var(--f-ui); font-weight: 700; }
.contact-card h2 { font-size: 1.25rem; }
/* Semantic h2 promoted from a visual h3 (fixes heading-order a11y violations without changing appearance) */
.visual-h3 { font-size: 1.25rem; }
/* Semantic h3 promoted from a visual h4 (fixes heading-order a11y violations without changing appearance) */
.visual-h4 { font-size: 1.0625rem; font-family: var(--f-ui); font-weight: 700; }
p  { color: var(--ink-2); line-height: 1.75; }

/* ── Utility classes ───────────────────────────────────────── */
.container  { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.text-orange { color: var(--orange); }
.text-muted  { color: var(--ink-3); }
.italic      { font-style: italic; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: var(--r-pill);
  font-family: var(--f-ui); font-size: .9375rem; font-weight: 700;
  transition: var(--t); cursor: pointer; border: none; text-decoration: none;
  white-space: nowrap;
}
/* Primary button: black fill, orange border by default — the border
   "fills in" solid orange on hover/focus/click as the interactive cue
   (per the black/white + orange-only-on-interaction design direction).
   Border is included in .btn's box-sizing: border-box, so it doesn't
   shift the button's footprint versus the old border-less version. */
.btn-orange {
  background: var(--c-dark); color: #fff;
  border: 2px solid var(--orange);
  box-shadow: var(--sh-orange);
}
.btn-orange:hover, .btn-orange:focus-visible {
  background: var(--orange); border-color: var(--orange); color: #fff;
  transform: translateY(-1px); box-shadow: 0 6px 24px rgba(194,65,12,.35);
}
.btn-orange:active { transform: translateY(0); background: var(--orange-dark); border-color: var(--orange-dark); }

.btn-dark { background: var(--c-dark); color: #fff; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border); box-shadow: var(--sh-xs);
}
.btn-outline:hover { border-color: var(--ink-3); background: var(--white); }

.btn-outline-orange {
  background: transparent; color: var(--orange);
  border: 1.5px solid var(--orange-light);
}
.btn-outline-orange:hover { background: var(--orange-xl); border-color: var(--orange); }

.btn-ghost { background: transparent; color: var(--ink-3); padding: .625rem 1rem; }
.btn-ghost:hover { color: var(--ink); background: var(--bg-2); border-radius: var(--r-md); }

.btn-sm { padding: .5rem 1.125rem; font-size: .8375rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1.125rem 2.5rem; font-size: 1.0625rem; }

/* ── Marketing nav ─────────────────────────────────────────── */
.comp-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
  /* rgba(var(--white-rgb),.92), not var(--white) directly — this is a
     translucent frosted-glass bar (backdrop-filter blur below), and a
     hardcoded rgba(255,255,255,...) here was the exact bug that made nav
     text unreadable in dark mode: the text color (var(--ink)) correctly
     inverted to near-white, but this background didn't invert with it and
     stayed white, leaving near-white text on a still-white bar. */
  background: rgba(var(--white-rgb),.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-2);
  position: sticky; top: 0; z-index: 200;
}
.comp-logo {
  display: flex; align-items: center; gap: .625rem;
  font-family: var(--f-ui); font-weight: 800; font-size: 1.0625rem; color: var(--ink);
}
.comp-logo .logo-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.comp-logo strong { color: var(--orange); font-weight: 800; }
.comp-nav-links { display: flex; align-items: center; gap: 1.75rem; }
.comp-nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--ink-3);
  transition: color .15s; position: relative;
}
.comp-nav-links a:hover { color: var(--ink); }
.comp-nav-links a.active { color: var(--orange); font-weight: 700; }
.comp-nav-right { display: flex; align-items: center; gap: .75rem; }

/* ── Dashboard layout ──────────────────────────────────────── */
.dash-layout { display: flex; min-height: 100vh; background: var(--bg); }

/* Sidebar */
.dash-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.ds-logo {
  display: flex; align-items: center; gap: .625rem;
  padding: 1.25rem 1.5rem;
  font-weight: 800; font-size: 1rem; color: var(--ink);
  border-bottom: 1px solid var(--border-2);
}
.ds-logo .logo-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .875rem;
}
.ds-logo span { color: var(--orange); }

.ds-nav { flex: 1; padding: 1rem 0; }
.ds-section-label {
  padding: .375rem 1.5rem;
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--ink-4); margin-top: .5rem;
}
.ds-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem 1.5rem; margin: .1rem .75rem;
  border-radius: var(--r-md);
  font-size: .875rem; font-weight: 500; color: var(--ink-3);
  transition: var(--t); cursor: pointer;
}
.ds-item:hover { background: var(--bg-2); color: var(--ink); }
.ds-item.active {
  background: var(--orange-xl); color: var(--orange);
  font-weight: 700;
}
.ds-item.active i { color: var(--orange); }
.ds-item i { font-size: 1rem; color: var(--ink-4); transition: color .15s; width: 18px; }
.ds-item:hover i { color: var(--ink-2); }

.ds-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-2);
}
.ds-theme-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .75rem; font-size: .8125rem; font-weight: 600; color: var(--ink-3);
}
.ds-theme-row i.bi-circle-half { color: var(--ink-4); margin-right: .25rem; }
.ds-theme-row .theme-toggle { width: 32px; height: 32px; font-size: .9375rem; }
.ds-user {
  display: flex; align-items: center; gap: .625rem;
  padding: .625rem; border-radius: var(--r-md);
  transition: var(--t); cursor: pointer;
}
.ds-user:hover { background: var(--bg-2); }
.ds-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange-light); color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; flex-shrink: 0;
}
.ds-user-info { flex: 1; min-width: 0; }
.ds-user-name { font-size: .8125rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-user-plan { font-size: .7rem; color: var(--ink-4); text-transform: capitalize; }

/* Main content */
.dash-main {
  flex: 1; min-width: 0;
  padding: 2rem 2.5rem;
  overflow-y: auto;
}
.dash-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 2rem; gap: 1rem;
}
.dash-page-header h1 {
  font-size: 1.75rem; margin-bottom: .25rem;
  display: flex; align-items: center; gap: .5rem;
}
.dash-page-header h1 i { color: var(--orange); font-size: 1.5rem; }
.dash-page-header p { font-size: .9rem; color: var(--ink-3); }

/* Dash header (top bar) */
.dash-header {
  height: 60px; background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem; position: sticky; top: 0; z-index: 100;
}

/* Mobile top bar (partials/dash-header.ejs, right after <body>) — hidden
   on desktop. Below the 768px breakpoint the sidebar itself becomes an
   off-canvas drawer (see the media query further down) with no other way
   back to /dashboard or /tools, so this bar is the replacement: hamburger
   to open the drawer, logo → home, grid icon → all tools. */
.dash-mobile-bar {
  display: none;
  align-items: center; gap: .75rem;
  height: 56px; padding: 0 1.1rem;
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 210;
}
.dmb-burger {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r-md); flex-shrink: 0;
  background: transparent; border: 1px solid var(--border);
  color: var(--ink-2); font-size: 1.15rem;
}
.dmb-burger:hover, .dmb-burger:active { background: var(--bg-2); }
.dmb-logo {
  flex: 1; display: flex; align-items: center; gap: .5rem; min-width: 0;
  font-weight: 800; font-size: .9rem; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dmb-logo span { color: var(--orange); }
.dmb-logo .logo-icon {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .75rem;
}
.dmb-tools {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--orange-xl); color: var(--orange); font-size: 1rem;
}
.dash-sidebar-backdrop {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 190; opacity: 0; transition: opacity .25s ease;
}
.dash-sidebar-backdrop.open { display: block; opacity: 1; }
.ds-close { display: none; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xs);
}
.card-pad { padding: 1.5rem; }
.card-pad-lg { padding: 2rem; }

/* ── Form elements ─────────────────────────────────────────── */
.field-label {
  display: block; margin-bottom: .5rem;
  font-size: .78rem; font-weight: 700; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .05em;
}
.field-input {
  width: 100%; padding: .75rem 1rem;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-md); font-family: var(--f-ui);
  font-size: .9375rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.field-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(0,0,0,.15);
}
.field-input::placeholder { color: var(--ink-5); }
.field-select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2371717A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .875rem center; padding-right: 2.5rem;
}
.field-textarea { resize: vertical; min-height: 100px; }

/* ── Alerts ────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: center; gap: .625rem;
  padding: .875rem 1.125rem; border-radius: var(--r-md);
  font-size: .875rem; font-weight: 500; margin-bottom: 1.25rem;
}
.alert i { flex-shrink: 0; }
.alert-success { background: var(--success-bg); color: #15803d; border: 1px solid #86efac; }
.alert-error   { background: var(--danger-bg);  color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fcd34d; }
.alert-info    { background: var(--info-bg);    color: #111111; border: 1px solid #D4D4D4; }

/* ── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .625rem; border-radius: var(--r-pill);
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.badge-orange { background: var(--orange-xl); color: var(--orange-dark); border: 1px solid var(--orange-light); }
.badge-green  { background: var(--success-bg); color: #15803d; }
.badge-red    { background: var(--danger-bg);  color: #991b1b; }
.badge-yellow { background: var(--warning-bg); color: #92400e; }
.badge-gray   { background: var(--bg-2); color: var(--ink-3); border: 1px solid var(--border); }

/* ── Homepage hero ─────────────────────────────────────────── */
.hero {
  background: var(--white);
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--border-2);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,0,0,.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem 1rem;
  background: var(--orange-xl); border: 1px solid var(--orange-light);
  border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700; color: var(--orange-dark);
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 1.5rem;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); animation: pulse 2.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero h1 { margin-bottom: 1.25rem; color: var(--ink); }
.hero h1 em { font-style: italic; color: var(--orange); }
.hero-sub { font-size: 1.0625rem; color: var(--ink-3); max-width: 540px; line-height: 1.8; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: .875rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-trust {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.hero-trust-item {
  display: flex; align-items: center; gap: .375rem;
  font-size: .8rem; color: var(--ink-4); font-weight: 500;
}
.hero-trust-item i { color: var(--orange); font-size: .875rem; }

/* ── Hero triple layout — compliance pitch / live example / audience
   picker as three equal columns in one banner, so all of it is visible
   without scrolling. Replaces the old 2-column .hero-grid entirely;
   .hero-grid's own rules above are dead but left in place in case a
   future page still uses the plain 2-column hero pattern. */
.hero-triple { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; align-items: stretch; }
.hero-col {
  background: var(--bg-2); border: 1px solid var(--orange-light);
  border-radius: var(--r-2xl); padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: var(--sh-xs); transition: var(--t);
}
.hero-col:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: var(--sh-md);
}
.hero-col-icon {
  /* Was a transparent circle with just an orange outline/ring, so the
     icon read as a thin line-art badge next to the rest of the hero's
     solid-orange accents (buttons, dots, checkmarks). Filled solid so
     all three badges match and pop against the dark hero background. */
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); border: none;
  display: flex; align-items: center; justify-content: center;
  /* #fff not var(--white): --white is a light/dark surface-color token
     that flips to a near-black value in dark mode (see :root vs dark
     theme block above) — right for a card background, wrong for an
     icon glyph that needs to stay legible on a fixed-color orange
     circle in both themes. Every other orange-filled badge/button in
     this file (.hero-pick-icon, .tool-card-icon, .btn, etc.) already
     uses literal #fff for exactly this reason. */
  font-size: 1.125rem; color: #fff;
  margin-bottom: 1.125rem; position: relative; z-index: 1;
  box-shadow: var(--sh-xs);
}
.hero-triple-title { font-size: 1.75rem; line-height: 1.22; margin-bottom: .875rem; color: var(--ink); position: relative; z-index: 1; }
.hero-triple-title em { font-style: italic; color: var(--orange); }
.hero-col-sub { font-size: .9rem; color: var(--ink-3); line-height: 1.65; margin-bottom: 1.5rem; flex: 1; position: relative; z-index: 1; }
.hero-col-pitch > .btn { align-self: flex-start; position: relative; z-index: 1; }
.hero-col-label {
  display: flex; align-items: center; gap: .375rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--orange); margin-bottom: 1rem; position: relative; z-index: 1;
}
.hero-example-q {
  background: var(--white); border-radius: var(--r-lg);
  padding: .875rem 1rem; font-size: .85rem; color: var(--ink-2);
  margin-bottom: .875rem; line-height: 1.55;
  position: relative; z-index: 1; box-shadow: var(--sh-xs);
}
.hero-example-q i { color: var(--ink-4); margin-right: .375rem; }
.hero-example-a {
  background: var(--orange-xl); border: 1px solid var(--orange-light);
  border-radius: var(--r-lg); padding: 1rem; font-size: .8rem;
  color: #4A3428; line-height: 1.6;
  position: relative; z-index: 1;
}
.hero-example-a .badge { margin-bottom: .625rem; display: inline-flex; }
.hero-example-warn { margin-top: .625rem; font-weight: 700; color: var(--orange-dark); font-size: .75rem; }
.hero-col-title { font-size: 1.25rem; margin-bottom: 1.25rem; color: var(--ink); position: relative; z-index: 1; }
.hero-pick-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--r-pill);
  margin-bottom: .75rem; text-decoration: none;
  color: var(--ink); font-size: .875rem; font-weight: 600;
  transition: var(--t); position: relative; z-index: 1;
}
.hero-pick-row:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}
.hero-pick-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--orange); flex-shrink: 0;
  transition: var(--t);
}
/* Direct-child combinator is required here: the trailing arrow <i> is a
   direct child of .hero-pick-row, but the badge icon (bi-file-earmark…,
   bi-chat-left…, bi-bar-chart…) is ALSO an :last-child — of its own
   parent .hero-pick-icon span, one level deeper. A descendant selector
   without the ">" matched both, so this rule was hijacking the badge
   icon too: pushing it flush right with margin-left:auto (breaking the
   centering in its circle) and recoloring/resizing it to match the
   arrow instead of the intended orange badge style. */
.hero-pick-row > i:last-child { margin-left: auto; color: var(--ink-4); font-size: .8rem; flex-shrink: 0; }
.hero-pick-row > span:not(.hero-pick-icon) { flex: 1; }
.hero-col-picker .hero-trust { margin-top: .5rem; gap: 1rem; position: relative; z-index: 1; }

/* ── Section headings ──────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-dark { background: var(--c-dark); }
.section-light { background: var(--bg-2); }
.section-orange { background: var(--orange-xl); border-top: 1px solid var(--orange-light); border-bottom: 1px solid var(--orange-light); }
.section-title { text-align: center; margin-bottom: .75rem; }
.section-sub { text-align: center; color: var(--ink-3); font-size: 1rem; max-width: 520px; margin: 0 auto 3rem; }

/* ── Tool cards ────────────────────────────────────────────── */
.tool-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.tool-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 1.75rem;
  transition: var(--t); cursor: pointer; display: block; text-decoration: none;
}
.tool-card:hover {
  border-color: var(--orange-light);
  box-shadow: var(--sh-md), 0 0 0 4px var(--orange-xl);
  transform: translateY(-2px);
}
.tool-card-icon {
  width: 48px; height: 48px; border-radius: var(--r-lg);
  background: var(--orange-xl); border: 1px solid var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; color: var(--orange); margin-bottom: 1.125rem;
}
.tool-card h3, .tf-grid .tool-card h2 { font-size: 1rem; margin-bottom: .375rem; font-family: var(--f-ui); }
.tool-card p  { font-size: .8125rem; color: var(--ink-3); line-height: 1.6; }
.tool-card-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  margin-top: .875rem; font-size: .7rem; font-weight: 700;
  color: var(--orange); text-transform: uppercase; letter-spacing: .06em;
}

/* ── Audience picker (homepage, directly under the hero) ──────
   The hero above is compliance/HR-team framed ("HR compliance,
   handled."), but three genuinely different audiences land here:
   people wanting a resume, an HR answer, or a salary number. This
   section lets each self-select immediately instead of reading a
   pitch aimed at someone else. Built on the same white-card/
   orange-icon language as .tool-card below, but bigger and with a
   real button instead of an arrow badge, so it reads as the primary
   "pick a path" moment rather than one of ten equal tiles. */
.audience-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.audience-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-2xl); padding: 2.25rem 2rem;
  text-align: center; transition: var(--t);
}
.audience-card:hover {
  border-color: var(--orange-light);
  box-shadow: var(--sh-md), 0 0 0 4px var(--orange-xl);
  transform: translateY(-2px);
}
.audience-card-icon {
  width: 56px; height: 56px; border-radius: var(--r-lg);
  background: var(--orange-xl); border: 1px solid var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.625rem; color: var(--orange); margin: 0 auto 1.25rem;
}
.audience-card h3 { font-size: 1.125rem; margin-bottom: .625rem; }
.audience-card p { font-size: .875rem; color: var(--ink-3); line-height: 1.65; margin-bottom: 1.5rem; min-height: 3.3em; }

/* ── Pricing cards ─────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.pricing-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-2xl); padding: 2rem; position: relative; overflow: hidden;
}
.pricing-card.featured {
  border-color: var(--orange); box-shadow: var(--sh-orange);
}
.pricing-featured-badge {
  position: absolute; top: 1.25rem; right: 1.25rem;
}
.pricing-plan   { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); margin-bottom: 1rem; }
.pricing-price  { font-family: var(--f-display); font-size: 2.75rem; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: .25rem; }
.pricing-period { font-size: .8125rem; color: var(--ink-4); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: .625rem; margin-bottom: 2rem; }
.pricing-features li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--ink-2); }
.pricing-features li i { color: var(--orange); font-size: .875rem; flex-shrink: 0; }

/* ── Stats row ─────────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat-item { padding: 2rem 1.5rem; text-align: center; border-right: 1px solid var(--border-2); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--f-display); font-size: 2.5rem; color: var(--orange); line-height: 1; margin-bottom: .375rem; }
.stat-label { font-size: .8rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; }

/* ── Dashboard stat cards ──────────────────────────────────── */
.dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2rem; }
.dash-stat {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.25rem;
  border-top: 3px solid transparent;
}
.dash-stat-orange { border-top-color: var(--orange); }
.dash-stat-green  { border-top-color: var(--success); }
.dash-stat-blue   { border-top-color: var(--info); }
.dash-stat-gray   { border-top-color: var(--ink-4); }
.dash-stat-icon { font-size: 1.25rem; margin-bottom: .75rem; }
.dash-stat-orange .dash-stat-icon { color: var(--orange); }
.dash-stat-green  .dash-stat-icon { color: var(--success); }
.dash-stat-blue   .dash-stat-icon { color: var(--info); }
.dash-stat-gray   .dash-stat-icon { color: var(--ink-3); }
.dash-stat-val  { font-family: var(--f-display); font-size: 1.875rem; color: var(--ink); line-height: 1; margin-bottom: .25rem; }
.dash-stat-lbl  { font-size: .75rem; color: var(--ink-4); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ── CTA banner ─────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  border-radius: var(--r-2xl); padding: 3rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; box-shadow: var(--sh-orange);
}
.cta-banner h2 { color: #fff; font-size: 1.75rem; margin-bottom: .375rem; }
.cta-banner p  { color: rgba(255,255,255,.75); }
.btn-white { background: #fff; color: var(--orange); font-weight: 800; }
.btn-white:hover { background: var(--orange-xl); }

/* ── Footer ────────────────────────────────────────────────── */
.comp-footer {
  background: var(--c-dark); padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,.05);
}
/* Simple one-line footer variant (compliance/affiliates-landing pages):
   the inherited global `p { color: var(--ink-2) }` rule left this text at
   1.69:1 against the dark background above. */
.comp-footer p { color: rgba(255,255,255,.68); }
.comp-footer a { color: #FFFFFF; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo-wrap .comp-logo { color: #fff; margin-bottom: 1rem; }
/* Text-on-dark context: monochrome footer — white wordmark accent plus a
   white logo tile (a dark tile would vanish against this near-black bg). */
.footer-logo-wrap .comp-logo strong { color: #FFFFFF; }
.footer-logo-wrap .logo-icon { background: #FFFFFF; color: #111111; }
.footer-logo-wrap p { font-size: .875rem; color: rgba(255,255,255,.68); line-height: 1.7; }
.footer-col h4, .comp-footer .footer-col h3 { color: #fff; font-family: var(--f-ui); font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 1rem; }
/* .footer-col/.footer-bottom are shared with partials/footer.ejs's
   unstyled, light-background .site-footer — scope the light-on-dark
   colors to .comp-footer specifically so they don't leak there and turn
   its links near-invisible (white-ish text on that footer's light bg). */
.comp-footer .footer-col a  { display: block; font-size: .875rem; color: rgba(255,255,255,.72); margin-bottom: .5rem; transition: color .15s; }
.comp-footer .footer-col a:hover { color: #FFFFFF; }
.comp-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: rgba(255,255,255,.68);
}
.footer-col a { display: block; font-size: .875rem; margin-bottom: .5rem; transition: color .15s; }
.footer-bottom { border-top: 1px solid var(--border-2); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px); z-index: 999;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--white); border-radius: var(--r-2xl);
  padding: 2rem; max-width: 480px; width: 100%;
  box-shadow: var(--sh-lg); position: relative;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  color: var(--ink-4); font-size: 1.375rem; transition: color .15s;
}
.modal-close:hover { color: var(--ink); }
.modal h3 { margin-bottom: .375rem; }
.modal > p { color: var(--ink-3); font-size: .875rem; margin-bottom: 1.5rem; }

/* ── Step wizard ───────────────────────────────────────────── */
.wizard-steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 2rem; overflow-x: auto; padding-bottom: .5rem;
}
.wizard-step {
  display: flex; align-items: center; gap: 0; flex-shrink: 0;
}
.ws-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800;
  background: var(--bg-2); color: var(--ink-4); border: 2px solid var(--border);
  transition: var(--t);
}
.ws-circle.done   { background: var(--success-bg); color: var(--success); border-color: #86efac; }
.ws-circle.active { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: var(--sh-orange); }
.ws-line { width: 40px; height: 2px; background: var(--border); }
.ws-line.done { background: var(--success); }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--ink-5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

/* ── Responsive ────────────────────────────────────────────── */
@media(max-width:1024px) {
  .tool-grid { grid-template-columns: repeat(2,1fr); }
  .audience-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-stats { grid-template-columns: repeat(2,1fr); }
  /* Stack the 3-column hero, but put the audience picker FIRST — that's
     the "which of these 3 things am I here for" moment a resume/salary/
     HR-question visitor needs immediately, same reason it was pulled
     above the hero earlier. The compliance pitch and live example follow
     for the founder/HR-team visitor who scrolls a bit further. */
  .hero-triple { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .hero-col-picker { order: -1; }
}
@media(max-width:768px) {
  .comp-nav { padding: 0 1.25rem; }
  .comp-nav-links { display: none; }
  /* Dashboard-area nav (partials/dash-sidebar.ejs) used to just vanish
     here with nothing standing in for it — once a signed-in user opened
     a tool on mobile there was no way back to /dashboard or /tools. Now
     an off-canvas drawer instead: stays in the DOM, slides in over the
     page, toggled by the hamburger in .dash-mobile-bar
     (public/js/dash-mobile-nav.js). */
  .dash-sidebar {
    position: fixed; top: 0; left: 0; z-index: 220;
    height: 100vh; max-width: 85vw;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: var(--sh-lg);
  }
  .dash-sidebar.open { transform: translateX(0); }
  .ds-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 1.05rem; right: 1rem;
    width: 30px; height: 30px; border-radius: var(--r-md);
    background: var(--bg-2); border: none; color: var(--ink-3); font-size: .95rem;
  }
  .ds-logo { padding-right: 3rem; }
  .dash-mobile-bar { display: flex; }
  .dash-main { padding: 1.5rem; }
  .tool-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .cta-banner { padding: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media(max-width:480px) {
  .comp-nav { padding: 0 .875rem; height: 58px; }
  .comp-logo { font-size: .9rem; gap: .4rem; white-space: nowrap; }
  .comp-logo .logo-icon { width: 26px; height: 26px; font-size: .85rem; border-radius: 7px; }
  .comp-nav-right { gap: .4rem; }
  .comp-nav-right .btn { padding: .45rem .6rem; font-size: .72rem; white-space: nowrap; }
}
/* ── Shared site header (partials/header.ejs) ─────────────────────────────
   Used by login, register, pricing, contact, privacy, terms, blog, and
   billing — previously had zero matching CSS anywhere and rendered on
   bare browser defaults. Reuses the .btn/.btn-dark/.btn-outline/.btn-sm
   foundations above so it matches the rest of the site's look. */
.announce-bar {
  background: var(--c-dark); color: #fff; text-align: center;
  padding: .625rem 2.5rem .625rem 1rem; font-size: .8125rem; position: relative;
}
.announce-bar p { margin: 0; color: #fff; }
.announce-bar a { color: var(--orange-light); text-decoration: underline; font-weight: 600; }
.announce-bar.hide { display: none; }
.announce-close {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.7); font-size: 1.25rem; line-height: 1; padding: .25rem .5rem;
}
.announce-close:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 1px solid transparent; transition: var(--t);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--sh-xs); }
.site-header .nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: .625rem; flex-shrink: 0; }
.nav-logo .logo-wordmark { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.nav-logo .logo-wordmark em { font-style: normal; color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .625rem .875rem;
  border-radius: var(--r-md); font-size: .9rem; font-weight: 600; color: var(--ink-2); transition: var(--t);
}
.nav-link:hover, .nav-link.active { color: var(--orange); background: var(--orange-xl); }
.nav-drop-btn { font-family: inherit; }
.drop-chevron { font-size: .7rem; transition: transform .18s ease; }
.has-dropdown:hover .drop-chevron, .has-dropdown:focus-within .drop-chevron { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + .5rem); left: 50%; transform: translateX(-50%);
  width: 300px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: .5rem; opacity: 0; visibility: hidden; pointer-events: none;
  transition: var(--t);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.drop-item {
  display: flex; align-items: flex-start; gap: .75rem; padding: .625rem .75rem;
  border-radius: var(--r-md); color: var(--ink); transition: var(--t);
}
.drop-item:hover { background: var(--bg-2); }
.drop-item span:last-child { display: flex; flex-direction: column; font-size: .8125rem; color: var(--ink-3); font-weight: 400; }
.drop-item strong { color: var(--ink); font-size: .875rem; font-weight: 700; margin-bottom: .125rem; }
.drop-icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--r-md); background: var(--orange-xl);
  color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 1rem;
}

.nav-actions { display: flex; align-items: center; gap: .625rem; flex-shrink: 0; }

/* ── Theme toggle ──────────────────────────────────────────────
   Shared across every page's nav. Deliberately plain — a round icon
   button, not another orange-bordered CTA — so it doesn't compete with
   the real "Start free trial" button for attention. Holds a sun icon
   and a moon icon; public/js/theme.js shows whichever one represents
   the action a click would take (sun = "go light", shown while dark;
   moon = "go dark", shown while light) and keeps it in sync with both
   the manual toggle and OS-level changes — simpler and more reliable
   than re-deriving the same [data-theme]/media-query cascade in CSS
   just to pick an icon. */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  border: 1.5px solid var(--border); background: transparent; color: var(--ink-2);
  font-size: 1rem; cursor: pointer; transition: var(--t);
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); background: var(--bg-2); }
.theme-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.theme-toggle .ti-sun, .theme-toggle .ti-moon { display: none; }
.btn-ghost-sm {
  padding: .5rem 1rem; font-size: .875rem; font-weight: 600; color: var(--ink-2);
  border-radius: var(--r-md); transition: var(--t);
}
.btn-ghost-sm:hover { color: var(--ink); background: var(--bg-2); }
.btn-pill-dark {
  display: inline-flex; align-items: center; padding: calc(.625rem - 2px) calc(1.25rem - 2px); font-size: .875rem; font-weight: 700;
  color: #fff; background: var(--c-dark); border: 2px solid var(--orange); border-radius: var(--r-pill); transition: var(--t);
}
.btn-pill-dark:hover, .btn-pill-dark:focus-visible {
  background: var(--orange); border-color: var(--orange); transform: translateY(-1px); box-shadow: var(--sh-sm);
}
.btn-pill-dark:active { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-outline-sm {
  display: inline-flex; align-items: center; justify-content: center; padding: .625rem 1.25rem;
  font-size: .875rem; font-weight: 600; color: var(--ink); border: 1.5px solid var(--border);
  border-radius: var(--r-pill); transition: var(--t);
}
.btn-outline-sm:hover { border-color: var(--ink-3); }
.w-full { width: 100%; }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0; border-radius: var(--r-md); flex-shrink: 0;
}
.burger:hover { background: var(--bg-2); }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; transition: var(--t); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 72px 0 0 0; background: var(--white); z-index: 99;
  padding: 1.5rem; transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: var(--t); overflow-y: auto;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1.5rem; }
.mob-link { display: block; padding: .875rem .5rem; font-size: 1.0625rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border-2); }
.mob-cta { display: flex; flex-direction: column; gap: .75rem; }

@media(max-width:860px) {
  .nav-links, .nav-actions { display: none; }
  .burger { display: flex; }
}
@media(min-width:861px) {
  .mobile-nav, .burger { display: none; }
}

@media print {
  .comp-nav, .dash-sidebar, .dash-header, .dash-mobile-bar, .dash-sidebar-backdrop { display: none !important; }
}

/* ── Page hero (pricing, contact, legal, billing, blog) ───────────────
   Shared page-title header used by several pages that include
   partials/header.ejs — had zero matching CSS, rendered on bare
   browser defaults (unstyled, misaligned). */
.page-hero { padding: 4rem 0 2.5rem; text-align: center; }
.page-hero .eyebrow {
  display: inline-block; font-size: .8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--orange);
  margin-bottom: .75rem;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: .75rem; }
.page-hero > .container > p { color: var(--ink-3); font-size: 1.0625rem; max-width: 560px; margin: 0 auto; }

/* ── Pricing page (views/pages/pricing.ejs) — same "zero matching CSS"
   gap as the auth pages below: the template's .price-card-full/.pcf-*
   markup never had a corresponding stylesheet section written for it,
   so cards, the billing toggle, and the FAQ rendered unstyled/misaligned. */
.pricing-page-section { padding: 2.5rem 0 5rem; }

.billing-toggle { display: flex; align-items: center; justify-content: center; gap: .875rem; margin-top: 2rem; }
.tog-lbl { font-size: .9375rem; font-weight: 600; color: var(--ink-4); transition: var(--t); }
.tog-lbl.active { color: var(--ink); }
.save-chip {
  display: inline-block; margin-left: .375rem; padding: .125rem .5rem;
  background: var(--orange-xl); color: var(--orange); border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 700;
}
.tog-switch { position: relative; width: 46px; height: 26px; border-radius: var(--r-pill); background: var(--border); flex-shrink: 0; transition: var(--t); }
.tog-switch[aria-checked="true"] { background: var(--orange); }
.tog-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-xs); transition: var(--t); }
.tog-switch[aria-checked="true"] .tog-thumb { transform: translateX(20px); }

.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; align-items: stretch; }
.price-card-full {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 2rem; position: relative; transition: var(--t);
}
.price-card-full.pcf-featured { border-color: var(--orange); box-shadow: var(--sh-md); transform: scale(1.02); }
.pcf-pop-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-size: .75rem; font-weight: 700;
  padding: .3rem .875rem; border-radius: var(--r-pill); white-space: nowrap;
}
.pcf-header h2 { font-family: var(--f-ui); font-size: 1.125rem; font-weight: 800; margin-bottom: .5rem; }
.pcf-header > p { color: var(--ink-3); font-size: .875rem; min-height: 2.6em; margin-bottom: 1.25rem; }
.pcf-price { font-family: var(--f-display); font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: .125rem; margin-bottom: .25rem; }
.pcf-price sup { font-size: 1.5rem; }
.pcf-price .pa { font-size: 2.75rem; line-height: 1; }
.pcf-price small { font-size: .875rem; font-weight: 500; color: var(--ink-4); font-family: var(--f-ui); }
.pcf-custom { font-size: 2.25rem; }
.pcf-billed { display: block; font-size: .8125rem; color: var(--ink-4); margin-bottom: 1.5rem; min-height: 1.2em; }
.pcf-billed.hidden { visibility: hidden; }
.pcf-list { list-style: none; display: flex; flex-direction: column; gap: .625rem; margin-bottom: 1.75rem; flex: 1; }
.pcf-list li { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; color: var(--ink-2); }
.pcf-list li.yes i { color: var(--success); }
.pcf-list li.no  { color: var(--ink-4); }
.pcf-list li.no i { color: var(--ink-5); }
.pcf-note { text-align: center; font-size: .75rem; color: var(--ink-4); margin-top: .75rem; }

.btn-outline-md {
  display: inline-flex; align-items: center; justify-content: center; gap: .375rem;
  padding: .75rem 1.5rem; font-size: .9375rem; font-weight: 700; color: var(--ink);
  border: 1.5px solid var(--border); border-radius: var(--r-pill); transition: var(--t);
}
.btn-outline-md:hover { border-color: var(--ink-3); background: var(--bg-2); }

.faq-block { margin-top: 5rem; }
.faq-block > h2 { text-align: center; font-size: 1.75rem; margin-bottom: 2rem; }
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; max-width: 880px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1rem 1.25rem; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: .9375rem; color: var(--ink); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--ink-4); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: .625rem; font-size: .875rem; color: var(--ink-3); }

.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; width: 100%; }
.cta-text h2 { margin-bottom: .375rem; }
.btn-white-lg {
  display: inline-flex; align-items: center; gap: .5rem; padding: 1rem 2rem;
  background: #fff; color: var(--orange); font-weight: 800; font-size: 1rem;
  border-radius: var(--r-pill); transition: var(--t);
}
.btn-white-lg:hover { background: var(--orange-xl); transform: translateY(-1px); }

@media(max-width:900px){
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .price-card-full.pcf-featured { transform: none; }
  .faq-cols { grid-template-columns: 1fr; }
}

/* ── Auth pages (login, register — views/pages/register.ejs) ─────────
   Same gap as pricing above: .auth-* markup had zero matching CSS
   anywhere, so the form rendered as bare unstyled/unaligned browser
   defaults instead of a centered card. */
.auth-page { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: var(--bg); }
.auth-container { width: 100%; max-width: 440px; }
.auth-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--sh-sm); padding: 2.5rem; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.auth-plan-banner {
  display: flex; align-items: center; gap: .5rem; background: var(--orange-xl);
  color: var(--orange-dark); border: 1px solid var(--orange-light); border-radius: var(--r-md);
  padding: .625rem .875rem; font-size: .8125rem; margin-bottom: 1.25rem;
}
.auth-title { text-align: center; font-size: 1.625rem; margin-bottom: .375rem; }
.auth-sub { text-align: center; color: var(--ink-3); font-size: .875rem; margin-bottom: 1.5rem; }
.auth-alert { display: flex; align-items: center; gap: .5rem; border-radius: var(--r-md); padding: .75rem .875rem; font-size: .8125rem; margin-bottom: 1.25rem; }
.auth-alert-error { background: var(--danger-bg); color: var(--danger); }
.auth-oauth-grid { display: flex; flex-direction: column; gap: .625rem; margin-bottom: 1.25rem; }
.auth-oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem; border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-size: .875rem; font-weight: 600; color: var(--ink); transition: var(--t);
}
.auth-oauth-btn:hover { background: var(--bg-2); border-color: var(--ink-3); }
.auth-divider { display: flex; align-items: center; gap: .75rem; color: var(--ink-4); font-size: .8125rem; margin: 1.25rem 0; text-align: center; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-form { display: flex; flex-direction: column; gap: 1.125rem; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.auth-group { display: flex; flex-direction: column; gap: .375rem; }
.auth-group label { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.auth-group input {
  padding: .75rem .875rem; border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-size: .9375rem; font-family: inherit; transition: var(--t); background: var(--white); width: 100%;
}
.auth-group input:focus { outline: none; border-color: var(--ink-3); }
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-wrap input { padding-right: 2.75rem; }
.toggle-pw { position: absolute; right: .75rem; color: var(--ink-4); display: flex; align-items: center; justify-content: center; }
.pw-strength { font-size: .75rem; font-weight: 600; min-height: 1em; }
.auth-terms { font-size: .75rem; color: var(--ink-4); line-height: 1.5; }
.auth-terms a { color: var(--ink-2); text-decoration: underline; }
.auth-submit { justify-content: center; padding: .875rem 1.5rem; font-size: .9375rem; }
.auth-switch { text-align: center; font-size: .875rem; color: var(--ink-3); margin-top: 1.5rem; }
.auth-switch a { color: var(--ink); font-weight: 700; }
.auth-trust { display: flex; justify-content: center; gap: 1.25rem; margin-top: 1.5rem; font-size: .75rem; color: var(--ink-4); flex-wrap: wrap; }
.auth-trust span { display: flex; align-items: center; gap: .375rem; }

@media(max-width:480px){
  .auth-card { padding: 1.75rem 1.5rem; }
  .auth-row { grid-template-columns: 1fr; }
}

/* ── Blog pages (views/pages/blog.ejs, blog-post.ejs) ─────────────────
   Same gap as pricing/auth above: this template's .blog-*/.bcs-*/.art-*
   markup had zero matching CSS anywhere in the stylesheet, so the listing
   rendered as bare unstyled text (no cards, no grid, run-on tag lists,
   full-width grey category bars) and the article page had no layout at
   all. Modeled on the existing .tool-card / .price-card-full patterns so
   it matches the rest of the site. */

/* Listing (blog.ejs) */
.blog-section { padding: 1rem 0 5rem; }
.cat-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.cat-tag {
  display: inline-block; padding: .5rem 1.125rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--border); background: var(--white);
  font-size: .8125rem; font-weight: 600; color: var(--ink-3);
  text-decoration: none; white-space: nowrap; transition: var(--t);
}
.cat-tag:hover { border-color: var(--orange-light); color: var(--orange); }
.cat-tag.active { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }

.blog-full-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }
/* Cards were a full-width gradient color-block thumbnail (no real photo,
   just 6 repeating grey/black gradients) over a text body — flagged as not
   looking good. Rebuilt on the .tool-card pattern used by the forms
   library (icon box + border + hover-lift, no color banner) so the two
   grids read as one design language, while keeping the blog-specific
   category label, tag pills and author/read-time/date meta row. */
.blog-card-sm {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 1.75rem; transition: var(--t);
}
.blog-card-sm:hover {
  border-color: var(--orange-light);
  box-shadow: var(--sh-md), 0 0 0 4px var(--orange-xl);
  transform: translateY(-2px);
}
.blog-card-sm-link { display: block; text-decoration: none; color: inherit; }
.bcs-icon {
  width: 48px; height: 48px; border-radius: var(--r-lg);
  background: var(--orange-xl); border: 1px solid var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; color: var(--orange); margin-bottom: 1.125rem;
}
.bcs-cat {
  display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--orange); margin-bottom: .5rem;
}
.bcs-title { font-size: 1.0625rem; line-height: 1.35; margin-bottom: .5rem; }
.blog-card-sm-link > p {
  font-size: .875rem; color: var(--ink-3); line-height: 1.6; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bcs-tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: 1rem; }
.bcs-tags span { padding: .2rem .625rem; border-radius: var(--r-pill); background: var(--bg-2); color: var(--ink-4); font-size: .7rem; font-weight: 600; }
.bcs-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: .75rem; color: var(--ink-4); padding-top: 1rem; border-top: 1px solid var(--border-2);
}
.bcs-meta span { display: inline-flex; align-items: center; gap: .3rem; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 3rem; }
.pag-btn {
  display: inline-flex; align-items: center; gap: .375rem; padding: .625rem 1.125rem;
  border: 1.5px solid var(--border); border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600; color: var(--ink); text-decoration: none; transition: var(--t);
}
.pag-btn:hover { border-color: var(--orange-light); color: var(--orange); }
.pag-nums { display: flex; gap: .375rem; }
.pag-num {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: .875rem; font-weight: 600; color: var(--ink-3);
  text-decoration: none; transition: var(--t);
}
.pag-num:hover { background: var(--bg-2); color: var(--ink); }
.pag-num.active { background: var(--c-dark); color: #fff; }

.empty-state { text-align: center; padding: 5rem 0; }
.empty-state i { font-size: 2.5rem; color: var(--ink-4); margin-bottom: 1rem; display: block; }
.empty-state h2 { margin-bottom: .5rem; }
.empty-state p { color: var(--ink-3); margin-bottom: 1.5rem; }

/* Article page (blog-post.ejs) */
.breadcrumb { padding: 1.25rem 0; border-bottom: 1px solid var(--border-2); }
.breadcrumb ol { list-style: none; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .8125rem; color: var(--ink-4); }
.breadcrumb a { color: var(--ink-4); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb li[aria-current] { color: var(--ink-2); }
.breadcrumb i { font-size: .7rem; }

.article-hdr { padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--border-2); }
.article-hdr-inner { max-width: 760px; }
.art-meta-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.art-cat {
  display: inline-block; padding: .3rem .875rem; border-radius: var(--r-pill);
  background: var(--orange-xl); color: var(--orange);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
}
.art-read { font-size: .8125rem; color: var(--ink-4); display: inline-flex; align-items: center; gap: .3rem; }
.article-hdr h1 { font-size: clamp(1.75rem,4vw,2.5rem); line-height: 1.2; margin-bottom: 1rem; }
.art-deck { font-size: 1.0625rem; color: var(--ink-3); line-height: 1.6; margin-bottom: 1.5rem; }
.art-byline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.byline-left { display: flex; align-items: center; gap: .75rem; }
.byline-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--c-dark); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.byline-name { display: block; font-size: .875rem; font-weight: 700; color: var(--ink); }
.byline-date { display: block; font-size: .8125rem; color: var(--ink-4); }
.art-share { display: flex; align-items: center; gap: .625rem; font-size: .8125rem; color: var(--ink-4); }
.share-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--ink-3); transition: var(--t);
}
.share-btn:hover { border-color: var(--orange-light); color: var(--orange); background: var(--orange-xl); }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3.5rem; padding: 3rem 0; align-items: start; }
.article-body { max-width: 760px; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
.article-body h2 { font-size: 1.5rem; margin: 2.25rem 0 1rem; color: var(--ink); }
.article-body h3 { font-size: 1.1875rem; margin: 1.75rem 0 .75rem; color: var(--ink); }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.25rem; }
.article-body li { margin-bottom: .5rem; }
.article-body a { color: var(--orange); text-decoration: underline; }
.article-body blockquote { border-left: 3px solid var(--orange); padding: .25rem 0 .25rem 1.25rem; margin: 1.5rem 0; color: var(--ink-3); font-style: italic; }
.article-body img { max-width: 100%; border-radius: var(--r-lg); margin: 1.5rem 0; }
.article-body code { background: var(--bg-2); padding: .15rem .4rem; border-radius: 4px; font-size: .875em; }
.article-body pre { background: var(--c-dark); color: #fff; padding: 1.25rem; border-radius: var(--r-lg); overflow-x: auto; margin: 1.5rem 0; }
.article-body pre code { background: none; padding: 0; color: inherit; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9375rem; }
.article-body th, .article-body td { padding: .625rem .875rem; border: 1px solid var(--border); text-align: left; }
.article-body th { background: var(--bg-2); font-weight: 700; }

.article-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 1.5rem; }
.aside-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 1.5rem; }
.aside-widget h3 { font-size: .9375rem; margin-bottom: 1rem; }
.aside-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.aside-tags span { padding: .3rem .75rem; border-radius: var(--r-pill); background: var(--bg-2); color: var(--ink-3); font-size: .75rem; font-weight: 600; }
.aside-cta { background: var(--c-dark); border-color: var(--c-dark); text-align: center; }
.aside-cta-icon { font-size: 1.75rem; color: var(--orange); margin-bottom: .75rem; display: block; }
.aside-cta h3 { color: #fff; }
.aside-cta p { color: rgba(255,255,255,.68); font-size: .8125rem; margin-bottom: 1.25rem; }
.related-link { display: flex; flex-direction: column; gap: .25rem; padding: .875rem 0; border-bottom: 1px solid var(--border-2); text-decoration: none; }
.related-link:last-child { border-bottom: none; padding-bottom: 0; }
.related-cat { font-size: .6875rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .05em; }
.related-title { font-size: .875rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.related-time { font-size: .75rem; color: var(--ink-4); }

@media(max-width:1024px) {
  .blog-full-grid { grid-template-columns: repeat(2,1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .article-aside .aside-widget { flex: 1 1 260px; }
}
@media(max-width:768px) {
  .blog-full-grid { grid-template-columns: 1fr; }
  .art-byline { align-items: flex-start; }
}
@media(max-width:480px) {
  .article-aside { flex-direction: column; }
}

/* ── Auth pages: OAuth provider icon colors + forgot-password row ─────
   .auth-forgot/.auth-label-row and the per-provider icon colors existed
   only in stripe.css (linked to billing.ejs, not login.ejs/register.ejs) —
   login.ejs's "Forgot password?" link and every OAuth button rendered
   with no brand color at all. Everything else .auth-* already lives
   above in this file. */
.auth-label-row { display: flex; justify-content: space-between; align-items: center; }
.auth-forgot { font-size: .8rem; color: var(--orange); }
.auth-forgot:hover { text-decoration: underline; }
.auth-oauth-btn.provider-google i    { color: #4285F4; }
.auth-oauth-btn.provider-microsoft i { color: #00A4EF; }
.auth-oauth-btn.provider-github i    { color: var(--ink); }
.auth-oauth-btn.provider-linkedin i  { color: #0A66C2; }

/* ── Error pages (404.ejs, error.ejs) — same "zero matching CSS" gap as
   several pages above: rendered as bare stacked text with no centering,
   spacing, or emphasis on the status code. ── */
.error-page { min-height: 60vh; display: flex; align-items: center; padding: 4rem 0; }
.error-inner { max-width: 480px; margin: 0 auto; text-align: center; }
.error-num {
  font-family: var(--f-display); font-size: 5rem; font-weight: 700;
  color: var(--orange); line-height: 1; margin-bottom: 1rem;
}
.error-inner h1 { font-size: 1.75rem; margin-bottom: .625rem; }
.error-inner p { color: var(--ink-3); margin-bottom: 2rem; }
.error-btns { display: flex; align-items: center; justify-content: center; gap: .875rem; flex-wrap: wrap; }

/* ── Contact page (contact.ejs) — same gap: the form/aside markup had no
   matching CSS anywhere, so it rendered as a wall of unstyled fields at
   near-invisible default browser contrast. ── */
.contact-section { padding: 1rem 0 5rem; }
.contact-layout { display: grid; grid-template-columns: 320px 1fr; gap: 2.5rem; align-items: start; }
.contact-aside { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.5rem;
}
.cc-icon {
  width: 42px; height: 42px; border-radius: var(--r-lg);
  background: var(--orange-xl); border: 1px solid var(--orange-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; color: var(--orange); margin-bottom: .875rem;
}
.contact-card h2 { font-size: 1rem; margin-bottom: .25rem; }
.contact-card p { font-size: .875rem; color: var(--ink-3); line-height: 1.6; }
.contact-card p a { color: var(--orange); }
.contact-social { padding: .5rem .25rem 0; }
.contact-social > p { font-size: .8125rem; font-weight: 700; color: var(--ink-3); margin-bottom: .625rem; }

.contact-form-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: 2.5rem;
}
.cform { display: flex; flex-direction: column; gap: 1.25rem; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.cform-group { display: flex; flex-direction: column; gap: .375rem; }
.cform-group label { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.cform-group input, .cform-group select, .cform-group textarea {
  padding: .75rem .875rem; border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-size: .9375rem; font-family: inherit; background: var(--white); color: var(--ink);
  width: 100%; transition: var(--t);
}
.cform-group input:focus, .cform-group select:focus, .cform-group textarea:focus {
  outline: none; border-color: var(--ink-3);
}
.cform-group textarea { resize: vertical; min-height: 120px; }
.submit-btn { align-self: flex-start; }
.form-privacy { font-size: .75rem; color: var(--ink-4); }
.form-privacy a { color: var(--ink-2); text-decoration: underline; }
.form-success, .form-error {
  display: flex; align-items: flex-start; gap: .625rem;
  border-radius: var(--r-md); padding: .875rem 1rem; font-size: .875rem; margin-bottom: 1.25rem;
}
.form-success { background: var(--success-bg); color: var(--success); }
.form-error { background: var(--danger-bg); color: var(--danger); }
.form-success strong, .form-error strong { display: block; margin-bottom: .125rem; color: inherit; }
.form-success p { font-size: .8125rem; opacity: .85; }

/* ── Marketing footer + newsletter band (partials/footer.ejs) — the
   .site-footer element itself had no base rule (it inherited only
   .footer-grid/.footer-col/.footer-bottom's bare fallbacks, per the
   comment above in the ── Footer ── section), and .nl-* had zero rules
   at all: the newsletter band rendered as a raw unstyled input+button
   with no card, and nav lists showed literal browser bullets. ── */
.nl-section { background: var(--bg-2); border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2); padding: 3.5rem 0; }
.nl-card { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.nl-eyebrow { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .625rem; }
.nl-left h2 { font-size: 1.5rem; margin-bottom: .375rem; }
.nl-left > p:last-child { color: var(--ink-3); font-size: .9375rem; }
.nl-form { flex: 0 0 auto; }
.nl-row { display: flex; gap: .625rem; }
.nl-row input {
  padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--r-pill);
  font-size: .9375rem; font-family: inherit; background: var(--white); color: var(--ink); width: 260px;
}
.nl-row input:focus { outline: none; border-color: var(--ink-3); }
.nl-fine { font-size: .75rem; color: var(--ink-4); margin-top: .625rem; }
.nl-fine a { color: var(--ink-2); text-decoration: underline; }
.nl-msg { font-size: .8125rem; margin-top: .5rem; }
.nl-msg:not(:empty) { color: var(--success); }

.site-footer { background: var(--white); padding: 4rem 0 2rem; }
.footer-col ul { list-style: none; }
.footer-brand { display: flex; flex-direction: column; gap: .875rem; }
.footer-logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.footer-logo span { font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; color: var(--ink); }
.footer-logo span em { color: var(--orange); font-style: normal; }
.footer-brand > p { font-size: .875rem; color: var(--ink-3); line-height: 1.6; }
.footer-socials { display: flex; gap: .625rem; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--ink-3); transition: var(--t);
}
.footer-socials a:hover { border-color: var(--orange-light); color: var(--orange); }
.footer-disclaimer { font-size: .75rem; color: var(--ink-4); max-width: 480px; }
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a { color: var(--ink-3); font-size: .8rem; }
.footer-bottom-links a:hover { color: var(--ink); }

@media(max-width:900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .nl-card { flex-direction: column; align-items: flex-start; }
  .nl-row input { width: 100%; }
}
@media(max-width:600px) {
  .cform-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* ---------- Legal pages (privacy / disclaimer / terms) ---------- */
.page-hero-sm { padding: 3rem 0 2rem; }
.legal-section { padding: 1rem 0 5rem; }
.legal-body { max-width: 760px; margin: 0 auto; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
.legal-body h2 { font-size: 1.25rem; color: var(--ink); margin: 2.25rem 0 .75rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 1.25rem; }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--orange); text-decoration: underline; }

/* ---------- Forms library category filter ---------- */
.tf-cats { display: flex; flex-wrap: wrap; gap: .5rem; }
.tf-cat-btn {
  display: inline-flex; align-items: center; padding: .5rem 1.125rem;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600; color: var(--ink-3);
  background: var(--white); transition: var(--t); text-decoration: none;
}
.tf-cat-btn:hover { border-color: var(--orange-light); color: var(--orange); }
.tf-cat-btn.active { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }

/* ---------- Form detail: markdown preview ---------- */
.doc-preview { font-size: .9375rem; line-height: 1.7; color: var(--ink-2); }
.doc-preview h1, .doc-preview h2, .doc-preview h3 { color: var(--ink); margin: 1.5rem 0 .625rem; }
.doc-preview h1:first-child, .doc-preview h2:first-child, .doc-preview h3:first-child { margin-top: 0; }
.doc-preview h1 { font-size: 1.25rem; }
.doc-preview h2 { font-size: 1.125rem; }
.doc-preview h3 { font-size: 1rem; }
.doc-preview p { margin-bottom: 1rem; }
.doc-preview ul, .doc-preview ol { margin: 0 0 1rem 1.25rem; }
.doc-preview li { margin-bottom: .375rem; }
.doc-preview strong { color: var(--ink); }
.doc-preview a { color: var(--orange); text-decoration: underline; }
.doc-preview hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
