/* ==========================================================================
   CPA Network Pro - Universal SEO & Guide Pages (Light & Dark)
   Enterprise International Standards (Stripe / Linear / Vercel Aesthetic)
   ========================================================================== */

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

:root {
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  
  /* Light Mode (Enterprise Clean) */
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --ink: #0f172a;
  --ink-body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-subtle: #f1f5f9;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --mint: #10b981;
  --mint-bg: #dcfce7;
  --badge-bg: #eff6ff;
  --badge-border: #bfdbfe;
  --badge-text: #1d4ed8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 20px 35px -5px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070a13;
    --bg-subtle: #0b0f19;
    --surface: #151c2c;
    --surface-hover: #1e293b;
    --ink: #f8fafc;
    --ink-body: #94a3b8;
    --muted: #64748b;
    --line: rgba(255, 255, 255, 0.08);
    --line-subtle: rgba(255, 255, 255, 0.05);
    --primary: #00f2fe;
    --primary-hover: #38bdf8;
    --primary-glow: rgba(0, 242, 254, 0.25);
    --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #3b82f6 100%);
    --mint: #34d399;
    --mint-bg: rgba(16, 185, 129, 0.15);
    --badge-bg: rgba(0, 242, 254, 0.1);
    --badge-border: rgba(0, 242, 254, 0.25);
    --badge-text: #38bdf8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.55);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(0, 242, 254, 0.15);
  }
}

[data-theme="light"], body.theme-light {
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --ink: #0f172a;
  --ink-body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-subtle: #f1f5f9;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --mint: #10b981;
  --mint-bg: #dcfce7;
  --badge-bg: #eff6ff;
  --badge-border: #bfdbfe;
  --badge-text: #1d4ed8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 20px 35px -5px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"], body.theme-dark {
  --bg: #070a13;
  --bg-subtle: #0b0f19;
  --surface: #151c2c;
  --surface-hover: #1e293b;
  --ink: #f8fafc;
  --ink-body: #94a3b8;
  --muted: #64748b;
  --line: rgba(255, 255, 255, 0.08);
  --line-subtle: rgba(255, 255, 255, 0.05);
  --primary: #00f2fe;
  --primary-hover: #38bdf8;
  --primary-glow: rgba(0, 242, 254, 0.25);
  --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #3b82f6 100%);
  --mint: #34d399;
  --mint-bg: rgba(16, 185, 129, 0.15);
  --badge-bg: rgba(0, 242, 254, 0.1);
  --badge-border: rgba(0, 242, 254, 0.25);
  --badge-text: #38bdf8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.55);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(0, 242, 254, 0.15);
}

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.03) 0%, transparent 40%);
  color: var(--ink-body);
  font-family: var(--font-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   STICKY NAVBAR
   -------------------------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(24px, calc((100vw - 1280px) / 2));
  background: rgba(var(--surface), 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.25s ease;
}

[data-theme="light"] .topbar,
body.theme-light .topbar {
  background: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] .topbar,
body.theme-dark .topbar {
  background: rgba(11, 15, 25, 0.88);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img:not(.site-brand-logo) {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 9px;
}

.site-brand-logo {
  height: 38px;
  max-height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  transition: transform 0.2s ease;
}

.site-brand-logo:hover {
  transform: translateY(-1px);
}

.site-logo-light {
  display: inline-block !important;
}

.site-logo-dark {
  display: none !important;
}

[data-theme="dark"] .site-logo-light,
body.theme-dark .site-logo-light {
  display: none !important;
}

[data-theme="dark"] .site-logo-dark,
body.theme-dark .site-logo-dark {
  display: inline-block !important;
}

@media (max-width: 600px) {
  .site-brand-logo {
    height: 32px;
    max-height: 32px;
    max-width: 170px;
  }
}

.brand span span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
  padding: 6px 4px;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-signin {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.btn-signin:hover {
  background: var(--surface-hover);
}

.btn-cta {
  background: var(--primary-gradient);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 20px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px var(--primary-glow);
  transition: all 0.2s ease;
}

.btn-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--primary-glow);
}

/* --------------------------------------------------------------------------
   PAGE SHELL & HERO
   -------------------------------------------------------------------------- */
.shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  flex: 1;
  padding-bottom: 80px;
}

.page-hero {
  padding: 64px 0 40px;
  max-width: 840px;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.page-badge i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
  color: var(--ink);
  margin: 0 0 18px;
}

.page-title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 32px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  color: var(--primary) !important;
}

/* --------------------------------------------------------------------------
   CONTENT GRIDS & CARDS
   -------------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 48px 0;
}

@media (max-width: 900px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--badge-border);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--badge-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

/* Process Steps */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

/* Callout Box */
.callout-box {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 36px 0;
}

.callout-box h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.callout-box p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Legal & Policy Layout */
.legal-body {
  max-width: 900px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-sm);
  margin: 40px 0;
}

.legal-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line-subtle);
}

.legal-section:first-child {
  padding-top: 0;
}

.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-section h2 span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--badge-bg);
  padding: 2px 10px;
  border-radius: 6px;
}

.legal-section p {
  color: var(--ink-body);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 14px;
}

.legal-section ul {
  margin: 0 0 16px 20px;
  padding: 0;
}

.legal-section li {
  color: var(--ink-body);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* FAQ Block */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 36px 0;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: var(--badge-border);
}

.faq-item h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.faq-item p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   ENTERPRISE FOOTER (MATCHING HOME PAGE)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 64px max(24px, calc((100vw - 1280px) / 2)) 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  color: var(--muted);
  margin-top: auto;
}

[data-theme="dark"] .site-footer,
body.theme-dark .site-footer {
  background: #0b0f19;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.site-footer-brand img:not(.site-brand-logo) {
  width: 32px;
  height: 32px;
}

.site-footer-brand span span {
  color: var(--primary);
}

.site-footer h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.site-footer a {
  display: block;
  color: var(--ink-body);
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--primary);
}

.site-footer p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 340px;
  margin: 0 0 16px;
}

.site-footer small {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .page-title {
    font-size: 2.2rem;
  }
  .legal-body {
    padding: 24px 20px;
  }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
