/* ============================================================
   Find-Money.com  — Public Marketing Site CSS
   ============================================================ */

:root {
  --navy:         #0B1F4D;
  --navy-light:   #1a3266;
  --blue:         #4F6EF7;
  --blue-light:   #6B84F9;
  --blue-dark:    #3B58E5;
  --blue-bg:      #EEF2FF;
  --blue-border:  #C7D2FE;
  --green:        #22C55E;
  --green-light:  #4ADE80;
  --green-bg:     #DCFCE7;
  --green-border: #BBF7D0;
  --green-text:   #15803D;
  --red:          #EF4444;
  --red-bg:       #FEE2E2;
  --red-border:   #FECACA;
  --red-text:     #B91C1C;
  --gold:         #F59E0B;
  --gold-bg:      #FEF3C7;
  --gold-border:  #FDE68A;
  --gold-text:    #92400E;
  --purple:       #8B5CF6;
  --purple-bg:    #EDE9FE;
  --purple-border:#DDD6FE;
  --bg:           #F4F6F8;
  --card:         #FFFFFF;
  --text:         #1F2937;
  --text-muted:   #6B7280;
  --border:       #E5E7EB;
  --border-light: #F3F4F6;
  --shadow-sm:    0 1px 3px rgba(11,31,77,.07);
  --shadow-md:    0 4px 20px rgba(11,31,77,.09);
  --shadow-lg:    0 12px 48px rgba(11,31,77,.13);
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body.public-page {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ──────────────────────────────────────────────── */
.pub-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.pub-container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ── Navigation ──────────────────────────────────────────── */
.pub-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .25s, box-shadow .25s;
}
.pub-nav .pub-logo-img { width: 40px; height: 40px; }
.pub-nav-actions .btn-ghost, .pub-nav-actions .btn-primary-sm { white-space: nowrap; }
.pub-nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 12px;
}
.pub-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.pub-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
}
.pub-logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.3px;
}
.pub-logo-text span { color: var(--blue); }

.pub-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 32px;
  list-style: none;
}
.pub-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.pub-nav-links a:hover, .pub-nav-links a.active {
  color: var(--navy);
  background: var(--border-light);
}
.pub-nav-links a i {
  font-size: 13px;
  flex-shrink: 0;
  transition: transform .15s;
}
.pub-nav-links a:hover i {
  transform: translateY(-1px);
}

.pub-nav-spacer { flex: 1; }

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  border: none; background: transparent; cursor: pointer;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.btn-ghost i { font-size: 13px; flex-shrink: 0; transition: transform .15s; }
.btn-ghost:hover { color: var(--navy); background: var(--border-light); text-decoration: none; }
.btn-ghost:hover i { transform: translateY(-1px); }

.btn-primary-sm {
  font-size: 14px; font-weight: 600;
  background: var(--blue);
  color: #fff;
  padding: 9px 20px;
  border-radius: 9px;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .1s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary-sm:hover { background: var(--blue-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, var(--navy) 0%, #1b3a7a 55%, #0f2b5e 100%);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(79,110,247,.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(34,197,94,.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,110,247,.2);
  border: 1px solid rgba(79,110,247,.35);
  color: #93AAFD;
  font-size: 12px; font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--green-light); font-style: normal; }
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 40px;
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green);
  color: #fff;
  font-size: 16px; font-weight: 700;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(34,197,94,.35);
}
.btn-hero-primary:hover {
  background: var(--green-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34,197,94,.45);
  text-decoration: none;
}
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px; font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn-hero-secondary:hover {
  background: var(--blue-bg);
  border-color: var(--blue-border);
  color: var(--text);
  text-decoration: none;
}
.trust-badges {
  display: flex; flex-wrap: wrap; gap: 20px;
}
.trust-badge {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
}
.trust-badge i { color: var(--green-light); }

/* Dashboard preview mockup */
.hero-mockup {
  position: relative;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,.4));
}
.mockup-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(8px);
}
.mockup-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.mockup-title { color: rgba(255,255,255,.9); font-size: 15px; font-weight: 600; }
.mockup-badge {
  background: rgba(34,197,94,.2);
  color: var(--green-light);
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 100px;
}
.mockup-score-row {
  display: flex; align-items: center; gap: 20px; margin-bottom: 24px;
}
.score-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0% 75%, rgba(255,255,255,.1) 75% 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.score-ring::before {
  content: '';
  position: absolute;
  width: 62px; height: 62px;
  background: #1a3266;
  border-radius: 50%;
}
.score-ring-val {
  position: relative; z-index: 1;
  color: #fff; font-size: 22px; font-weight: 800;
}
.score-label { color: rgba(255,255,255,.7); font-size: 13px; }
.score-label strong { color: #fff; display: block; font-size: 15px; }
.mockup-metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px;
}
.metric-card {
  background: rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.metric-label { color: rgba(255,255,255,.5); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.metric-val { color: #fff; font-size: 20px; font-weight: 700; }
.metric-val.up { color: var(--green-light); }
.metric-val.alert { color: #FB923C; }
.mockup-chat {
  background: rgba(79,110,247,.15);
  border-left: 3px solid var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 14px;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  line-height: 1.5;
}
.mockup-chat strong { color: #93AAFD; }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--card); }
.section-dark { background: var(--bg); }

.section-label {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--blue);
  font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-label i { font-size: 11px; }

.section-head {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -.4px;
  margin-bottom: 16px;
}
.section-head.light { color: #fff; }
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 580px;
}
.section-sub.light { color: rgba(255,255,255,.7); }
.section-intro { margin-bottom: 56px; }

/* ── Feature Cards ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.icon-blue  { background: rgba(79,110,247,.1); color: var(--blue); }
.icon-green { background: rgba(34,197,94,.1); color: var(--green); }
.icon-gold  { background: rgba(245,181,68,.1); color: var(--gold); }
.icon-navy  { background: rgba(11,31,77,.08); color: var(--navy); }
.icon-teal  { background: rgba(20,184,166,.1); color: #14B8A6; }
.icon-purple{ background: rgba(139,92,246,.1); color: #8B5CF6; }

.feature-card h3 {
  font-size: 17px; font-weight: 700; color: var(--navy);
  margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── How It Works ────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; }
.step-num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 800;
  margin: 0 auto 20px;
}
.step h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 780px; margin: 0 auto; }
.pricing-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  position: relative;
}
.pricing-card.highlighted {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(79,110,247,.08);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 16px; border-radius: 100px;
  white-space: nowrap;
}
.pricing-plan { font-size: 14px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.pricing-price {
  font-size: 48px; font-weight: 800; color: var(--navy); line-height: 1;
  margin-bottom: 4px;
}
.pricing-price sup { font-size: 22px; vertical-align: super; }
.pricing-period { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text);
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--green); margin-top: 2px; flex-shrink: 0; }

.btn-pricing {
  display: block; text-align: center;
  background: var(--blue);
  color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn-pricing:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.btn-pricing-outline {
  display: block; text-align: center;
  background: transparent;
  color: var(--blue);
  font-size: 15px; font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 2px solid var(--blue);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-pricing-outline:hover {
  background: var(--blue);
  color: #fff;
  text-decoration: none;
}

/* ── Find cards (home page value props) ──────────────────── */
.find-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.find-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.find-card i { font-size: 28px; color: var(--green-light); margin-bottom: 14px; }
.find-card h3 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.find-card p { color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.55; }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(24px,3vw,36px); font-weight: 800; color: var(--text); margin-bottom: 14px; }
.cta-banner p { color: var(--text-muted); font-size: 16px; max-width: 500px; margin: 0 auto 32px; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
details.faq-item summary {
  font-size: 15px; font-weight: 600; color: var(--navy);
  padding: 20px 24px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  list-style: none;
  user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '\f067';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .2s;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 20px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ── Support form ─────────────────────────────────────────── */
.support-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.pub-form label {
  display: block; font-size: 13px; font-weight: 600; color: var(--navy);
  margin-bottom: 6px;
}
.pub-form input,
.pub-form textarea,
.pub-form select {
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px; color: var(--text); font-family: var(--font);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: 16px;
}
.pub-form input:focus,
.pub-form textarea:focus,
.pub-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79,110,247,.12);
}
.pub-form textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  background: var(--blue);
  color: #fff; font-size: 15px; font-weight: 700;
  padding: 13px 28px; border-radius: var(--radius);
  border: none; cursor: pointer; width: 100%;
  transition: background .15s, transform .1s;
}
.btn-submit:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ── Auth forms ───────────────────────────────────────────── */
.auth-section {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 64px 24px;
  background: var(--bg);
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 48px 44px;
  width: 100%; max-width: 480px;
}
.auth-card.wide { max-width: 520px; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo .pub-logo { justify-content: center; }
.auth-card h1 { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.auth-card .auth-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.auth-field input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 15px; color: var(--text); font-family: var(--font);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79,110,247,.12);
  background: var(--card);
}
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-auth {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: var(--blue);
  color: #fff; font-size: 16px; font-weight: 700;
  padding: 14px 24px; border-radius: var(--radius);
  border: none; cursor: pointer; text-align: center;
  margin-top: 8px;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
}
.btn-auth:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.auth-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 24px; }
.auth-switch a { color: var(--blue); font-weight: 600; }
.auth-forgot { text-align: right; margin-bottom: 20px; }
.auth-forgot a { font-size: 13px; color: var(--text-muted); }
.auth-forgot a:hover { color: var(--blue); }

/* Google OAuth button — colors follow Google's brand guidelines (light
   surface, #3c4043 text/border) for the default/light theme. */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 46px; padding: 13px 24px;
  background: #fff; color: #3c4043;
  border: 1.5px solid #dadce0; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: box-shadow .15s, border-color .15s, opacity .15s;
  margin-bottom: 4px;
}
.btn-google:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  border-color: #b0b5ba;
  color: #3c4043;
  text-decoration: none;
}
.btn-google:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.btn-google svg { flex-shrink: 0; }
/* Set by the click handler in login.html/register.html while the redirect
   to Google is in flight, so a slow network doesn't look unresponsive and
   the button can't be double-clicked into two OAuth attempts. */
#sms_consent {
width: 12px;
}
.btn-google.is-loading {
  opacity: .7;
  pointer-events: none;
}
.btn-google .btn-google-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid #dadce0;
  border-top-color: #3c4043;
  border-radius: 50%;
  animation: btn-google-spin .7s linear infinite;
}
.btn-google.is-loading .btn-google-spinner { display: inline-block; }
.btn-google.is-loading .btn-google-icon,
.btn-google.is-loading .btn-google-label { opacity: .6; }
@keyframes btn-google-spin {
  to { transform: rotate(360deg); }
}

/* Dark-mode variant of the Google button — Google's brand guidelines
   permit a dark/neutral surface with white text+logo for dark UIs. Scoped
   to .auth-split (not :root) — see the dark-mode note above .auth-split
   below; the rest of the public marketing site stays light-only. */
@media (prefers-color-scheme: dark) {
  .auth-split .btn-google {
    background: #131314; color: #E3E3E3;
    border-color: #8E918F;
  }
  .auth-split .btn-google:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,.4);
    border-color: #a3a7a5;
    color: #E3E3E3;
  }
  .auth-split .btn-google .btn-google-spinner {
    border-color: #5f6368;
    border-top-color: #E3E3E3;
  }
}

/* Sign in with Apple button — Apple HIG 4.8 requires a solid black or white
   fill (never a custom brand color) with the official Apple logomark; black
   background + white logo/text is the default/light-theme treatment. */
.btn-apple {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 46px; padding: 13px 24px;
  background: #000; color: #fff;
  border: 1.5px solid #000; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: box-shadow .15s, opacity .15s;
  margin-bottom: 10px;
}
.btn-apple:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  color: #fff;
  text-decoration: none;
}
.btn-apple:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.btn-apple svg { flex-shrink: 0; }
.btn-apple.is-loading {
  opacity: .7;
  pointer-events: none;
}
.btn-apple .btn-apple-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid #555;
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-google-spin .7s linear infinite;
}
.btn-apple.is-loading .btn-apple-spinner { display: inline-block; }
.btn-apple.is-loading .btn-apple-icon,
.btn-apple.is-loading .btn-apple-label { opacity: .6; }

/* Dark-mode variant — Apple HIG permits flipping to a white fill with black
   logo/text on dark surfaces, same reasoning as the Google button's flip
   just above. */
@media (prefers-color-scheme: dark) {
  .auth-split .btn-apple {
    background: #fff; color: #000; border-color: #fff;
  }
  .auth-split .btn-apple:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,.4);
    color: #000;
  }
  .auth-split .btn-apple .btn-apple-spinner {
    border-color: #ccc;
    border-top-color: #000;
  }
}

/* Divider between social and email login */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--text-muted); font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* ── Plan selector (register page) ──────────────────────────── */
.plan-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.plan-radio-card {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px 18px;
  cursor: pointer;
  background: #fff;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, background .2s, transform .2s;
  outline: none;
  user-select: none;
}
.plan-radio-card:hover {
  border-color: rgba(79,110,247,.45);
}
.plan-radio-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.plan-radio-card[aria-checked="true"] {
  border-color: var(--blue);
  background: rgba(79,110,247,.05);
  box-shadow: 0 0 0 4px rgba(79,110,247,.1), 0 8px 24px rgba(79,110,247,.14);
  transform: scale(1.02);
}
.plan-radio-check {
  position: absolute;
  top: 10px; right: 10px;
  color: var(--blue);
  font-size: 17px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .2s, transform .2s;
}
.plan-radio-card[aria-checked="true"] .plan-radio-check {
  opacity: 1;
  transform: scale(1);
}
.plan-radio-best {
  position: absolute;
  top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #3B58E5 0%, #5B7BF9 100%);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(79,110,247,.3);
  z-index: 1;
}
.plan-radio-tag {
  font-size: 10px; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
.plan-radio-price {
  font-size: 24px; font-weight: 800;
  color: var(--navy); line-height: 1; margin-bottom: 2px;
}
.plan-radio-period { font-size: 12px; color: var(--text-muted); }
.plan-radio-save {
  display: inline-block;
  background: rgba(34,197,94,.15);
  color: #16A34A;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 100px; margin-top: 6px;
}

/* Alerts in public context */
.pub-alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
}
.pub-alert-success { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green-text); }
.pub-alert-danger  { background: var(--red-bg);   border: 1px solid var(--red-border);   color: var(--red-text); }
.pub-alert-info    { background: var(--blue-bg);  border: 1px solid var(--blue-border);  color: var(--blue-dark); }

