/* ────────────────────────────────────────────────────────────
   Auro AI — "Optimistic Tech" Design System
   Bold. Warm. Alive. For business owners who want the future.
   ──────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Warm-neutral dark — no purple cast, lets amber carry the palette */
  --ink:        #100e14;
  --ink-1:      #181519;
  --ink-2:      #1f1c22;
  --ink-3:      #2a252d;
  --rule:       #353039;
  --rule-soft:  #26222a;

  /* Text */
  --text:       #fafaf7;
  --text-soft:  #ddd7cd;
  --muted:      #9e958f;
  --muted-deep: #6e6660;

  /* Vivid primary — amber-orange that glows */
  --amber:      #ff9d3d;
  --amber-soft: #ffb976;
  --amber-deep: #e07d1c;
  --amber-glow: rgba(255, 157, 61, 0.45);

  /* Electric secondary — cool cyan for tech-future feel */
  --cyan:       #7dd3fc;
  --cyan-soft:  #a5e2fc;
  --cyan-glow:  rgba(125, 211, 252, 0.4);

  /* Pop accent — used surgically */
  --pink:       #ff5ea0;
  --pink-glow:  rgba(255, 94, 160, 0.35);

  /* States */
  --success:    #4ade80;
  --danger:     #f87171;

  /* Aliases for legacy admin/dashboard code */
  --bg:         var(--ink);
  --surface:    var(--ink-1);
  --surface2:   var(--ink-2);
  --border:     var(--rule);
  --gold:       var(--amber);
  --gold-light: var(--amber-soft);
  --blue:       var(--cyan);
  --blue-light: var(--cyan-soft);
  --paper:      var(--text);
  --accent:     var(--amber);
  --accent-soft:var(--amber-soft);

  --radius:     14px;
  --radius-lg:  22px;
  --max:        1200px;

  --t-snap:     cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Dark chrome for native form controls (date pickers, select popups, scrollbars).
     Tells the browser "this page is dark" so OS-rendered bits match instead of
     falling back to white-on-white. */
  color-scheme: dark;
}

/* Native <select> dropdown popup — browsers render the option list via the OS,
   so we can only style the <option>s themselves, and only a narrow subset of
   properties is honoured cross-browser. This fixes the invisible-items bug
   where the dark theme left the popup white-on-white until an item was hovered. */
select {
  color-scheme: dark;
  font-family: inherit;
}
select option,
select optgroup {
  background-color: var(--ink-1);
  color: var(--text);
  font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
select option:checked {
  background-color: var(--ink-3);
  color: var(--text);
}
select option:disabled {
  color: var(--muted-deep);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Canonical form-field label (2026-07-19, CEO: label sizes drift page-to-page — HR
   Settings' Leave Policies tab rendered visibly larger than its sibling tabs). Pages
   were each inlining their own size (12px / .85rem / nothing). One baseline here;
   page-level inline styles still win where they exist, so this only UNIFIES bare
   labels — the same look Contract Templates already had. */
.form-group label, form .field-label, label.form-label {
  display: block; margin-bottom: 4px;
  font-size: 12px; font-weight: 600; color: var(--color-text-soft);
}
/* Native <dialog> centering (2026-07-19): the reset above strips the UA's margin:auto,
   dropping every showModal() dialog to the viewport's TOP-LEFT — where the app-shell's
   fixed sidebar overlays it (CEO: Add Bank Account box hidden behind the sidebar).
   Re-assert centering for all dialogs product-wide. */
dialog { position: fixed; inset: 0; margin: auto; width: fit-content; height: fit-content; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: auto; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
  background: var(--ink);
  color: var(--text);
  line-height: 1.55;
  font-size: 16.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ──────── Subtle static ambient glow (no drifting, no screensaver feel) ──────── */
.aurora { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.aurora::before {
  content: ''; position: absolute;
  width: 900px; height: 900px;
  top: -350px; right: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,157,61,0.10) 0%, transparent 65%);
  filter: blur(60px);
}
.aurora::after { content: none; }
.aurora .blob { display: none; }

/* Subtle grain over the aurora */
body::after {
  content: ''; position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--amber); color: var(--ink); }

/* ──────── Typography ──────── */
h1, h2, h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--text);
}
h2 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 0.5rem; }

.italic-serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

p { color: var(--text-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--amber-soft);
}
.eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 16px var(--amber-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.4; transform: scale(0.85); }
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }
@media (max-width: 700px) { .wrap { padding: 0 1.4rem; } }

/* ──────── Nav ──────── */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(16, 14, 20, 0.88);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lp-nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,157,61,0.5) 30%, rgba(125,211,252,0.5) 70%, transparent 100%);
  background-size: 200% 100%; background-position: 0% 0%;
  animation: navshimmer 12s linear infinite;
  pointer-events: none;
}
@keyframes navshimmer { to { background-position: -200% 0%; } }
.lp-nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2rem;
  gap: 1.6rem;
}
.lp-nav-left {
  display: flex; align-items: center; gap: 2rem; min-width: 0;
}
.lp-nav-links, .lp-nav-center {
  display: flex; align-items: center; gap: 1.4rem;
}
.lp-nav-center { display: flex !important; }
.lp-nav-links > a { display: inline-flex; align-items: center; }
.lp-nav-right {
  display: flex; align-items: center; gap: 0.6rem;
}
.lp-mark {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-weight: 800; font-size: 1.4rem;
  letter-spacing: -0.04em; color: var(--text);
  white-space: nowrap;
  transition: color 0.2s;
}
.lp-mark:hover { color: var(--amber-soft); }
.lp-mark-glyph {
  flex-shrink: 0; border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,157,61,0.08);
  transition: transform 0.3s var(--t-snap), box-shadow 0.3s var(--t-snap);
}
.lp-mark:hover .lp-mark-glyph {
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 4px 20px rgba(255,157,61,0.25), 0 0 0 1px rgba(255,157,61,0.25);
}
.lp-mark-word { display: inline-flex; align-items: baseline; letter-spacing: -0.035em; }
.lp-mark .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 10px var(--amber-glow);
  margin: 0 2px 2px;
}
.lp-live {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--success);
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(74,222,128,0.3);
  background: rgba(74,222,128,0.07);
  border-radius: 999px;
  margin-left: 0.5rem;
}
.lp-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(74,222,128,0.8);
  animation: pulse 1.8s ease-in-out infinite;
}
@media (max-width: 680px) { .lp-live { display: none; } }

