/* =============================================
   ELAVON-FUSEBOX.COM — Main Stylesheet
   Design: Split-panel, sidebar-focused layout
   ============================================= */

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

:root {
  --navy:    #0B1F4A;
  --blue:    #1A56DB;
  --blue-lt: #EBF3FF;
  --teal:    #0EA272;
  --teal-lt: #E6F7F0;
  --gray-1:  #F8FAFC;
  --gray-2:  #F1F5F9;
  --gray-3:  #E2E8F0;
  --gray-5:  #64748B;
  --gray-9:  #0F172A;
  --white:   #FFFFFF;
  --red:     #DC2626;
  --font:    'DM Sans', 'Inter', system-ui, sans-serif;
  --r-sm:    6px;
  --r-md:    12px;
  --r-lg:    20px;
  --shadow:  0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--gray-9); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ---- LAYOUT ---- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---- HEADER ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 32px; height: 64px; }
.site-logo img { height: 36px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link { padding: 8px 14px; border-radius: var(--r-sm); color: rgba(255,255,255,.75); font-size: 14px; font-weight: 500; transition: all .2s; }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.1); text-decoration: none; }
.header-cta { margin-left: 8px; padding: 9px 20px; background: var(--blue); color: var(--white); border-radius: var(--r-sm); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s; }
.header-cta:hover { background: #1447b8; text-decoration: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ---- HERO — split layout ---- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #122665 60%, #1a3a7a 100%); color: var(--white); padding: 80px 0 64px; overflow: hidden; }
.hero-grid { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 100px; padding: 6px 14px; font-size: 13px; font-weight: 500; margin-bottom: 24px; }
.hero-badge-dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -.5px; }
.hero h1 span { color: #60A5FA; }
.hero-desc { font-size: 17px; color: rgba(255,255,255,.8); margin-bottom: 36px; max-width: 520px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary { padding: 13px 28px; background: var(--blue); color: var(--white); border-radius: var(--r-sm); font-weight: 600; font-size: 15px; border: none; cursor: pointer; transition: all .2s; display: inline-block; }
.btn-primary:hover { background: #1447b8; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { padding: 13px 28px; background: rgba(255,255,255,.1); color: var(--white); border-radius: var(--r-sm); font-weight: 600; font-size: 15px; border: 1px solid rgba(255,255,255,.25); transition: all .2s; display: inline-block; }
.btn-ghost:hover { background: rgba(255,255,255,.18); text-decoration: none; }

/* Hero card — placeholder kept for potential reuse */
.hero-card { background: var(--white); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-lg); }

/* ---- ANNOUNCE BAR ---- */
.announce-bar { background: #0a1a3d; border-bottom: 1px solid rgba(255,255,255,.08); padding: 7px 0; font-size: 12px; color: rgba(255,255,255,.55); text-align: center; letter-spacing: .02em; font-weight: 400; }
.announce-bar strong { color: rgba(255,255,255,.8); font-weight: 600; }

/* ---- STATS BAR ---- */
.stats-bar { background: var(--gray-1); border-bottom: 1px solid var(--gray-3); padding: 24px 0; }
.stats-grid { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-item { text-align: center; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--gray-5); }

/* ---- SECTION COMMON ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-1); }
.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); margin-bottom: 12px; }
.section-title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: var(--navy); margin-bottom: 16px; line-height: 1.2; }
.section-desc { font-size: 16px; color: var(--gray-5); max-width: 560px; }
.section-header { margin-bottom: 48px; }

/* ---- FEATURES GRID — 3-col cards ---- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card { background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--r-lg); padding: 28px; transition: box-shadow .2s, transform .2s; }
.feat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feat-icon { width: 48px; height: 48px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat-icon svg { width: 24px; height: 24px; }
.feat-icon.blue { background: var(--blue-lt); color: var(--blue); }
.feat-icon.teal { background: var(--teal-lt); color: var(--teal); }
.feat-icon.purple { background: #F3EEFF; color: #7C3AED; }
.feat-icon.orange { background: #FFF3E6; color: #EA580C; }
.feat-icon.red { background: #FEE2E2; color: var(--red); }
.feat-icon.indigo { background: #EEF2FF; color: #4338CA; }
.feat-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feat-card p { font-size: 14px; color: var(--gray-5); line-height: 1.6; }

/* ---- HOW IT WORKS — horizontal steps ---- */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.steps-row::before { content: ''; position: absolute; top: 32px; left: calc(16.66% + 16px); right: calc(16.66% + 16px); height: 2px; background: var(--gray-3); z-index: 0; }
.step-block { text-align: center; padding: 0 24px; position: relative; z-index: 1; }
.step-num { width: 64px; height: 64px; background: var(--white); border: 2px solid var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--blue); margin: 0 auto 20px; }
.step-block h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step-block p { font-size: 14px; color: var(--gray-5); }

/* ---- SPLIT — image + content ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; }
.split-list { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.split-item { display: flex; gap: 12px; align-items: flex-start; }
.split-item-icon { width: 28px; height: 28px; background: var(--teal-lt); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.split-item-icon svg { width: 14px; height: 14px; color: var(--teal); }
.split-item h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.split-item p { font-size: 13px; color: var(--gray-5); }

/* ---- LOGIN PAGE — sidebar layout ---- */
.login-page { display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: start; }
.login-sidebar { position: sticky; top: 88px; }
.login-card { background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); }
.login-card h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.login-card-sub { font-size: 14px; color: var(--gray-5); margin-bottom: 24px; }
.login-main h1 { font-size: 32px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.login-main > p { font-size: 16px; color: var(--gray-5); margin-bottom: 40px; }

/* Process steps vertical */
.process-steps { display: flex; flex-direction: column; gap: 0; margin-bottom: 48px; }
.process-step { display: flex; gap: 20px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--gray-3); }
.process-step:last-child { border-bottom: none; }
.process-step-num { width: 36px; height: 36px; background: var(--blue); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.process-step h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.process-step p { font-size: 14px; color: var(--gray-5); }

/* FAQ accordion */
.faq-stack { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--gray-3); border-radius: var(--r-lg); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--gray-3); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; text-align: left; padding: 18px 24px; background: none; border: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--navy); font-family: var(--font); gap: 16px; }
.faq-q:hover { background: var(--gray-1); }
.faq-q-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--blue-lt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; color: var(--blue); font-weight: 700; transition: transform .2s; }
.faq-q.open .faq-q-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 24px 18px; font-size: 14px; color: var(--gray-5); line-height: 1.7; }
.faq-a.open { display: block; }