/* ── Blog article ─────────────────────────────────────────── */
.article-header {
  background: linear-gradient(150deg, var(--navy) 0%, #1b3a7a 100%);
  padding: 80px 0 64px;
}
.article-cat {
  font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--green-light); margin-bottom: 14px;
}
.article-header h1 {
  font-size: clamp(28px,4vw,48px); font-weight: 800; color: #fff;
  line-height: 1.15; letter-spacing: -.4px; margin-bottom: 20px;
}
.article-meta { font-size: 13px; color: rgba(255,255,255,.6); display: flex; gap: 16px; flex-wrap: wrap; }
.article-body { padding: 64px 0; }
.article-content {
  font-size: 17px; line-height: 1.8; color: var(--text);
  max-width: 720px; margin: 0 auto;
}
.article-content h2 { font-size: 26px; font-weight: 800; color: var(--navy); margin: 40px 0 16px; }
.article-content h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { padding-left: 28px; margin-bottom: 20px; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--navy); }
.article-content a { color: var(--blue); }
.article-content blockquote {
  border-left: 4px solid var(--blue);
  padding: 16px 24px;
  background: rgba(79,110,247,.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-content code {
  background: var(--border-light);
  padding: 2px 6px; border-radius: 4px;
  font-size: .9em;
}

/* ── Admin specific ───────────────────────────────────────── */
/* color is re-asserted here (not just inherited from body) so elements
   using color:inherit/unset pick up the dark-mode --text override below —
   custom property redefinitions on .admin-shell don't retroactively change
   an already-inherited color value unless something re-reads the variable
   at or below this level. No-op in light mode (same value as :root). */
.admin-shell { display: flex; min-height: 100vh; color: var(--text); }
.admin-sidebar {
  width: 240px;
  background: var(--navy);
  flex-shrink: 0;
  display: flex; flex-direction: column;
}
.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar-logo { color: #fff; font-size: 15px; font-weight: 700; }
.admin-sidebar-logo span { color: var(--green-light); }
.admin-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--gold); background: rgba(245,181,68,.15); padding: 2px 8px; border-radius: 100px;
  margin-top: 4px; display: inline-block;
}
.admin-nav { padding: 16px 12px; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.6);
  font-size: 14px; font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
}
.admin-nav a i { width: 18px; text-align: center; }
.admin-nav-section {
  font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 16px 12px 6px;
}
.admin-main { flex: 1; display: flex; flex-direction: column; background: var(--bg); overflow: auto; }
.admin-topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.admin-topbar-title { font-size: 17px; font-weight: 700; color: var(--navy); }
.admin-content { padding: 32px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stat-card .stat-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 8px; }
.stat-card .stat-value { font-size: 32px; font-weight: 800; color: var(--navy); }
.stat-card .stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.admin-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.admin-table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-table-title { font-size: 15px; font-weight: 700; color: var(--navy); }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  background: var(--border-light);
  color: var(--text-muted); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 10px 16px; text-align: left;
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--border-light); }

.badge-active     { background: var(--green-bg); color: var(--green-text); }
.badge-cancelled  { background: var(--border-light); color: var(--text-muted); }
.badge-past-due   { background: var(--red-bg);   color: var(--red-text); }
.badge-open       { background: var(--gold-bg);  color: var(--gold-text); }
.badge-resolved   { background: var(--green-bg); color: var(--green-text); }
.badge-draft      { background: var(--border-light); color: var(--text-muted); }
.badge-pub        { background: var(--green-bg); color: var(--green-text); }
.badge-trial      { background: var(--blue-bg);  color: var(--blue-dark); }
.badge-incomplete { background: var(--gold-bg);  color: var(--gold-text); }

.admin-badge-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700;
}

.admin-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 6px;
  border: none; cursor: pointer; text-decoration: none;
  transition: background .15s;
}
.admin-action-btn.edit { background: rgba(79,110,247,.1); color: var(--blue); }
.admin-action-btn.edit:hover { background: rgba(79,110,247,.18); }
.admin-action-btn.danger { background: rgba(239,68,68,.1); color: #EF4444; }
.admin-action-btn.danger:hover { background: rgba(239,68,68,.18); }
.admin-action-btn.success { background: rgba(34,197,94,.1); color: var(--green); }
.admin-action-btn.success:hover { background: rgba(34,197,94,.2); }

.admin-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.admin-form-row { margin-bottom: 20px; }
.admin-form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.admin-form-row input,
.admin-form-row textarea,
.admin-form-row select {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px; color: var(--text); font-family: var(--font);
  outline: none;
  transition: border-color .15s;
}
.admin-form-row input:focus,
.admin-form-row textarea:focus,
.admin-form-row select:focus {
  border-color: var(--blue);
  background: var(--card);
}
.admin-form-row textarea { min-height: 200px; resize: vertical; }
.admin-form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-form-actions {
  display: flex; gap: 12px; padding-top: 24px;
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
}
.btn-admin-primary {
  background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 700;
  padding: 10px 24px; border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: background .15s;
}
.btn-admin-primary:hover { background: var(--blue-dark); }
.btn-admin-secondary {
  background: var(--border-light); color: var(--text-muted);
  font-size: 14px; font-weight: 600;
  padding: 10px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btn-admin-secondary:hover { background: var(--border); color: var(--text); text-decoration: none; }

/* ── Admin responsive shell (drawer nav) ──────────────────── */
.admin-menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 20px; padding: 4px 8px; min-height: 44px;
}
.admin-sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  .admin-shell { position: relative; overflow-x: hidden; flex-direction: row; }
  .admin-menu-toggle { display: inline-flex; align-items: center; }
  .admin-sidebar {
    position: fixed; top: 0; left: 0; height: 100%; width: 260px; z-index: 200;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: var(--shadow-lg);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar-backdrop {
    display: block;
    position: fixed; inset: 0; background: rgba(0,0,0,.4);
    z-index: 190; opacity: 0; pointer-events: none;
    transition: opacity .22s ease;
  }
  .admin-sidebar-backdrop.open { opacity: 1; pointer-events: auto; }
  .admin-content { padding: 20px; }
  .admin-topbar { padding: 0 16px; }
}

/* ── Admin toast notifications ────────────────────────────── */
.admin-toast-stack {
  position: fixed; top: 16px; right: 16px; z-index: 500;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
}
.admin-toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 12px 14px; font-size: 13.5px; color: var(--text);
  animation: admin-toast-in .18s ease;
}
.admin-toast.success { border-left-color: var(--green); }
.admin-toast.error   { border-left-color: #EF4444; }
.admin-toast.warning { border-left-color: var(--gold); }
.admin-toast i { margin-top: 2px; }
.admin-toast.success i { color: var(--green); }
.admin-toast.error i   { color: #EF4444; }
.admin-toast.warning i { color: var(--gold); }
@keyframes admin-toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Admin tables: sticky header + safe horizontal scroll ─── */
.ds-table-wrap, .admin-table-wrap { max-width: 100%; overflow-x: auto; }
.ds-table thead th, .admin-table thead th { position: sticky; top: 0; z-index: 1; }
.ds-table-sortable th[data-sort] { cursor: pointer; user-select: none; }
.ds-table-sortable th[data-sort]:hover { color: var(--text); }
.ds-table-sortable th[data-sort] i { margin-left: 4px; font-size: 10px; opacity: .6; }

/* ── Reusable layout utilities (replace ad-hoc inline styles) #
   these back dashboard.html's stat/kv panels and any future page
   that needs a simple responsive 2/3-up grid without new CSS.   */
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.admin-kv-table { width: 100%; border-collapse: collapse; }
.admin-kv-table tr td { padding: 10px 0; font-size: 13px; }
.admin-kv-table tr:not(:last-child) td { border-bottom: 1px solid var(--border-light); }
.admin-kv-table td:first-child { color: var(--text-muted); }
.admin-kv-table td:last-child { text-align: right; font-size: 16px; font-weight: 800; color: var(--text); }
.admin-quick-links { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.admin-quick-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; width: fit-content; }

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

/* ── Sync Providers dashboard ──────────────────────────────── */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.provider-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.provider-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.provider-card-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--navy); }
.provider-card-title i { font-size: 20px; color: var(--blue); }
.provider-health {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 4px 10px; border-radius: 100px; white-space: nowrap;
}
.provider-health.healthy { background: var(--green-bg); color: var(--green-text); }
.provider-health.warning { background: var(--gold-bg);  color: var(--gold-text); }
.provider-health.error   { background: var(--red-bg);   color: var(--red-text); }
.provider-health.offline { background: var(--border-light); color: var(--text-muted); }
.provider-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.provider-stat { background: var(--bg); border-radius: var(--radius); padding: 10px 12px; }
.provider-stat-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); }
.provider-stat-value { font-size: 15px; font-weight: 800; color: var(--text); margin-top: 2px; }
.provider-card-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.provider-schedule-form { display: grid; gap: 14px; }
.provider-schedule-mode-fields { display: none; }
.provider-schedule-mode-fields.active { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.provider-mode-tabs { display: flex; gap: 6px; background: var(--bg); border-radius: var(--radius); padding: 4px; }
.provider-mode-tab {
  flex: 1; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  padding: 7px 10px; border-radius: 8px; cursor: pointer; user-select: none;
}
.provider-mode-tab.active { background: var(--card); color: var(--navy); box-shadow: var(--shadow-sm); }

.provider-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.provider-capability-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 100px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text-muted);
}
.provider-capability-pill.on { color: var(--green-text); border-color: var(--green-border); }
.provider-capability-pill.off { color: var(--text-muted); }
.provider-config-issues {
  background: var(--red-bg); border: 1px solid var(--red-border);
  border-radius: var(--radius); padding: 10px 12px; font-size: 12.5px; color: var(--red-text);
}
.provider-config-issues ul { margin: 4px 0 0; padding-left: 18px; }
.provider-roadmap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.provider-roadmap-card {
  background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius-lg);
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
}
.provider-roadmap-card .title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 14px; }
.provider-roadmap-card .note { font-size: 12px; color: var(--text-muted); }

@media (max-width: 640px) {
  .provider-schedule-mode-fields.active { grid-template-columns: 1fr; }
  .provider-card-actions { flex-direction: column; align-items: stretch; }
  .provider-card-actions .btn-admin-primary,
  .provider-card-actions .btn-admin-secondary { width: 100%; text-align: center; justify-content: center; }
}

/* ── Run history table: stacked-card collapse on narrow widths #
   only applies to .history-table (new markup, with data-label   #
   on every <td>) — the generic .ds-table/.admin-table used      #
   elsewhere keeps its safe horizontal-scroll fallback instead,  #
   since their markup has no data-label attributes to key off.   */
@media (max-width: 720px) {
  .history-table thead { display: none; }
  .history-table, .history-table tbody, .history-table tr, .history-table td { display: block; width: 100%; }
  .history-table tr {
    border: 1px solid var(--border-light); border-radius: var(--radius);
    margin-bottom: 12px; padding: 10px 14px;
  }
  .history-table td {
    border: none !important; padding: 6px 0 !important;
    display: flex; justify-content: space-between; gap: 12px; text-align: right;
  }
  .history-table td::before {
    content: attr(data-label); font-weight: 600; color: var(--text-muted);
    text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .3px;
  }
}

/* ── Touch-friendly tap targets on small widths ───────────── */
@media (max-width: 640px) {
  .admin-nav a, .admin-action-btn { min-height: 44px; }
  .btn-admin-primary, .btn-admin-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .admin-nav a { padding: 12px; }
}

/* ── Admin dark mode ───────────────────────────────────────── #
   Scoped to .admin-shell (not :root) so the public marketing    #
   site — which reuses --navy for its own hero/gradient sections #
   — is completely unaffected. --navy is redefined here as the   #
   heading-text color used throughout the admin portal; the      #
   sidebar keeps its own dark background via a decoupled rule    #
   below so it doesn't go light when --navy does.                */
@media (prefers-color-scheme: dark) {
  .admin-shell {
    --navy:         #E5E9F5;
    --bg:           #0B1220;
    --card:         #141B2D;
    --text:         #E5E7EB;
    --text-muted:   #9AA4B2;
    --border:       #26314A;
    --border-light: #1C2540;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.35);
    --shadow-md:    0 4px 20px rgba(0,0,0,.4);
    --shadow-lg:    0 12px 48px rgba(0,0,0,.5);
  }
  .admin-shell .admin-sidebar { background: #060A14; }
}

/* ── Footer ───────────────────────────────────────────────── */
.pub-footer {
  background: var(--navy);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-text { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.5); text-decoration: none; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ── Billing success ──────────────────────────────────────── */
.success-page {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 64px 24px;
}
.success-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 56px 48px;
  max-width: 520px; width: 100%;
  text-align: center;
}
.success-icon {
  width: 72px; height: 72px;
  background: rgba(34,197,94,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--green);
  margin: 0 auto 28px;
}
.success-card h1 { font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.success-card p { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin-bottom: 32px; }

/* ── Privacy / Terms ──────────────────────────────────────── */
.legal-header { background: var(--bg); border-bottom: 1px solid var(--border); padding: 64px 0; }
.legal-header h1 { font-size: 36px; font-weight: 800; color: var(--text); }
.legal-header p { color: var(--text-muted); margin-top: 8px; }
.legal-body { padding: 64px 0 96px; }
.legal-content {
  max-width: 720px; margin: 0 auto;
  font-size: 15px; line-height: 1.8; color: var(--text);
}
.legal-content h2 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 36px 0 12px; }
.legal-content h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 28px 0 10px; }
.legal-content p { margin-bottom: 16px; }
.legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 8px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-mockup { display: none; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .support-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pub-nav-links { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .auth-card { padding: 32px 24px; }
  .cta-banner { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .auth-row { grid-template-columns: 1fr; }
  .plan-radio-group { grid-template-columns: 1fr; }
}

/* ── "What Users Typically Find" ─────────────────────────── */
.what-find-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.what-find-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow .2s, transform .2s;
}
.what-find-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.what-find-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.what-find-item h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.what-find-item p  { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.what-find-amount {
  display: inline-block; margin-top: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--green);
  background: rgba(34,197,94,.1);
  padding: 3px 10px; border-radius: 100px;
}

/* ── Expanded advisor preview ─────────────────────────────── */
.advisor-preview-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.advisor-preview-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.ap-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.ap-title { color: var(--text); font-size: 14px; font-weight: 600; }
.ap-live  { background: var(--green-bg); color: var(--green-text); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; }
.ap-score-row {
  display: flex; align-items: center; gap: 20px; margin-bottom: 24px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
/* Money Wellness status plate  — no percentage ring/gauge, per the product's
   "not a credit score" positioning: a status icon, not a filled meter. */
.ap-score-ring {
  width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0; position: relative;
  background: var(--green-bg); border: 1px solid var(--green-border);
  display: flex; align-items: center; justify-content: center;
}
.ap-score-val { position: relative; z-index: 1; color: var(--green-text); font-size: 30px; }
.ap-score-info strong { color: var(--text); font-size: 16px; font-weight: 700; display: block; margin-bottom: 4px; }
.ap-score-info span  { color: var(--text-muted); font-size: 13px; }
.ap-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.ap-metric {
  background: var(--bg); border-radius: var(--radius); padding: 14px 16px;
}
.ap-metric-label { color: var(--text-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.ap-metric-val   { color: var(--text); font-size: 22px; font-weight: 800; line-height: 1; }
.ap-metric-val.pos  { color: var(--green-text); }
.ap-metric-val.warn { color: var(--gold-text); }
.ap-opportunity {
  background: var(--blue-bg);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  font-size: 13px; color: var(--text); line-height: 1.55;
}
.ap-opportunity strong { color: var(--blue-dark); }

/* ── Mission section ──────────────────────────────────────── */
.mission-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.mission-quote {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  font-style: italic;
  margin-bottom: 24px;
  padding-left: 20px;
  border-left: 4px solid var(--green);
}
.mission-body { color: var(--text-muted); font-size: 16px; line-height: 1.75; }
.mission-body p + p { margin-top: 16px; }
.mission-points { display: flex; flex-direction: column; gap: 20px; }
.mission-point { display: flex; align-items: flex-start; gap: 16px; }
.mission-point-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.mission-point h4 { color: var(--text); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.mission-point p  { color: var(--text-muted); font-size: 14px; line-height: 1.55; }

/* ── Trust checklist ──────────────────────────────────────── */
.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.trust-check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 32px;
  border-right: 1px solid var(--border);
}
.trust-check-item:last-child { border-right: none; }
.trust-check-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(34,197,94,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  font-size: 14px;
  flex-shrink: 0;
}
.trust-check-item span { font-size: 14px; font-weight: 600; color: var(--text); }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: 20px; right: 24px;
  font-size: 64px; line-height: 1;
  color: var(--border);
  font-family: Georgia, serif;
}
.testimonial-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.testimonial-quote {
  font-size: 15px; color: var(--text); line-height: 1.7; flex: 1;
  font-style: italic;
}
.testimonial-result {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-bg);
  color: var(--green-text);
  font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 100px;
  width: fit-content;
}
.testimonial-result i { font-size: 11px; }
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
}
.testimonial-name  { font-size: 14px; font-weight: 700; color: var(--navy); }
.testimonial-label { font-size: 12px; color: var(--text-muted); }

/* ── Responsive additions ─────────────────────────────────── */
@media (max-width: 900px) {
  .what-find-grid     { grid-template-columns: 1fr 1fr; }
  .advisor-preview-wrap { grid-template-columns: 1fr; }
  .mission-wrap       { grid-template-columns: 1fr; gap: 40px; }
  .testimonial-grid   { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .trust-strip        { flex-direction: column; align-items: stretch; }
  .trust-check-item   { border-right: none; border-bottom: 1px solid var(--border); padding: 16px 24px; }
  .trust-check-item:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .what-find-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONVERSION OPTIMIZATION  — Phase 2
   ============================================================ */

/* ── Enhanced shadow system ───────────────────────────────── */
:root {
  --shadow-sm:  0 1px 3px rgba(11,31,77,.08), 0 1px 2px rgba(11,31,77,.04);
  --shadow-md:  0 4px 24px rgba(11,31,77,.11), 0 2px 8px rgba(11,31,77,.05);
  --shadow-lg:  0 16px 56px rgba(11,31,77,.15), 0 4px 16px rgba(11,31,77,.07);
  --shadow-xl:  0 24px 80px rgba(11,31,77,.18), 0 8px 24px rgba(11,31,77,.09);
}

/* ── Visual hierarchy: section weight ────────────────────── */
.section-primary   { padding: 112px 0; }
.section-secondary { padding: 72px 0; }

/* ── Scroll-in animations ─────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: .08s; }
.fade-up.d2 { transition-delay: .16s; }
.fade-up.d3 { transition-delay: .24s; }
.fade-up.d4 { transition-delay: .32s; }
.fade-up.d5 { transition-delay: .40s; }
.fade-up.d6 { transition-delay: .48s; }

/* ── Hero mockup: opportunities list ─────────────────────── */
.mockup-opps {
  margin-bottom: 16px;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.18);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.mockup-opps-label {
  color: var(--green-light);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px;
  margin-bottom: 10px;
}
.mockup-opp-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.85); font-size: 12px; font-weight: 500;
  padding: 4px 0;
}
.mockup-opp-item i { color: var(--green-light); font-size: 11px; flex-shrink: 0; }

/* ── Plaid trust bar (inside hero, below CTA) ─────────────── */
.hero-trust-bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  margin-top: 32px;
}
.hero-trust-bar-label {
  font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
}
.hero-trust-items {
  display: flex; flex-wrap: wrap; gap: 0;
}
.hero-trust-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.65);
  font-size: 12px; font-weight: 500;
  padding: 5px 16px 5px 0;
  margin-right: 16px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.hero-trust-item:last-child { border-right: none; margin-right: 0; }