.lp-nav-links > a:not(.pill):not(.filled) {
  position: relative; color: var(--text-soft);
  padding: 0.45rem 0.2rem;
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.lp-nav-links > a:not(.pill):not(.filled)::after {
  content: ''; position: absolute; left: 0.2rem; right: 0.2rem; bottom: 0.1rem; height: 1px;
  background: var(--amber); transform-origin: right; transform: scaleX(0);
  transition: transform 0.3s var(--t-snap);
}
.lp-nav-links > a:not(.pill):not(.filled):hover { color: var(--text); background: transparent; }
.lp-nav-links > a:not(.pill):not(.filled):hover::after { transform-origin: left; transform: scaleX(1); }

.lp-nav-center a { font-size: 0.9rem; }
.pill {
  border: 1px solid var(--rule); padding: 0.5rem 1rem;
  border-radius: 999px; font-size: 0.88rem; color: var(--text-soft);
  transition: all 0.25s var(--t-snap);
}
.pill:hover { border-color: var(--cyan); color: var(--cyan-soft); box-shadow: 0 0 24px var(--cyan-glow); }
.filled {
  background: var(--amber); color: var(--ink);
  padding: 0.55rem 1.15rem; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.25s var(--t-snap);
  box-shadow: 0 4px 20px var(--amber-glow);
}
.filled:hover { background: var(--amber-soft); transform: translateY(-1px); box-shadow: 0 6px 28px var(--amber-glow); }

@media (max-width: 760px) {
  .lp-nav-inner { padding: 0.7rem 1.2rem; gap: 0.8rem; }
  .lp-mark { font-size: 1.15rem; gap: 0.5rem; }
  .lp-mark-glyph { width: 26px; height: 26px; }
  .lp-nav-left { gap: 0.8rem; }
  .hide-sm { display: none !important; }
  .filled { padding: 0.5rem 1rem; font-size: 0.82rem; }
}

/* Fixed-nav offset — body always starts below the nav bar. */
body { padding-top: 70px; }
@media (max-width: 760px) { body { padding-top: 60px; } }

/* ──────── Hero ──────── */
.lp-hero { padding: 3rem 0 3.5rem; position: relative; z-index: 2; }
.lp-hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 4rem; align-items: center;
}
@media (max-width: 960px) { .lp-hero-grid { grid-template-columns: 1fr; gap: 3rem; } }

.lp-headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-top: 1rem;
  margin-bottom: 1.2rem;
  color: var(--text);
}
.lp-headline .accent {
  background: linear-gradient(120deg, var(--amber) 0%, var(--amber-soft) 50%, var(--amber) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.lp-headline .italic {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400;
  color: var(--cyan-soft);
  letter-spacing: -0.02em;
  font-variation-settings: normal;
  /* Instrument Serif sits a bit lower visually — pull up */
  display: inline-block; transform: translateY(-0.04em);
}

.lp-headline .reveal { display: inline-block; opacity: 0; transform: translateY(0.5em); }
.lp-headline.in .reveal { animation: reveal 0.85s var(--t-snap) forwards; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

.lp-hero-tagline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.5;
  color: var(--text-soft);
  margin: -0.5rem 0 1.8rem;
  letter-spacing: -0.005em;
}
.lp-hero-tagline em {
  font-style: italic;
  color: var(--amber-soft);
}

.lp-hero-sub {
  font-size: 1.08rem; color: var(--text-soft); max-width: 560px; margin-bottom: 2.4rem;
  line-height: 1.6;
}

.lp-hero-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  /* justify-content matters only when the button is given a width (e.g. the
     full-width change-password submit): inline-flex otherwise left-sticks the label. */
  justify-content: center;
  background: var(--amber); color: var(--ink);
  padding: 1rem 1.8rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer;
  transition: all 0.3s var(--t-snap);
  box-shadow: 0 8px 32px var(--amber-glow);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  transform: translateX(-100%); transition: transform 0.6s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--amber-glow); }
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary .arr { transition: transform 0.3s var(--t-snap); }
.btn-primary:hover .arr { transform: translate(4px, -2px) rotate(-12deg); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--text-soft); padding: 1rem 1.4rem;
  border-radius: 999px; border: 1px solid var(--rule);
  font-weight: 500; font-size: 0.95rem;
  transition: all 0.25s var(--t-snap);
}
.btn-ghost:hover { color: var(--cyan-soft); border-color: var(--cyan); box-shadow: 0 0 32px var(--cyan-glow); }

/* ──────── Hero chat demo ──────── */
.lp-chat {
  background: linear-gradient(160deg, rgba(31,28,34,0.95) 0%, rgba(24,21,25,0.95) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1rem;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(125,211,252,0.06),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  backdrop-filter: blur(20px);
}
.lp-chat::before {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(140deg, var(--amber-glow), transparent 30%, transparent 70%, var(--cyan-glow));
  border-radius: var(--radius-lg); z-index: -1;
  opacity: 0.6;
}
.lp-chat-header {
  display: flex; align-items: center; gap: 0.7rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1rem;
}
.lp-chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber) 0%, var(--pink) 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--ink); font-size: 0.9rem;
  box-shadow: 0 0 16px var(--amber-glow);
}
.lp-chat-name {
  font-weight: 600; font-size: 0.92rem; color: var(--text);
}
.lp-chat-status {
  font-size: 0.7rem; color: var(--success);
  display: flex; align-items: center; gap: 0.3rem;
  margin-top: 1px;
}
.lp-chat-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulse 1.6s ease-in-out infinite;
}

.lp-chat-body {
  min-height: 280px;
  display: flex; flex-direction: column; gap: 0.8rem;
  padding: 0.4rem 0;
}
.lp-msg {
  display: flex; align-items: flex-end; gap: 0.5rem;
  opacity: 0; transform: translateY(8px);
  animation: msgIn 0.5s var(--t-snap) forwards;
}
.lp-msg.user { justify-content: flex-end; }
.lp-msg .bubble {
  padding: 0.7rem 1rem; border-radius: 18px;
  font-size: 0.92rem; line-height: 1.45;
  max-width: 85%;
}
.lp-msg.bot .bubble {
  background: var(--ink-3); color: var(--text);
  border-bottom-left-radius: 4px;
}
.lp-msg.user .bubble {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-deep) 100%);
  color: var(--ink); font-weight: 500;
  border-bottom-right-radius: 4px;
}
@keyframes msgIn { to { opacity: 1; transform: translateY(0); } }

.lp-typing {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0.7rem 1rem; background: var(--ink-3);
  border-radius: 18px; border-bottom-left-radius: 4px;
}
.lp-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); opacity: 0.6;
  animation: typing 1.2s ease-in-out infinite;
}
.lp-typing span:nth-child(2) { animation-delay: 0.15s; }
.lp-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%,80%,100% { transform: translateY(0); opacity: 0.4; }
  40%         { transform: translateY(-4px); opacity: 1; }
}

