/* ==========================================================================
   Starburst Lending (starburstlending.org) - Modern Fintech Design System
   Optimized for 100/100 Lighthouse Performance, Accessibility, Best Practices & SEO
   ========================================================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f8fa;
  --bg-tertiary: #f1f5f9;
  --bg-accent-soft: #eff6ff;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-light: #94a3b8;
  
  --brand-primary: #1d4ed8;
  --brand-primary-hover: #1e40af;
  --brand-secondary: #03a4ec;
  --brand-accent: #0f766e;
  --brand-coral: #c83e3a;
  --brand-gold: #e06d2b;
  
  --border-light: #e2e8f0;
  --border-focus: #3b82f6;
  
  --gradient-hero: linear-gradient(135deg, #ffffff 0%, #f4f7fb 52%, #eef6ff 100%);
  --gradient-brand: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  --gradient-warm: linear-gradient(135deg, #c83e3a 0%, #d95d26 100%);
  --gradient-cta: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 22px 44px -10px rgba(29, 78, 216, 0.14);
  --shadow-button: 0 6px 16px 0 rgba(29, 78, 216, 0.28);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 9999px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  --container-max: 1200px;
  --container-narrow: 940px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--brand-primary-hover);
}

p a,
li a:not(.btn):not(.amount-pill) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--brand-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* Modern Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #261b5c;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(3, 164, 236, 0.28);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 6px 2px;
  position: relative;
  text-decoration: none !important;
}

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

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

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

.nav-toggle-input {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.975rem;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: center;
  white-space: nowrap;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff !important;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.36);
  filter: brightness(1.04);
}

.btn-warm {
  background: var(--gradient-warm);
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(200, 62, 58, 0.28);
}

.btn-warm:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(200, 62, 58, 0.38);
  filter: brightness(1.03);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-primary) !important;
  border-color: var(--border-light);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary) !important;
  background-color: var(--bg-accent-soft);
}

.btn-white {
  background-color: #ffffff;
  color: var(--brand-primary) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-white:hover {
  transform: translateY(-1px);
  background-color: #f8fafc;
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 15px 34px;
}

.btn-sm {
  font-size: 0.875rem;
  padding: 9px 20px;
}

.btn-block {
  width: 100%;
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  background-color: var(--bg-accent-soft);
  color: var(--brand-primary);
  border: 1px solid rgba(29, 78, 216, 0.15);
  margin-bottom: 16px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-accent);
}

/* 1. HERO SECTION */
.hero-section {
  background: var(--gradient-hero);
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.15rem, 3.8vw, 3.2rem);
  line-height: 1.18;
  margin-bottom: 18px;
  color: var(--text-primary);
  font-weight: 800;
}

.hero-content h1 .highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-advantages {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-advantages-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hero-advantages-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(3, 164, 236, 0.25);
}

.hero-right-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid #ffffff;
  background-color: #ffffff;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.hero-quick-form-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.quick-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.quick-form-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.quick-form-secure {
  font-size: 0.775rem;
  font-weight: 700;
  color: #065f46;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.amount-pills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.amount-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background-color: #f2f8ff;
  color: #1e40af;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.amount-pill:hover,
.amount-pill.featured {
  border-color: #d97706;
  background-color: #fffbeb;
  color: var(--text-primary);
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.18);
}

/* 2. ADVANTAGES BAR */
.advantages-bar {
  background-color: var(--bg-secondary);
  padding: 64px 0;
  border-bottom: 1px solid var(--border-light);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.advantage-cell {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.advantage-cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.advantage-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(39, 233, 222, 0.14) 0%, rgba(3, 164, 236, 0.16) 52%, rgba(37, 71, 168, 0.14) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--brand-primary);
}

.advantage-cell h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.advantage-cell p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 3. SECURITY & FEATURES SPLIT SECTION */
.security-section {
  padding: 84px 0;
  background-color: #ffffff;
}