.hero-trust-item i { color: var(--green-light); font-size: 12px; }

/* ── "We Found These Opportunities" ──────────────────────── */
.opp-section-intro {
  text-align: center; margin-bottom: 56px;
}
.opp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.opp-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.opp-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
  opacity: 0; transition: opacity .25s;
}
.opp-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(34,197,94,.3); }
.opp-card:hover::after { opacity: 1; }
.opp-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.opp-category {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--text-muted); margin-bottom: 8px;
}
.opp-amount {
  font-size: 38px; font-weight: 800; line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--green) 0%, #16A34A 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.opp-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.opp-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--green-bg); color: var(--green-text);
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 100px;
}
.opp-tag.blue { background: var(--blue-bg); color: var(--blue); }
.opp-tag.gold { background: var(--gold-bg); color: var(--gold-text); }
.opp-tag i { font-size: 10px; }
.opp-disclaimer {
  text-align: center;
  font-size: 12px; color: var(--text-muted);
  max-width: 560px; margin: 0 auto;
}

/* ── AI Advisor Chat preview ──────────────────────────────── */
.chat-section-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.chat-preview-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.chat-preview-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 22px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.chat-preview-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue) 0%, #6B84F9 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff;
}
.chat-preview-meta strong { color: var(--text); font-size: 13px; font-weight: 700; display: block; }
.chat-preview-meta span  { color: var(--text-muted); font-size: 11px; }
.chat-online { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-left: auto; box-shadow: 0 0 0 2px var(--green-border); }
.chat-preview-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.chat-bubble {
  max-width: 88%; font-size: 13px; line-height: 1.6;
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  padding: 11px 16px;
  font-weight: 500;
}
.chat-bubble.advisor {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px 18px 18px 18px;
  padding: 14px 18px;
}
.chat-bubble.advisor strong {
  display: block; color: var(--blue-dark);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 6px;
}
.chat-bubble-highlight {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  background: var(--green-bg); color: var(--green-text);
  font-size: 12px; font-weight: 700;
  padding: 5px 11px; border-radius: 100px;
}
.chat-typing {
  display: flex; align-items: center; gap: 4px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 4px 18px 18px 18px;
  width: fit-content;
}
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
  animation: typing-bounce .9s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-5px); opacity: 1; }
}
.chat-questions { display: flex; flex-direction: column; gap: 10px; }
.chat-q-pill {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px; color: var(--navy); font-weight: 500;
  cursor: default;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  text-decoration: none;
}
.chat-q-pill:hover { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,110,247,.08); transform: translateX(4px); color: var(--navy); text-decoration: none; }
.chat-q-pill i { color: var(--blue); font-size: 14px; width: 20px; flex-shrink: 0; }
.chat-q-pill .arrow { margin-left: auto; color: var(--text-muted); font-size: 12px; }

/* ── Financial Health Snapshot box ───────────────────────── */
.health-snapshot {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px 28px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.health-snapshot-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.health-snapshot-title {
  font-size: 13px; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 7px;
}
.health-snapshot-title i { color: var(--blue); }
.snapshot-score-wrap { display: flex; align-items: baseline; gap: 3px; }
.snapshot-score-num  { font-size: 26px; font-weight: 800; color: var(--navy); }
.snapshot-score-den  { font-size: 13px; color: var(--text-muted); }
.snapshot-score-label{ font-size: 11px; font-weight: 700; color: var(--green); background: rgba(34,197,94,.1); padding: 2px 8px; border-radius: 100px; margin-left: 8px; }
.health-snapshot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.snapshot-col h5 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); margin-bottom: 10px; }
.snapshot-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text); margin-bottom: 7px; font-weight: 500;
}
.snapshot-item i.good { color: var(--green); }
.snapshot-item i.warn { color: #F59E0B; }

/* ── Testimonial section header ───────────────────────────── */
.testimonial-section-header {
  text-align: center; margin-bottom: 48px;
}
.testimonial-section-header h2 { text-align: center; }
.testimonial-subheader {
  font-size: 16px; color: var(--text-muted); max-width: 500px; margin: 12px auto 0;
  line-height: 1.65;
}

/* ── Mobile sticky CTA ────────────────────────────────────── */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  background: rgba(11,31,77,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px max(16px, env(safe-area-inset-left));
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  padding-right: max(16px, env(safe-area-inset-right));
  z-index: 200;
  border-top: 1px solid rgba(255,255,255,.12);
  box-sizing: border-box;
}
.mobile-sticky-cta .btn-hero-primary {
  width: 100%;
  min-width: 0;
  justify-content: center;
  font-size: 15px;
  padding: 13px 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Footer legal disclaimer row ──────────────────────────── */
.footer-legal-row {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.3);
  line-height: 1.7;
  text-align: center;
  max-width: 720px; margin: 16px auto 0;
}

/* ── Responsive: new components ───────────────────────────── */
@media (max-width: 900px) {
  .opp-grid          { grid-template-columns: 1fr 1fr; }
  .chat-section-wrap { grid-template-columns: 1fr; }
  .section-primary   { padding: 80px 0; }
  .section-secondary { padding: 64px 0; }
}
@media (max-width: 640px) {
  .mobile-sticky-cta { display: block; }
  .hero-actions { display: none; }
  .opp-grid          { grid-template-columns: 1fr; }
  .hero-trust-items  { flex-direction: column; }
  .hero-trust-item   { border-right: none; padding: 4px 0; margin-right: 0; }
  .health-snapshot-cols { grid-template-columns: 1fr; }
  .chat-section-wrap { gap: 32px; }
  /* bottom padding so sticky CTA doesn't cover content */
  body.public-page { padding-bottom: 70px; }
}

/* ============================================================
   PRODUCTION POLISH  — Phase 3: Mobile Nav + Split Auth
   ============================================================ */

/* ── Mobile Navigation Hamburger ──────────────────────────── */
.pub-nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  transition: background .15s;
  align-items: center;
  justify-content: center;
}
.pub-nav-hamburger:hover { background: var(--border-light); }

.pub-mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,31,77,.55);
  z-index: 149;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.pub-mobile-nav-overlay.open { opacity: 1; pointer-events: all; }

.pub-mobile-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(300px, 85vw);
  background: #fff;
  z-index: 150;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 48px rgba(11,31,77,.18);
}
.pub-mobile-nav.open { transform: translateX(0); }

.pub-mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.pub-mobile-nav-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 18px;
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.pub-mobile-nav-close:hover { background: var(--border-light); color: var(--navy); }

.pub-mobile-nav-links {
  list-style: none;
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}
.pub-mobile-nav-links li a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--text);
  text-decoration: none;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}
.pub-mobile-nav-links li a:hover { background: var(--border-light); color: var(--navy); text-decoration: none; }
.pub-mobile-nav-links li a i { width: 18px; text-align: center; color: var(--blue); font-size: 14px; }

.pub-mobile-nav-footer {
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.pub-mobile-nav-footer .btn-ghost {
  justify-content: center; display: flex;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
}
.pub-mobile-nav-footer .btn-primary-sm {
  justify-content: center; display: flex;
  padding: 13px 20px;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .pub-nav-hamburger { display: flex; }
  .pub-nav-actions { display: none; }
}

/* ── Split Auth Layout ─────────────────────────────────────── */
.auth-split {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Caps how wide the two panels stretch on ultra-wide monitors — without
     this, a 3440px display renders a ~1700px form column with a 420px-wide
     form floating in a sea of empty space. */
  max-width: 1440px;
  margin: 0 auto;
  overflow-x: hidden;
}

.auth-split-panel {
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-split-panel::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(79,110,247,.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(34,197,94,.04) 0%, transparent 60%);
  pointer-events: none;
}
.auth-split-panel-inner {
  position: relative; z-index: 1;
  max-width: 440px;
}

.auth-panel-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-bottom: 48px;
}
.auth-panel-logo:hover { text-decoration: none; }
.auth-panel-logo-text { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.auth-panel-logo-text span { color: var(--green); }

.auth-panel-headline {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 800; color: var(--text);
  line-height: 1.22; margin-bottom: 14px;
  letter-spacing: -.3px;
}
.auth-panel-sub {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.65; margin-bottom: 36px;
}

.auth-panel-features { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
.auth-panel-feature  { display: flex; align-items: flex-start; gap: 14px; }
.auth-panel-feature-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  background: var(--bg);
}
.auth-panel-feature h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.auth-panel-feature p  { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.auth-panel-trust {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.auth-panel-trust-badge {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 11px; font-weight: 500;
}
.auth-panel-trust-badge i { color: var(--green); font-size: 10px; }

/* Form side */
.auth-split-form {
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
}
.auth-split-form-inner { width: 100%; max-width: 420px; }
.auth-split-form-logo  { display: flex; justify-content: center; margin-bottom: 32px; }
.auth-split-form h1    { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.auth-split-form .auth-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

/* Remember-me row */
.auth-remember-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.auth-remember-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); cursor: pointer;
}
.auth-remember-label input[type="checkbox"] { accent-color: var(--blue); }

/* Password visibility toggle */
.auth-field-wrap { position: relative; }
.auth-field-wrap input { padding-right: 44px; width: 100%; }
.auth-field-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 14px; padding: 4px;
  transition: color .15s;
  display: flex; align-items: center;
  line-height: 1;
}
.auth-field-toggle:hover { color: var(--navy); }

/* Security note bar */
.auth-security-note {
  margin-top: 16px; padding: 13px 16px;
  background: rgba(34,197,94,.06);
  border: 1px solid rgba(34,197,94,.18);
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 10px;
}
.auth-security-note i    { color: var(--green); font-size: 15px; flex-shrink: 0; }
.auth-security-note span { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* Dark mode — scoped to .auth-split-form and .auth-split-panel, mirroring
   the .admin-shell pattern above (see the comment near
   @media (prefers-color-scheme: dark) { .admin-shell { ... } }). Both
   halves of the split layout are now light by default, so both need a
   matching dark override to avoid a half-white/half-dark split when the
   OS is in dark mode. */
@media (prefers-color-scheme: dark) {
  .auth-split-form,
  .auth-split-panel {
    --bg:           #0B1220;
    --card:         #141B2D;
    --navy:         #E5E9F5;
    --text:         #E5E7EB;
    --text-muted:   #9AA4B2;
    --border:       #26314A;
    --border-light: #1C2540;
  }
}

/* Homepage FAQ section */
.home-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .home-faq-grid { grid-template-columns: 1fr; }
}

/* Tablet band: rebalance toward the form instead of jumping straight from
   an even 2-column split to hiding the branding panel entirely. */
@media (max-width: 1200px) and (min-width: 901px) {
  .auth-split { grid-template-columns: 0.85fr 1fr; }
  .auth-split-panel { padding: 48px 36px; }
}
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-split-panel { display: none; }
  .auth-split-form  { padding: 40px 28px; min-height: calc(100vh - 64px); }
}
@media (max-width: 480px) {
  .auth-split-form  { padding: 28px 20px; }
}
/* Short-viewport / landscape phones: a forced min-height:100vh here would
   clip content or force awkward vertical centering when the viewport is
   barely taller than the form itself. Let the page scroll naturally
   instead of fighting for a full-viewport fit. */
@media (max-height: 560px) and (orientation: landscape) {
  .auth-split, .auth-split-form {
    min-height: auto;
  }
  .auth-split-form {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

/* ================================================================
   ADMIN  — AI Config + Integrations Pages
   ================================================================ */

/* Status banner */
.admin-status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.4;
}

.admin-status-banner i:first-child { font-size: 20px; flex-shrink: 0; }

.admin-status-banner > div {
  flex: 1;
  min-width: 0;
}

.admin-status-banner strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.admin-status-banner span { color: var(--text-muted); }

.banner-success {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green-text);
}
.banner-success i:first-child { color: var(--green); }
.banner-success span { color: var(--green-text); }

.banner-info {
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--blue-dark);
}
.banner-info i:first-child { color: var(--blue); }
.banner-info span { color: var(--blue-dark); }

.banner-warning {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  color: var(--gold-text);
}
.banner-warning i:first-child { color: var(--gold); }
.banner-warning span { color: var(--gold-text); }