.lp-chat-foot {
  margin-top: 0.6rem; padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.72rem; color: var(--muted-deep);
  text-align: center; letter-spacing: 0.04em;
}
.lp-chat-foot strong { color: var(--cyan-soft); font-weight: 500; }

/* ──────── Marquee strip ──────── */
.lp-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 0;
  background: rgba(16, 14, 20, 0.5);
  position: relative; z-index: 2;
  overflow: hidden;
}
.lp-strip-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
@media (max-width: 760px) { .lp-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; } }

.lp-stat .num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.035em;
  color: var(--text); line-height: 1;
  background: linear-gradient(180deg, var(--text) 0%, var(--amber-soft) 200%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.lp-stat .lbl {
  display: block; margin-top: 0.4rem;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
}

/* ──────── Section base ──────── */
.lp-section { padding: 4.5rem 0; position: relative; z-index: 2; }
.lp-section.tinted { background: rgba(255,255,255,0.015); }

.lp-shead { margin-bottom: 2.6rem; max-width: 760px; }
.lp-shead h2 { margin-top: 1rem; }
.lp-shead .sub { margin-top: 1.2rem; font-size: 1.1rem; color: var(--text-soft); }

/* ──────── 01 The Case ──────── */
.lp-case-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
@media (max-width: 720px) { .lp-case-grid { grid-template-columns: 1fr; } }

.lp-case {
  background: linear-gradient(160deg, rgba(31,28,34,0.7) 0%, rgba(24,21,25,0.7) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; align-items: start;
  transition: all 0.4s var(--t-snap);
  position: relative; overflow: hidden;
}
.lp-case::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, var(--amber-glow), transparent 70%);
  opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none;
}
.lp-case:hover { transform: translateY(-3px); border-color: rgba(255,157,61,0.3); }
.lp-case:hover::before { opacity: 0.4; }
.lp-case .ix {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,157,61,0.18), rgba(125,211,252,0.18));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.4rem;
  color: var(--amber); border: 1px solid rgba(255,157,61,0.3);
}
.lp-case h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text); }
.lp-case p { font-size: 0.95rem; color: var(--text-soft); line-height: 1.6; }

/* ──────── 01b What Auro AI does (grouped by function) ──────── */
.lp-does-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 960px) { .lp-does-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .lp-does-grid { grid-template-columns: 1fr; } }
.lp-does {
  background: linear-gradient(160deg, rgba(31,28,34,0.75) 0%, rgba(24,21,25,0.75) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  transition: all 0.3s var(--t-snap);
  position: relative; overflow: hidden;
}
.lp-does::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--cyan) 100%);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--t-snap);
}
.lp-does:hover { transform: translateY(-2px); border-color: rgba(255,157,61,0.25); }
.lp-does:hover::before { transform: scaleX(1); }
.lp-does-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.lp-does-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,157,61,0.15), rgba(125,211,252,0.1));
  border: 1px solid rgba(255,157,61,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.lp-does h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em;
  margin: 0;
}
.lp-does ul { list-style: none; padding: 0; margin: 0; }
.lp-does li {
  position: relative; padding: 0.4rem 0 0.4rem 1.1rem;
  font-size: 0.88rem; color: var(--text-soft); line-height: 1.5;
  border-bottom: 1px dashed var(--rule-soft);
}
.lp-does li:last-child { border-bottom: none; }
.lp-does li::before {
  content: '·'; position: absolute; left: 0.3rem; top: 0.3rem;
  color: var(--amber); font-size: 1.2rem; line-height: 1;
}

/* ──────── 02 Process steps ──────── */
.lp-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
@media (max-width: 880px) { .lp-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .lp-steps { grid-template-columns: 1fr; } }

.lp-step {
  background: linear-gradient(160deg, rgba(31,28,34,0.7) 0%, rgba(24,21,25,0.7) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: relative; overflow: hidden;
  transition: all 0.4s var(--t-snap);
}
.lp-step::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--t-snap);
}
.lp-step:hover { transform: translateY(-3px); border-color: rgba(125,211,252,0.3); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.lp-step:hover::before { transform: scaleX(1); }

.lp-step .day {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--amber-soft);
  margin-bottom: 1rem;
}
.lp-step .day .num {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 1.4rem; font-weight: 400;
  color: var(--amber); letter-spacing: 0;
  line-height: 1; margin-right: 4px;
}
.lp-step h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.lp-step p { font-size: 0.92rem; color: var(--text-soft); line-height: 1.6; }

.lp-guarantee {
  margin-top: 2.4rem; padding: 1.1rem 1.4rem;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(255,157,61,0.1), rgba(125,211,252,0.08));
  border: 1px solid rgba(255,157,61,0.22);
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.93rem; line-height: 1.55;
}
.lp-guarantee .badge {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px rgba(255,157,61,0.18), 0 4px 14px var(--amber-glow);
}
.lp-guarantee .badge svg { width: 20px; height: 20px; color: var(--ink); display: block; flex-shrink: 0; }
.lp-guarantee strong { color: var(--text); font-weight: 600; }
@media (max-width: 560px) {
  .lp-guarantee { padding: 1rem 1.1rem; gap: 0.7rem; font-size: 0.88rem; }
  .lp-guarantee .badge { width: 30px; height: 30px; }
  .lp-guarantee .badge svg { width: 17px; height: 17px; }
}

