/* ============================================================
   BizLedger — Front pages design system (landing, login)
   BizLedger UI. Navy #081A33 primary, orange #FF7A00 accent.
   Light-first, 8px grid, 6–10px radii, hairline shadows, Inter.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --primary: #081A33;
  --primary-soft: #EAF0F8;
  --accent: #FF7A00;
  --accent-strong: #E85D00;
  --accent-ink: #C2410C;          /* links/icons on light bg (AA) */
  --accent-soft: #FFF1E6;
  --accent-ring: rgba(255,122,0,.15);

  --bg: #F8FAFC;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --text: #111827;
  --muted: #6B7280;
  --danger: #DC2626;
  --danger-soft: #FEF2F2;

  --blue-soft: #EFF6FF;
  --blue-ink: #2563EB;
  --gray-soft: #F3F4F6;
  --gray-ink: #4B5563;

  --nav-bg: #FFFFFF;
  --footer-bg: #081A33;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow-md: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- 1b. Dark theme (front pages only) ---------- */
html[data-theme="dark"] {
  --primary: #0E2A52;
  --primary-soft: #12233E;
  --accent-ink: #FB923C;
  --accent-soft: rgba(255,122,0,.14);
  --accent-ring: rgba(255,122,0,.25);

  --bg: #0B1220;
  --card: #131C2E;
  --border: #1D2740;
  --text: #E5E7EB;
  --muted: #94A3B8;
  --danger-soft: rgba(220,38,38,.15);

  --blue-soft: rgba(37,99,235,.16);
  --blue-ink: #60A5FA;
  --gray-soft: rgba(148,163,184,.12);
  --gray-ink: #CBD5E1;

  --nav-bg: #0B1220;
  --footer-bg: #070C17;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 1px 3px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.3);
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.landing-page { display: block; min-height: 100vh; overflow: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
p { margin: 0; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: inline-block; vertical-align: middle; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- 3. Buttons ---------- */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius); font-family: var(--font);
  font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; margin: 0;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--primary); font-weight: 700; }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--primary); }
.btn-secondary { background: var(--card); border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* ---------- 4. Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.chip::before { content: '✓'; color: var(--accent-ink); font-weight: 700; }

/* ---------- 5. Nav (full width) ---------- */
.front-nav {
  position: sticky; top: 0; z-index: 50; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px;
  background: var(--nav-bg); border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-wordmark { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--text); }
.brand-wordmark em { font-style: normal; color: var(--accent); }
.front-nav-links { display: flex; align-items: center; gap: 28px; }
.front-nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.front-nav-links a:hover { color: var(--text); }
.front-nav-right { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; margin: 0; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
  cursor: pointer; transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--accent-ink); border-color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: inline-block; }

/* ---------- 5b. Accent color picker ---------- */
.accent-trigger {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; margin: 0; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card); color: var(--accent);
  box-shadow: var(--shadow-md); cursor: pointer;
  transition: transform .15s ease, color .15s ease;
}
.accent-trigger:hover { transform: translateY(-2px); }
.accent-panel {
  position: fixed; right: 20px; bottom: 74px; z-index: 60;
  display: none; padding: 16px;
  border-radius: var(--radius-lg); background: var(--card);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.accent-panel.open { display: block; }
.accent-panel h4 {
  margin: 0 0 12px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--text); }