.security-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.security-text h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  margin-bottom: 24px;
  color: var(--text-primary);
}

.security-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.security-checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.975rem;
}

.security-check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-warm);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.security-description {
  font-size: 0.975rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.security-illustration-card {
  background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 60%, #0369a1 100%);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.security-shield-graphic {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.security-illustration-card h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.security-illustration-card p {
  color: #e2e8f0;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.security-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.security-metric-box {
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 16px;
}

.security-metric-box strong {
  display: block;
  font-size: 1.25rem;
  color: #7dd3fc;
  margin-bottom: 2px;
}

.security-metric-box span {
  font-size: 0.8rem;
  color: #f1f5f9;
}

/* 4. ARTICLE & 5. HOW IT WORKS SECTION */
.how-it-works-section {
  background-color: var(--bg-secondary);
  padding: 76px 0 84px;
  border-bottom: 1px solid var(--border-light);
}

.how-header {
  margin-bottom: 44px;
}

.how-header h2 {
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.how-header p {
  font-size: 1.02rem;
  color: var(--text-secondary);
}

.how-blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.how-text-block {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.how-text-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.how-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-warm);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 6px 14px rgba(200, 62, 58, 0.25);
}

.how-block-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.how-block-body p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.section {
  padding: 84px 0;
}

.article-wrapper {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.article-content h2 {
  font-size: 1.75rem;
  margin: 36px 0 16px;
  color: var(--text-primary);
}

.article-content h2:first-of-type {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 26px 0 10px;
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 0.985rem;
}

.article-content ul,
.article-content ol {
  margin: 14px 0 22px 22px;
}

.article-content li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
  padding: 72px 0 84px;
}

.cta-banner {
  background: var(--gradient-cta);
  border-radius: var(--radius-xl);
  padding: 60px 44px;
  text-align: center;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  margin-bottom: 16px;
}

.cta-banner p {
  color: #e2e8f0;
  font-size: 1.075rem;
  max-width: 640px;
  margin: 0 auto 30px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Legal & Policy Pages Layout */
.page-hero {
  background: var(--gradient-hero);
  padding: 52px 0;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

.legal-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  margin: 48px 0 72px;
}

.legal-card h2 {
  font-size: 1.45rem;
  margin: 32px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  font-size: 1.15rem;
  margin: 22px 0 10px;
}

.legal-card p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.legal-card ul,
.legal-card ol {
  margin: 12px 0 20px 24px;
}

.legal-card li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.legal-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.9rem;
}

.legal-card td,
.legal-card th {
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  vertical-align: top;
}

.legal-card tr:nth-child(even) {
  background-color: var(--bg-secondary);
}

/* Apply Page Layout */
.apply-section {
  padding: 48px 0 80px;
  background: var(--bg-secondary);
}

.apply-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.apply-form-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  min-height: 460px;
}

.apply-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-box {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

.sidebar-box h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.check-badge {
  color: var(--brand-accent);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 56px 0 36px;
  font-size: 0.9rem;
}

.footer-top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-top-nav .brand-logo {
  color: #ffffff;
}

.footer-menu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  list-style: none;
}

.footer-menu-grid a {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none !important;
}