/* ---- SUPPORT PAGE ---- */
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.support-card { background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--r-lg); padding: 28px; }
.support-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.support-card h3 svg { width: 20px; height: 20px; color: var(--blue); }
.support-card ul { display: flex; flex-direction: column; gap: 8px; }
.support-card li { font-size: 14px; color: var(--gray-5); padding-left: 16px; position: relative; }
.support-card li::before { content: '→'; position: absolute; left: 0; color: var(--blue); font-size: 12px; }
.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.guide-card { background: var(--gray-1); border: 1px solid var(--gray-3); border-radius: var(--r-lg); padding: 24px; }
.guide-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.guide-card ol { list-style: decimal; padding-left: 18px; }
.guide-card li { font-size: 14px; color: var(--gray-5); margin-bottom: 6px; }

/* ---- FOOTER ---- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 56px 0 24px; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 64px; margin-bottom: 40px; }
.footer-brand img { height: 32px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.5); max-width: 300px; line-height: 1.6; }
.footer-nav-group { display: flex; gap: 48px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 12px; color: rgba(255,255,255,.35); }

/* ---- INNER PAGE HERO ---- */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #122665 100%); color: var(--white); padding: 56px 0; }
.page-hero h1 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,.75); max-width: 600px; }

/* ---- BREADCRUMB ---- */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--white); text-decoration: none; }
.breadcrumb-sep { opacity: .4; }

