/* ============================================================
   PayCub — main.css
   Stack: Bootstrap 5 grid | jQuery | FontAwesome Pro
   Design: TechAlliance system — Inter-first, near-black + red brand
   ============================================================ */

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

body, input, select, textarea, button {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Design Tokens ---- */
:root {
  --black:      #080808;
  --near-black: #111111;
  --gray-900:   #1a1a1a;
  --gray-700:   #374151;
  --gray-600:   #4b5563;
  --gray-500:   #6b7280;
  --gray-400:   #9ca3af;
  --gray-200:   #e5e7eb;
  --gray-100:   #f5f5f5;
  --gray-50:    #fafafa;
  --white:      #ffffff;

  --heading-font: 'DM Sans', -apple-system, sans-serif;

  --ta-navy:    #0d2545;
  --ta-navy-80: #0f2e56;
  --ta-red:     #9868d5;
  --ta-red-dk:  #7d4ec0;
  --ta-red-lt:  #f3eeff;

  --slate-50:#f8fafc; --slate-100:#f1f5f9; --slate-200:#e2e8f0;
  --slate-300:#cbd5e1; --slate-400:#94a3b8; --slate-500:#64748b;
  --slate-600:#475569; --slate-700:#334155; --slate-800:#1e293b; --slate-900:#0f172a;

  --emerald-50:#ecfdf5; --emerald-100:#d1fae5;
  --emerald-500:#10b981; --emerald-600:#059669; --emerald-700:#047857;
  --amber-50:#fffbeb; --amber-100:#fef3c7; --amber-500:#f59e0b; --amber-600:#d97706;
  --red-50:#fef2f2; --red-100:#fee2e2; --red-500:#ef4444; --red-600:#dc2626; --red-700:#b91c1c;
  --violet-50:#f5f3ff; --violet-100:#ede9fe; --violet-500:#8b5cf6; --violet-600:#7c3aed;
  --blue-50:#eff6ff; --blue-100:#dbeafe; --blue-500:#3b82f6; --blue-600:#2563eb;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--gray-700); }
a { color: var(--ta-red); text-decoration: none; transition: color .15s; }
a:hover { color: var(--ta-red-dk); }
img { max-width: 100%; height: auto; display: block; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font) !important;
  font-style: normal !important;
  color: var(--near-black);
  line-height: 1.1;
}

h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
h5 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
h6 { font-size: 14px; font-weight: 600; }

p { line-height: 1.8; }

.lead-text {
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 400;
  line-height: 1.8;
  color: var(--gray-600);
}

.label-overline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.label-overline-red {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ta-red);
}

/* ---- Layout ---- */
.section { padding: 100px 32px; }
.section-sm { padding: 64px 32px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 64px; }

/* ---- Nav ---- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  height: 96px;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-nav.scrolled {
  background: white;
  border-bottom-color: var(--gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex; align-items: center;
}

.nav-brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; margin-right: auto; }
.nav-logo { height: 58px; width: auto; display: block; transition: opacity .2s; }
.nav-logo-dark  { display: block; }
.nav-logo-light { display: none; }
.site-nav.scrolled .nav-logo-dark  { display: block; }
.site-nav.scrolled .nav-logo-light { display: none; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-right: 16px; }
.nav-link {
  padding: 6px 13px; border-radius: 6px;
  font-size: 16px; font-weight: 500;
  color: var(--gray-700); text-decoration: none;
  transition: background .12s, color .12s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: rgba(0,0,0,.06); color: var(--near-black); }
.site-nav.scrolled .nav-link { color: var(--gray-700); }
.site-nav.scrolled .nav-link:hover,
.site-nav.scrolled .nav-link.active { background: rgba(0,0,0,.05); color: var(--near-black); }

.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--gray-700); font-size: 18px; cursor: pointer; padding: 4px;
  transition: color .15s;
}
.site-nav.scrolled .nav-toggle { color: var(--gray-700); }

.mobile-nav {
  display: none; background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 8px 20px 20px;
  position: fixed; top: 96px; left: 0; right: 0; z-index: 99;
}
.mobile-nav .nav-link { display: block; padding: 10px 14px; border-radius: 8px; color: rgba(255,255,255,.8); }
.mobile-nav.open { display: block; }

.mobile-accordion-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px 14px; border-radius: 8px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.8); font-size: 15px; font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}
.mobile-accordion-trigger .mobile-chevron {
  font-size: 10px; color: rgba(255,255,255,.4);
  transition: transform .25s ease;
}
.mobile-accordion-trigger.open .mobile-chevron { transform: rotate(180deg); }
.mobile-sub {
  display: none; padding: 4px 0 6px 14px;
  border-left: 1px solid rgba(255,255,255,.1); margin-left: 14px;
}
.mobile-sub.open { display: block; }
.mobile-sub a {
  display: block; padding: 7px 12px; font-size: 14px;
  color: rgba(255,255,255,.6); border-radius: 6px;
  text-decoration: none;
}
.mobile-sub a:hover { color: white; background: rgba(255,255,255,.06); }

/* Nav CTA buttons shift color on transparent vs scrolled */
.nav-right .ds-btn-secondary {
  color: var(--gray-700) !important;
  background: white !important;
}
.site-nav.scrolled .nav-right .ds-btn-secondary {
  color: var(--gray-700) !important;
  background: white !important;
}