/* ──────── 03 Pricing ──────── */
.lp-pricing {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 880px) { .lp-pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* ──────── Horizontal tier stack (5-tier pricing layout) ──────── */
/* One row per plan. Each row: [name + price | description + feature chips | CTA].
   Same structure at every tier so the eye doesn't re-parse between rows. Scales
   cleanly to mobile (single column) without breakpoint gymnastics. */
/* Width inherits from the .wrap parent so rows line up with the section heading + paragraph
   (same as .lp-case-grid / .lp-steps in the sections above). Do NOT re-introduce max-width here:
   it caused the pricing block to sit inset vs the "Your inputs" / "Your onboarding" grids. */
.lp-tiers { display: flex; flex-direction: column; gap: 0.75rem; }

.lp-tier {
  position: relative;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  gap: 2rem;
  padding: 1.4rem 1.8rem;
  background: linear-gradient(160deg, rgba(31,28,34,0.78) 0%, rgba(24,21,25,0.78) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  align-items: center;
  transition: all 0.3s var(--t-snap);
}
.lp-tier:hover { border-color: rgba(255,255,255,0.14); transform: translateX(2px); }

.lp-tier-lite { opacity: 0.82; }
.lp-tier-lite:hover { opacity: 1; }

.lp-tier.featured {
  background: linear-gradient(160deg, rgba(42,37,45,0.95) 0%, rgba(31,28,34,0.95) 100%);
  border-color: rgba(255,157,61,0.35);
  box-shadow: 0 0 0 1px rgba(255,157,61,0.15), 0 16px 44px rgba(0,0,0,0.35), 0 0 80px var(--amber-glow);
  padding: 1.7rem 1.8rem;
}
.lp-tier-flag {
  position: absolute; top: -11px; left: 1.8rem;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  background: var(--amber); color: var(--ink);
  padding: 0.3rem 0.8rem; border-radius: 999px;
  box-shadow: 0 4px 14px var(--amber-glow);
}

/* Head column — plan name + price */
.lp-tier-head { display: flex; flex-direction: column; gap: 0.4rem; }
.lp-tier-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--amber-soft);
}
.lp-tier.featured .lp-tier-name { color: var(--amber); }
.lp-tier-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; line-height: 1; }
.lp-tier-price .prefix {
  flex-basis: 100%;
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.lp-tier-price .big {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2rem; font-weight: 800; letter-spacing: -0.025em;
  color: var(--text);
}
.lp-tier-price .per { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }

/* Body column — desc + feature chips */
.lp-tier-body { min-width: 0; }
.lp-tier-desc { margin: 0 0 0.65rem; color: var(--text-soft); font-size: 0.93rem; line-height: 1.55; }
.lp-tier-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.lp-tier-chips li {
  font-size: 0.76rem; line-height: 1.35;
  color: var(--text-soft);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.lp-tier.featured .lp-tier-chips li { background: rgba(255,157,61,0.08); border-color: rgba(255,157,61,0.16); color: var(--text); }

/* CTA column */
.lp-tier-cta-wrap { display: flex; justify-content: flex-end; }
.lp-tier-cta {
  display: inline-flex; align-items: center;
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  font-size: 0.88rem; font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  white-space: nowrap;
  transition: all 0.25s var(--t-snap);
}
.lp-tier-cta:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); transform: translateY(-1px); }
.lp-tier-cta.primary {
  background: var(--amber-soft); color: var(--ink); border-color: transparent;
  box-shadow: 0 6px 18px var(--amber-glow);
}
.lp-tier-cta.primary:hover { background: var(--amber); box-shadow: 0 10px 30px var(--amber-glow); }
.lp-tier-cta.ghost { background: transparent; color: var(--text-soft); }
.lp-tier-cta.ghost:hover { color: var(--text); }

/* Responsive: drop to 2-column at tablet width, single column on phones. */
@media (max-width: 960px) {
  .lp-tier { grid-template-columns: 1fr auto; gap: 1rem; padding: 1.3rem 1.4rem; }
  .lp-tier-head { flex-direction: row; align-items: baseline; gap: 1.2rem; grid-column: 1 / -1; }
  .lp-tier-body { grid-column: 1 / -1; }
  .lp-tier-cta-wrap { grid-column: 1 / -1; justify-content: stretch; }
  .lp-tier-cta { width: 100%; justify-content: center; }
  .lp-tier.featured { padding: 1.5rem 1.4rem; }
  .lp-tier-flag { left: 1.4rem; }
}
@media (max-width: 540px) {
  .lp-tier-head { flex-wrap: wrap; }
  .lp-tier-price .big { font-size: 1.7rem; }
}

.lp-plan {
  background: linear-gradient(160deg, rgba(31,28,34,0.85) 0%, rgba(24,21,25,0.85) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  position: relative;
  display: flex; flex-direction: column;
  transition: all 0.4s var(--t-snap);
}
.lp-plan:hover { transform: translateY(-4px); }

.lp-plan.featured {
  background: linear-gradient(160deg, rgba(31,28,34,0.95) 0%, rgba(42,37,45,0.95) 100%);
  border-color: rgba(255,157,61,0.4);
  box-shadow:
    0 0 0 1px rgba(255,157,61,0.2),
    0 24px 60px rgba(0,0,0,0.4),
    0 0 80px var(--amber-glow);
}
.lp-plan.featured::before {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(140deg, var(--amber), transparent 40%, transparent 60%, var(--cyan));
  border-radius: var(--radius-lg); z-index: -1; opacity: 0.5;
}

.lp-plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: var(--ink);
  font-size: 0.72rem; font-weight: 700;
  padding: 0.35rem 1rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.12em;
  box-shadow: 0 4px 16px var(--amber-glow);
}

.lp-plan-name {
  font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--amber-soft);
  margin-bottom: 0.6rem;
}
.lp-plan-desc {
  font-size: 0.92rem; color: var(--muted);
  margin-bottom: 1.6rem; line-height: 1.5;
}
.lp-plan-price {
  display: flex; align-items: baseline; gap: 0.4rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lp-plan-price .currency {
  font-size: 1.6rem; font-weight: 600; color: var(--text-soft);
}
.lp-plan-price .amount {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-weight: 800;
  font-size: 4.2rem; letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(180deg, var(--text) 0%, var(--amber-soft) 200%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.lp-plan-price .per {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin-left: 0.4rem;
}

.lp-plan-list { list-style: none; flex: 1; margin-bottom: 2rem; }
.lp-plan-list li {
  font-size: 0.93rem; color: var(--text-soft);
  padding: 0.5rem 0;
  display: grid; grid-template-columns: 22px 1fr; gap: 0.6rem; align-items: start;
}
.lp-plan-list li::before {
  content: '✓'; color: var(--cyan);
  font-weight: 700; font-size: 1rem; line-height: 1.4;
}

.lp-plan-cta {
  display: inline-flex; justify-content: center; align-items: center; gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--rule);
  font-weight: 600; font-size: 0.95rem; color: var(--text);
  transition: all 0.3s var(--t-snap);
}
.lp-plan.featured .lp-plan-cta {
  background: var(--amber); color: var(--ink); border-color: var(--amber);
  box-shadow: 0 4px 24px var(--amber-glow);
}
.lp-plan-cta:hover { transform: translateY(-2px); border-color: var(--amber); color: var(--amber-soft); }
.lp-plan.featured .lp-plan-cta:hover { background: var(--amber-soft); border-color: var(--amber-soft); color: var(--ink); box-shadow: 0 8px 32px var(--amber-glow); }

.lp-pricing-note {
  margin-top: 2.4rem; padding: 1.4rem 1.8rem;
  border-radius: var(--radius);
  background: rgba(36, 26, 61, 0.5);
  border: 1px solid var(--rule-soft);
  font-size: 0.88rem; color: var(--text-soft);
  line-height: 1.6;
}
.lp-pricing-note strong { color: var(--amber-soft); font-weight: 600; }

/* ──────── 04 Contact ──────── */
.lp-contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 4rem; align-items: start;
}
@media (max-width: 880px) { .lp-contact-grid { grid-template-columns: 1fr; gap: 2.4rem; } }

.lp-contact-form {
  background: linear-gradient(160deg, rgba(31,28,34,0.85) 0%, rgba(24,21,25,0.85) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

.lp-form-group { margin-bottom: 1.4rem; }
.lp-form-group label {
  display: block;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}
.lp-form-group input,
.lp-form-group select,
.lp-form-group textarea {
  width: 100%;
  background: rgba(16,14,20,0.6); border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--text); font-family: inherit;
  font-size: 0.98rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: all 0.25s var(--t-snap);
}
.lp-form-group input::placeholder { color: var(--muted-deep); }
.lp-form-group input:focus,
.lp-form-group select:focus,
.lp-form-group textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255,157,61,0.15);
  background: rgba(16,14,20,0.85);
}
.lp-form-group select { cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23ff9d3d' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.4rem;
}
.lp-form-group select option { background: var(--ink-2); color: var(--text); }