/* Test button */
.btn-admin-test {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font);
  transition: background 0.13s, border-color 0.13s;
}

.btn-admin-test:hover {
  background: var(--border-light);
  border-color: var(--border);
}

/* Form field groups */
.admin-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-field-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}

.admin-field-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 4px;
  line-height: 1.4;
}

.admin-field-input {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: var(--font);
  color: var(--navy);
  background: #fff;
  transition: border-color 0.13s, box-shadow 0.13s;
  outline: none;
}

.admin-field-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.12);
}

/* Provider selection grid */
.admin-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.provider-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: border-color 0.13s, background 0.13s, color 0.13s;
  user-select: none;
}

.provider-pill:hover {
  border-color: var(--blue);
  color: var(--navy);
}

.provider-pill.selected {
  border-color: var(--blue);
  background: var(--blue-bg);
  color: var(--navy);
  box-shadow: 0 0 0 3px var(--blue-border);
}

/* Toggle switch */
.admin-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.admin-toggle input[type="checkbox"] {
  display: none;
}

.admin-toggle-track {
  width: 40px;
  height: 22px;
  background: var(--border);
  border-radius: 11px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.admin-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.admin-toggle input:checked + .admin-toggle-track {
  background: var(--blue);
}

.admin-toggle input:checked + .admin-toggle-track::after {
  transform: translateX(18px);
}

.admin-toggle-label {
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 500;
}

/* Table cells */
.admin-td-label {
  font-weight: 600;
  color: var(--navy);
  font-size: 13px;
  padding: 14px 20px;
  width: 180px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

/* Credential display */
.admin-credential-display {
  font-family: monospace;
  font-size: 13.5px;
  color: var(--navy);
  margin-right: 8px;
}

/* Status badges */
.admin-badge-set {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--green-bg);
  color: var(--green-text);
  border: 1px solid var(--green-border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.admin-badge-missing {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--gold-bg);
  color: var(--gold-text);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* text-body alias for admin pages */
.text-body { color: var(--text); }

/* ================================================================
   DESIGN SYSTEM v3  — Premium Polish
   ================================================================ */

/* ── Additional icon color ────────────────────────────────────── */
.icon-red { background: rgba(239,68,68,.1); color: #EF4444; }

/* ── Pill / badge (generic inline chip) ───────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 100px;
}

/* ── Page hero (shared inner-page header) ─────────────────────── */
.page-hero {
  background: linear-gradient(150deg, var(--navy) 0%, #1b3a7a 55%, #0f2b5e 100%);
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 55% at 80% 40%, rgba(79,110,247,.2) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero.centered { text-align: center; }
.page-hero.centered .section-label { justify-content: center; }

/* Navigation anchor pills inside page hero */
.page-nav-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px;
}
.page-nav-pill {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 7px 16px; border-radius: 100px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.page-nav-pill:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
  text-decoration: none;
}

/* Page hero trust chips row */
.page-hero-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px;
}
.page-hero-chips.centered { justify-content: center; }
.page-hero-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 8px 16px; border-radius: 100px;
}
.page-hero-chip i { color: var(--green-light); font-size: 11px; }

/* ── Social proof strip (directly below hero) ─────────────────── */
.social-strip {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.social-strip-inner {
  display: flex; align-items: stretch;
  justify-content: center;
}
.social-strip-item {
  display: flex; align-items: center; gap: 9px;
  padding: 16px 24px;
  border-right: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}
.social-strip-item:last-child { border-right: none; }
.social-strip-item i { color: var(--green); font-size: 14px; flex-shrink: 0; }

/* ── Comparison table (Traditional vs Find-Money) ─────────────── */
.comparison-wrap { max-width: 820px; margin: 0 auto; }
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
}
.comparison-col {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--card);
}
.comparison-col.is-primary {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(79,110,247,.08), var(--shadow-md);
}
.comparison-col-header {
  padding: 18px 24px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
}
.comparison-col-header.neutral-header {
  background: var(--border-light);
  color: var(--text-muted);
}
.comparison-col-header.primary-header {
  background: var(--blue);
  color: #fff;
}
.comparison-row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border-top: 1px solid var(--border-light);
  font-size: 14px; color: var(--text);
  line-height: 1.4;
}
.comparison-col.is-primary .comparison-row { color: var(--navy); font-weight: 600; }
.ci-check { color: var(--green);  font-size: 15px; flex-shrink: 0; }
.ci-cross { color: #D1D5DB;       font-size: 15px; flex-shrink: 0; }

/* ── Feature split  — 2-col content/mockup section ────────────── */
.feat-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ── Feature chat mockup card ─────────────────────────────────── */
.feat-chat-card {
  background: linear-gradient(145deg, #0c2356 0%, #1a3d7a 100%);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-xl);
}
.feat-chat-header {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 18px;
}
.feat-chat-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), #93AAFD);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff;
}
.feat-chat-name { font-size: 13px; font-weight: 700; color: #fff; display: block; }
.feat-chat-sub  { font-size: 11px; color: rgba(255,255,255,.4); }
.feat-chat-online { width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); margin-left: auto; box-shadow: 0 0 0 3px rgba(74,222,128,.2); }
.feat-chat-messages { display: flex; flex-direction: column; gap: 14px; }
.feat-chat-user {
  align-self: flex-end;
  background: var(--blue); color: #fff;
  border-radius: 18px 18px 4px 18px;
  padding: 11px 16px; font-size: 13px; font-weight: 500;
  max-width: 85%; line-height: 1.6;
}
.feat-chat-ai {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px 18px 18px 18px;
  padding: 16px 18px; font-size: 13px;
  color: rgba(255,255,255,.88); line-height: 1.65;
  max-width: 92%;
}
.feat-chat-ai-label {
  display: block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: #93AAFD; margin-bottom: 8px;
}
.feat-chat-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(34,197,94,.15); color: var(--green-light);
  font-size: 11px; font-weight: 700;
  padding: 5px 11px; border-radius: 100px;
  margin-top: 12px;
}

/* ── Check list (feature bullet points) ──────────────────────── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); }
.check-list li i { color: var(--green); margin-top: 2px; flex-shrink: 0; }

/* ── Question pill list ───────────────────────────────────────── */
.question-list-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: var(--text-muted); margin-bottom: 12px;
}
.question-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.question-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--border-light);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px; color: var(--text); font-weight: 500;
}
.question-pill i { color: var(--blue); font-size: 12px; flex-shrink: 0; }

/* ── Outcome stats (data-backed social proof) ─────────────────── */
.outcome-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.outcome-stat {
  text-align: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 32px 20px;
  transition: background .2s;
}
.outcome-stat:hover { background: rgba(255,255,255,.09); }
.outcome-stat-value {
  font-size: 44px; font-weight: 800;
  color: var(--green-light);
  line-height: 1; margin-bottom: 10px;
  letter-spacing: -.04em;
}
.outcome-stat-label {
  font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 6px;
}
.outcome-stat-sub {
  font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.55;
}
.outcome-disclaimer {
  text-align: center;
  font-size: 12px; color: rgba(255,255,255,.35);
  max-width: 600px; margin: 0 auto;
  line-height: 1.6;
}

/* ── Hero tagline (trial terms line below CTAs) ───────────────── */
.hero-tagline {
  margin-top: 14px;
  font-size: 13px; color: rgba(255,255,255,.5);
  font-weight: 500;
}

/* ── Section intro centering modifier ────────────────────────── */
.section-intro.centered { text-align: center; }
.section-intro.centered .section-label { justify-content: center; }
.section-intro.centered .section-head  { text-align: center; margin-left: auto; margin-right: auto; }
.section-intro.centered .section-sub   { margin: 12px auto 0; text-align: center; }

/* ── Responsive: design system v3 ────────────────────────────── */
@media (max-width: 1024px) {
  .outcome-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .social-strip-inner { flex-wrap: wrap; }
  .social-strip-item  { flex: 0 0 50%; border-bottom: 1px solid var(--border); }
  .social-strip-item:nth-child(even) { border-right: none; }
  .social-strip-item:last-child      { border-bottom: none; }
  .comparison-grid    { grid-template-columns: 1fr; gap: 16px; }
  .feat-split         { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .social-strip-item  { flex: 0 0 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .social-strip-item:last-child { border-bottom: none; }
  .outcome-stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .outcome-stat-value { font-size: 36px; }
  .outcome-stat       { padding: 24px 16px; }
}

/* ================================================================
   PREMIUM DESIGN SYSTEM  — Phase 5: Enterprise Fintech Polish
   ================================================================ */

/* ── Refined shadow tokens ────────────────────────────────────── */
:root {
  --shadow-sm:  0 1px 3px rgba(11,31,77,.06), 0 1px 2px rgba(11,31,77,.04);
  --shadow-md:  0 4px 16px rgba(11,31,77,.1),  0 2px 6px rgba(11,31,77,.05);
  --shadow-lg:  0 12px 48px rgba(11,31,77,.14), 0 4px 14px rgba(11,31,77,.07), 0 1px 3px rgba(11,31,77,.04);
  --shadow-xl:  0 24px 80px rgba(11,31,77,.18), 0 8px 24px rgba(11,31,77,.09), 0 2px 6px rgba(11,31,77,.04);
  --shadow-blue:  0 4px 20px rgba(79,110,247,.28);
  --shadow-green: 0 4px 20px rgba(34,197,94,.28);
}

/* ── Nav: scroll-aware polish ─────────────────────────────────── */
.pub-nav {
  transition: box-shadow .25s, background .25s, border-bottom-color .25s;
}
.pub-nav.is-scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 1px 0 rgba(11,31,77,.08), 0 4px 20px rgba(11,31,77,.06);
}
.pub-logo-mark {
  background: linear-gradient(135deg, #5B7BF9 0%, #1a3266 100%);
  box-shadow: 0 2px 10px rgba(79,110,247,.28);
  transition: box-shadow .2s, transform .2s;
}
.pub-logo:hover .pub-logo-mark {
  box-shadow: 0 4px 20px rgba(79,110,247,.45);
  transform: scale(1.06) rotate(-4deg);
}
.pub-nav-links a { position: relative; font-size: 14.5px; }
.pub-nav-links a.active {
  color: var(--navy);
  background: transparent;
  font-weight: 600;
}
.pub-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 12px; right: 12px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

/* ── Buttons: solid brand colors + simple shadow lift ─────────── */
.btn-primary-sm {
  background: var(--blue);
  box-shadow: 0 2px 10px rgba(79,110,247,.28);
  transition: background .15s, box-shadow .15s, transform .1s;
}
.btn-primary-sm:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 18px rgba(79,110,247,.4);
}

.btn-hero-primary {
  background: var(--green);
}
.btn-hero-primary:hover {
  background: #16A34A;
  box-shadow: 0 8px 32px rgba(34,197,94,.5), 0 4px 12px rgba(34,197,94,.22);
  transform: translateY(-2px);
  color: #fff;
}
.btn-hero-primary:active { transform: translateY(0); transition-duration: .06s; }

.btn-hero-secondary:hover { transform: translateY(-1px); }

.btn-auth {
  background: var(--blue);
  box-shadow: 0 4px 16px rgba(79,110,247,.3);
  transition: background .2s, box-shadow .2s, transform .2s;
}
.btn-auth:hover {
  background: var(--blue-dark);
  box-shadow: 0 8px 28px rgba(79,110,247,.42);
  transform: translateY(-2px);
  color: #fff;
}

.btn-pricing {
  background: var(--blue);
  box-shadow: 0 4px 16px rgba(79,110,247,.3);
}
.btn-pricing:hover {
  background: var(--blue-dark);
  box-shadow: 0 8px 28px rgba(79,110,247,.42);
  transform: translateY(-2px);
}

.btn-submit {
  background: var(--blue);
  box-shadow: 0 4px 14px rgba(79,110,247,.28);
  transition: background .2s, box-shadow .2s, transform .2s;
}
.btn-submit:hover {
  background: var(--blue-dark);
  box-shadow: 0 8px 24px rgba(79,110,247,.4);
  transform: translateY(-2px);
}

/* ── Hero: stronger gradient + bigger headline ───────────────── */
.hero {
  padding: 108px 0 96px;
  background: linear-gradient(150deg, #07172d 0%, #0e2252 45%, #1a3570 70%, #0f2b5e 100%);
}
.hero::before {
  background:
    radial-gradient(ellipse 65% 55% at 72% 45%, rgba(79,110,247,.28) 0%, transparent 70%),
    radial-gradient(ellipse 45% 65% at 18% 85%, rgba(34,197,94,.14) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 50% 8%,  rgba(139,92,246,.08) 0%, transparent 70%);
}
.hero h1 {
  font-size: clamp(28px, 3.3vw, 48px);
  letter-spacing: -.05em;
  line-height: 1.07;
}

/* ── Hero floating insight cards ─────────────────────────────── */
.hero-float-card {
  position: absolute;
  background: rgba(255,255,255,.97);
  border-radius: 14px;
  padding: 11px 15px;
  box-shadow: 0 8px 32px rgba(11,31,77,.22), 0 2px 8px rgba(11,31,77,.1);
  display: flex; align-items: center; gap: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  animation: float-card 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.hero-float-card.fc-top    { top: -18px; right: -12px; animation-delay: .5s; }
.hero-float-card.fc-bottom { bottom: 16px; left: -18px; animation-delay: 2s; }
.hero-float-card-icon {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.hero-float-card-icon.green { background: rgba(34,197,94,.14); color: var(--green); }
.hero-float-card-icon.blue  { background: rgba(79,110,247,.14); color: var(--blue); }
.hero-float-card-label { font-size: 10px; color: var(--text-muted); font-weight: 500; margin-bottom: 2px; }
.hero-float-card-value { font-size: 13px; font-weight: 800; color: var(--navy); }
@keyframes float-card {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}

/* Pulsing "Live" badge */
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50%       { opacity: .55; }
}
.mockup-badge { animation: pulse-live 2.4s ease-in-out infinite; }
.ap-live      { animation: pulse-live 2.4s ease-in-out infinite; }

/* ── Section backgrounds: improved rhythm ────────────────────── */
.section-alt           { background: #FAFBFF; }
#what-users-find       { background: #F8FAFC; }
#health-preview        { background: #F5F8FF; }
#testimonials          { background: #EEF3FF; }
.testimonial-card      { background: #fff; }

/* ── Feature cards: accent top border ───────────────────────── */
.feature-card {
  border-top: 3px solid transparent;
  transition: box-shadow .25s, transform .25s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.features-grid .feature-card:nth-child(3n+1) { border-top-color: var(--blue); }
.features-grid .feature-card:nth-child(3n+2) { border-top-color: var(--green); }
.features-grid .feature-card:nth-child(3n+3) { border-top-color: var(--gold); }

/* ── Opportunity card: annual savings hint ───────────────────── */
.opp-amount-annual {
  font-size: 12.5px; font-weight: 600;
  color: var(--text-muted);
  margin-top: -2px; margin-bottom: 12px;
}

/* ── Testimonials: verified badge ────────────────────────────── */
.testimonial-verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700;
  color: var(--blue-dark);
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  padding: 2px 7px; border-radius: 100px;
  margin-left: 6px; vertical-align: middle;
}
.testimonial-verified i { font-size: 9px; }

.testimonial-card {
  box-shadow: 0 1px 4px rgba(11,31,77,.06), 0 1px 2px rgba(11,31,77,.03);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(79,110,247,.15);
}
.testimonial-card::before { color: rgba(79,110,247,.12); font-size: 72px; }

/* ── Pricing: yearly card visually dominant ──────────────────── */
.pricing-grid { align-items: start; }
.pricing-card.highlighted {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(79,110,247,.1), var(--shadow-xl);
  transform: scale(1.03);
  position: relative; z-index: 1;
}
.pricing-badge {
  background: linear-gradient(135deg, #3B58E5 0%, #5B7BF9 100%);
  box-shadow: 0 4px 14px rgba(79,110,247,.35);
  padding: 6px 18px; font-size: 12px;
}

/* ── FAQ: richer open state ──────────────────────────────────── */
details.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: rgba(79,110,247,.2);
}
details.faq-item[open] summary {
  color: var(--blue);
  background: rgba(79,110,247,.03);
}
details.faq-item[open] summary::after { color: var(--blue); }

/* ── Step connectors ──────────────────────────────────────────── */
.steps { position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(16.67% + 30px);
  right: calc(16.67% + 30px);
  height: 2px;
  background: linear-gradient(90deg, rgba(79,110,247,.25) 0%, rgba(34,197,94,.25) 100%);
}
.step-num {
  position: relative; z-index: 1;
  box-shadow: 0 4px 16px rgba(79,110,247,.3);
  transition: transform .2s, box-shadow .2s;
}
.step:hover .step-num {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(79,110,247,.42);
}

/* ── Footer: more breathing room ─────────────────────────────── */
.pub-footer { padding: 80px 0 40px; }
.footer-grid { gap: 56px; margin-bottom: 64px; }
.footer-col h4 { margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-bottom { padding-top: 32px; }

/* ── Trust strip icons: glow halo ────────────────────────────── */
.trust-check-icon { box-shadow: 0 0 0 4px rgba(34,197,94,.06); }

/* ── Icon backgrounds: subtle gradient depth ─────────────────── */
.icon-blue   { background: linear-gradient(135deg, rgba(79,110,247,.12), rgba(79,110,247,.06)); }
.icon-green  { background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(34,197,94,.06)); }
.icon-gold   { background: linear-gradient(135deg, rgba(245,181,68,.12), rgba(245,181,68,.06)); }
.icon-navy   { background: linear-gradient(135deg, rgba(11,31,77,.1), rgba(11,31,77,.05)); }
.icon-teal   { background: linear-gradient(135deg, rgba(20,184,166,.12), rgba(20,184,166,.06)); }
.icon-purple { background: linear-gradient(135deg, rgba(139,92,246,.12), rgba(139,92,246,.06)); }

/* ── Social strip items ──────────────────────────────────────── */
.social-strip-item { font-size: 13.5px; padding: 18px 28px; }

/* ── Focus rings ─────────────────────────────────────────────── */
*:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── Scrollbar polish ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* ── MFA step indicator ───────────────────────────────────────── */
.mfa-steps {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 32px; gap: 0;
}
.mfa-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.mfa-step-dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: var(--border-light); color: var(--text-muted);
}
.mfa-step.done .mfa-step-dot  { background: rgba(34,197,94,.15); color: var(--green); }
.mfa-step.active .mfa-step-dot {
  background: var(--blue); color: #fff;
  box-shadow: 0 0 0 4px rgba(79,110,247,.18);
}
.mfa-step-label { font-size: 11px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.mfa-step.active .mfa-step-label { color: var(--navy); }
.mfa-step.done .mfa-step-label  { color: var(--green-text); }
.mfa-step-line {
  flex: 1; height: 2px;
  background: linear-gradient(90deg, rgba(34,197,94,.5), rgba(79,110,247,.3));
  margin: 0 14px; margin-bottom: 18px; min-width: 48px;
}

/* ── Animated security shield ─────────────────────────────────── */
.mfa-shield-wrap {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(79,110,247,.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  animation: shield-pulse 2.6s ease-in-out infinite;
}
.mfa-shield-wrap i { font-size: 30px; color: var(--blue); }
@keyframes shield-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,110,247,.22); }
  50%       { box-shadow: 0 0 0 14px rgba(79,110,247,0); }
}

/* ── Auth panel live security badge ──────────────────────────── */
.auth-panel-live-badge {
  display: flex; align-items: center; gap: 8px;
  margin-top: 24px; padding: 12px 16px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 10px;
  font-size: 12px; color: var(--green-text);
}
.auth-panel-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  animation: pulse-live 2s ease-in-out infinite;
}

/* plan-option-featured removed — replaced by .plan-radio-* above */

/* ── Responsive overrides ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-float-card           { display: none; }
  .pricing-card.highlighted  { transform: scale(1); }
  .steps::before             { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 72px 0 64px; }
  .hero h1 { font-size: clamp(26px, 7.5vw, 36px); letter-spacing: -.04em; }
  .pub-footer { padding: 60px 0 32px; }
  .footer-grid { gap: 40px; }
}

/* ═══════════════════════════════════════════════════════════════════
   BLOG / RESOURCES — Premium Publication Layout
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reading progress bar ────────────────────────────────────────── */
.art-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue) 0%, #7C9BFB 100%);
  z-index: 9999; transition: width .1s linear;
  box-shadow: 0 0 8px rgba(79,110,247,.5);
}