@media (max-width: 991px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { padding: 0 20px; }
}
@media (max-width: 480px) {
  .nav-logo { height: 36px; }
}

/* ---- Mega nav ---- */
.mega-trigger {
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'DM Sans', sans-serif;
}
.mega-chevron {
  font-size: 9px; color: var(--gray-400);
  transition: transform .2s ease, color .25s;
}
.site-nav.scrolled .mega-chevron { color: var(--gray-400); }
.mega-wrap.open .mega-chevron { transform: rotate(180deg); }

.mega-nav {
  position: fixed; top: 96px; left: 0; right: 0; z-index: 98;
  background: white;
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  opacity: 0; transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.mega-nav.open {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.mega-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0 40px;
  padding-top: 52px;
}
.mega-col { padding-bottom: 48px; }
.mega-col-label {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--gray-400);
  margin-bottom: 16px;
}
.mega-link {
  display: flex; align-items: center;
  width: fit-content;
  font-size: 15px; font-weight: 500;
  color: var(--gray-700); padding: 6px 0;
  text-decoration: none; transition: color .12s;
}
.mega-link::after {
  content: '→';
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity .18s ease, transform .18s ease;
  font-size: 17px; color: var(--ta-red);
  margin-left: 10px; flex-shrink: 0;
}
.mega-link:hover { color: var(--near-black); }
.mega-link:hover::after { opacity: 1; transform: translateX(0); }

.mega-bottom {
  grid-column: 1 / -1;
  display: flex; align-items: flex-end; justify-content: space-between;
  border-top: 1px solid var(--gray-100);
  padding: 24px 0 32px;
}
.mega-tagline {
  font-size: 20px; font-weight: 400;
  color: var(--near-black); line-height: 1.35;
}
.mega-tagline strong { font-weight: 800; }
.mega-t-mark {
  display: flex; align-items: flex-end; gap: 2px;
  flex-shrink: 0; margin-left: 24px;
  font-size: 36px; font-weight: 900; line-height: 1; letter-spacing: -.05em;
}
.mega-t-mark span { color: var(--ta-red); }
.mega-p-img { height: 36px; width: auto; display: block; }

.mega-backdrop {
  display: none; position: fixed; top: 96px; left: 0; right: 0; bottom: 0; z-index: 97;
  background: rgba(0,0,0,.15);
}
.mega-backdrop.open { display: block; }

/* Nav fades to white when mega open (transparent state only) */
.site-nav.mega-open:not(.scrolled) {
  background: white;
  border-bottom-color: var(--gray-200);
}
.site-nav.mega-open:not(.scrolled) .nav-link { color: var(--gray-700) !important; }
.site-nav.mega-open:not(.scrolled) .nav-link:hover,
.site-nav.mega-open:not(.scrolled) .nav-link.active { background: rgba(0,0,0,.05) !important; color: var(--near-black) !important; }
.site-nav.mega-open:not(.scrolled) .nav-logo-dark  { display: block !important; }
.site-nav.mega-open:not(.scrolled) .nav-logo-light { display: none !important; }
.site-nav.mega-open:not(.scrolled) .mega-chevron { color: var(--gray-400) !important; }
.site-nav.mega-open:not(.scrolled) .nav-toggle { color: var(--gray-700) !important; }
.site-nav.mega-open:not(.scrolled) .nav-right .ds-btn-secondary {
  color: var(--gray-700) !important;
  background: white !important;
}