.lp-form-submit {
  width: 100%; margin-top: 0.6rem;
  background: var(--amber); color: var(--ink);
  border: none;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 1.05rem 2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--t-snap);
  box-shadow: 0 8px 32px var(--amber-glow);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  letter-spacing: -0.01em;
}
.lp-form-submit:hover { background: var(--amber-soft); transform: translateY(-2px); box-shadow: 0 12px 40px var(--amber-glow); }

.lp-legal {
  margin-top: 1.2rem;
  font-size: 0.78rem; color: var(--muted); line-height: 1.55;
}
.lp-legal a { color: var(--cyan-soft); border-bottom: 1px dashed var(--rule); }

.lp-aside h3 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--text);
}
.lp-aside h3 .italic { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--amber-soft); font-weight: 400; }
.lp-aside p { font-size: 0.96rem; color: var(--text-soft); margin-bottom: 1.6rem; line-height: 1.65; }

.lp-aside-list { list-style: none; }
.lp-aside-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.92rem; color: var(--text-soft); line-height: 1.6;
}
.lp-aside-list li::before {
  content: '✓'; position: absolute;
  left: 0; top: 0.85rem;
  color: var(--cyan); font-weight: 700; line-height: 1.6;
}
.lp-aside-list li strong { font-weight: 600; }
.lp-aside-list li:first-child { border-top: 1px solid rgba(255,255,255,0.05); }
.lp-aside-list li strong { color: var(--text); font-weight: 600; }

.lp-trust {
  margin-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.lp-trust span {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-soft);
  padding: 0.45rem 0.9rem;
  background: rgba(125,211,252,0.06);
  border: 1px solid rgba(125,211,252,0.2);
  border-radius: 999px;
}

/* ──────── Footer ──────── */
.lp-foot {
  border-top: 1px solid var(--rule);
  padding: 4rem 0 2rem;
  background: rgba(16, 14, 20, 0.6);
  position: relative; z-index: 2;
}
.lp-foot-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end;
}
@media (max-width: 720px) { .lp-foot-inner { grid-template-columns: 1fr; } }
.lp-foot-mark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  margin-bottom: 0.6rem;
}
.lp-foot-mark .dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 14px var(--amber-glow);
  margin: 0 1px 2px;
}
.lp-foot p { font-size: 0.85rem; color: var(--muted); }
.lp-foot-links {
  display: flex; flex-direction: column; gap: 0.6rem;
  text-align: right;
}
@media (max-width: 720px) { .lp-foot-links { text-align: left; } }
.lp-foot-links a {
  font-size: 0.9rem; color: var(--text-soft);
  transition: color 0.25s; align-self: flex-end;
}
@media (max-width: 720px) { .lp-foot-links a { align-self: flex-start; } }
.lp-foot-links a:hover { color: var(--amber); }

.lp-foot-fine {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.78rem; color: var(--muted-deep);
  max-width: var(--max); margin-left: auto; margin-right: auto;
  padding-left: 2rem; padding-right: 2rem;
  line-height: 1.55;
}

/* Reveal animation for non-hero sections */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* ────────────────────────────────────────────────────────────
   Legacy utility classes — admin/dashboard depend on these
   ──────────────────────────────────────────────────────────── */

nav:not(.lp-nav) {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(16, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-weight: 800; font-size: 1.4rem;
  letter-spacing: -0.04em; color: var(--text);
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--amber-soft); }

.btn {
  display: inline-block; padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.25s var(--t-snap);
}
.btn-gold   { background: var(--amber); color: var(--ink); border-color: var(--amber); box-shadow: 0 4px 16px var(--amber-glow); }
.btn-gold:hover { background: var(--amber-soft); border-color: var(--amber-soft); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--rule); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber-soft); }
.btn-blue { background: var(--cyan); color: var(--ink); border-color: var(--cyan); box-shadow: 0 4px 16px var(--cyan-glow); }
.btn-blue:hover { background: var(--cyan-soft); border-color: var(--cyan-soft); transform: translateY(-1px); }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 0.95rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
section:not(.lp-section) { padding: 5rem 1.5rem; }
.section-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--amber); font-weight: 600; margin-bottom: 0.75rem;
}

/* Form (admin/dashboard) */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.78rem; color: var(--text-soft); margin-bottom: 0.4rem; font-weight: 600; }
/* FND-166 fix (2026-08-21): radio/checkbox excluded from the width:100% reset below.
   This is a DESCENDANT selector (.form-group input), so it reaches THROUGH any
   wrapper div at any depth -- including a flex row like system_backups.php's
   .custom-control.custom-radio (input declared flex:0 0 auto). width:100% on a
   flex item with flex-basis:auto makes the used flex-basis equal the FULL
   container width, so the radio ate the row and its sibling <label> was
   squeezed to a hairline column (CEO screenshot: "label wrapping every 2-3
   characters"). dashboard/css/dashboard_global.css already carries this exact
   exclusion (see its comment at line ~61) for its OWN generic input rule, added
   after the same bug hit operator-mode/AI-mode cards -- this older, still-loaded
   sitewide rule never got the same treatment. Root fix, not a page patch: mirrors
   the established exclusion here so EVERY .form-group-wrapped radio/checkbox
   sitewide (current and future) renders at native size, matching dashboard_global.css's
   already-settled precedent. Native checkbox/radio sizing is intentionally left
   to the browser (or an explicit inline size), same as that file's rule. */