.swatch-orange { background: #FF7A00; }
.swatch-blue { background: #3B82F6; }
.swatch-green { background: #10B981; }
.swatch-purple { background: #8B5CF6; }
.swatch-red { background: #EF4444; }

/* ---------- 6. Hero (AIAZH-style gradient, compact) ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding: 72px 0 56px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 50%, #7C3AED 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero::after {
  content: ''; position: absolute; top: -45%; right: -10%;
  width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-size: 13px; font-weight: 600;
}
.hero h1 {
  max-width: 760px; margin: 0 auto 16px;
  font-size: 44px; line-height: 1.12; letter-spacing: -0.025em; color: #fff;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #FDE68A, #F59E0B);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  max-width: 600px; margin: 0 auto 32px;
  font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.92);
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; border-color: #fff; color: var(--primary); }
.hero .btn-primary:hover { background: #FFEDDB; border-color: #FFEDDB; color: var(--primary); }
.hero .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.22); border-color: #fff; color: #fff; }
.hero-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.hero .chip { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; }
.hero .chip::before { color: #fff; }

/* ---------- 7. Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin: 0 auto 56px; text-align: center; }
.section-eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink);
}
.section-title { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; }
.section-sub { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- 8. Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); border-color: #CBD5E1; }
html[data-theme="dark"] .feature-card:hover { border-color: #2A3A5C; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 18px;
  border-radius: var(--radius); background: var(--gray-soft); color: var(--gray-ink);
}
.feature-icon.icon-accent { background: var(--accent-soft); color: var(--accent-ink); }
.feature-icon.icon-blue { background: var(--blue-soft); color: var(--blue-ink); }
.feature-card h3 { margin-bottom: 8px; font-size: 17px; }
.feature-card p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- 9. Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column; padding: 32px 28px;
  border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.plan-card.featured { border: 2px solid var(--accent); }
.plan-ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--accent); color: var(--primary);
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.plan-card h3 { font-size: 18px; margin-bottom: 8px; }
.plan-desc { font-size: 13px; line-height: 1.5; color: var(--muted); margin-bottom: 24px; }
.plan-price { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin-bottom: 24px; }
.plan-price span { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-limits { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.plan-limits li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.plan-limits li:last-child { border-bottom: none; }
.plan-limits svg { flex-shrink: 0; margin-top: 3px; color: var(--accent-ink); }
.plan-btn { width: 100%; }
.plan-card.featured .plan-btn { background: var(--accent); border-color: var(--accent); color: var(--primary); font-weight: 700; }
.plan-card.featured .plan-btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--primary); }

/* ---------- 9c. Service plan — single centered card ---------- */
.service-card-wrap { max-width: 440px; margin: 0 auto 12px; }
.service-card-wrap .plan-card { height: 100%; }

/* ---------- 9b. Pricing — everything included ---------- */
.plan-checks-label {
  margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.plan-checks { list-style: none; margin: 0 0 28px; padding: 16px 0 0; border-top: 1px solid var(--border); }
.plan-checks li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--text); }
.plan-checks svg { flex-shrink: 0; margin-top: 3px; color: var(--accent-ink); }
.pricing-note {
  margin: 28px auto 0; text-align: center;
  font-size: 15px; line-height: 1.6; color: var(--muted);
}

/* ---------- 9c. Benefits ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.benefit-card {
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.benefit-card:hover { box-shadow: var(--shadow-md); border-color: #CBD5E1; }
html[data-theme="dark"] .benefit-card:hover { border-color: #2A3A5C; }
.benefit-card .feature-icon { margin-bottom: 16px; }
.benefit-card h3 { font-size: 16px; margin-bottom: 8px; }
.benefit-card p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- 9d. Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.testimonial-card {
  display: flex; flex-direction: column; gap: 18px; padding: 28px;
  border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.testimonial-card .quote { font-size: 15px; line-height: 1.7; color: var(--text); }
.testimonial-card .quote::before { content: '“'; color: var(--accent); font-weight: 800; font-size: 22px; line-height: 0; margin-right: 2px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 13px; font-weight: 700; letter-spacing: .03em;
  line-height: 1; white-space: nowrap;
}
.testimonial-author strong { display: block; font-size: 14px; color: var(--text); }
.testimonial-author span:not(.testimonial-avatar) { display: block; font-size: 12px; color: var(--muted); }

/* ---------- 9e. Trusted-by marquee ---------- */
.section-compact { padding: 64px 0; }
.section-eyebrow.centered { display: block; text-align: center; }
.trust-marquee { position: relative; overflow: hidden; }
.trust-marquee::before,
.trust-marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1;
  pointer-events: none;
}
.trust-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.trust-marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.trust-track {
  display: flex; align-items: center; gap: 48px; width: max-content;
  animation: trust-scroll 30s linear infinite;
}
.trust-marquee:hover .trust-track { animation-play-state: paused; }
.trust-item {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .02em;
  white-space: nowrap; transition: color .15s ease;
}
.trust-item svg { flex-shrink: 0; color: var(--accent-ink); opacity: .7; }
.trust-item:hover { color: var(--text); }
@keyframes trust-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 12px 40px; }
  .trust-marquee::before, .trust-marquee::after { display: none; }
}

/* ---------- 10. CTA band ---------- */
.cta-band { padding: 96px 0; background: var(--bg); text-align: center; }
.cta-band h2 { max-width: 640px; margin: 0 auto 16px; font-size: 30px; }
.cta-band p { max-width: 520px; margin: 0 auto 32px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- 11. Footer ---------- */
.front-footer { background: var(--footer-bg); color: #B6BEC9; padding: 64px 0 32px; }
.front-footer .brand-wordmark { color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer-tagline { font-size: 13px; line-height: 1.7; color: #8B93A3; max-width: 320px; margin-top: 16px; }
.footer-col h4 {
  margin-bottom: 16px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #F8FAFC;
}
.footer-col a { display: block; padding: 5px 0; font-size: 13px; color: #B6BEC9; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #8B93A3;
}

/* ---------- 12. Login ---------- */
body.login-body {
  display: flex; flex-direction: column; min-height: 100vh;
  background: var(--bg); color: var(--text);
}
.login-shell { flex: 1 1 auto; min-height: 0; display: flex; }

.login-brand-panel {
  position: relative; overflow: hidden;
  flex: 1 1 46%; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 56px 56px; color: rgba(255,255,255,.92);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 50%, #7C3AED 100%);
}
.login-brand-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.login-brand-panel::after {
  content: ''; position: absolute; top: -45%; right: -10%;
  width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
}
.login-brand-panel > h1,
.login-brand-panel > p,
.login-brand-panel > ul { position: relative; z-index: 1; }
.login-brand-panel h1 { color: #FFFFFF; font-size: 30px; margin-bottom: 14px; }
.login-brand-panel h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #FDE68A, #F59E0B);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.login-brand-tagline { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.85); max-width: 420px; margin-bottom: 40px; }
.login-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.login-features li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: rgba(255,255,255,.92); }
.login-features svg { flex-shrink: 0; margin-top: 2px; color: #FDE68A; }

.login-form-panel {
  flex: 1 1 54%; min-width: 0; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; background: var(--bg); overflow-y: auto;
}
.login-card {
  width: 100%; max-width: 400px; padding: 40px;
  border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.login-card .brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.login-card .brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--text); }
.login-card .brand-name em { font-style: normal; color: var(--accent); }
.login-card h1 { font-size: 24px; margin-bottom: 6px; }
.login-card .login-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 16px 0 6px; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: 14px; color: var(--text); background: var(--card);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring);
}
.login-card .btn-block { margin-top: 24px; }
.login-help { margin-top: 20px; font-size: 12px; color: var(--muted); text-align: center; }

.alert-error {
  padding: 11px 14px; margin-bottom: 20px; border-radius: var(--radius);
  background: var(--danger-soft); border: 1px solid rgba(220,38,38,.25);
  color: var(--danger); font-size: 14px;
}

/* ---------- 12b. Hero split + CSS dashboard mockup ---------- */
.hero-split {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  text-align: left;
}
.hero-split .hero-copy .hero-eyebrow { margin-bottom: 20px; }
.hero-split .hero-copy h1 { margin: 0 0 16px; max-width: 560px; }
.hero-split .hero-copy .hero-sub { margin: 0 0 32px; max-width: 520px; }
.hero-split .hero-copy .hero-ctas { justify-content: flex-start; }
.hero-split .hero-copy .hero-trust { justify-content: flex-start; margin-top: 32px; }

.hero-visual { position: relative; }
.mockup {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--card); border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  transform-origin: right center; transition: transform .4s ease;
}
.hero-visual:hover .mockup { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.mockup-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: #0E2A52; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mockup-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.28); }
.mockup-bar .dot.r { background: #FF5F57; } .mockup-bar .dot.y { background: #FEBC2E; } .mockup-bar .dot.g { background: #28C840; }
.mockup-bar .mockup-title { margin-left: 10px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); }
.mockup-body { padding: 18px; color: #111827; text-align: left; }
.mockup-body .m-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mockup-body .m-head h4 { font-size: 15px; font-weight: 700; color: #0E2A52; }
.mockup-body .m-head span { font-size: 11px; color: #6B7280; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { padding: 12px; border-radius: 10px; background: #F3F6FB; border: 1px solid #E5E7EB; }
.kpi .kpi-val { font-size: 18px; font-weight: 800; color: #081A33; letter-spacing: -.02em; }
.kpi .kpi-label { font-size: 10.5px; color: #6B7280; margin-top: 2px; }
.kpi.accent { background: var(--accent-soft); border-color: rgba(255,122,0,.25); }
.kpi.accent .kpi-val { color: var(--accent-ink); }
.mockup-chart { background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; padding: 12px 8px 4px; margin-bottom: 14px; }
.mockup-list { display: flex; flex-direction: column; gap: 8px; }
.mockup-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-radius: 9px; background: #F8FAFC; border: 1px solid #EEF1F5; }
.mockup-row .m-name { font-size: 12px; font-weight: 600; color: #111827; }
.mockup-row .m-sub { font-size: 10.5px; color: #6B7280; }
.mockup-row .m-amt { font-size: 12.5px; font-weight: 700; color: #081A33; }
.mockup-row .m-tag { font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #E7F6EE; color: #047857; }

/* ---------- 12c. Stats strip ---------- */
.stats-strip { background: var(--primary); color: #fff; padding: 44px 0; }
.stats-strip .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat-num { font-size: 38px; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(90deg, #fff, #FFD9B0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.stat-label { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.72); }

/* ---------- 12d. How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 16px;
  border-radius: 50%; background: var(--accent); color: var(--primary); font-weight: 800; font-size: 16px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.step::after { content: ''; position: absolute; top: 47px; right: -14px; width: 24px; height: 2px; background: var(--border); }
.step:last-child::after { display: none; }

/* ---------- 12e. Integrations ---------- */
.integrations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.integration-card {
  display: flex; align-items: center; gap: 14px; padding: 20px;
  border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.integration-card:hover { box-shadow: var(--shadow-md); border-color: #CBD5E1; transform: translateY(-2px); }
html[data-theme="dark"] .integration-card:hover { border-color: #2A3A5C; }
.integration-logo {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: 15px;
}
.integration-card h3 { font-size: 15px; margin-bottom: 2px; }
.integration-card p { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ---------- 12f. Security & compliance ---------- */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.security-card { padding: 26px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, border-color .15s ease; }
.security-card:hover { box-shadow: var(--shadow-md); border-color: #CBD5E1; }
html[data-theme="dark"] .security-card:hover { border-color: #2A3A5C; }
.security-card .feature-icon { margin-bottom: 16px; }
.security-card h3 { font-size: 16px; margin-bottom: 8px; }
.security-card p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.compliance-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.compliance-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 600;
}
.compliance-badge svg { color: var(--accent-ink); }

/* ---------- 12g. FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-size: 15px; font-weight: 600; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon { flex-shrink: 0; transition: transform .2s ease; color: var(--accent-ink); }
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.faq-item .faq-a a { color: var(--accent-ink); }

/* ---------- 12h. Demo modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(8,26,51,.55); padding: 20px; backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }
.modal-dialog {
  width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 28px;
}
.modal-dialog h3 { font-size: 20px; margin-bottom: 6px; }
.modal-dialog .modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.modal-dialog .field { margin-bottom: 14px; }
.modal-dialog label { margin: 0 0 6px; }
.modal-dialog .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.modal-close {
  position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border: none; background: transparent;
  color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; border-radius: var(--radius);
}
.modal-close:hover { color: var(--text); background: var(--gray-soft); }
.modal-status { margin-top: 14px; font-size: 13px; min-height: 18px; }
.modal-status.ok { color: #047857; } .modal-status.err { color: var(--danger); }

/* ---------- 12i. Footer (richer) ---------- */
.front-footer { background: var(--footer-bg); color: #B6BEC9; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-tagline { font-size: 13px; line-height: 1.7; color: #8B93A3; max-width: 320px; margin-top: 16px; }
.footer-col h4 {
  margin-bottom: 16px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #F8FAFC;
}
.footer-col a { display: block; padding: 5px 0; font-size: 13px; color: #B6BEC9; }
.footer-col a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 13px; color: #8B93A3; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; color: #B6BEC9; padding: 0; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #8B93A3;
}
.footer-bottom .footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .footer-legal a { color: #8B93A3; }
.footer-bottom .footer-legal a:hover { color: var(--accent); }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1100px) {
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .integrations-grid { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .hero-split .hero-copy { text-align: center; }
  .hero-split .hero-copy h1, .hero-split .hero-copy .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-split .hero-copy .hero-ctas, .hero-split .hero-copy .hero-trust { justify-content: center; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .mockup { transform: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .security-grid { grid-template-columns: 1fr; }
  .stats-strip .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .login-brand-panel { display: none; }
  .login-form-panel { flex: 1 1 100%; }
}
@media (max-width: 700px) {
  .front-nav { padding: 12px 16px; }
  .front-nav-links { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-compact { padding: 48px 0; }
  .section-title { font-size: 26px; }
  .features-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: 1fr; }
  .trust-track { gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .login-card { padding: 28px 22px; }
}