/* ---- Hero ---- */
.hero-section {
  background-image: url('../images/hero-1.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  padding-top: 210px;
  padding-bottom: 140px;
  position: relative;
  overflow: hidden;
}
.hero-section .container { max-width: 1200px; position: relative; z-index: 2; }

/* Video mode */
.hero-section .hero-video {
  display: none;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}
.hero-section.video-mode { background-image: none; }
.hero-section.video-mode .hero-video { display: block; }
.hero-section.video-mode::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.75) 0%, rgba(0,0,0,.5) 25%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}
.hero-section.video-mode h1 { color: white; }
.hero-section.video-mode .hero-lead { color: rgba(255,255,255,.85); }
.hero-section.video-mode .hero-eyebrow { color: rgba(255,255,255,.55); }
.hero-section.video-mode .hero-advantages span { color: rgba(255,255,255,.65); }
.hero-section.video-mode .hero-advantages span i { color: #6ee7b7; }
.hero-section.video-mode .hero-img-wrap { display: none; }
/* left-aligned in video mode — pricing card on right */

/* Nav goes white text/logo in video mode */
.video-mode-nav .nav-logo-dark  { display: none !important; }
.video-mode-nav .nav-logo-light { display: block !important; }
.video-mode-nav .nav-link { color: rgba(255,255,255,.8) !important; }
.video-mode-nav .nav-link:hover,
.video-mode-nav .nav-link.active { background: rgba(255,255,255,.08) !important; color: white !important; }
.video-mode-nav .mega-chevron { color: rgba(255,255,255,.5) !important; }
.video-mode-nav .nav-toggle { color: rgba(255,255,255,.8) !important; }

/* When scrolled, always revert to dark regardless of video mode */
.video-mode-nav.scrolled .nav-logo-dark  { display: block !important; }
.video-mode-nav.scrolled .nav-logo-light { display: none !important; }
.video-mode-nav.scrolled .nav-link { color: var(--gray-700) !important; }
.video-mode-nav.scrolled .nav-link:hover,
.video-mode-nav.scrolled .nav-link.active { background: rgba(0,0,0,.05) !important; color: var(--near-black) !important; }
.video-mode-nav.scrolled .mega-chevron { color: var(--gray-400) !important; }
.video-mode-nav.scrolled .nav-toggle { color: var(--gray-700) !important; }
.video-mode-nav.scrolled .nav-right .ds-btn-secondary {
  background: white !important; color: var(--gray-700) !important;
}

.video-mode-nav .nav-right .ds-btn-secondary {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.3) !important;
  color: white !important;
}


.hero-eyebrow {
  display: block;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ta-red);
  margin-bottom: 18px;
}
.hero-section h1 { color: var(--near-black); margin-bottom: 24px; }
.hero-section .hero-lead {
  font-size: 18px; color: var(--gray-600); line-height: 1.75;
  margin-bottom: 36px; max-width: 480px;
}
.hero-advantages {
  display: flex; align-items: center; gap: 24px; margin-top: 20px; flex-wrap: wrap;
}
.hero-advantages span {
  font-size: 16px; font-weight: 500; color: var(--gray-500);
  display: flex; align-items: center; gap: 7px;
}
.hero-advantages span i { color: var(--emerald-600); }

.hero-img-wrap { text-align: right; transition: opacity .4s ease; }
.hero-img-wrap img { max-height: 640px; width: auto; display: inline-block; }

@media (max-width: 991px) {
  .hero-section { background-attachment: scroll; padding-top: 130px; padding-bottom: 0; }
  .hero-img-wrap { text-align: center; margin-top: 32px; }
  .hero-img-wrap img { max-height: 360px; }
}

/* ---- Sections ---- */
.bg-white   { background: var(--white); }
.bg-off     { background: var(--gray-50); }
.bg-dark    { background: var(--near-black); }

/* ---- Cards ---- */
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* Program / feature card */
.prog-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 28px 8px 32px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .2s;
}
.prog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--near-black) 20px, transparent 20px, transparent 21px, var(--gray-200) 21px);
  z-index: 1;
}
.prog-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(to right, var(--ta-red), rgba(232,25,44,.45));
  z-index: 2;
  transition: width .45s cubic-bezier(.4,0,.2,1);
}
.prog-card:hover::after { width: 100%; }
.prog-card:hover { transform: translateY(-2px); }
.prog-icon {
  font-size: 28px;
  color: var(--near-black);
  margin-bottom: 20px;
  display: block;
  line-height: 1;
}
.prog-card h3 { font-size: 22px; margin-bottom: 10px; }
.prog-card p  { font-size: 17px; color: var(--gray-500); line-height: 1.8; margin: 0; }
.prog-card .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 17px; font-weight: 600; color: var(--ta-red);
  margin-top: 20px; transition: gap .15s;
}
.prog-card .read-more:hover { gap: 10px; }

/* Hover card */
.hover-card { transition: box-shadow .18s, transform .18s; cursor: pointer; }
.hover-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,.09); transform: translateY(-2px); }