.form-group input:not([type="radio"]):not([type="checkbox"]), .form-group select, .form-group textarea {
  width: 100%; padding: 0.7rem 1rem;
  background: rgba(16,14,20,0.5); border: 1px solid var(--rule);
  border-radius: 10px; color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: all 0.2s;
}
.form-group input:not([type="radio"]):not([type="checkbox"]):focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,157,61,0.15);
}
.form-group textarea { height: 100px; resize: vertical; }
.form-group select option { background: var(--ink-2); color: var(--text); }

/* Dashboard wrapper */
.dash-wrap { display: flex; min-height: 100vh; position: relative; z-index: 2; }
.sidebar {
  /* 2026-05-08: was display:block !important which killed the flex column
     scroll setup for HR & People expansion (CEO reported 4x). The inline
     <style> in sidebar.php sets display:flex + height:100vh + overflow:hidden
     so the inner .sidebar-nav can scroll via flex-grow + min-height:0.
     With !important display:block here, none of that worked. Switched to
     flex !important so the inline rules can rely on it. */
  display: flex !important;
  flex-direction: column !important;
  /* CEO 2026-04-30: was 232px — labels like "Customer history", "Team & targets",
     "Developer (API)", "Recycle bin", "CALENDAR & MEETINGS" all wrapped. Bumped
     to 260px so single-line labels stay single-line. Will be revisited in the
     post-suite UI sweep. */
  width: 260px; background: rgba(24, 21, 25, 0.92); backdrop-filter: blur(12px);
  border-right: 1px solid var(--rule);
  padding: 0 0 1rem; flex-shrink: 0;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 10;
  /* No overflow-y on the sidebar itself — the inner .sidebar-nav owns the
     scroll so .sb-bottom stays pinned. Was overflow-y:auto here which made
     the WHOLE sidebar scrollable including sb-brand + Quick search + bottom. */
}
.sidebar > * { display: block; }
.sidebar .sidebar-logo { display: flex !important; }
/* Drop !important on .sidebar-nav so the inline-style flex:1 1 0 + min-height:0 from sidebar.php applies */
.sidebar .sidebar-nav a { display: flex !important; }
.sidebar-logo {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 1.1rem 1.4rem 1.1rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-weight: 800; font-size: 1.22rem;
  letter-spacing: -0.035em; color: var(--text);
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 0.7rem;
  white-space: nowrap;
  line-height: 1;
}
.sidebar-logo svg { flex-shrink: 0; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.sidebar-logo .word { display: inline-flex; align-items: baseline; }
.sidebar-logo .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 8px var(--amber-glow);
  margin: 0 1px 2px;
}
.sidebar-logo .sub {
  display: block; margin-left: 0.5rem;
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.24em;
  color: var(--muted); text-transform: uppercase;
  font-variation-settings: 'wdth' 100;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 1px; padding: 0 0.5rem; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  color: var(--muted); font-size: 0.88rem; font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
  border-right: none;
}
.sidebar-nav a svg { flex-shrink: 0; opacity: 0.8; transition: opacity 0.2s; }
.sidebar-nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.sidebar-nav a:hover svg { opacity: 1; }
.sidebar-nav a.active {
  color: var(--text); background: rgba(255,157,61,0.1);
  border-right: none;
}
.sidebar-nav a.active svg { color: var(--amber); opacity: 1; }
.sidebar-nav .signout {
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule-soft);
  color: var(--muted-deep) !important;
  border-radius: 0 !important;
}
.sidebar-nav .signout:hover { color: var(--danger) !important; }
.sidebar-nav .badge {
  margin-left: auto;
  background: var(--amber); color: var(--ink);
  border-radius: 999px; padding: 0.1rem 0.5rem;
  font-size: 0.7rem; font-weight: 700;
}
.dash-main { margin-left: 268px; flex: 1; padding: 2rem; position: relative; z-index: 1; }
/* ── Shared layout tokens (G37 design-system consistency) ──
   Apply these instead of inline max-width styles. Use:
     .panel-form     = narrow centered form (640px)  → Settings, Security, KYC
     .panel-content  = medium content column (860px) → Dashboard sections with text+cards
     .panel-wide     = wide dashboard area (1100px) → tables, grids, lists
   Pages should pick ONE container class per page and stick with it. */
.panel-form    { max-width: 640px; }
.panel-content { max-width: 860px; }
.panel-wide    { max-width: 1100px; }
.panel-form > .card,
.panel-content > .card,
.panel-wide > .card { max-width: 100%; }

/* Shared input / form-row utilities — replace inline input styles as pages are edited */
.input-base, .select-base, .textarea-base {
    width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--rule-soft);
    color: var(--text); padding: 0.55rem 0.8rem; border-radius: 8px;
    font-size: 0.92rem; font-family: inherit;
}
.input-base:focus, .select-base:focus, .textarea-base:focus { border-color: var(--amber); outline: none; }
.form-stack > * + * { margin-top: 1rem; }
.form-label { display: block; font-size: 0.82rem; color: var(--text-soft); margin-bottom: 0.3rem; }
.form-hint  { font-size: 0.76rem; color: var(--muted); margin-top: 0.3rem; }

.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.8rem; }
.page-header h1 { margin: 0; margin-top: 0 !important; font-size: 1.35rem; font-weight: 700; }
.page-header-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.dash-header { margin-bottom: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.dash-header h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-weight: 700; font-size: 2rem; letter-spacing: -0.035em;
  margin: 0;
}
.dash-header p { color: var(--muted); font-size: 0.9rem; margin: 0; max-width: 68ch; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.card {
  background: linear-gradient(160deg, rgba(31,28,34,0.7) 0%, rgba(24,21,25,0.7) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 1.5rem;
  backdrop-filter: blur(8px);
}
.card-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-weight: 600; }
.card-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-weight: 800; font-size: 2.2rem; margin: 0.4rem 0; letter-spacing: -0.04em;
  color: var(--text);
}
.card-sub { font-size: 0.8rem; color: var(--success); }