/* ---- UTILS ---- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }

/* ---- TL;DR STRIP ---- */
.tldr-strip { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1); padding: 9px 0; font-size: 13px; }
.tldr-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tldr-label { font-weight: 700; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .4px; font-size: 11px; flex-shrink: 0; }
.tldr-link { color: #60A5FA; font-weight: 500; transition: color .15s; }
.tldr-link:hover { color: var(--white); text-decoration: none; }
.tldr-sep { color: rgba(255,255,255,.25); }
.tldr-plain { color: rgba(255,255,255,.55); }

/* ---- HERO PORTAL MINI-CARDS (hero sidebar) ---- */
.hero-portal-cards { display: flex; flex-direction: column; gap: 12px; }
.portal-mini-card { background: var(--white); border-radius: var(--r-md); padding: 16px 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-lg); }
.portal-mini-icon { width: 40px; height: 40px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.portal-mini-icon.blue { background: var(--blue-lt); color: var(--blue); }
.portal-mini-icon.teal { background: var(--teal-lt); color: var(--teal); }
.portal-mini-icon.purple { background: #F3EEFF; color: #7C3AED; }
.portal-mini-icon svg { width: 20px; height: 20px; }
.portal-mini-info { flex: 1; min-width: 0; }
.portal-mini-name { font-size: 14px; font-weight: 700; color: var(--gray-9); line-height: 1.2; }
.portal-mini-url { font-size: 11px; color: var(--gray-5); margin-top: 1px; }
.portal-mini-desc { font-size: 11px; color: var(--gray-5); }
.portal-mini-btn { padding: 7px 14px; background: var(--blue); color: var(--white); border-radius: var(--r-sm); font-size: 13px; font-weight: 600; white-space: nowrap; flex-shrink: 0; transition: background .2s; }
.portal-mini-btn:hover { background: #1447b8; text-decoration: none; }

/* ---- LOGIN PORTAL CARDS (3-col) ---- */
.login-cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.login-portal-card { background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.login-portal-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.login-portal-header { padding: 20px 24px; display: flex; align-items: center; gap: 14px; }
.login-portal-header.blue { background: var(--blue); }
.login-portal-header.teal { background: var(--teal); }
.login-portal-header.purple { background: #7C3AED; }
.login-portal-icon { width: 40px; height: 40px; background: rgba(255,255,255,.2); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.login-portal-icon svg { width: 20px; height: 20px; color: var(--white); }
.login-portal-header h3 { font-size: 18px; font-weight: 800; color: var(--white); }
.login-portal-body { padding: 20px 24px; }
.login-portal-url { font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 12px; font-family: monospace; background: var(--blue-lt); padding: 4px 8px; border-radius: 4px; display: inline-block; }
.login-portal-body p { font-size: 14px; color: var(--gray-5); margin-bottom: 16px; line-height: 1.6; }
.login-portal-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.login-portal-list li { font-size: 13px; color: var(--gray-5); padding-left: 16px; position: relative; }
.login-portal-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-size: 12px; font-weight: 700; }
.login-portal-cta { display: block; text-align: center; width: 100%; padding: 11px 16px; font-size: 14px; }

/* ---- LOGIN BOX (sidebar inline strip — NOT cta-stripe) ---- */
.login-box { background: var(--white); border: 1px solid var(--gray-3); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow); }
.login-box-header { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.login-box-header svg { color: var(--blue); flex-shrink: 0; }
.login-box-desc { font-size: 13px; color: var(--gray-5); margin-bottom: 14px; line-height: 1.5; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero-portal-cards { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-img { order: -1; }
  .login-page { grid-template-columns: 1fr; }
  .login-sidebar { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .login-cards-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 16px 24px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .site-header { position: relative; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; gap: 32px; }
  .steps-row::before { display: none; }
  .support-grid, .guides-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav-group { gap: 24px; flex-wrap: wrap; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
  .tldr-strip .wrap { flex-direction: column; align-items: flex-start; gap: 4px; }
  .tldr-sep { display: none; }
}
