/* ==========================================================================
   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;
}

/* Mobile Navigation Hamburger Toggle Button */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  z-index: 1002;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.mobile-nav-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.mobile-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer Backdrop */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: 68px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.mobile-nav-open .mobile-nav-backdrop {
  display: block;
  opacity: 1;
}

/* Mobile Nav Drawer CTA group */
.mobile-nav-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.mobile-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
}

.mobile-nav-btn.ghost {
  background: var(--surface-hover);
  border: 1px solid var(--line);
  color: var(--ink);
}

.mobile-nav-btn.primary {
  background: var(--primary-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.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;
}

/* ==========================================================================
   14. COMPREHENSIVE 4-DEVICE RESPONSIVE SYSTEM (SEO PAGES)
   Device 1: Mobile (< 600px)
   Device 2: Tablet (600px - 1024px)
   Device 3: Laptop & Standard Desktop (1025px - 1440px)
   Device 4: Large Desktop & 4K (> 1440px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   DEVICE 4: LARGE DESKTOP & 4K (> 1440px)
   -------------------------------------------------------------------------- */
@media (min-width: 1441px) {
  .shell {
    max-width: 1360px;
    margin: 0 auto;
  }
  .page-title {
    font-size: clamp(3.2rem, 4vw, 4rem);
  }
  .site-footer {
    padding: 72px max(40px, calc((100vw - 1360px) / 2)) 48px;
    gap: 48px;
  }
}

/* --------------------------------------------------------------------------
   DEVICE 3: LAPTOP & STANDARD DESKTOP (1025px - 1440px)
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) and (max-width: 1440px) {
  .shell {
    max-width: 1200px;
    margin: 0 auto;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   DEVICE 2: TABLET (600px - 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 48px 24px 32px;
  }
}

/* Tablet & Mobile Navigation Trigger (< 992px) */
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: flex !important;
  }
  .topbar {
    padding: 0 20px;
    height: 70px;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s;
  }
  [data-theme="dark"] .nav-links,
  body.theme-dark .nav-links {
    background: #0d1322;
    border-color: rgba(255, 255, 255, 0.08);
  }
  body.mobile-nav-open .nav-links,
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    font-size: 1.02rem;
    font-weight: 600;
    border-radius: 12px;
    background: var(--surface-hover);
    border: 1px solid var(--line-subtle);
    color: var(--ink);
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: var(--primary-gradient);
    color: #ffffff !important;
    border-color: var(--primary);
  }
  .nav-links a.active::after {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   DEVICE 1: MOBILE PHONE (< 600px)
   -------------------------------------------------------------------------- */
@media (max-width: 599px) {
  .topbar {
    padding: 0 14px;
    height: 64px;
  }
  .mobile-nav-backdrop {
    top: 64px;
  }
  .nav-links {
    top: 64px;
    padding: 16px 16px 24px;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
  }
  .site-brand-logo {
    height: 30px;
    max-height: 30px;
    max-width: 145px;
  }
  .nav-actions .btn-signin {
    display: none;
  }
  .nav-actions .btn-cta {
    padding: 7px 14px;
    font-size: 0.82rem;
  }
  .theme-toggle {
    padding: 7px 10px;
    font-size: 0.78rem;
  }
  .theme-toggle span:last-child {
    display: none;
  }
  .shell {
    width: 100%;
    padding: 0 14px 40px;
  }
  .page-hero {
    padding: 32px 0 24px;
  }
  .page-badge {
    padding: 5px 12px;
    margin-bottom: 16px;
    font-size: 0.74rem;
  }
  .page-title {
    font-size: clamp(1.85rem, 7.8vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
  }
  .page-lead {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .page-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .page-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 13px 20px;
    font-size: 0.98rem;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feature-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .legal-body {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .legal-section h2 {
    font-size: 1.3rem;
  }
  .faq-item {
    padding: 18px 16px;
    border-radius: 14px;
  }
  .faq-item h4 {
    font-size: 1.05rem;
  }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 16px 28px;
  }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
  .topbar {
    padding: 0 10px;
  }
  .site-brand-logo {
    max-width: 125px;
    height: 28px;
  }
}