/* ── Article header ──────────────────────────────────────────────── */
.art-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
}
.art-header-inner { max-width: 760px; }
.art-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; margin-bottom: 20px;
}
.art-breadcrumb a {
  color: var(--text-muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s;
}
.art-breadcrumb a:hover { color: var(--blue); }
.art-breadcrumb-sep { color: var(--border); }
.art-category-badge {
  display: inline-block; margin-bottom: 14px;
  background: var(--blue-bg); color: var(--blue-dark);
  border: 1px solid var(--blue-border);
  font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
}
.art-title {
  font-size: clamp(26px,4vw,40px); font-weight: 800;
  color: var(--text); line-height: 1.15; letter-spacing: -.02em;
  margin: 0 0 14px;
}
.art-subtitle {
  font-size: 17px; color: var(--text-muted); line-height: 1.6;
  margin: 0 0 24px;
}
.art-meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.art-author { display: flex; align-items: center; gap: 10px; }
.art-author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 14px; flex-shrink: 0;
}
.art-author-name { font-size: 14px; font-weight: 600; color: var(--text); }
.art-author-date { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.art-meta-stats { display: flex; gap: 14px; }
.art-meta-stat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--text-muted);
}
.art-meta-stat i { font-size: 11px; }
.art-share-row { display: flex; gap: 6px; margin-left: auto; }
.art-share-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.art-share-btn:hover { background: var(--blue-bg); color: var(--blue); }

/* ── Three-column layout ─────────────────────────────────────────── */
.art-layout { padding: 48px 0 80px; }
.art-columns {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 40px;
  align-items: start;
}
.art-sidebar-left, .art-sidebar-right { min-width: 0; }
.art-sidebar-sticky { position: sticky; top: 88px; }
.art-main { min-width: 0; }

/* ── Featured image ──────────────────────────────────────────────── */
.art-featured-img-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); margin-bottom: 40px;
  max-height: 380px;
}
.art-featured-img {
  width: 100%; height: 380px; object-fit: cover; display: block;
}

/* ── Sidebar sections ────────────────────────────────────────────── */
.art-sidebar-section {
  margin-bottom: 28px; padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}