.footer-menu-grid a:hover {
  color: #38bdf8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-logo {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-brand p {
  color: #cbd5e1;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.875rem;
  text-decoration: none !important;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-disclosures {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.68;
}

.footer-disclosures p {
  margin-bottom: 12px;
}

.footer-disclosures p:last-child {
  margin-bottom: 0;
}

.footer-disclosures strong {
  color: #ffffff;
}

.footer-disclosures a {
  color: #7dd3fc !important;
  text-decoration: underline !important;
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #cbd5e1;
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .hero-grid,
  .security-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-blocks-grid {
    grid-template-columns: 1fr;
  }

  .apply-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .container-narrow {
    padding: 0 16px;
  }

  /* Balanced Mobile Navbar */
  .brand-logo {
    font-size: 1.02rem;
    gap: 8px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .brand-icon svg {
    width: 18px;
    height: 18px;
  }

  .nav-actions .btn-sm {
    padding: 7px 14px;
    font-size: 0.8125rem;
  }

  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
    padding: 6px;
  }

  .nav-actions {
    margin-left: auto;
    margin-right: 10px;
    order: 2;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 18px 20px;
    gap: 14px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    align-items: center;
    text-align: center;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 8px 0;
    font-size: 1rem;
  }

  .nav-toggle-input:checked ~ .nav-links {
    display: flex;
  }

  /* Symmetrical Mobile Hero Section */
  .hero-section {
    padding: 24px 0 44px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-right-panel {
    order: -1;
    gap: 16px;
  }

  .hero-content {
    order: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content .badge {
    font-size: 0.75rem;
    padding: 5px 12px;
    text-align: center;
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 1.85rem;
    line-height: 1.24;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
  }

  .hero-advantages {
    width: 100%;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    gap: 12px;
  }

  .hero-advantages-item {
    font-size: 0.9rem;
    line-height: 1.45;
    align-items: flex-start;
  }

  .hero-advantages-icon {
    width: 24px;
    height: 24px;
    margin-top: 2px;
  }

  .hero-quick-form-card {
    padding: 20px 16px;
  }

  .quick-form-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    margin-bottom: 14px;
  }

  .amount-pills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .amount-pill {
    padding: 11px 6px;
    font-size: 0.85rem;
  }

  /* Symmetrical 4-Column Advantages on Mobile */
  .advantages-bar {
    padding: 44px 0;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .advantage-cell {
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .advantage-icon-wrap {
    margin: 0 auto 14px;
  }

  /* Symmetrical Security Section on Mobile */
  .security-section {
    padding: 48px 0;
  }

  .security-grid {
    gap: 28px;
  }

  .security-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .security-checklist {
    width: 100%;
    text-align: left;
  }

  .security-checklist li {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .security-text .btn {
    width: 100%;
    max-width: 320px;
  }

  .security-illustration-card {
    padding: 28px 20px;
    text-align: center;
  }

  .security-shield-graphic {
    margin: 0 auto 18px;
  }

  .security-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .security-metric-box {
    padding: 14px 10px;
    text-align: center;
  }

  .security-metric-box strong {
    font-size: 1.05rem;
  }

  .security-metric-box span {
    font-size: 0.75rem;
  }

  /* Symmetrical Article & How It Works on Mobile */
  .section,
  .how-it-works-section {
    padding: 48px 0;
  }

  .article-wrapper,
  .legal-card,
  .apply-form-card {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }

  .article-content h2 {
    font-size: 1.4rem;
    text-align: center;
    margin: 28px 0 12px;
  }

  .how-header {
    text-align: center;
    margin-bottom: 28px;
  }

  .how-header h2 {
    font-size: 1.65rem;
  }

  .how-blocks-grid {
    gap: 16px;
  }

  .how-text-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    gap: 14px;
  }

  .how-icon-badge {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }

  /* Symmetrical CTA Banner & Footer on Mobile */
  .cta-section {
    padding: 44px 0 56px;
  }

  .cta-banner {
    padding: 36px 20px;
    border-radius: var(--radius-lg);
  }

  .cta-banner h2 {
    font-size: 1.55rem;
  }

  .cta-banner p {
    font-size: 0.95rem;
    margin-bottom: 22px;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .site-footer {
    padding: 40px 0 28px;
    text-align: center;
  }

  .footer-top-nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding-bottom: 24px;
  }

  .footer-menu-grid {
    justify-content: center;
    gap: 12px 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-disclosures {
    text-align: left;
    font-size: 0.775rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }

  /* Legal tables horizontal scroll on mobile */
  .legal-card {
    margin: 28px 0 48px;
    overflow-x: auto;
  }

  .legal-card table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