/* Posts (admin + dashboard) */
.posts-grid { display: grid; gap: 1.2rem; margin-top: 1.5rem; }
.post-card {
  background: linear-gradient(160deg, rgba(31,28,34,0.7) 0%, rgba(24,21,25,0.7) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.post-meta { font-size: 0.78rem; color: var(--muted); }
.post-content { font-size: 0.95rem; line-height: 1.7; }
.post-actions { display: flex; gap: 0.75rem; }
.btn-approve { background: var(--success); color: var(--ink); border-color: var(--success); }
.btn-reject { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.platform-tag {
  display: inline-block; padding: 0.22rem 0.6rem;
  background: rgba(125,211,252,0.1); border-radius: 6px;
  font-size: 0.7rem; color: var(--cyan-soft);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}

/* Status badges */
.status { display: inline-block; padding: 0.22rem 0.7rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }
.status-active   { background: rgba(74,222,128,0.15); color: var(--success); }
.status-pending  { background: rgba(255,157,61,0.15); color: var(--amber-soft); }
.status-inactive { background: rgba(168,159,184,0.12); color: var(--muted); }

/* Login pages */
.login-wrap {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 2rem; position: relative; z-index: 2;
}
.login-box {
  width: 100%; max-width: 420px;
  background: linear-gradient(160deg, rgba(31,28,34,0.85) 0%, rgba(24,21,25,0.85) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 3rem 2.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
}
.login-logo {
  text-align: center; margin-bottom: 2rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-weight: 800; font-size: 2rem; letter-spacing: -0.04em;
  color: var(--text);
}

/* Alerts */
.alert { padding: 0.85rem 1rem; border-radius: 10px; font-size: 0.9rem; margin-bottom: 1rem; border: 1px solid transparent; }
.alert-error,
.alert-danger { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.35); color: #fca5a5; }
.alert-success { background: rgba(74,222,128,0.12); border-color: rgba(74,222,128,0.35); color: #86efac; }

/* Feedback flash banners (PM #1204) */
.feedback-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  border: 1px solid transparent;
  position: relative;
}
.feedback-alert.alert-success {
  background: rgba(74,222,128,0.12);
  border-color: rgba(74,222,128,0.35);
  color: #86efac;
}
.feedback-alert.alert-error {
  background: rgba(248,113,113,0.12);
  border-color: rgba(248,113,113,0.35);
  color: #fca5a5;
}
.feedback-alert.alert-warning {
  background: rgba(251,191,36,0.12);
  border-color: rgba(251,191,36,0.35);
  color: #fde68a;
}
.feedback-alert.alert-info {
  background: rgba(96,165,250,0.12);
  border-color: rgba(96,165,250,0.35);
  color: #93c5fd;
}
.feedback-icon { flex-shrink: 0; font-size: 1rem; }
.feedback-prefix { font-weight: 600; }
.feedback-text { flex: 1; }
.feedback-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.7;
  padding: 0 0.25rem;
  color: inherit;
  margin-left: auto;
}
.feedback-dismiss:hover { opacity: 1; }

/* Old hero (legacy fallback) */
.hero { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6rem 1.5rem 4rem; position: relative; z-index: 2; }
.badge {
  display: inline-block; padding: 0.4rem 1rem;
  background: rgba(255,157,61,0.12); border: 1px solid rgba(255,157,61,0.35);
  border-radius: 999px; font-size: 0.72rem; color: var(--amber-soft);
  margin-bottom: 1.5rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
}
h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-variation-settings: 'opsz' 96, 'wdth' 100;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 0.96;
  margin-bottom: 1.5rem; max-width: 880px; letter-spacing: -0.045em;
}
h1 span {
  background: linear-gradient(120deg, var(--amber), var(--amber-soft));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

@media (max-width: 1024px) {
  /* Tables collapse to card-like rows on phone/tablet */
  .dash-main table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 0.82rem; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; padding: 1.4rem 1rem; }
  /* Rein in max-widths that were set for desktop so they stop cramping on phone */
  .card[style*="max-width"] { max-width: 100% !important; }
  /* Forms: full-width inputs */
  .dash-main input, .dash-main select, .dash-main textarea { max-width: 100%; }
  /* Two-column grids collapse */
  .form-row, .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
  /* Tighter headings on phone */
  .dash-header h1 { font-size: 1.5rem !important; }
}

@media (max-width: 480px) {
  .dash-main { padding: 1rem 0.75rem; }
  .dash-header h1 { font-size: 1.3rem !important; }
  .card { padding: 1.2rem 1rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .aurora { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Andrew (graphic designer persona) 2026-04-29 — visual polish round.
   Five fixes:
     #2 Leads draft cards collapse — handled inline via <details> in leads.php
     #3 KPI font-weight + label-size consistency
     #4 Tab underline weight unification (CRM sub-tabs ↔ top-level)
     #5 Last-activity column alignment normalisation
     #1 Test-data noise — handled via DB soft-delete (not CSS)
   ───────────────────────────────────────────────────────────────────────── */

/* #3 — Normalise KPI cards across CRM analytics + leads + companies pages.
   Numeric value uses a single weight; labels share size + weight + colour. */
.kpi-row .kpi .value,
.crm-kpi .value,
.crm-kpi-card .value,
[class*="kpi"] .value {
  font-weight: 600 !important;
  font-size: 1.45rem !important;
  letter-spacing: -0.01em;
}
.kpi-row .kpi .label,
.crm-kpi .label,
.crm-kpi-card .label,
[class*="kpi"] .label {
  font-weight: 500 !important;
  font-size: 0.74rem !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* #4 — Unify tab underline. CRM sub-tabs were 1px, top-level were 2px.
   Both now use 2px solid amber on active; same hover treatment. */
.crm-tabs a, .crm-subtabs a, ul.crm-tabs li a {
  border-bottom-width: 2px !important;
}

/* #5 — Last-activity column: header + cells both left-align (relative dates
   read better left-aligned; right-align suits hard numbers, not dates). */
table th[data-column="last_activity"],
table td[data-column="last_activity"],
table th.col-last-activity,
table td.col-last-activity {
  text-align: left !important;
}

/* T4.4 (Béla 2026-04-30) — Light mode override.
   Toggle via body.theme-light. Variables flip; rest of the cascade follows. */
body.theme-light {
  --ink: #f8f6f1;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-soft: #2d2d2d;
  --muted: #6b7280;
  --muted-deep: #9ca3af;
  --rule-soft: rgba(0,0,0,0.1);
  background: #f8f6f1 !important;
  color: #1a1a1a !important;
}
body.theme-light .sidebar { background: #fff !important; border-right: 1px solid rgba(0,0,0,0.08) !important; }
body.theme-light .sidebar a, body.theme-light .sidebar-group-label { color: #1a1a1a !important; }
body.theme-light .sidebar-group-items a { color: #4b5563 !important; }
body.theme-light .dash-main { color: #1a1a1a !important; }
body.theme-light input, body.theme-light select, body.theme-light textarea {
  background: #fff !important; color: #1a1a1a !important; border-color: rgba(0,0,0,0.15) !important;
}
body.theme-light table thead { background: rgba(0,0,0,0.04) !important; }
body.theme-light .crm-deal-card, body.theme-light .crm-stage { background: #fff !important; border-color: rgba(0,0,0,0.1) !important; }

/* T4.6 (Priya) — j/k keyboard nav focus indicator */
tr.kbd-row-focused {
  box-shadow: inset 4px 0 0 var(--amber);
  background: rgba(255,157,61,0.06) !important;
}

/* P1 Andrew R2/R3 — Company detail tab strip + 2-col grid mobile responsive.
   R3 fix: the <ul> + 2-col grid are DIRECT children of <main.dash-main>, not grandchildren.
   The R2 selectors had an extra `> div >` that never matched. Rewritten with descendant
   selectors so depth doesn't matter. */
@media (max-width: 768px) {
  /* Tab strip — any flex-row ul under main.dash-main becomes scrollable on phone */
  main.dash-main ul[style*="display:flex"][style*="border-bottom"],
  main.dash-main ul.crm-tabs,
  main.dash-main ul.crm-company-tabs {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  main.dash-main ul[style*="display:flex"][style*="border-bottom"] li {
    flex: 0 0 auto;
  }
  /* Company detail 2-col grid (1.2fr 0.8fr) → stack to 1 col on phone */
  main.dash-main div[style*="grid-template-columns:1.2fr 0.8fr"],
  main.dash-main div[style*="grid-template-columns: 1.2fr 0.8fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Filter rows that wrap awkwardly mid-width */
  form.crm-filter-form { flex-wrap: wrap; gap: 0.4rem; }
  .crm-filter-bar select, .crm-filter-bar button { flex: 1 1 45%; }
}

/* Andrew R3 — Print CSS for the new pages (atrisk, developer, team, recycle).
   Béla's Friday-print workflow now covers every CRM surface, not just companies/deals. */
@media print {
  body.theme-light, body { background: #fff !important; color: #000 !important; }
  .dash-sidebar, nav.sidebar, .crm-add-company, .mobile-menu-btn, #theme-toggle-btn,
  details summary, .crm-cmdk, .auro-cmdk, button, form { color: #000 !important; }
  .dash-sidebar, nav.sidebar, .mobile-menu-btn, #theme-toggle-btn { display: none !important; }
  main.dash-main { padding: 0 !important; margin: 0 !important; }
  table { width: 100% !important; border-collapse: collapse !important; font-size: 0.78rem; }
  table th, table td { border: 1px solid #999 !important; padding: 0.35rem 0.5rem; color: #000 !important; }
  table thead { background: #eee !important; }
  a { color: #000 !important; text-decoration: none !important; }
  h1, h2, h3, h4 { color: #000 !important; page-break-after: avoid; }
  .crm-pane, .crm-card, [class*="card"] { page-break-inside: avoid; background: #fff !important; }
}

/* T4.5 (Béla) — column-visibility cog menu; rendered inline by tables that opt in */
.crm-cols-cog { position: relative; display: inline-block; }
.crm-cols-cog summary { list-style: none; cursor: pointer; padding: 0.35rem 0.6rem; border: 1px solid var(--rule-soft); border-radius: 6px; background: transparent; color: var(--text); font-size: 0.8rem; }
.crm-cols-cog summary::-webkit-details-marker { display: none; }
.crm-cols-cog[open] summary { background: var(--amber); color: var(--ink); }
.crm-cols-cog .menu { position: absolute; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 8px; padding: 0.6rem 0.85rem; z-index: 50; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.crm-cols-cog .menu label { display: block; font-size: 0.82rem; padding: 0.2rem 0; }

/* Subledger Recon UI */
.recon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.recon-card { padding: 1.5rem; }
.recon-card-title { margin-top: 0; font-size: 0.9rem; color: var(--color-text-mute); text-transform: uppercase; letter-spacing: 0.05em; }
.recon-val { font-size: 2rem; font-weight: 700; margin: 0.5rem 0; }
.recon-curr { font-size: 1rem; color: var(--color-text-mute); }
.recon-desc { font-size: 0.85rem; color: var(--color-text-mute); }
.recon-link { color: var(--color-btn-primary-bg); text-decoration: none; margin-left: 8px; }
.recon-delta-ok { border: 2px solid var(--color-success); background: rgba(39, 174, 96, 0.05); }
.recon-delta-err { border: 2px solid var(--color-danger); background: rgba(235, 87, 87, 0.05); }
.recon-delta-unknown { border: 2px solid var(--color-border-light); background: var(--color-bg-mute); }
.delta-text-ok { color: var(--color-success); }
.delta-text-err { color: var(--color-danger); }
.delta-text-unknown { color: var(--color-text-mute); }
.ph-form { display: flex; gap: 0.5rem; align-items: center; }
.ph-label { font-size: 0.8rem; color: var(--color-text-mute); }
.date-input { width: 140px; }
.recon-alert { margin-bottom: 1.5rem; }
.tbl-card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border-light); }
.tbl-card-title { margin: 0; font-size: 1.1rem; }
.tbl-card-desc { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--color-text-mute); }
.empty-state { padding: 3rem; text-align: center; color: var(--color-text-mute); }
.recon-table { width: 100%; text-align: left; border-collapse: collapse; }
.recon-th { padding: 0.75rem 1.5rem; color: var(--color-text-mute); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
.recon-th-right { padding: 0.75rem 1.5rem; color: var(--color-text-mute); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; text-align: right; }
.recon-td { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
.recon-td-right { padding: 0.75rem 1.5rem; font-size: 0.9rem; text-align: right; font-weight: 600; }
.recon-tr-head { border-bottom: 2px solid var(--color-border); background: var(--color-surface-2); }
.recon-tr { border-bottom: 1px solid var(--color-border-light); }
.je-link { font-family: monospace; color: var(--color-btn-primary-bg); text-decoration: none; }
.je-amt-ok { color: var(--color-text-main); }
.je-amt-err { color: var(--color-danger); }

/* 2026-05-23 walker fix: several dashboard pages (fa_ap_three_way_match, etc.) reference
   these alias CSS vars that were never defined -> fell back to light values -> white cards
   with invisible light text in dark mode. Define only the genuinely-undefined ones. */
:root {
  --color-card-bg: #1a1d23;
  --color-bg-alt: #20242c;
  --color-table-head: #20242c;
  --color-border-light: #2a2e37;
  --color-muted: #9aa0a6;
  --color-link: #6ea8fe;
  --color-warning-bg: rgba(251,191,36,0.14);
  --color-success-bg: rgba(74,222,128,0.14);
  --color-danger-bg: rgba(248,113,113,0.14);
}
[data-theme="light"], .theme-light {
  --color-card-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-table-head: #f9fafb;
  --color-border-light: #f1f5f9;
  --color-muted: #6b7280;
  --color-link: #2563eb;
  --color-warning-bg: #fff7e6;
  --color-success-bg: #f0fdf4;
  --color-danger-bg: #fef2f2;
}