.art-sidebar-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.art-sidebar-label {
  font-size: 10px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.art-sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.art-sidebar-nav-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border-radius: 8px; font-size: 13px; font-weight: 500;
  color: var(--navy); text-decoration: none; transition: background .15s, color .15s;
}
.art-sidebar-nav-item i { font-size: 12px; color: var(--text-muted); flex-shrink: 0; width: 14px; text-align: center; }
.art-sidebar-nav-item:hover { background: var(--bg); color: var(--blue); }
.art-sidebar-nav-item:hover i { color: var(--blue); }
.art-sidebar-nav-cta {
  margin-top: 4px;
  background: linear-gradient(135deg, #5B7BF9 0%, var(--blue) 100%);
  color: #fff !important;
}
.art-sidebar-nav-cta i { color: rgba(255,255,255,.8) !important; }
.art-sidebar-nav-cta:hover { opacity: .9; background: linear-gradient(135deg,#5B7BF9,var(--blue)); color:#fff; }

/* Sidebar related articles */
.art-sidebar-related { display: flex; flex-direction: column; gap: 12px; }
.art-sidebar-related-item {
  text-decoration: none; display: block;
  padding: 10px 12px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border-light);
  transition: border-color .15s, box-shadow .15s;
}
.art-sidebar-related-item:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.art-sidebar-related-title {
  font-size: 12px; font-weight: 600; color: var(--navy);
  line-height: 1.4; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-sidebar-related-meta { font-size: 11px; color: var(--text-muted); }

/* Sidebar newsletter */
.art-sidebar-newsletter {
  background: linear-gradient(135deg, #EEF2FF 0%, #F5F8FF 100%);
  border: 1px solid rgba(79,110,247,.15); border-radius: 12px;
  padding: 16px; text-align: center;
}
.art-sidebar-newsletter-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(79,110,247,.12); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin: 0 auto 10px;
}
.art-sidebar-newsletter-title { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.art-sidebar-newsletter-sub { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.art-sidebar-newsletter-btn {
  display: block; padding: 8px 14px; border-radius: 8px;
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 700; text-decoration: none;
  transition: opacity .15s;
}
.art-sidebar-newsletter-btn:hover { opacity: .88; color: #fff; }

/* Reading progress in sidebar */
.art-reading-meta { }
.art-reading-label { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.art-reading-track {
  height: 6px; background: var(--border-light); border-radius: 100px; overflow: hidden; margin-bottom: 6px;
}
.art-reading-fill { height: 100%; background: linear-gradient(90deg,var(--blue),#7C9BFB); width: 0; transition: width .2s; border-radius: 100px; }
.art-reading-pct { font-size: 11px; font-weight: 700; color: var(--blue); }

/* ── Article typography ──────────────────────────────────────────── */
.article-content {
  font-size: 17px; line-height: 1.78; color: var(--text);
}
.article-content h1 { font-size: 30px; font-weight: 800; margin: 48px 0 16px; color: var(--navy); line-height: 1.2; letter-spacing: -.02em; }
.article-content h2 { font-size: 24px; font-weight: 750; margin: 44px 0 14px; color: var(--navy); line-height: 1.25; letter-spacing: -.015em; }
.article-content h3 { font-size: 19px; font-weight: 700; margin: 36px 0 10px; color: var(--navy); line-height: 1.3; }
.article-content h4 { font-size: 16px; font-weight: 700; margin: 28px 0 8px; color: var(--navy); }
.article-content p  { margin: 0 0 20px; }
.article-content a  { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.article-content a:hover { color: #3B58E5; }
.article-content ul, .article-content ol { margin: 0 0 20px; padding-left: 28px; }
.article-content ul { list-style: none; padding-left: 0; }
.article-content ul li { padding: 3px 0 3px 28px; position: relative; }
.article-content ul li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
}
.article-content ol li { padding: 3px 0 3px 4px; margin-bottom: 4px; }
.article-content li + li { margin-top: 6px; }
.article-content blockquote {
  margin: 32px 0; padding: 20px 24px 20px 28px;
  border-left: 3px solid var(--blue);
  background: #F5F8FF; border-radius: 0 10px 10px 0;
  font-size: 18px; font-style: italic; color: var(--navy); line-height: 1.7;
}
.article-content blockquote p { margin: 0; }
.article-content code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px; background: #F0F4FF; color: #3B58E5;
  padding: 2px 7px; border-radius: 5px;
  border: 1px solid rgba(79,110,247,.15);
}
.article-content pre {
  background: #0F172A; border-radius: 10px; padding: 20px 24px;
  overflow-x: auto; margin: 28px 0;
  box-shadow: var(--shadow-md);
}
.article-content pre code {
  background: none; color: #94A3B8; padding: 0; border: none; font-size: 14px;
}
.article-content table {
  width: 100%; border-collapse: collapse; margin: 28px 0;
  font-size: 15px; border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article-content th {
  background: var(--navy); color: #fff; font-weight: 700;
  padding: 12px 16px; text-align: left; font-size: 13px;
}
.article-content td { padding: 11px 16px; border-bottom: 1px solid var(--border-light); color: var(--text); }
.article-content tr:last-child td { border-bottom: 0; }
.article-content tr:nth-child(even) td { background: #FAFBFF; }
.article-content img {
  max-width: 100%; border-radius: 10px; box-shadow: var(--shadow-md); margin: 8px 0;
}
.article-content hr { border: 0; border-top: 1px solid var(--border-light); margin: 40px 0; }

/* ── Tags ────────────────────────────────────────────────────────── */
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border-light); }
.art-tag {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  background: var(--bg); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted); font-weight: 500;
}

/* ── End of article actions ──────────────────────────────────────── */
.art-end-actions {
  display: flex; gap: 10px; margin-top: 24px; margin-bottom: 48px;
}
.art-end-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--navy);
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.art-end-btn:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); color: var(--blue); }

/* ── Related articles grid ───────────────────────────────────────── */
.art-related { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border-light); }
.art-related-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.art-related-see-all { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.art-related-see-all:hover { color: #3B58E5; }
.art-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.art-related-card { text-decoration: none; display: block; }
.art-related-card-img {
  height: 140px; border-radius: 10px; overflow: hidden;
  background-size: cover; background-position: center;
  margin-bottom: 12px; background-color: var(--bg);
}
.art-related-card-img img { width: 100%; height: 100%; object-fit: cover; }
.art-related-card-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--border);
}
.art-related-card-cat { font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--blue); margin-bottom: 5px; }
.art-related-card-title { font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.4; margin-bottom: 4px; }
.art-related-card-date { font-size: 11px; color: var(--text-muted); }
.art-related-card:hover .art-related-card-title { color: var(--blue); }

/* ── Article CTA block ───────────────────────────────────────────── */
.art-cta-block {
  margin-top: 56px; padding: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.art-cta-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--blue-bg); display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--blue); margin: 0 auto 16px;
}
.art-cta-title { font-size: 22px; font-weight: 800; color: var(--text); margin: 0 0 10px; }
.art-cta-sub { font-size: 15px; color: var(--text-muted); max-width: 500px; margin: 0 auto 24px; line-height: 1.6; }

/* ── TOC ─────────────────────────────────────────────────────────── */
.art-toc-list { list-style: none; padding: 0; margin: 0; }
.art-toc-item { margin: 0; }
.art-toc-link {
  display: block; padding: 5px 8px; border-radius: 6px;
  font-size: 13px; color: var(--text-muted); text-decoration: none; line-height: 1.4;
  transition: color .15s, background .15s; border-left: 2px solid transparent;
}
.art-toc-link:hover { color: var(--navy); background: var(--bg); }
.art-toc-link.is-active { color: var(--blue); border-left-color: var(--blue); background: rgba(79,110,247,.06); font-weight: 600; }
.art-toc-h3 .art-toc-link { padding-left: 18px; font-size: 12px; }

/* Mobile TOC FAB */
.art-toc-fab {
  display: none; position: fixed; bottom: 24px; right: 24px; z-index: 800;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 16px;
  border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(79,110,247,.45);
  align-items: center; justify-content: center;
}
.art-toc-sheet {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 20px 24px 36px; max-height: 60vh; overflow-y: auto;
  box-shadow: 0 -8px 40px rgba(11,31,77,.18);
  transform: translateY(100%); transition: transform .3s ease;
}
.art-toc-sheet.is-open { transform: translateY(0); }
.art-toc-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 16px;
}
.art-toc-sheet-close {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
.art-toc-overlay {
  display: none; position: fixed; inset: 0; z-index: 850;
  background: rgba(0,0,0,.4); opacity: 0; transition: opacity .3s;
}
.art-toc-overlay.is-open { opacity: 1; }

/* ══════════════════════════════════════════════════════════════════
   BLOG LISTING — Premium editorial layout
   ══════════════════════════════════════════════════════════════════ */

/* ── Category color system (cycled by category id) ────────────────── */
.cat-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px; color: #fff; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(11,31,77,.18);
}
.cat-pill.cat-0 { background: linear-gradient(135deg,#6B84F9,#3B58E5); }
.cat-pill.cat-1 { background: linear-gradient(135deg,#4ADE80,#16A34A); }
.cat-pill.cat-2 { background: linear-gradient(135deg,#A78BFA,#7C3AED); }
.cat-pill.cat-3 { background: linear-gradient(135deg,#FBBF24,#D97706); }
.cat-pill.cat-4 { background: linear-gradient(135deg,#2DD4BF,#0D9488); }
.cat-pill-overlay { position: absolute; top: 12px; left: 12px; z-index: 2; }
.blog-cat-group-dot, .res-sidebar-cat-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.blog-cat-group-dot.cat-0, .res-sidebar-cat-dot.cat-0 { background: #3B58E5; }
.blog-cat-group-dot.cat-1, .res-sidebar-cat-dot.cat-1 { background: #16A34A; }
.blog-cat-group-dot.cat-2, .res-sidebar-cat-dot.cat-2 { background: #7C3AED; }
.blog-cat-group-dot.cat-3, .res-sidebar-cat-dot.cat-3 { background: #D97706; }
.blog-cat-group-dot.cat-4, .res-sidebar-cat-dot.cat-4 { background: #0D9488; }
.res-sidebar-cat-dot { margin-right: 8px; }

/* ── Hero ────────────────────────────────────────────────────────── */
.blog-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 44px;
  position: relative; overflow: hidden;
}
.blog-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 85% 20%, rgba(79,110,247,.06) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(34,197,94,.04) 0%, transparent 60%);
}
.blog-hero > .pub-container { position: relative; z-index: 1; }
.blog-search-wrap {
  position: relative; max-width: 560px; margin-top: 28px;
}
.blog-search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 15px; pointer-events: none;
}
.blog-search {
  width: 100%; padding: 16px 46px 16px 46px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; color: var(--text); font-size: 15px; font-family: var(--font);
  outline: none; box-shadow: 0 8px 28px rgba(11,31,77,.06);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.blog-search::placeholder { color: var(--text-muted); }
.blog-search:focus {
  background: var(--card); border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-bg), 0 8px 28px rgba(11,31,77,.06);
}
.blog-search-clear {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); font-size: 14px;
  cursor: pointer; padding: 4px;
}
.blog-search-live {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
.blog-popular-searches {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 20px;
}
.blog-popular-label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-right: 2px; }
.blog-popular-chip {
  background: var(--card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 12.5px; font-weight: 600;
  padding: 6px 14px; border-radius: 100px; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s, color .15s;
}
.blog-popular-chip:hover {
  background: var(--blue-bg); border-color: var(--blue-border);
  color: var(--blue-dark); transform: translateY(-1px);
}
.blog-stat-row {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.blog-stat {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  padding: 4px 20px 4px 0; margin-right: 20px;
  border-right: 1px solid var(--border);
}
.blog-stat:last-child { border-right: none; margin-right: 0; }
.blog-stat i { color: var(--green); font-size: 12px; }

/* ── Featured article card ───────────────────────────────────────── */
.blog-featured-section { padding: 36px 0 0; }
.blog-featured-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--card); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg); text-decoration: none;
  border: 1px solid var(--border-light); transition: box-shadow .25s, transform .25s;
}
.blog-featured-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-3px); text-decoration: none; }
.blog-featured-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.blog-featured-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.blog-featured-card:hover .blog-featured-img { transform: scale(1.05); }
.blog-featured-img-gradient {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(11,31,77,.35) 0%, transparent 45%);
}
.blog-featured-label {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--gold) 0%, #D97706 100%); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 6px 13px; border-radius: 100px;
  box-shadow: 0 4px 16px rgba(217,119,6,.35);
}
.blog-featured-label i { font-size: 10px; }
.blog-featured-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-body .cat-pill { align-self: flex-start; margin-bottom: 14px; }
.blog-featured-title {
  font-size: 27px; font-weight: 800; color: var(--navy);
  line-height: 1.22; margin-bottom: 14px; letter-spacing: -.02em;
}
.blog-featured-excerpt { font-size: 15.5px; color: var(--text-muted); line-height: 1.65; margin-bottom: 22px; }
.blog-featured-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 700; color: var(--blue);
}
.blog-featured-cta i { font-size: 12px; transition: transform .2s; }
.blog-featured-card:hover .blog-featured-cta i { transform: translateX(4px); }

/* Placeholder artwork when a post has no featured_image */
.blog-img-placeholder {
  width: 100%; height: 100%; position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 60%, var(--blue) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.blog-img-placeholder-lg { min-height: 220px; }
.blog-img-placeholder i {
  position: absolute; color: rgba(255,255,255,.16); font-size: 64px;
}
.blog-ph-icon-1 { top: 18%; left: 14%; transform: rotate(-8deg); font-size: 46px; }
.blog-ph-icon-2 { bottom: 16%; right: 18%; transform: rotate(6deg); font-size: 58px; }
.blog-ph-icon-3 { top: 40%; right: 32%; transform: rotate(-4deg); font-size: 38px; opacity: .8; }
.blog-editorial-img .blog-img-placeholder { font-size: 26px; }
.blog-editorial-img .blog-img-placeholder i { position: static; color: rgba(255,255,255,.35); font-size: 26px; }

/* ── Filter bar (sticky) ───────────────────────────────────────────── */
.blog-filter-section {
  position: sticky; top: 64px; z-index: 90;
  padding: 14px 0; margin: 8px 0;
  background: rgba(248,250,252,.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}
.blog-filter-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.blog-filter-chips {
  display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.blog-filter-chips::-webkit-scrollbar { display: none; }
.blog-chip {
  display: inline-flex; align-items: center;
  padding: 8px 17px; border-radius: 100px;
  background: #fff; border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; white-space: nowrap; transition: all .15s;
}
.blog-chip:hover { background: var(--bg); color: var(--navy); border-color: var(--navy); transform: translateY(-1px); }
.blog-chip.is-active {
  background: linear-gradient(135deg, #5B7BF9 0%, var(--blue) 100%);
  color: #fff; border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(79,110,247,.32);
}
.blog-sort-wrap {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.blog-sort {
  font-size: 13px; font-weight: 600; color: var(--navy);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 12px; background: #fff; font-family: var(--font);
  cursor: pointer; outline: none;
}

/* ── Main layout wrapper ───────────────────────────────────────────── */
.blog-main-section { padding: 40px 0 88px; }
.res-layout { display: grid; grid-template-columns: 1fr 340px; gap: 52px; align-items: start; }
.res-main { min-width: 0; }

/* ── Category groups ─────────────────────────────────────────────── */
.blog-cat-group { margin-bottom: 56px; opacity: 1; }
.blog-cat-group:last-child { margin-bottom: 0; }
.blog-cat-group-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.blog-cat-group-heading { display: flex; align-items: center; gap: 12px; }
.blog-cat-group-title {
  font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin: 0;
}
.blog-cat-group-count { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.blog-cat-see-all {
  font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 6px 12px; border-radius: 100px; transition: background .15s, gap .15s;
}
.blog-cat-see-all:hover { background: rgba(79,110,247,.08); text-decoration: none; gap: 9px; }

/* ── Editorial card grid ─────────────────────────────────────────── */
.blog-editorial-grid { display: grid; gap: 22px; }
.blog-editorial-grid-1 { grid-template-columns: 1fr; }
.blog-editorial-grid-2 { grid-template-columns: repeat(2,1fr); }
.blog-editorial-grid-3 { grid-template-columns: 1.5fr 1fr; }
.blog-editorial-grid-3 .blog-editorial-card-lg { grid-column: 1; grid-row: 1 / 3; }

.blog-editorial-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.blog-editorial-card:hover {
  border-color: rgba(79,110,247,.25); box-shadow: var(--shadow-lg);
  transform: translateY(-4px); text-decoration: none;
}
.blog-editorial-img {
  position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden;
  background: var(--bg); flex-shrink: 0;
}
.blog-editorial-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s; }
.blog-editorial-card:hover .blog-editorial-img img { transform: scale(1.06); }
.blog-editorial-body { min-width: 0; flex: 1; display: flex; flex-direction: column; padding: 20px; }
.blog-editorial-card-lg .blog-editorial-title { font-size: 19px; }
.blog-editorial-card-lg .blog-editorial-excerpt { -webkit-line-clamp: 3; font-size: 13.5px; }
.blog-editorial-title {
  font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.4; margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .15s;
}
.blog-editorial-excerpt {
  font-size: 13px; color: var(--text-muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px;
}
.blog-editorial-card:hover .blog-editorial-title { color: var(--blue); }
.blog-editorial-body .blog-card-meta { margin-bottom: 12px; }
.blog-editorial-body .blog-card-read-more { margin-top: auto; }

/* ── Shared card meta ────────────────────────────────────────────── */
.blog-card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-muted);
}
.blog-card-meta i { margin-right: 4px; font-size: 11px; }
.blog-card-read-more {
  font-size: 13px; font-weight: 700; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
}
.blog-card-read-more i { transition: transform .2s; font-size: 11px; }
.blog-editorial-card:hover .blog-card-read-more i { transform: translateX(4px); }

/* ── Sidebar ─────────────────────────────────────────────────────── */
.res-sidebar-sticky {
  position: sticky; top: 148px;
  display: flex; flex-direction: column; gap: 20px;
}
.res-sidebar-card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-sm);
}
.res-sidebar-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.res-sidebar-label i { color: var(--blue); }
.res-sidebar-list { display: flex; flex-direction: column; gap: 4px; }
.res-sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; margin: 0 -8px; border-radius: 10px;
  text-decoration: none; transition: background .15s;
}
.res-sidebar-item:hover { background: var(--bg); text-decoration: none; }
.res-sidebar-item-rank {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
  background: rgba(79,110,247,.1); color: var(--blue);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.res-sidebar-item-thumb {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 8px;
  background-size: cover; background-position: center; background-color: var(--bg);
}
.res-sidebar-item-thumb-ph {
  display: flex; align-items: center; justify-content: center;
  color: var(--border); font-size: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}
.res-sidebar-item-thumb-ph i { color: rgba(255,255,255,.4); }
.res-sidebar-item-info { min-width: 0; flex: 1; }
.res-sidebar-item-title {
  font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 3px;
}
.res-sidebar-item-meta { font-size: 11.5px; color: var(--text-muted); }

.res-sidebar-cat-list { display: flex; flex-direction: column; gap: 2px; }
.res-sidebar-cat-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 8px; margin: 0 -8px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--text);
  text-decoration: none; transition: background .15s, color .15s;
}
.res-sidebar-cat-link:hover { background: var(--bg); color: var(--blue); text-decoration: none; }
.res-sidebar-cat-link i { font-size: 10px; color: var(--border); }
.res-sidebar-cat-link span { display: flex; align-items: center; }

.res-sidebar-newsletter {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 22px;
  text-align: center; position: relative; overflow: hidden;
}
.res-sidebar-newsletter::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(79,110,247,.06) 0%, transparent 70%);
}
.res-sidebar-newsletter-icon {
  position: relative; width: 44px; height: 44px; margin: 0 auto 14px;
  background: var(--blue-bg); border: 1px solid var(--blue-border);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 17px;
}
.res-sidebar-newsletter-title { position: relative; font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.res-sidebar-newsletter-sub { position: relative; font-size: 12.5px; color: var(--text-muted); line-height: 1.55; margin-bottom: 18px; }
.res-sidebar-newsletter-btn {
  position: relative; display: block;
  background: var(--green); color: #fff;
  font-size: 13.5px; font-weight: 700; padding: 11px 20px; border-radius: 10px;
  text-decoration: none; box-shadow: 0 4px 16px rgba(34,197,94,.32);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.res-sidebar-newsletter-btn:hover { background: #16A34A; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(34,197,94,.42); text-decoration: none; color: #fff; }
.res-sidebar-newsletter-trust {
  position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
}
.res-sidebar-newsletter-trust span {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 600; color: var(--text-muted);
}
.res-sidebar-newsletter-trust i { font-size: 9px; color: var(--green); }

/* ── Empty states ──────────────────────────────────────────────────── */
.blog-empty-state {
  text-align: center; padding: 72px 24px; background: var(--card);
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
}
.blog-empty-state-lg { padding: 100px 24px; }
.blog-empty-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: rgba(79,110,247,.08); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 24px;
}
.blog-empty-state h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.blog-empty-state p { font-size: 14px; color: var(--text-muted); max-width: 380px; margin: 0 auto 22px; line-height: 1.6; }
.blog-empty-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; font-size: 13.5px; font-weight: 700;
  padding: 11px 22px; border: none; border-radius: var(--radius);
  cursor: pointer; text-decoration: none; transition: background .15s, transform .15s;
}
.blog-empty-cta:hover { background: var(--blue-dark); transform: translateY(-1px); text-decoration: none; color: #fff; }

/* ── Bottom CTA — premium conversion section ──────────────────────── */
.blog-cta-premium {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 64px 56px; text-align: center;
}
.blog-cta-premium-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 20% 0%, rgba(79,110,247,.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 100%, rgba(34,197,94,.04) 0%, transparent 60%);
}
.blog-cta-premium-content { position: relative; max-width: 620px; margin: 0 auto; }
.blog-cta-premium-icon {
  width: 60px; height: 60px; margin: 0 auto 22px;
  background: var(--blue-bg); border: 1px solid var(--blue-border);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 24px;
}
.blog-cta-premium h2 { font-size: clamp(24px,3vw,34px); font-weight: 800; color: var(--text); margin-bottom: 14px; }
.blog-cta-premium p { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; }
.blog-cta-benefits-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 14px;
  margin-bottom: 32px;
}
.blog-cta-benefit {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 12px;
}
.blog-cta-benefit-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.blog-cta-benefit span { font-size: 12.5px; font-weight: 700; color: var(--text); }
.blog-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 28px; }
.blog-cta-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.blog-cta-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.blog-cta-trust i { color: var(--green); font-size: 12px; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .art-columns { grid-template-columns: 200px 1fr 200px; gap: 28px; }
  .res-layout { grid-template-columns: 1fr 300px; gap: 36px; }
}
@media (max-width: 960px) {
  .art-columns { grid-template-columns: 1fr; }
  .art-sidebar-left  { display: none; }
  .art-sidebar-right { display: none; }
  .art-toc-fab { display: flex; }
  .art-toc-sheet, .art-toc-overlay { display: block; }
  .art-related-grid { grid-template-columns: 1fr 1fr; }
  .blog-featured-card { grid-template-columns: 1fr; }
  .blog-featured-body { padding: 28px; }
  .blog-editorial-grid-3 { grid-template-columns: repeat(2,1fr); }
  .blog-editorial-grid-3 .blog-editorial-card-lg { grid-column: 1 / -1; grid-row: auto; }
  .res-layout { grid-template-columns: 1fr; }
  .res-sidebar-sticky { position: static; flex-direction: row; flex-wrap: wrap; }
  .res-sidebar-card, .res-sidebar-newsletter { flex: 1 1 260px; }
  .blog-filter-section { position: static; }
}
@media (max-width: 640px) {
  .art-layout { padding: 32px 0 60px; }
  .art-header { padding: 40px 0 36px; }
  .art-title { font-size: 24px; }
  .art-meta-row { gap: 12px; }
  .art-share-row { margin-left: 0; }
  .art-cta-block { padding: 28px 24px; }
  .art-related-grid { grid-template-columns: 1fr; }
  .blog-editorial-grid-1, .blog-editorial-grid-2, .blog-editorial-grid-3 { grid-template-columns: 1fr; }
  .blog-editorial-grid-3 .blog-editorial-card-lg { grid-column: 1; }
  .blog-filter-bar { flex-direction: column; align-items: flex-start; }
  .blog-stat-row { gap: 4px 0; }
  .blog-stat { padding: 4px 14px 4px 0; margin-right: 14px; }
  .blog-cta-premium { padding: 40px 24px; }
  .blog-cta-benefits-grid { grid-template-columns: 1fr; }
  .res-sidebar-sticky { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════════
   BRAND IDENTITY — Logo image + tagline system
   ═══════════════════════════════════════════════════════════════════ */

/* Logo image replaces the sparkles icon mark */
.pub-logo-img {
  width: 80px;
  height: 80px;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  transition: transform .2s;
}
.pub-logo:hover .pub-logo-img { transform: scale(1.07); }

/* Info column: brand name + tagline stacked */
.pub-logo-info {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}

/* Tagline under the brand name */
.pub-logo-tagline {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: block;
}

/* Sidebar logo in app shell */
.sidebar-logo-img {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  transition: transform .2s;
  
  transform: scale(1.5) !important;
  clip-path: inset(20% 20% 20% 20%) !important;
  margin-bottom: -10px !important;
}
.brand:hover .sidebar-logo-img { transform: scale(1.07); }

/* Mobile topbar logo */
.mob-brand-logo {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
}

/* Auth panel logo – tagline colour override */
.auth-panel-logo .pub-logo-tagline { color: var(--text-muted); }

/* Admin sidebar logo */
.admin-brand-img {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════════
   BLOG ARTICLE — Premium Editorial v2
   New components layered on top of existing art-* base styles.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Accessibility ────────────────────────────────────────────── */
.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;
}

/* ── Breadcrumb: upgraded chevron style ───────────────────────── */
.art-breadcrumb-link {
  color: var(--text-muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 500;
  transition: color .15s;
}
.art-breadcrumb-link i { font-size: 11px; }
.art-breadcrumb-link:hover { color: var(--blue); text-decoration: none; }
.art-breadcrumb-sep { color: var(--border); font-size: 9px; flex-shrink: 0; }

/* ── Meta row vertical divider ────────────────────────────────── */
.art-meta-divider {
  width: 1px; height: 26px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Hero image — full-width section below header ─────────────── */
.art-hero-img-section {
  background: var(--bg);
  padding: 0;
}
.art-hero-img-section .pub-container { padding-left: 24px; padding-right: 24px; }
.art-hero-img-wrap {
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  max-height: 460px;
  box-shadow: 0 8px 48px rgba(11,31,77,.16), 0 2px 8px rgba(11,31,77,.08);
}
.art-hero-img {
  width: 100%; height: 460px; object-fit: cover; display: block;
  transition: transform .7s ease;
}
.art-hero-img-wrap:hover .art-hero-img { transform: scale(1.025); }

/* ── Left sidebar: categories nav ────────────────────────────── */
.art-sidebar-cats { display: flex; flex-direction: column; gap: 1px; }
.art-sidebar-cat-item {
  display: flex; align-items: center; gap: 9px; padding: 6px 10px;
  border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: background .15s, color .15s;
}
.art-sidebar-cat-item i {
  font-size: 11px; color: var(--border); flex-shrink: 0;
  width: 14px; text-align: center; transition: color .15s;
}
.art-sidebar-cat-item:hover { background: var(--bg); color: var(--navy); text-decoration: none; }
.art-sidebar-cat-item:hover i { color: var(--blue); }

/* Right sidebar: category chips ── */
.art-sidebar-cats-sm { flex-direction: row !important; flex-wrap: wrap; gap: 5px; }
.art-sidebar-cat-chip {
  display: inline-block; padding: 4px 10px; border-radius: 100px;
  background: var(--bg); border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.art-sidebar-cat-chip:hover {
  background: rgba(79,110,247,.07); border-color: rgba(79,110,247,.3);
  color: var(--blue); text-decoration: none;
}

/* ── Left sidebar: related items with thumbnail ───────────────── */
.art-sidebar-related-item {
  display: flex !important; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border-light);
  background: none !important; border-radius: 0 !important;
}
.art-sidebar-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.art-sidebar-related-thumb {
  width: 52px; height: 52px; border-radius: 8px; flex-shrink: 0;
  background-size: cover; background-position: center;
  background-color: var(--bg); border: 1px solid var(--border-light);
}
.art-sidebar-related-thumb-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--border);
}
.art-sidebar-related-info { min-width: 0; flex: 1; }
.art-sidebar-related-title {
  font-size: 12px; font-weight: 600; color: var(--navy);
  line-height: 1.4; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-sidebar-related-item:hover .art-sidebar-related-title { color: var(--blue); }
.art-sidebar-related-meta { font-size: 11px; color: var(--text-muted); }

/* ── Right sidebar: search ────────────────────────────────────── */
.art-sidebar-search-form { margin: 0; }
.art-sidebar-search-wrap { position: relative; }
.art-sidebar-search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 12px; pointer-events: none;
}
.art-sidebar-search {
  width: 100%; padding: 8px 10px 8px 30px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 13px; font-family: var(--font); color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.art-sidebar-search:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79,110,247,.1);
  background: #fff;
}
.art-sidebar-search::placeholder { color: var(--text-muted); }

/* ── Right sidebar: CTA card ──────────────────────────────────── */
.art-sidebar-cta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; text-align: center;
  margin-top: 4px;
  box-shadow: var(--shadow-md);
}
.art-sidebar-cta-icon {
  width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 12px;
  background: var(--blue-bg); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.art-sidebar-cta-title {
  font-size: 13px; font-weight: 800; color: var(--text); margin: 0 0 8px; line-height: 1.35;
}
.art-sidebar-cta-body {
  font-size: 11.5px; color: var(--text-muted); line-height: 1.55; margin: 0 0 14px;
}
.art-sidebar-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green);
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 9px 18px; border-radius: 8px; text-decoration: none;
  transition: opacity .15s, transform .15s;
  box-shadow: 0 4px 14px rgba(34,197,94,.35);
}
.art-sidebar-cta-btn:hover { opacity: .9; color: #fff; transform: translateY(-1px); text-decoration: none; }
.art-sidebar-cta-btn i { font-size: 11px; }

/* ── Article footer row (after content body) ──────────────────── */
.art-article-footer {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--border-light);
}
.art-article-footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.art-article-footer-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: var(--text-muted); flex-wrap: wrap;
}
.art-article-footer-meta i { margin-right: 4px; font-size: 11px; }
.art-article-footer-meta a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.art-article-footer-meta a:hover { color: var(--blue); }
.art-article-footer-share { display: flex; align-items: center; gap: 8px; }
.art-article-footer-share-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* ── Author bio box ───────────────────────────────────────────── */
.art-author-box {
  display: flex; gap: 20px; align-items: flex-start;
  margin-top: 40px; padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.art-author-box-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(79,110,247,.14) 0%, rgba(79,110,247,.07) 100%);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 24px;
}
.art-author-box-info { min-width: 0; flex: 1; }
.art-author-box-label {
  font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 4px;
}
.art-author-box-name { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.art-author-box-bio {
  font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0 0 12px;
}
.art-author-box-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--blue);
  text-decoration: none; transition: color .15s;
}
.art-author-box-link:hover { color: var(--blue-dark); text-decoration: none; }
.art-author-box-link i { font-size: 12px; }