/* ---- About split 50/50 ---- */
.about-split {
  display: flex;
  min-height: 580px;
  overflow: hidden;
  background: white;
}
.about-split-img {
  width: 50%;
  flex-shrink: 0;
  position: relative;
}
.about-split-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.about-split-content {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: white;
}
.about-split-content-inner {
  width: 100%;
  padding: 80px max(32px, calc((100vw - 1200px) / 2 + 32px)) 80px 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.about-split--flip { flex-direction: row-reverse; }
.about-split--flip .about-split-content-inner {
  padding: 80px 64px 80px max(32px, calc((100vw - 1200px) / 2 + 32px));
}

@media (max-width: 991px) {
  .about-split { flex-direction: column; }
  .about-split--flip { flex-direction: column; }
  .about-split-img { width: 100%; height: 300px; position: relative; }
  .about-split-img img { position: absolute; }
  .about-split-content { width: 100%; }
  .about-split-content-inner { padding: 56px 24px !important; max-width: 100%; }
}

/* ---- Feature icon grid ---- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}
.feat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}
.feat-icon-wrap {
  position: relative;
  width: 90px; height: 90px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
}
.feat-icon-wrap img.ico-bkg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.feat-icon {
  position: relative; z-index: 1;
  font-size: 38px;
  color: var(--ta-red);
  line-height: 1;
}
.feat-item h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--near-black);
}
.feat-item p {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.8;
  margin: 0;
}
@media (max-width: 767px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}
@media (max-width: 480px) {
  .feat-grid { grid-template-columns: 1fr; }
}

/* ---- FAQ accordion ---- */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-item:first-child { border-top: 1px solid var(--gray-200); }
.faq-trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 19px; font-weight: 600; color: var(--near-black);
  transition: color .15s;
}
.faq-trigger:hover { color: var(--ta-red); }
.faq-trigger.open { color: var(--ta-red); }
.faq-chevron {
  font-size: 12px; color: var(--gray-400); flex-shrink: 0;
  transition: transform .25s ease, color .15s;
}
.faq-trigger.open .faq-chevron { transform: rotate(180deg); color: var(--ta-red); }
.faq-body {
  overflow: hidden; max-height: 0;
  transition: max-height .35s ease;
}
.faq-body p {
  font-size: 17px; color: var(--gray-600); line-height: 1.8;
  margin: 0; padding-bottom: 36px;
}

/* ---- Testimonial cards ---- */
.review-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.review-quote {
  font-size: 28px; color: var(--ta-red); line-height: 1; margin-bottom: 16px;
}
.review-text {
  font-size: 17px; color: var(--gray-600); line-height: 1.8; flex: 1; margin-bottom: 24px;
}
.review-stars { color: #f59e0b; font-size: 16px; display: flex; gap: 3px; margin-bottom: 12px; }
.review-author-name { font-size: 17px; font-weight: 700; color: var(--near-black); }

/* ---- Dashboard screenshot ---- */
.dashboard-section {
  background: var(--gray-50);
  padding: 96px 32px;
  text-align: center;
}
.dashboard-img-wrap {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.08);
}
.dashboard-img-wrap img { width: 100%; display: block; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--gray-50);
  padding: 96px 32px;
  text-align: center;
}
.cta-band-inner { max-width: 640px; margin: 0 auto; }
.cta-band h2 { color: var(--near-black); margin-bottom: 16px; }
.cta-band p  { color: var(--gray-500); font-size: 18px; line-height: 1.75; margin-bottom: 36px; }

/* ---- Buttons ---- */
.btn { all: unset; }
[class*="ds-btn"] {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; line-height: 1;
  border-radius: 10px; border: none;
  padding: 0 20px; height: 44px;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: all .15s; outline: none; letter-spacing: -0.01em;
  box-shadow: none;
}
[class*="ds-btn"]:focus-visible { outline: 2px solid var(--ta-red); outline-offset: 2px; }