/* ── Related articles: heading + card footer ──────────────────── */
.art-related-heading {
  font-size: 20px; font-weight: 800; color: var(--navy); margin: 0; letter-spacing: -.02em;
}
.art-related-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.art-related-card-cta {
  font-size: 11px; font-weight: 700; color: var(--blue);
  display: inline-flex; align-items: center; gap: 4px;
  opacity: 0; transition: opacity .2s;
}
.art-related-card-cta i { font-size: 9px; }
.art-related-card:hover .art-related-card-cta { opacity: 1; }
/* Ensure related card images use <img> correctly */
.art-related-card-img { position: relative; overflow: hidden; }
.art-related-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.art-related-card:hover .art-related-card-img img { transform: scale(1.05); }

/* ── CTA block: expanded premium layout ───────────────────────── */
.art-cta-actions {
  display: flex; align-items: center; gap: 16px;
  justify-content: center; flex-wrap: wrap; margin-bottom: 20px;
}
.art-cta-secondary-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  text-decoration: none; transition: color .15s;
}
.art-cta-secondary-link:hover { color: var(--blue); text-decoration: none; }
.art-cta-secondary-link i { font-size: 11px; }
.art-cta-trust {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 16px;
  font-size: 12px; color: var(--text-muted); font-weight: 500;
}
.art-cta-trust i { color: var(--green); margin-right: 5px; font-size: 11px; }

/* ── Floating share bar (fixed left, desktop only) ────────────── */
.art-float-share {
  position: fixed;
  left: clamp(12px, calc((100vw - 1168px) / 2 - 58px), 60px);
  top: 50%; transform: translateY(-50%);
  z-index: 500;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.art-float-share.is-visible {
  opacity: 1; pointer-events: all;
}
.art-float-share-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s, box-shadow .15s, transform .15s;
  box-shadow: var(--shadow-sm);
}
.art-float-share-btn:hover {
  border-color: var(--blue); color: var(--blue);
  box-shadow: var(--shadow-md); transform: scale(1.1);
}
.art-float-share-divider {
  width: 1px; height: 18px; background: var(--border); margin: 0 auto;
}

/* ── Back to top ──────────────────────────────────────────────── */
.art-back-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 500;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 14px;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s, background .15s;
  box-shadow: 0 4px 18px rgba(11,31,77,.32);
}
.art-back-top.is-visible { opacity: 1; pointer-events: all; }
.art-back-top:hover { background: var(--blue); transform: translateY(-2px); }

/* ── Mobile share bar (bottom strip) ─────────────────────────── */
.art-mobile-share {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  align-items: center; gap: 8px;
}
.art-mobile-share-btn {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--navy); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.art-mobile-share-btn:hover { background: rgba(79,110,247,.08); border-color: var(--blue); color: var(--blue); }
.art-mobile-share-cta-btn {
  flex: 1; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border: none; color: #fff; font-size: 14px; font-weight: 700;
  font-family: var(--font); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .15s;
}
.art-mobile-share-cta-btn:hover { opacity: .9; }

/* ── Fade-in on scroll ────────────────────────────────────────── */
.art-fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
}
.art-fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ── Responsive: article v2 ──────────────────────────────────── */
@media (max-width: 1200px) {
  .art-float-share { left: 12px; }
}
@media (max-width: 900px) {
  .art-float-share { display: none; }
  .art-hero-img-section .pub-container { padding: 0; }
  .art-hero-img-wrap { border-radius: 0; }
  .art-hero-img { height: 320px; }
}
@media (max-width: 640px) {
  .art-hero-img { height: 220px; }
  .art-back-top { bottom: 76px; right: 16px; width: 38px; height: 38px; font-size: 12px; }
  .art-mobile-share { display: flex; }
  .art-author-box { flex-direction: column; gap: 14px; padding: 20px; }
  .art-author-box-avatar { width: 52px; height: 52px; font-size: 20px; }
  .art-article-footer-inner { flex-direction: column; align-items: flex-start; }
  .art-cta-actions { flex-direction: column; gap: 10px; }
  .art-cta-secondary-link { font-size: 13px; }
  .art-cta-trust { gap: 10px; font-size: 11px; }
  /* Extra bottom padding so mobile share bar doesn't cover CTA */
  .art-cta-block { margin-bottom: 12px; }
  /* Move TOC FAB above mobile share bar */
  .art-toc-fab { bottom: 72px; }
}

/* ═══════════════════════════════════════════════════════════════════
   HOME PAGE — Google OAuth Verification Sections
   ═══════════════════════════════════════════════════════════════════ */

/* ── How Find-Money Works (4-step card grid) ─────────────────── */
.how-works-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 40px;
}
.how-works-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px 22px 24px;
}
.how-works-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.how-works-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.how-works-card p  { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; margin: 0; }
@media (max-width: 900px) { .how-works-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px)  { .how-works-grid { grid-template-columns: 1fr; } }

/* ── Google OAuth Permissions section ───────────────────────── */
.google-oauth-wrap { max-width: 820px; margin: 0 auto; }
.google-oauth-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px 40px; margin-top: 32px;
}
.google-oauth-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.google-g-badge {
  width: 48px; height: 48px; background: #fff;
  border: 1px solid #dadce0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.google-oauth-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.google-oauth-subtitle { font-size: 13px; color: var(--text-muted); }
.google-perm-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.google-perm-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); line-height: 1.55; }
.google-perm-list li i { color: var(--blue); font-size: 13px; margin-top: 2px; flex-shrink: 0; }
.google-oauth-note {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; font-size: 13px; color: var(--text-muted); line-height: 1.6;
}
.google-oauth-note strong { color: var(--navy); display: block; margin-bottom: 4px; }
.google-oauth-disconnect { margin-top: 18px; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.google-oauth-disconnect i { color: var(--green); }
@media (max-width: 640px) { .google-oauth-card { padding: 24px 20px; } }

/* ── Security & Privacy 2×2 grid ───────────────────────────── */
.sec-priv-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 36px; }
.sec-priv-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px 26px; }
.sec-priv-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 14px 0 8px; }
.sec-priv-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0; }
@media (max-width: 640px) { .sec-priv-grid { grid-template-columns: 1fr; } }

/* ── Trust Banner (dark navy strip) ───────────────────────────── */
.trust-banner {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}
.trust-banner-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.trust-banner-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .8px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
}
.trust-banner-items { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.trust-banner-item { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.trust-banner-item i { color: var(--green); font-size: 12px; }
@media (max-width: 760px) {
  .trust-banner-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .trust-banner-items { gap: 10px 20px; }
}

/* ── Responsive two-column splits (replaces inline 1fr-1fr grids) ── */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
@media (max-width: 900px) {
  .feature-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ── About & Data Usage sections ────────────────────────────── */
.about-text-wrap { max-width: 720px; margin: 28px auto 0; text-align: center; }
.about-text-wrap p { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.about-text-wrap p:last-child { margin-bottom: 0; }

.data-table-wrap { overflow-x: auto; border-radius: var(--radius-xl); border: 1px solid var(--border); margin-top: 28px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table thead th {
  background: var(--bg); padding: 12px 20px; text-align: left;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.data-table tbody td {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  color: var(--text); vertical-align: top; line-height: 1.5;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody td:first-child { font-weight: 700; color: var(--navy); }
.data-badge-opt {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 100px; margin-left: 6px;
  background: var(--gold-bg); color: var(--gold-text); vertical-align: middle;
}

/* ════════════════════════════════════════════════════════════════════
   HERO V2 — Premium two-column hero (July 2026 redesign)
   Gradient: deep navy → royal blue → page background.
   Left: copy / CTAs / trust. Right: 3 floating phones + glass widgets.
   ════════════════════════════════════════════════════════════════════ */

.hero-v2 {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 104px 0 88px;
}

/* Anchored sections shouldn't hide under the sticky nav */
section[id] { scroll-margin-top: 80px; }

/* ── Background glows (HeroBackground) ─────────────────────────────── */
.hero-v2-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-v2-bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero-v2-bg-glow.g1 { width: 620px; height: 620px; right: -140px; top: -120px; background: rgba(79,110,247,.08); }
.hero-v2-bg-glow.g2 { width: 480px; height: 480px; left: -200px; bottom: 10%; background: rgba(107,132,249,.05); }

/* ── Layout ─────────────────────────────────────────────────────────── */
.hero-v2-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 72px;
  align-items: center;
  min-height: 560px;
}

/* ── Left column: copy ──────────────────────────────────────────────── */
.hero-v2-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--blue-dark);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 7px 15px; border-radius: 100px;
  margin-bottom: 28px;
  width: fit-content;
}
.hero-v2-eyebrow i { font-size: 10px; }

.hero-v2-headline {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.05;
  margin: 0 0 24px;
}
.hero-v2-line-sm {
  display: block;
  font-size: clamp(30px, 3.4vw, 46px);
  color: var(--text);
}
.hero-v2-line-lg {
  display: block;
  font-size: clamp(44px, 5.4vw, 74px);
  background: linear-gradient(100deg, var(--navy) 35%, var(--blue) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .06em; /* keeps descenders inside the clipped box */
}
.hero-v2-sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 36px;
}

/* ── CTAs (HeroButtons) ─────────────────────────────────────────────── */
.hero-v2-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 36px; }
.btn-hero-v2-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 16.5px; font-weight: 700;
  padding: 17px 34px;
  border-radius: 16px;
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 32px rgba(79,110,247,.42), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s, background .18s;
}
.btn-hero-v2-primary:hover, .btn-hero-v2-primary:focus-visible {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 40px rgba(79,110,247,.52), inset 0 1px 0 rgba(255,255,255,.18);
  text-decoration: none;
}
.btn-hero-v2-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px; font-weight: 600;
  padding: 16px 30px;
  border-radius: 16px;
  cursor: pointer; text-decoration: none;
  transition: background .18s, border-color .18s, transform .18s cubic-bezier(.22,1,.36,1);
}
.btn-hero-v2-secondary:hover, .btn-hero-v2-secondary:focus-visible {
  background: var(--blue-bg);
  border-color: var(--blue-border);
  color: var(--text);
  transform: translateY(-2px);
  text-decoration: none;
}
.hero-v2-play {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-bg);
  color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px;
}

/* ── Trust indicators (TrustBadges) ─────────────────────────────────── */
.hero-v2-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.hero-v2-stars { color: var(--gold); font-size: 13px; letter-spacing: 2.5px; }
.hero-v2-trust-item {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-muted);
  font-size: 13px; font-weight: 500;
}
.hero-v2-trust-item i { color: var(--text-muted); font-size: 12px; }

/* ── Right column: visual ───────────────────────────────────────────── */
.hero-v2-visual { position: relative; display: flex; justify-content: center; }
.hero-v2-glow {
  position: absolute; top: 8%; left: -8%;
  width: 116%; height: 84%;
  background: radial-gradient(ellipse at center, rgba(79,110,247,.10) 0%, transparent 65%);
  filter: blur(64px);
  pointer-events: none;
}

/* ── Phones (HeroPhone) ─────────────────────────────────────────────── */
.hero-v2-phones {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}
.hp-phone { position: relative; flex: 0 0 auto; width: 224px; margin: 0; }
.hp-phone.hp-center { order: 2; width: 258px; z-index: 3; }
.hp-phone.hp-left   { order: 1; z-index: 2; margin-right: -40px; transform: rotate(-5deg) translateY(34px); }
.hp-phone.hp-right  { order: 3; z-index: 1; margin-left:  -40px; transform: rotate(5deg)  translateY(34px); }

.hp-frame {
  position: relative;
  background: #0A0F1E;
  border-radius: 46px;
  padding: 10px;
  box-shadow:
    0 34px 80px rgba(4,10,30,.5),
    0 8px 22px rgba(4,10,30,.32),
    inset 0 0 0 1.5px rgba(255,255,255,.09);
  animation: hp-float 7s ease-in-out infinite;
  will-change: transform;
}
.hp-left  .hp-frame { animation-duration: 7.8s; animation-delay: 1.4s; }
.hp-right .hp-frame { animation-duration: 6.6s; animation-delay: 2.6s; }
@keyframes hp-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hp-island {
  position: absolute;
  top: 19px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 19px;
  background: #0A0F1E;
  border-radius: 100px;
  z-index: 5;
}
.hp-screen {
  position: relative;
  border-radius: 37px;
  overflow: hidden;
  aspect-ratio: 9 / 19.4;
  background: linear-gradient(180deg, #F7F9FE 0%, #EDF1FA 100%);
}
.hp-screen::after { /* glass reflection */
  content: '';
  position: absolute; inset: 0; z-index: 4;
  background: linear-gradient(205deg, rgba(255,255,255,.16) 0%, transparent 26%);
  pointer-events: none;
}
.hp-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }

.visually-hidden-hero {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ── Placeholder skeleton screens (until real screenshots exist) ────── */
.hp-ph {
  position: absolute; inset: 0; z-index: 1;
  padding: 48px 13px 14px;
  display: flex; flex-direction: column; gap: 9px;
}
.hp-ph-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hp-ph-logo   { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--blue), var(--navy)); flex-shrink: 0; }
.hp-ph-avatar { width: 22px; height: 22px; border-radius: 50%; background: rgba(34,197,94,.22); margin-left: auto; flex-shrink: 0; }
.hp-ph-bar { display: block; height: 8px; border-radius: 6px; background: #DEE5F3; }
.hp-ph-bar + .hp-ph-bar { margin-top: 7px; }
.hp-ph-bar.lt { background: rgba(11,31,77,.14); }
.hp-ph-bar.w35 { width: 35%; } .hp-ph-bar.w40 { width: 40%; } .hp-ph-bar.w45 { width: 45%; }
.hp-ph-bar.w50 { width: 50%; } .hp-ph-bar.w55 { width: 55%; } .hp-ph-bar.w65 { width: 65%; }
.hp-ph-bar.w70 { width: 70%; } .hp-ph-bar.w75 { width: 75%; } .hp-ph-bar.w80 { width: 80%; }
.hp-ph-bar.w85 { width: 85%; }
.hp-ph-card {
  background: #fff;
  border-radius: 14px;
  padding: 13px 12px;
  box-shadow: 0 2px 8px rgba(11,31,77,.06);
}
.hp-ph-card.hp-ph-navy { background: var(--blue-bg); border: 1px solid var(--blue-border); }
.hp-ph-scorerow { display: flex; align-items: center; gap: 10px; margin: 11px 0; }
.hp-ph-stack { flex: 1; min-width: 0; }
.hp-ph-stack .hp-ph-bar + .hp-ph-bar { margin-top: 7px; }
.hp-ph-ring {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  border: 3.5px solid var(--green);
  border-top-color: var(--blue-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 13px; font-weight: 800;
}
.hp-ph-chip {
  display: inline-block;
  background: var(--green-bg);
  color: var(--green-text);
  font-size: 10px; font-weight: 700;
  padding: 4px 10px; border-radius: 100px;
}
.hp-ph-bubble { border-radius: 14px; padding: 10px 12px; max-width: 88%; }
.hp-ph-bubble.me {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  font-size: 10.5px; font-weight: 600; line-height: 1.4;
  border-bottom-right-radius: 4px;
}
.hp-ph-bubble.ai {
  align-self: flex-start;
  width: 88%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(11,31,77,.06);
  border-bottom-left-radius: 4px;
}
.hp-ph-amount { display: block; font-size: 19px; font-weight: 800; color: var(--navy); margin: 9px 0 11px; }
.hp-ph-chart { display: flex; align-items: flex-end; gap: 5px; height: 64px; }
.hp-ph-chart span { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--blue-light), var(--blue)); }
.hp-ph-chart span:last-child { background: linear-gradient(180deg, var(--green-light), var(--green)); }

/* ── Floating insight cards (FloatingInsightCard) ───────────────────── */
.hic {
  position: absolute; z-index: 4;
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 11px 16px;
  box-shadow: 0 12px 36px rgba(4,10,30,.28);
  white-space: nowrap;
  pointer-events: none;
  animation: hic-float 8s ease-in-out infinite;
}
.hic-1 { top: 7%;    left: -4%; }
.hic-2 { top: 15%;   right: -6%; animation-delay: 1.7s; }
.hic-3 { bottom: 19%; left: -7%; animation-delay: 3.2s; }
.hic-4 { bottom: 5%; right: -2%; animation-delay: 4.5s; }
@keyframes hic-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.hic-icon {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.hic-icon.green { background: rgba(34,197,94,.14);  color: var(--green); }
.hic-icon.blue  { background: rgba(79,110,247,.14); color: var(--blue); }
.hic-icon.navy  { background: rgba(11,31,77,.1);    color: var(--navy); }
.hic-label { display: block; font-size: 10.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 1px; }
.hic-value { display: block; font-size: 14px; font-weight: 800; color: var(--navy); }
.hic-value.green { color: #16A34A; }
.hic-progress {
  display: block; width: 92px; height: 4px;
  background: rgba(11,31,77,.1);
  border-radius: 100px; margin-top: 6px; overflow: hidden;
}
.hic-progress span { display: block; height: 100%; background: var(--green); border-radius: 100px; }

/* ── Page-load fade-in (above the fold — no observer needed) ────────── */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-v2-copy > * { animation: hero-rise .8s cubic-bezier(.22,1,.36,1) both; }
.hero-v2-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-v2-copy > *:nth-child(2) { animation-delay: .14s; }
.hero-v2-copy > *:nth-child(3) { animation-delay: .23s; }
.hero-v2-copy > *:nth-child(4) { animation-delay: .32s; }
.hero-v2-copy > *:nth-child(5) { animation-delay: .41s; }
.hero-v2-visual { animation: hero-rise 1s cubic-bezier(.22,1,.36,1) .3s both; }

@media (prefers-reduced-motion: reduce) {
  .hero-v2-copy > *, .hero-v2-visual { animation: none; }
  .hp-frame, .hic { animation: none; }
  .btn-hero-v2-primary:hover, .btn-hero-v2-secondary:hover { transform: none; }
}

/* ── Responsive: tablet ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-v2-inner { gap: 44px; }
  .hp-phone { width: 196px; }
  .hp-phone.hp-center { width: 224px; }
  .hp-phone.hp-left  { margin-right: -32px; }
  .hp-phone.hp-right { margin-left:  -32px; }
  .hic-1 { left: 0; } .hic-3 { left: -2%; }
  .hic-2 { right: -1%; } .hic-4 { right: 0; }
}

@media (max-width: 900px) {
  .hero-v2 { padding: 72px 0 64px; }
  .hero-v2-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; min-height: 0; }
  .hero-v2-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-v2-sub { margin-left: auto; margin-right: auto; }
  .hero-v2-actions, .hero-v2-trust { justify-content: center; }
  .hic-1 { left: 2%; } .hic-3 { left: 1%; }
  .hic-2 { right: 2%; } .hic-4 { right: 1%; }
}

/* ── Responsive: mobile — phones become a swipeable carousel ────────── */
@media (max-width: 640px) {
  .hero-v2 { padding: 56px 0 40px; }
  .hero-v2-line-sm { font-size: clamp(26px, 7.4vw, 34px); }
  .hero-v2-line-lg { font-size: clamp(40px, 11.5vw, 54px); }
  .hero-v2-sub { font-size: 16px; }
  .btn-hero-v2-primary, .btn-hero-v2-secondary { width: 100%; justify-content: center; }
  .hic { display: none; }
  .hero-v2-glow { left: 0; width: 100%; }

  .hero-v2-visual { display: block; width: 100vw; margin-left: calc(50% - 50vw); }
  .hero-v2-phones {
    display: flex;
    overflow-x: auto;
    max-width: 100%;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px calc(50vw - 122px) 32px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hero-v2-phones::-webkit-scrollbar { display: none; }
  .hp-phone, .hp-phone.hp-center { order: 0; width: 244px; scroll-snap-align: center; }
  .hp-phone.hp-left, .hp-phone.hp-right { order: 0; margin: 0; transform: none; }
  .hp-frame, .hp-left .hp-frame, .hp-right .hp-frame { animation: none; }
}

/* ── Newsletter signup (reusable — homepage, blog listing, blog article) ──
   app/templates/partials/_newsletter_signup.html */
.newsletter-signup {
  position: relative; overflow: hidden;
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
}
.newsletter-signup::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% -10%, rgba(79,110,247,.28) 0%, transparent 70%);
}
.newsletter-signup-icon {
  position: relative; width: 52px; height: 52px; margin: 0 auto 18px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: #93AAFD; font-size: 20px;
}
.newsletter-signup h2 {
  position: relative; font-size: clamp(22px,2.6vw,28px); font-weight: 800; color: #fff; margin: 0 0 10px;
}
.newsletter-signup-sub {
  position: relative; font-size: 15px; color: rgba(255,255,255,.68); line-height: 1.6;
  max-width: 480px; margin: 0 auto 28px;
}
.newsletter-signup-form {
  position: relative; display: flex; gap: 10px; max-width: 440px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.newsletter-signup-input-wrap { flex: 1 1 260px; min-width: 0; text-align: left; }
.newsletter-signup-input {
  width: 100%; padding: 14px 16px; box-sizing: border-box;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); color: #fff; font-size: 14.5px; font-family: var(--font);
  outline: none; transition: background .2s, border-color .2s, box-shadow .2s;
}
.newsletter-signup-input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-signup-input:focus {
  background: rgba(255,255,255,.12); border-color: #93AAFD;
  box-shadow: 0 0 0 4px rgba(79,110,247,.28);
}
.newsletter-signup-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff; border: none; cursor: pointer;
  font-size: 14.5px; font-weight: 700; font-family: var(--font);
  padding: 14px 26px; border-radius: var(--radius);
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(34,197,94,.32);
  white-space: nowrap;
}
.newsletter-signup-btn:hover:not(:disabled) { background: #16A34A; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(34,197,94,.42); }
.newsletter-signup-btn:disabled { opacity: .75; cursor: not-allowed; }
.newsletter-signup-btn .fa-spinner { display: none; }
.newsletter-signup-btn.is-loading .fa-spinner { display: inline-block; }
.newsletter-signup-btn.is-loading .newsletter-signup-btn-label { display: none; }
.newsletter-signup-consent {
  position: relative; font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.6;
  max-width: 440px; margin: 16px auto 0;
}
.newsletter-signup-consent a { color: rgba(255,255,255,.75); text-decoration: underline; }
.newsletter-signup-consent a:hover { color: #fff; }
.newsletter-signup-status {
  position: relative; margin: 14px 0 0; font-size: 13.5px; font-weight: 600; min-height: 20px;
}
.newsletter-signup-status[data-state="success"] { color: #86EFAC; }
.newsletter-signup-status[data-state="error"] { color: #FCA5A5; }
.newsletter-signup-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
@media (max-width: 640px) {
  .newsletter-signup { padding: 36px 20px; }
  .newsletter-signup-form { flex-direction: column; }
  .newsletter-signup-btn { width: 100%; }
  .newsletter-signup-input-wrap { flex: 1 1 100%; }
}