.ds-btn-sm  { height: 40px; padding: 0 18px; font-size: 15px; border-radius: 8px; }
.ds-btn-lg  { height: 50px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.ds-btn-xl  { height: 56px; padding: 0 32px; font-size: 16px; border-radius: 14px; }

.ds-btn-primary {
  background: var(--ta-red) !important;
  color: white !important;
}
.ds-btn-primary:hover { background: var(--ta-red-dk) !important; color: white !important; }

.ds-btn-navy {
  background: var(--near-black) !important; color: white !important;
}
.ds-btn-navy:hover { background: var(--gray-900) !important; color: white !important; }

.ds-btn-secondary {
  background: var(--gray-100) !important;
  color: var(--gray-700) !important;
}
.ds-btn-secondary:hover { background: var(--gray-200) !important; color: var(--near-black) !important; }

.ds-btn-outline-white {
  background: white !important; color: var(--near-black) !important;
}
.ds-btn-outline-white:hover { background: var(--gray-100) !important; color: var(--near-black) !important; }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 600;
  padding: 3px 10px; border-radius: 9999px; line-height: 1.4; white-space: nowrap;
}
.badge-red     { background: var(--ta-red-lt);   color: var(--ta-red);         border: 1px solid rgba(232,25,44,.15); }
.badge-emerald { background: var(--emerald-50);   color: var(--emerald-700);    border: 1px solid var(--emerald-100); }
.badge-slate   { background: var(--gray-100);     color: var(--gray-500);       border: 1px solid var(--gray-200); }

/* ---- Arrow nudge on hover ---- */
i.fa-arrow-right, svg.fa-arrow-right { display: inline-block; transition: transform .2s ease; }
a:hover i.fa-arrow-right, a:hover svg.fa-arrow-right,
button:hover i.fa-arrow-right, button:hover svg.fa-arrow-right { transform: translateX(4px); }

/* ---- Animations ---- */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.animate-fadeup { animation: fadeUp .55s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .22s; }
.delay-3 { animation-delay: .34s; }
.delay-4 { animation-delay: .46s; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Footer ---- */
.site-footer { background: #0a0a0a; padding: 64px 32px 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-contact-label { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: white; margin-bottom: 10px; }
.footer-contact-val { font-size: 17px; color: rgba(255,255,255,.75); line-height: 1.7; text-decoration: none; transition: color .12s; }
.footer-contact-val:hover { color: white; }
.footer-heading { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: white; margin-bottom: 14px; }
.footer-link { display: block; font-size: 17px; color: rgba(255,255,255,.6); margin-bottom: 10px; transition: color .12s; text-decoration: none; line-height: 1.4; }
.footer-link:hover { color: white; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 44px 0 36px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 16px; color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: 20px; margin-top: 20px; }
.footer-social a { color: rgba(255,255,255,.5); font-size: 18px; text-decoration: none; transition: color .15s; display: flex; align-items: center; }
.footer-social a:hover { color: white; }

/* ---- Accessibility ---- */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--ta-red); color: white;
  padding: 10px 18px; border-radius: 0 0 8px 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

*:focus-visible { outline: 2px solid var(--ta-red) !important; outline-offset: 3px; }
*:focus:not(:focus-visible) { outline: none; }
button, [role="button"], a { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .animate-fadeup { animation: none; opacity: 1; }
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .section { padding: 64px 20px; }
  .section-sm { padding: 48px 20px; }
  .cta-band { padding: 64px 20px; }
  .dashboard-section { padding: 64px 20px; }
  .site-footer { padding: 56px 20px 28px; }
}

/* ---- Payroll UI mock ---- */
.pc-mock-section { padding: 100px 32px; background: white; }
.pc-mock-wrap {
  position: relative;
  padding: 56px 48px 64px 0;
}

/* Browser chrome */
.pc-browser {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 64px -12px rgba(80,40,160,.18), 0 4px 16px rgba(0,0,0,.08);
  border: 1.5px solid rgba(0,0,0,.1);
  opacity: 0; transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}
.pc-mock-wrap.visible .pc-browser { opacity: 1; transform: translateY(0); }

.pc-titlebar {
  background: #1e1e2e; padding: 10px 16px;
  display: flex; align-items: center; gap: 6px;
}
.pc-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pc-dot-r { background: #ff5f57; }
.pc-dot-y { background: #febc2e; }
.pc-dot-g { background: #28c840; }
.pc-urlbar {
  flex: 1; height: 20px; background: rgba(255,255,255,.08);
  border-radius: 5px; margin-left: 10px;
  display: flex; align-items: center; padding: 0 10px;
  font-size: 10px; color: rgba(255,255,255,.35); font-family: monospace;
}

.pc-body { background: #fafafa; padding: 24px; }

/* Top bar */
.pc-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.pc-run-title { font-size: 16px; font-weight: 700; color: #111; }
.pc-run-sub { font-size: 13px; color: #888; margin-top: 2px; }
.pc-run-btn {
  background: #9868d5; color: white; border: none; border-radius: 8px;
  padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: default;
  font-family: 'DM Sans', sans-serif; display: flex; align-items: center; gap: 6px;
}

/* Stat cards */
.pc-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.pc-stat {
  background: white; border: 1.5px solid #e8e8f0; border-radius: 10px; padding: 11px 13px;
}
.pc-stat-label { font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; font-weight: 600; }
.pc-stat-val { font-size: 18px; font-weight: 700; color: #111; line-height: 1; }
.pc-stat-sub { font-size: 12px; color: #aaa; margin-top: 3px; }

/* Employee rows */
.pc-table-head {
  display: grid; grid-template-columns: 1fr 72px 80px 76px 60px;
  gap: 0 8px; padding: 0 10px 8px;
  font-size: 11px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: .06em;
}
.pc-emp-row {
  display: grid; grid-template-columns: 1fr 72px 80px 76px 60px;
  gap: 0 8px; align-items: center;
  background: white; border: 1.5px solid #ededf5; border-radius: 9px;
  padding: 10px; margin-bottom: 7px;
  opacity: 0; transform: translateX(-12px);
  transition: opacity .45s ease, transform .45s ease;
}
.pc-mock-wrap.visible .pc-emp-row:nth-child(1) { opacity:1; transform:none; transition-delay:.2s; }
.pc-mock-wrap.visible .pc-emp-row:nth-child(2) { opacity:1; transform:none; transition-delay:.32s; }
.pc-mock-wrap.visible .pc-emp-row:nth-child(3) { opacity:1; transform:none; transition-delay:.44s; }
.pc-mock-wrap.visible .pc-emp-row:nth-child(4) { opacity:1; transform:none; transition-delay:.56s; }

.pc-emp-info { display: flex; align-items: center; gap: 9px; }
.pc-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: white;
}
.pc-emp-name { font-size: 14px; font-weight: 600; color: #111; }
.pc-emp-type { font-size: 12px; color: #aaa; margin-top: 1px; }
.pc-cell { font-size: 13px; color: #444; font-weight: 500; }
.pc-cell.muted { color: #e05; font-size: 13px; }
.pc-cell.net { color: #111; font-weight: 700; }
.pc-status {
  display: inline-flex; align-items: center; gap: 4px;
  background: #edfaf3; color: #0a7a4a; border-radius: 6px;
  padding: 4px 10px; font-size: 12px; font-weight: 700;
}

/* Floating badges */
.pc-float {
  position: absolute; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  background: white; white-space: nowrap;
  opacity: 0; transition: opacity .5s ease, transform .5s ease;
}
.pc-mock-wrap.visible .pc-float-1 { opacity:1; transition-delay:.6s; }
.pc-mock-wrap.visible .pc-float-2 { opacity:1; transition-delay:.8s; }
.pc-mock-wrap.visible .pc-float-3 { opacity:1; transition-delay:1s; }

.pc-float-1 {
  top: -18px; right: 0;
  background: #9868d5; color: white;
  padding: 10px 18px; display: flex; align-items: center; gap: 8px;
  transform: translateY(-10px);
}
.pc-mock-wrap.visible .pc-float-1 { transform: translateY(0); }

.pc-float-2 {
  bottom: 16px; left: -16px;
  padding: 12px 16px;
  border: 1.5px solid #e8e8f0;
  transform: translateX(-8px);
}
.pc-mock-wrap.visible .pc-float-2 { transform: translateX(0); }

.pc-float-3 {
  top: 40%; right: -16px;
  padding: 11px 15px;
  border: 1.5px solid #e8e8f0;
  transform: translateX(8px);
}
.pc-mock-wrap.visible .pc-float-3 { transform: translateX(0); }

/* Ping dot */
@keyframes pcPing { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }
.pc-ping { animation: pcPing 2s ease-in-out infinite; display:inline-block; }

/* Subtle float on badge 3 */
@keyframes pcBob { 0%,100%{transform:translateX(0) translateY(0)} 50%{transform:translateX(0) translateY(-5px)} }
.pc-mock-wrap.visible .pc-float-3 { animation: pcBob 3.5s 1.2s ease-in-out infinite; }

@media (max-width: 991px) {
  .pc-mock-section { padding: 64px 20px; }
  .pc-mock-wrap { padding: 0; }
  .pc-float { display: none; }
  .pc-table-head { display: none; }
  .pc-emp-row { grid-template-columns: 1fr 76px 60px; }
  .pc-emp-row .pc-cell:nth-child(3),
  .pc-emp-row .pc-cell:nth-child(4) { display: none; }
}

/* ---- Hero pricing card ---- */
.hero-price-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  padding: 36px 32px;
  color: white;
}
.hero-price-tag {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  margin-bottom: 16px;
}
.hero-price-main {
  font-size: 64px; font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; color: white;
  margin-bottom: 6px;
}
.hero-price-dollar { font-size: 32px; vertical-align: top; margin-top: 12px; display: inline-block; font-weight: 700; }
.hero-price-period { font-size: 22px; font-weight: 400; color: rgba(255,255,255,.6); letter-spacing: 0; }
.hero-price-sub {
  font-size: 15px; color: rgba(255,255,255,.55); margin-bottom: 20px;
}
.hero-price-divider {
  border: none; border-top: 1px solid rgba(255,255,255,.15); margin: 20px 0;
}
.hero-price-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.hero-price-list li {
  font-size: 16px; color: rgba(255,255,255,.85);
  display: flex; align-items: center; gap: 10px;
}
.hero-price-list li i { color: var(--ta-red); font-size: 14px; flex-shrink: 0; }
.hero-price-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: white; color: var(--near-black);
  border-radius: 12px; padding: 14px 20px;
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.hero-price-cta:hover { background: var(--gray-100); color: var(--near-black); }

@media (max-width: 991px) { .hero-price-card { display: none; } }


/* ============================================================
   Interior page hero — .page-hero / .page-hero-inner
   !! DO NOT DELETE THIS COMMENT !!
   This is a shared pattern used across all interior pages (tools,
   feature pages, about, etc). Add page-specific overrides below
   the class definition; do not modify the base class itself.
   ============================================================ */

/* Accounts for the fixed 96px nav + extra breathing room */
.page-hero {
  background: linear-gradient(135deg, #fafafa 0%, #e8e8fb 100%);
  padding: calc(96px + 56px) 32px 48px;
  text-align: center;
}
.page-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}
.page-hero-inner h1 { margin-bottom: 16px; }
.page-hero-inner .label-overline-red { margin-bottom: 14px; }
.page-hero-inner .lead-text { max-width: 580px; margin: 0 auto; }

@media (max-width: 767px) {
  .page-hero { padding: calc(96px + 32px) 20px 36px; }
}


/* ============================================================
   Free Pay Stub page
   ============================================================ */

/* ---- Page ---- */
.stub-page { max-width:1100px;margin:0 auto;padding:0 28px 80px; }

/* ---- Section cards ---- */
.stub-card { background:white;border-radius:16px;border:2px solid var(--gray-200);padding:32px 36px;margin-bottom:20px; }
.stub-card-title { font-size:15px;font-weight:800;color:var(--near-black);margin-bottom:22px;padding-bottom:14px;border-bottom:2px solid var(--gray-100); }

/* ---- Fields ---- */
.stub-field { display:flex;flex-direction:column;gap:6px; }
.stub-field label { font-size:14px;font-weight:600;color:var(--near-black); }
.stub-field input, .stub-field select {
  padding:11px 14px;border:2px solid var(--gray-200);border-radius:9px;
  font-size:15px;color:var(--near-black);font-family:inherit;outline:none;
  transition:border-color .15s;background:#fafafa;width:100%;
}
.stub-field input:focus, .stub-field select:focus { border-color:#9868d5;background:white; }

/* ---- Earnings/deductions column headers ---- */
.stub-col-header { border-bottom:2px solid var(--near-black); }
.stub-col-header span { font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--near-black); }

/* ---- Data rows ---- */
.stub-data-row { border-bottom:1px solid var(--gray-100);padding:4px 0; }

/* ---- Input style used in data rows ---- */
.stub-input {
  width:100%;padding:9px 12px;border:2px solid var(--gray-200);border-radius:8px;
  font-size:15px;font-family:inherit;outline:none;color:var(--near-black);
  background:#fafafa;transition:border-color .15s;
}
.stub-input:focus { border-color:#9868d5;background:white; }

/* ---- Deduction fixed label ---- */
.stub-ded-label { font-size:15px;font-weight:500;color:var(--near-black);display:block;padding:9px 0; }

/* ---- Total row ---- */
.stub-total-row { border-top:2px solid var(--near-black);margin-top:4px; }
.stub-total-row span { font-size:15px;font-weight:700;color:var(--near-black); }

/* ---- Upgrade strip ---- */
.stub-upgrade { background:linear-gradient(135deg,#1a1035 0%,#2d1f6b 100%);border-radius:16px;padding:28px 36px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:20px; }
.stub-upgrade h4 { color:white;font-size:18px;margin:0 0 4px; }
.stub-upgrade p { font-size:14px;color:rgba(255,255,255,.65);margin:0;line-height:1.6; }

/* ---- Actions bar ---- */
.stub-actions-bar { display:flex;gap:12px;flex-wrap:wrap;margin-bottom:40px; }

/* ---- Modal overlay ---- */
.stub-modal-overlay {
  display:none;position:fixed;inset:0;background:rgba(10,10,20,.6);z-index:2000;
  align-items:center;justify-content:center;padding:20px;
  backdrop-filter:blur(4px);
}
.stub-modal-overlay.open { display:flex; }

/* ---- Preview modal ---- */
.stub-preview-modal {
  background:var(--gray-50);border-radius:20px;width:100%;max-width:1060px;
  max-height:92vh;overflow-y:auto;padding:32px;position:relative;
}
.stub-preview-modal-close {
  position:absolute;top:16px;right:20px;background:white;border:none;
  border-radius:50%;width:36px;height:36px;font-size:18px;cursor:pointer;
  color:var(--gray-500);display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
}
.stub-preview-modal-close:hover { color:var(--near-black); }
.stub-preview-actions { display:flex;gap:10px;margin-top:20px;flex-wrap:wrap; }

/* ---- Email modal ---- */
.stub-email-modal { background:white;border-radius:20px;width:100%;max-width:460px;padding:36px; }
.stub-email-modal h3 { margin:0 0 8px; }
.stub-email-modal p { font-size:15px;color:var(--gray-500);margin-bottom:20px; }

/* ---- Pay stub document ---- */
.paystub { background:white;border-radius:8px;overflow:hidden;font-family:'DM Sans',sans-serif;border:1.5px solid #ddd; }
.paystub-header { background:white;padding:24px 28px;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;border-bottom:3px solid #111; }
.paystub-co-name { font-size:17px;font-weight:800;color:#111;margin-bottom:4px;letter-spacing:-.02em; }
.paystub-co-detail { font-size:13px;color:#555;line-height:1.6; }
.paystub-emp-name { font-size:15px;font-weight:700;color:#111;margin-bottom:4px;text-align:right; }
.paystub-emp-detail { font-size:12px;color:#888;text-align:right; }
.paystub-period { background:#f5f5f5;padding:12px 28px;display:flex;justify-content:space-between;border-bottom:1px solid #ddd;gap:16px; }
.paystub-period-item { font-size:11px;color:#888;font-weight:600;text-transform:uppercase;letter-spacing:.05em; }
.paystub-period-item strong { display:block;font-size:14px;font-weight:700;color:#111;text-transform:none;letter-spacing:0;margin-top:3px; }
.paystub-body { padding:20px 28px; }
.paystub-tables { display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:20px; }
@media(max-width:560px){ .paystub-tables { grid-template-columns:1fr; } }
.paystub-tbl { width:100%;border-collapse:collapse;font-size:13.5px; }
.paystub-tbl thead tr { border-bottom:2px solid #111; }
.paystub-tbl th { padding:8px 10px;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#111; }
.paystub-tbl th:not(:first-child) { text-align:right; }
.paystub-tbl td { padding:7px 10px;border-bottom:1px solid #eee;color:#333; }
.paystub-tbl td:not(:first-child) { text-align:right;color:#111;font-weight:600; }
.paystub-tbl tfoot td { border-top:2px solid #111;border-bottom:none;font-weight:700;color:#111;padding:9px 10px;background:white; }
.paystub-tbl tfoot td:not(:first-child) { text-align:right; }
.paystub-net { border:2px solid #111;border-radius:6px;padding:16px 20px;display:flex;justify-content:space-between;align-items:center; }
.paystub-net-label { font-size:12px;font-weight:700;color:#555;text-transform:uppercase;letter-spacing:.06em; }
.paystub-net-amount { font-size:26px;font-weight:800;color:#111;letter-spacing:-.03em; }
.paystub-footer { padding:12px 28px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #ddd; }
.paystub-footer-note { font-size:11px;color:#bbb; }
.paystub-footer-logo { font-size:11px;font-weight:700;color:#bbb;letter-spacing:.04em; }

/* ---- Mobile ---- */
@media(max-width:767px){
  .stub-page { padding-left:12px; padding-right:12px; }
  .stub-card { padding:16px 14px; }
  .stub-card-title { margin-bottom:12px; padding-bottom:10px; }
  .stub-card-title-row { margin-bottom:10px !important; }
  .stub-card > p { margin-bottom:10px; }
  .stub-field input, .stub-field select, .stub-input { font-size:16px; }
  .stub-actions-bar { flex-direction:column; }
  .stub-actions-bar .ds-btn { width:100%; justify-content:center; }
  .stub-preview-modal { padding:20px 16px; border-radius:14px; }
  .stub-preview-actions { flex-direction:column; }
  .stub-preview-actions .ds-btn { width:100%; justify-content:center; }
  .stub-upgrade { padding:22px 20px; }
}
