/* ============================================================
   InsureBuddy — Homepage Redesign
   Color Palette: Soft Blue + Aqua
   Fonts: Plus Jakarta Sans (headings) + Inter (body)
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* ─── Custom Soft Blue Palette ─── */
  --pri: #3B82F6;
  --pri-dk: #2563EB;
  --pri-lt: #EFF6FF;
  --bg: #F9FAFB;

  --text: #111827;
  --text2: #6B7280;
  --muted: #9CA3AF;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --amber: #22D3EE;
  /* Aqua Accent */

  --fd: 'Plus Jakarta Sans', sans-serif;
  --fb: 'Inter', sans-serif;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 15px;

  /* Very soft shadows */
  --sh-sm: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);
  --sh-md: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 4px rgba(0, 0, 0, 0.02);
  --sh-lg: 0 12px 40px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);

  /* ── Legacy variable aliases (used by inner pages from global.css) ── */
  --navy: #0F172A;
  --navy-60: #1E293B;
  --navy-light: #EFF6FF;
  --white: #FFFFFF;
  --emerald: #10B981;
  --emerald-dk: #047857;
  --emerald-lt: #D1FAE5;
  --gold: #F59E0B;
  --gold-lt: #FEF3C7;
  --coral: #EF4444;
  --coral-lt: #FEE2E2;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ── Base ───────────────────────────────────────────────── */
/* Hide scrollbars globally without disabling scrolling */
::-webkit-scrollbar {
  display: none;
}

html {
  margin: 0;
  padding: 0;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  overflow-x: clip;
  /* Fix horizontal scroll without breaking sticky */
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: clip;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* ── Mobile: lock each animated section so it never expands page canvas ── */
@media (max-width: 768px) {
  body {
    max-width: 100vw;
  }

  /* Each animated container must be positioned so overflow:hidden works on iOS */
  .ib-marquee-outer,
  .ib-stats-scroll-wrap,
  .ib-hero-marquee-bar .ib-marquee-card {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  #unique-features .ib-container {
    position: relative;
    overflow: hidden;
  }
}

.ib-home {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}

.ib-home * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ib-home a {
  text-decoration: none;
  color: inherit;
}

.ib-home h1,
h2,
h3,
h4 {
  font-family: var(--fd);
}

/* ── Container ──────────────────────────────────────────── */
.ib-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Flash / Toast Notifications ────────────────────────── */
/* Fixed toasts appear below the navbar, never behind it     */
.ib-flash,
.flash {
  position: fixed;
  top: 80px;
  /* clears the fixed header */
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 9990;
  min-width: 280px;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-family: var(--fb);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  opacity: 0;
  animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    toastOut 0.3s ease 4.5s forwards;
  pointer-events: none;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}

/* Default (info) */
.ib-flash {
  background: var(--pri-lt, #EFF6FF);
  color: var(--pri, #3B82F6);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Success */
.flash-success {
  background: #D1FAE5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

/* Error */
.flash-error {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

/* Warning */
.flash-warning {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
  }
}

@media (max-width: 640px) {

  .ib-flash,
  .flash {
    top: 72px;
    font-size: 13px;
    padding: 12px 16px;
    white-space: normal;
    text-align: left;
    justify-content: flex-start;
  }
}


/* ════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════ */
.ib-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 25px 28px;
  background: transparent;
  transition: transform 0.3s ease-out;
}

.ib-header.ib-header-hidden {
  transform: translateY(-100%);
}

.ib-nav-wrap {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.ib-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1px, 0.5vw, 16px);
  width: 100%;
  background-color: hsla(0, 0%, 100%, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 100px;
  padding: 6px clamp(8px, 1vw, 16px);
  flex-wrap: nowrap;
}

.ib-logo {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(9px, 1vw, 18px);
  color: var(--text);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.ib-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.6vw, 12px);
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}

.ib-nl {
  font-family: var(--fb);
  font-size: clamp(7.5px, 0.8vw, 14px);
  font-weight: 500;
  color: var(--text2);
  padding: 4px clamp(2px, 0.3vw, 12px);
  border-radius: 100px;
  transition: color .15s, background .15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: clamp(1px, 0.3vw, 4px);
}

.ib-nl svg {
  width: clamp(8px, 0.9vw, 18px);
  height: clamp(8px, 0.9vw, 18px);
  flex-shrink: 0;
}

.ib-nl:hover {
  color: var(--text);
  background: var(--bg);
}

.ib-nl.active {
  color: #fff;
  background: var(--pri);
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 12px;
}

.ib-nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.4vw, 6px);
  flex-shrink: 0;
}

.ib-nav-login {
  font-family: var(--fb);
  font-size: clamp(7.5px, 0.8vw, 14px);
  font-weight: 500;
  color: var(--text2);
  padding: 6px clamp(4px, 0.4vw, 16px);
  transition: color .15s;
  white-space: nowrap;
}

.ib-nav-login:hover {
  color: var(--text);
}

.ib-nav-user {
  font-family: var(--fb);
  font-size: clamp(7.5px, 0.8vw, 14px);
  color: var(--text2);
  padding: 6px clamp(4px, 0.4vw, 16px);
  white-space: nowrap;
}

.ib-nav-actions .ib-btn-primary {
  font-size: clamp(7.5px, 0.8vw, 14px);
  padding: clamp(2px, 0.4vw, 10px) clamp(4px, 0.6vw, 20px);
  white-space: nowrap;
}

.ib-btn-primary {
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 600;
  background: var(--pri);
  color: #fff !important;
  border-radius: 100px;
  padding: 10px 22px;
  transition: background .15s;
  white-space: nowrap;
}

.ib-btn-primary:hover {
  background: var(--pri-dk);
}

.ib-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.ib-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: .2s;
}

/* Mobile Drawer */
.ib-drawer {
  display: none;
  flex-direction: column;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 8px 28px 20px;
}

.ib-drawer.open {
  display: flex;
}

.ib-drawer a {
  font-family: var(--fb);
  font-size: 15px;
  color: var(--text2);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.ib-drawer a:last-child {
  border-bottom: none;
}

.ib-drawer-cta {
  background: var(--pri) !important;
  color: #fff !important;
  border-radius: var(--r-sm);
  text-align: center;
  padding: 14px !important;
  margin-top: 8px;
  font-weight: 600 !important;
}

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.ib-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* Full-screen background image */
.ib-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
  border-radius: 0;
}

/* Overlay container positioned on top of image */
.ib-hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 80px;
  /* accounts for fixed header height */
}

.ib-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 520px;
  text-align: left;
}

.ib-badge {
  display: inline-block;
  background: var(--pri-lt);
  color: var(--pri);
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.ib-hero-title {
  font-family: var(--fd);
  font-size: clamp(32px, 4vw, 43px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 20px;
}

.ib-br-desktop {
  display: block;
}

.ib-accent-word {
  color: var(--pri);
}

.ib-hero-sub {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 640px;
}

.ib-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.ib-btn-lg {
  font-size: 15px !important;
  padding: 14px 28px !important;
  border-radius: var(--r-sm) !important;
}

.ib-btn-outline {
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 10px 22px;
  transition: border-color .15s;
}

.ib-btn-outline:hover {
  border-color: var(--text2);
}

.ib-trust-strip {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.ib-trust-strip span {
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
}

/* Legacy class - kept for compatibility */
.ib-hero-visual {
  display: none;
}

.ib-hero-img {
  display: none;
}

/* ════════════════════════════════════════════
   MARQUEE
════════════════════════════════════════════ */

/* Marquee overlaps the bottom of the hero from outside */
.ib-hero-marquee-bar {
  position: relative;
  z-index: 10;
  margin-top: -70px;
  padding: 0 28px;
}

.ib-hero-marquee-bar .ib-marquee-card {
  border-radius: var(--r-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.ib-marquee-section {
  /* margin-top: -20px; */
  padding: 48px 28px;
  background: var(--bg);
}

.ib-marquee-card {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 0 28px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

.ib-marquee-label {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--pri);
  font-family: var(--fd);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  padding: 0 28px;
}

.ib-marquee-outer {
  overflow: hidden;
  position: relative;
  /* iOS Safari: overflow only clips positioned containers */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.ib-marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ibMarquee 35s linear infinite;
  align-items: center;
  padding: 0 24px;
}

@keyframes ibMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.ib-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.55;
  transition: opacity .2s;
  white-space: nowrap;
}

.ib-logo-item:hover {
  opacity: 1;
}

.ib-logo-name {
  font-family: var(--fd);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.ib-logo-sub {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-top: -2px;
}

.ib-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   SECTIONS SHARED
════════════════════════════════════════════ */
.ib-section {
  padding: 96px 0;
}

.ib-section-hd {
  text-align: center;
  margin-bottom: 56px;
}

.ib-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--pri);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.ib-section-hd h2 {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(26px, 3.5vw, 40px);
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}

.ib-section-hd p {
  font-size: 17px;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ════════════════════════════════════════════
   HOW IT WORKS STEPS
════════════════════════════════════════════ */
.ib-experience-split {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 100vh;
}

/* Hidden on desktop, shown only on mobile via media query */
.ib-exp-mobile-title {
  display: none;
}

/* Left Side: Sticky Visual */
.ib-exp-visual {
  background: transparent;
  position: relative;
}

.ib-exp-v-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.ib-exp-illustration {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
}

.ib-exp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right Side: Timeline */
.ib-exp-content {
  padding: 120px 80px 120px 60px;
  background: #fff;
}

.ib-exp-timeline {
  position: relative;
  max-width: 580px;
}

/* The vertical connecting line */
.ib-exp-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  /* middle of the badge */
  top: 0;
  bottom: 0;
  width: 1px;
  background: #E5E7EB;
  z-index: 0;
}

.ib-exp-step {
  display: flex;
  gap: 40px;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.ib-exp-step:last-child {
  margin-bottom: 0;
}

.ib-step-badge {
  width: 56px;
  height: 56px;
  background: #EFF6FF;
  border-radius: 18px;
  /* slightly pill/cloud shape */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 800;
  color: var(--pri);
  flex-shrink: 0;
  box-shadow: 0 0 0 12px #fff;
  /* to cut out the timeline line */
}

.ib-step-body {
  padding-top: 12px;
}

.ib-step-body h3 {
  font-family: var(--fd);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.ib-step-body p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 24px;
}

.ib-step-feature-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--sh-sm);
  margin-bottom: 24px;
}

.ib-feat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.ib-check {
  font-size: 16px;
}

/* ════════════════════════════════════════════
   FEATURES
════════════════════════════════════════════ */
.ib-features-section {
  background-color: #F8F9FF;
  /* Subtle premium grid lines */
  /* background-image:
    linear-gradient(rgba(13, 27, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 27, 42, 0.04) 1px, transparent 1px); */
  background-color: white;
  background-size: 40px 40px;
  background-position: -1px -1px;
  padding: 80px 0;
}

/* ─── Bento Grid ─────────────────────────────────────── */
.ib-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

/* Wide card spans 2 columns */
.ib-bento-card--wide {
  grid-column: span 2;
}

.ib-bento-card {
  border-radius: 16px;
  padding: 24px 24px;
  position: relative;
  overflow: hidden;
  /* Clips the decorative blob */
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-decoration: none;

  /* Perfect 2px Glowing Gradient Border Setup */
  border: 2px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: border-box;
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.04);
  /* Soft outer glow */
}

/* Hide duplicated cards on desktop */
.ib-unique-feat-dup {
  display: none !important;
}

/* Put all card content above any decorative elements */
.ib-bento-card>* {
  position: relative;
  z-index: 2;
}

.ib-bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.3);
  /* Light blue glow */
}

/* ─── Color Variations (Glowing Borders) ─── */

/* Soft Gray card */
.ib-bento-card--gray {
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(135deg, #A855F7, #3B82F6 40%, rgba(255, 255, 255, 0) 80%);
}

/* Soft Blue card */
.ib-bento-card--blue {
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(135deg, #3B82F6, #8B5CF6 40%, rgba(255, 255, 255, 0) 80%);
}

/* Soft Navy card */
.ib-bento-card--navy {
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(135deg, #8B5CF6, #22D3EE 40%, rgba(255, 255, 255, 0) 80%);
}

/* Soft Gold card */
.ib-bento-card--gold {
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(135deg, #F59E0B, #EC4899 40%, rgba(255, 255, 255, 0) 80%);
}

/* Soft Coral card */
.ib-bento-card--coral {
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(135deg, #EF4444, #8B5CF6 40%, rgba(255, 255, 255, 0) 80%);
}

/* Number tag */
.ib-bento-tag {
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 4px;
}

/* Large emoji */
.ib-bento-emoji {
  font-size: 36px;
  line-height: 1;
}

/* Card title */
.ib-bento-card h3 {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

/* Card description */
.ib-bento-card p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  flex: 1;
  color: var(--text2);
}

/* Arrow at bottom */
.ib-bento-arrow {
  font-size: 20px;
  margin-top: 8px;
  transition: transform 0.2s;
  align-self: flex-start;
  color: var(--text2);
}


.ib-bento-card:hover .ib-bento-arrow {
  color: var(--pri);
  transform: translateX(5px);
}

/* Decorative glow blob on each card */
.ib-bento-card::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  top: -60px;
  right: -60px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
  /* Below text, above solid background */
}

.ib-bento-card--navy::after {
  background: var(--navy);
}

.ib-bento-card--blue::after {
  background: var(--pri);
}

.ib-bento-card--gold::after {
  background: var(--gold);
}

.ib-bento-card--coral::after {
  background: var(--coral);
}

.ib-bento-card--gray::after {
  background: var(--gray-300);
}

/* ════════════════════════════════════════════
   WHY INSUREBUDDY
════════════════════════════════════════════ */
.ib-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ib-why-copy h2 {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(26px, 3.5vw, 38px);
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 12px 0 16px;
}

.ib-why-copy>p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 28px;
}

.ib-why-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ib-why-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ib-why-point span {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ib-why-point p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.65;
}

/* Comparison Table */
.ib-compare-table {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.ib-ct-head,
.ib-ct-row {
  display: grid;
  grid-template-columns: 1fr 100px 100px;
}

.ib-ct-head {
  background: #F9FAFB;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ib-ct-us {
  text-align: center;
  color: var(--pri) !important;
}

.ib-ct-them {
  text-align: center;
}

.ib-ct-row {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text2);
  align-items: center;
}

.ib-ct-row.even {
  background: #EFF6FF;
}

.ib-ct-row:last-child {
  border-bottom: none;
}

.ib-yes {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--pri);
}

.ib-no {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: #D1D5DB;
}

/* ════════════════════════════════════════════
   TESTIMONIALS — OneAssure Style
════════════════════════════════════════════ */
/* no padding on .ib-testi-section — handled by inner sticky */

/* Tall outer creates vertical scroll space */
.ib-testi-outer {
  position: relative;
  height: 380vh;
}

/* Sticky inner */
.ib-testi-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  /* Dotted grid background — exactly like OneAssure */
  background-color: #EFF6FF;
  background-image:
    radial-gradient(circle, rgba(59, 130, 246, 0.15) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  padding: 36px 0 24px;
}

.ib-testi-header {
  text-align: center;
  padding: 0 28px;
  margin-bottom: 32px;
}

.ib-testi-header h2 {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 38px);
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 10px 0 6px;
}

.ib-testi-header p {
  font-size: 15px;
  color: var(--text2);
}

/* Viewport clips the track — section-level clip so body overflow doesn't need to do it */
.ib-testi-viewport {
  overflow: hidden;
  padding: 0 120px;
}

/* Horizontal track */
.ib-testi-track {
  display: flex;
  gap: 24px;
  width: max-content;
  transition: transform 0.08s ease-out;
  will-change: transform;
}

/* ─── Card — OneAssure Split Layout ────────────────────── */
.ib-testi-card {
  width: 620px;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 32px 32px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: start;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Left column — avatar + identity */
.ib-tcard-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.ib-tcard-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ib-tcard-emoji {
  font-size: 54px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.ib-tcard-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ib-tcard-name {
  font-family: var(--fd);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.ib-tcard-city {
  font-size: 12px;
  color: var(--muted);
}

.ib-tcard-type {
  font-size: 11px;
  font-weight: 600;
  color: var(--pri);
  background: var(--pri-lt);
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-top: 4px;
}

/* Right column — quote */
.ib-tcard-right {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 4px;
}

.ib-tcard-qq {
  font-size: 32px;
  line-height: 1;
  color: rgba(59, 130, 246, 0.25);
  font-family: Georgia, serif;
  font-weight: 900;
  flex-shrink: 0;
}

.ib-tcard-qq-open {
  align-self: flex-start;
  margin-bottom: 6px;
}

.ib-tcard-qq-close {
  align-self: flex-end;
  margin-top: 6px;
}

.ib-tcard-quote {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  text-align: justify;
  font-style: normal;
}

/* Progress dots */
.ib-testi-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.ib-testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  transition: background .3s, transform .3s;
  cursor: pointer;
}

.ib-testi-dot.active {
  background: var(--pri);
  transform: scale(1.3);
}

/* Mobile fallback */
@media(max-width: 768px) {
  .ib-testi-outer {
    height: auto;
  }

  .ib-testi-sticky {
    position: relative;
    height: auto;
    padding: 64px 0 48px;
    overflow: visible !important;
    /* Critical for sticky position to work */
  }

  .ib-testi-viewport {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    padding: 0 16px !important;
    overflow: visible !important;
    margin: 32px 0 !important;
  }

  .ib-testi-track {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 16px !important;
    padding-bottom: 32px !important;
    /* Clean bottom padding now that cards no longer have negative margin */
    transform: none !important;
    /* disable desktop horizontal scroll */
    transition: none !important;
  }

  .ib-testi-card {
    display: flex !important;
    flex-direction: column-reverse !important;
    /* Text on top, avatar on bottom */
    width: 100% !important;
    height: 380px !important;
    /* Uniform height to ensure shorter cards perfectly cover taller cards behind them */
    justify-content: space-between !important;
    /* Pushes the avatar to the absolute bottom of the card */
    position: sticky !important;
    top: 100px !important;
    margin-bottom: 0px !important;
    /* Natural overlap stack effect */
    background: #ffffff !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    transform: none !important;
  }

  .ib-tcard-left {
    display: flex !important;
    flex-direction: row !important;
    text-align: left !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 8px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  }

  .ib-tcard-avatar {
    width: 48px !important;
    height: 48px !important;
  }

  .ib-tcard-emoji {
    font-size: 24px !important;
  }

  .ib-testi-progress {
    display: none !important;
    /* Hide pagination dots on mobile */
  }
}


/* ════════════════════════════════════════════
   CTA
════════════════════════════════════════════ */
.ib-cta-section {
  padding: 112px 0;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 60%, #1D4ED8 100%);
}

.ib-cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.ib-cta-inner h2 {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: -0.03em;
  color: #fff;
  margin: 12px 0 16px;
}

.ib-cta-inner p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 32px;
}

.ib-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ib-btn-white {
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 600;
  background: #fff;
  color: var(--pri);
  border-radius: var(--r-sm);
  padding: 14px 28px;
  transition: background .15s;
}

.ib-btn-white:hover {
  background: #F0FDF4;
}

.ib-btn-outline-white {
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 600;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-sm);
  padding: 14px 28px;
  transition: border-color .15s;
}

.ib-btn-outline-white:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

.ib-cta-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.ib-footer {
  background: #EFF6FF;
  padding: 96px 0 48px;
}

.ib-footer,
.ib-footer a,
.ib-footer p {
  color: #111827;
}

.ib-footer-col h5 {
  color: #3B82F6;
}

.ib-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.ib-footer-logo {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 20px;
  color: var(--pri);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.ib-footer-brand p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 240px;
  margin-bottom: 16px;
}

.ib-footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ib-footer-badges span {
  font-size: 12px;
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 10px;
}

.ib-footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.ib-footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.ib-footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text2);
  padding: 5px 0;
  transition: color .15s;
}

.ib-footer-col a:hover {
  color: var(--pri);
}

.ib-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media(max-width:1024px) {
  .ib-hero {
    height: 85vh;
    min-height: 500px;
  }

  .ib-hero-bg-img {
    object-position: 70% center;
  }

  .ib-hero-copy {
    max-width: 400px;
  }

  .ib-hero-sub {
    max-width: 100%;
  }

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

  .ib-why-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ib-experience-split {
    grid-template-columns: 1fr;
  }

  .ib-exp-v-inner {
    position: relative;
    height: auto;
    padding: 80px 24px 60px;
  }

  .ib-exp-content {
    padding: 60px 24px;
  }

  .ib-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media(max-width: 1380px) {

  .ib-nav-links,
  .ib-nav-login,
  .ib-nav-actions {
    display: none !important;
  }

  .ib-hamburger {
    display: flex;
  }
}

@media(max-width:768px) {
  .ib-header {
    padding: 8px 16px;
  }

  .ib-nav {
    padding: 8px 12px 8px 20px;
  }

  .ib-hero {
    height: 70vh;
    min-height: 480px;
  }

  .ib-hero-bg-img {
    object-position: center bottom;
    height: 100% !important;
  }

  .ib-hero-copy {
    max-width: 100%;
  }

  .ib-hero-title {
    font-size: clamp(26px, 6vw, 36px);
  }

  .ib-br-desktop {
    display: none;
  }

  .ib-section {
    padding: 64px 0;
  }

  .ib-steps-grid {
    grid-template-columns: 1fr;
  }

  .ib-features-grid {
    grid-template-columns: 1fr;
  }

  .ib-testi-grid {
    grid-template-columns: 1fr;
  }

  .ib-footer-grid {
    grid-template-columns: 1fr;
  }

  .ib-cta-section {
    padding: 64px 0;
  }
}

@media(max-width:480px) {
  .ib-container {
    padding: 0 16px;
  }

  .ib-hero-actions {
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .ib-hero-actions a {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    text-align: center;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    padding: 11px 12px !important;
    white-space: normal !important;
    word-break: break-word;
  }

  .ib-hero-actions a svg {
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
  }

  .ib-hero-actions a svg {
    flex-shrink: 0 !important;
  }

  .ib-cta-actions {
    flex-direction: column;
  }

  .ib-cta-actions a {
    width: 100%;
    text-align: center;
  }

  /* Trust strip hidden on mobile */
  .ib-trust-strip,
  .ib-trust-strip span {
    display: none !important;
  }
}

/* ════════════════════════════════════════════
   CROSS-PAGE COMPATIBILITY
   Aliases so inner pages (community, compare, smart-tools etc.)
   that use legacy class names work under the home.css design system
════════════════════════════════════════════ */

/* ── Inner-page hero: heading visible below fixed header on mobile/tablet ── */
@media (max-width: 1024px) {
  .ib-page-hero {
    padding-top: 100px !important;
  }
}

@media (max-width: 480px) {
  .ib-page-hero {
    padding-top: 90px !important;
  }
}

/* .container → .ib-container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* .page-header — hero banner for inner pages */
.page-header {
  background: linear-gradient(135deg, #0F172A 0%, #1E2A5E 60%, #1E3A5F 100%);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--fd);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}

.page-header p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.section-label span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Generic button system for inner pages */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--pri);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--pri-dk);
}

.btn-secondary {
  background: #F1F5F9;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #E2E8F0;
}

.btn-navy {
  background: #0F172A;
  color: #fff !important;
}

.btn-navy:hover {
  background: #1E293B;
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: none;
}

.btn-ghost:hover {
  color: var(--pri);
}

.btn-lg {
  padding: 13px 28px;
  font-size: 15px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

/* Section spacing */
.section-pad {
  padding: 64px 0;
}

/* Card utilities */
.feature-card,
.thread-card,
.compare-card,
.sidebar-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.thread-card:hover,
.compare-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.12);
}

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

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

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

/* Thread card elements */
.thread-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.author-time {
  font-size: 12px;
  color: var(--text2);
}

.thread-title {
  font-family: var(--fd);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.thread-body {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.thread-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.thread-tag {
  background: #F1F5F9;
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  padding: 3px 10px;
}

.thread-tag.trending {
  background: #FFFBEB;
  color: #B45309;
}

.thread-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.thread-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text2);
}

/* Compare card */
.compare-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.compare-card-body {
  padding: 0;
}

.compare-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.compare-stat label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.compare-stat span {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.compare-score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pri);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 800;
}

.score-risk {
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  text-align: center;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.pros-list h5,
.cons-list h5 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px;
}

.pros-list h5 {
  color: #059669;
}

.cons-list h5 {
  color: #DC2626;
}

.pros-list ul,
.cons-list ul {
  padding: 0 0 0 18px;
  margin: 0;
}

.pros-list li,
.cons-list li {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
  margin-bottom: 5px;
}

.hidden-clause-box {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 12px;
  padding: 16px 20px;
}

.hidden-clause-box h5 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #B45309;
  margin: 0 0 10px;
}

.hidden-clause-box ul {
  padding: 0 0 0 18px;
  margin: 0;
}

.hidden-clause-box li {
  font-size: 13px;
  color: #78350F;
  line-height: 1.55;
  margin-bottom: 5px;
}

/* AI chat box in sidebar */
.ai-chat-box {
  background: linear-gradient(135deg, #0F172A, #1E2A5E);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Form elements */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--fb);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}

.form-control:focus {
  border-color: var(--pri);
}

/* Trending items */
.trending-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--pri);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

/* File attachment */
.file-attach {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.file-attach-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.file-attach-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.file-attach-size {
  font-size: 12px;
  color: var(--text2);
}

.file-attach-actions {
  display: flex;
  gap: 6px;
}

/* Feature card icon */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-link {
  font-size: 13px;
  font-weight: 700;
  margin-top: auto;
  padding-top: 12px;
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ════════════════════════════════════════════
   PRICING SECTION
════════════════════════════════════════════ */
.ib-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.ib-pricing-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.ib-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.ib-pricing-card.premium {
  border: 2px solid var(--pri);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.12);
}

.ib-pricing-card.premium:hover {
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
}

.ib-pricing-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.ib-pricing-badge.basic {
  background: rgba(59, 130, 246, 0.1);
  color: var(--pri);
}

.ib-pricing-badge.popular {
  background: var(--pri);
  color: #fff;
}

.ib-pricing-title {
  font-family: var(--fd);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.ib-pricing-sub {
  font-size: 15px;
  color: var(--text2);
  margin: 0 0 24px;
}

.ib-pricing-price {
  font-family: var(--fd);
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 24px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ib-pricing-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  font-family: var(--fb);
}

.ib-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex: 1;
}

.ib-pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.4;
}

.ib-pricing-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .ib-pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════
   STATS SECTION
════════════════════════════════════════════ */
.ib-stats-section {
  padding: 48px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.ib-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.ib-stat-card {
  padding: 16px;
}

.ib-stat-number {
  font-family: var(--fd);
  font-size: 30px;
  font-weight: 800;
  color: var(--pri);
  margin-bottom: 8px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ib-stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .ib-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

@media (max-width: 480px) {
  .ib-stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE — ALL SECTIONS
   Targets: 768px (tablet/iPad), 480px (mobile)
════════════════════════════════════════════ */

/* ── Unique Features Section ── */
.ib-unique-features-section {
  overflow-x: hidden;
}

@media (max-width: 768px) {

  /* Nav actions: hide username text on small screens */
  .ib-nav-user {
    display: none;
  }

  /* Hero section layout fix for mobile overlap */
  .ib-hero {
    min-height: 850px;
    height: 100svh;
    padding: 0;
  }

  .ib-hero-overlay {
    align-items: flex-start !important;
    padding-top: 150px !important;
    /* Extra clearance for header */
  }

  .ib-hero-copy {
    max-width: 100%;
    padding: 0 16px;
  }

  .ib-hero-sub {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
  }

  /* Hide the 4 trust-strip badges on mobile */
  .ib-trust-strip {
    display: none !important;
  }

  .ib-hero-actions {
    flex-direction: row !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  /* Stats: 2-column on tablet */
  .ib-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Marquee trust strip */
  .ib-marquee-wrap {
    padding: 12px 0;
  }

  /* Pull marquee bar higher on mobile */
  .ib-hero-marquee-bar {
    margin-top: -140px !important;
    padding: 0 14px;
    overflow: hidden;
  }

  /* Unique features grid → 1 column */
  .ib-unique-features-section [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Section background for the card layout */
  #how-it-works {
    background: #fff !important;
    /* white background as requested */
    padding: 24px 0 40px !important;
  }

  /* ── Experience Split: Ditto-style Single White Card ── */
  .ib-experience-split {
    grid-template-columns: 1fr !important;
    min-height: unset !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    background: #fff !important;
    border-radius: 24px !important;
    margin: 0 16px !important;
    overflow: hidden !important;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.08) !important;
    /* Added light shadow */
  }

  /* The visual card: top part of the white card */
  .ib-exp-visual {
    order: -1;
    position: relative;
    background: #EEF1F5;
    border-radius: 20px 20px 0 0 !important;
    margin: 16px 16px 0 16px !important;
    /* Add margin to create card effect */
    height: auto;
    overflow: hidden !important;
    display: flex;
    padding: 0;
  }

  /* Remove sticky and absolute positioning */
  .ib-exp-v-inner {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
  }

  .ib-exp-illustration {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    display: flex;
    /* Removes bottom baseline gap */
  }

  /* Image fills card, scaled up to zoom and crop internal whitespace */
  .ib-exp-img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block;
    transform: scale(1.15);
    /* Zoom the photo */
    transform-origin: center center;
  }

  /* Hide the HTML title since the image already contains the text */
  .ib-exp-mobile-title {
    display: none !important;
  }

  /* Content section below the card */
  .ib-exp-content {
    padding: 32px 20px 40px !important;
    background: #fff;
  }

  .ib-exp-timeline::before {
    display: block !important;
    /* Reactivate timeline line on mobile */
    content: '';
    position: absolute;
    left: 24px;
    /* Center of the 48px badge */
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E2E8F0;
  }

  .ib-exp-timeline {
    max-width: 100% !important;
    position: relative !important;
  }

  /* ── Premium Timeline Journey Layout ── */
  .ib-exp-step {
    display: flex !important;
    flex-direction: row !important;
    /* Badges on left, content on right */
    gap: 20px !important;
    margin-bottom: 56px !important;
    align-items: flex-start !important;
    position: relative;
  }

  /* Sticky Badge on the left */
  .ib-step-badge {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    background: #EEF4FF !important;
    color: #3B82F6 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 8px #ffffff !important;
    /* Cut out the timeline line behind it */
    margin-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 80px !important;
    /* Sticks to top as you scroll through the step */
    z-index: 2;
  }

  /* Body adjustments: flex column to reorder children */
  .ib-step-body {
    padding-top: 0 !important;
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
  }

  .ib-step-body h3 {
    order: 1;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.01em !important;
  }

  .ib-step-body p {
    order: 2;
    font-size: 15px !important;
    color: #64748B !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
  }

  /* Action button moves ABOVE the feature box */
  .ib-step-actions {
    order: 3;
    margin-bottom: 24px !important;
    width: 100%;
  }

  .ib-step-actions .ib-btn-primary {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 16px !important;
    background: #3B82F6 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    /* Matches reference screenshot rounded rect style */
    width: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
  }

  /* Feature Box moves to the BOTTOM */
  .ib-step-feature-box {
    order: 4;
    padding: 20px !important;
    background: #ffffff !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: none !important;
    /* Remove desktop shadow to match photo */
    border-radius: 16px !important;
    gap: 12px !important;
    margin-bottom: 0 !important;
  }

  .ib-feat-row {
    font-size: 14px !important;
    gap: 12px !important;
  }

  /* Unique features Auto Horizontal Scroll (Marquee) for mobile */
  #unique-features {
    overflow-x: hidden !important;
    /* Prevent body horizontal scroll */
  }

  .ib-unique-features-grid {
    display: flex !important;
    overflow-x: visible !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    padding-bottom: 24px !important;
    width: max-content !important;
    /* Allow track to be as wide as needed */
    animation: auto-scroll-features 25s linear infinite !important;
  }

  /* Pause animation if the user taps/holds on a card */
  .ib-unique-features-grid:hover,
  .ib-unique-features-grid:active {
    animation-play-state: paused !important;
  }

  .ib-unique-features-grid>div,
  .ib-unique-feat-dup>div {
    min-width: 280px !important;
    /* Fixed width for cards */
    max-width: 85vw !important;
    flex: 0 0 auto !important;
  }

  /* Show duplicated cards on mobile to create seamless infinite loop */
  .ib-unique-feat-dup {
    display: contents !important;
  }

  @keyframes auto-scroll-features {
    0% {
      transform: translateX(0);
    }

    /* Transform left by exactly half the total track width (including gap) */
    100% {
      transform: translateX(calc(-50% - 8px));
    }
  }

  /* Why section */
  .ib-why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Steps grid */
  .ib-steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Policy Features Grid (Bento) -> 2-2-1 layout on mobile using Flexbox to avoid Safari grid bugs */
  .ib-bento-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .ib-bento-grid .ib-bento-card {
    width: calc(50% - 6px) !important;
    /* 2 columns, minus half the gap */
    padding: 20px 16px !important;
    /* Tighter padding for 2-col fit */
    margin: 0 !important;
  }

  /* Last card spans full width horizontally */
  .ib-bento-grid .ib-bento-card:last-child {
    width: 100% !important;
  }

  /* Adjust typography inside the tightly packed 2-col grid */
  .ib-bento-grid .ib-bento-card h3 {
    font-size: 16px !important;
  }

  .ib-bento-grid .ib-bento-card p {
    font-size: 13px !important;
  }

  .ib-bento-tag {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  /* Uniform spacing between sections on mobile - reduced to prevent excessive whitespace */
  .ib-features-section,
  #unique-features,
  #compare-experience,
  #pricing {
    padding: 40px 0 !important;
  }

  /* Compare the Experience -> Horizontal Swipe on Mobile */
  .ib-compare-wrapper {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 -28px !important;
    /* Pull out of ib-container padding (28px) */
    padding: 0 7.5vw 24px !important;
    /* Offset to center the 85vw card */
    gap: 16px !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .ib-compare-wrapper::-webkit-scrollbar {
    display: none;
  }

  .ib-compare-col {
    flex: 0 0 85vw !important;
    min-width: 85vw !important;
    scroll-snap-align: center;
    border-radius: 16px !important;
    padding: 24px 16px !important;
  }

  .ib-compare-col h3 {
    font-size: 22px !important;
  }

  .ib-compare-col p {
    font-size: 14px !important;
    margin-bottom: 24px !important;
  }

  /* Make "The InsureBuddy Way" show first on mobile */
  .ib-compare-col:nth-child(1) {
    order: 2;
    /* The Old Way goes second */
  }

  .ib-compare-col:nth-child(2) {
    order: 1;
    /* InsureBuddy Way goes first */
  }

  .ib-compare-item {
    padding: 12px !important;
    gap: 12px !important;
    border-radius: 12px !important;
  }

  .ib-compare-item>div>div:first-child {
    font-size: 14px !important;
  }

  .ib-compare-item>div>div:last-child {
    font-size: 12px !important;
  }

  .ib-compare-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
  }

  .ib-compare-item svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* Section headings */
  .ib-section-hd h2 {
    font-size: clamp(22px, 6vw, 32px) !important;
    line-height: 1.3 !important;
    overflow: visible !important;
    padding-top: 40px !important;
    /* Prevents font ascenders from clipping */
  }

  /* Pricing grid → 1 column */
  .ib-pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Footer grid → 2x2 grid for mobile */
  .ib-footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px 16px !important;
  }

  .ib-footer-brand {
    grid-column: auto !important;
    /* Allow it to take 1 column in the 2x2 grid */
  }

  .ib-footer-brand p {
    max-width: 100%;
  }

  .ib-footer {
    padding: 80px 0 40px !important;
  }

  /* CTA section */
  .ib-cta-section {
    padding: 64px 0;
  }

  .ib-cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 16px !important;
  }

  .ib-cta-actions a {
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Compare / inner page card stats */
  .compare-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Contact page 2-column → 1-column */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {

  /* Container padding on small phones */
  .ib-container,
  .container {
    padding: 0 14px;
    margin-top: -16%;
  }

  /* Hero */
  .ib-hero-title {
    font-size: clamp(24px, 7vw, 30px);
  }

  .ib-hero-actions a {
    width: calc(50% - 4px) !important;
    flex: none !important;
    text-align: center;
    justify-content: center;
    padding: 10px 4px !important;
    font-size: 12px !important;
    line-height: 1.3;
    display: inline-flex !important;
    align-items: center !important;
    white-space: normal !important;
  }

  .ib-hero-actions a svg {
    flex-shrink: 0 !important;
  }

  /* Stats → single column */
  .ib-stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Unique features → 1 column on very small screens */
  .ib-unique-features-section [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  /* Pricing card padding */
  .ib-pricing-card {
    padding: 28px 20px;
  }

  /* Section padding reduction */
  .ib-section {
    padding: 48px 0;
  }

  /* Trust strip */
  /* Trust strip hidden on mobile */
  .ib-trust-strip,
  .ib-trust-strip span {
    display: none !important;
  }

  /* Footer */
  .ib-footer-badges {
    flex-wrap: wrap;
  }

  /* About & Contact page nav grids */
  div[style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── iPad / Tablet (769px–1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .ib-hero {
    min-height: 70vh;
  }

  .ib-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .ib-pricing-grid {
    gap: 24px;
  }

  .ib-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* Unique features grid → 2 columns on iPad */
  .ib-unique-features-section [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

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

/* ════════════════════════════════════════════
   STATS SECTION — HIDE MARQUEE DUPLICATES on Desktop
════════════════════════════════════════════ */
@media (min-width: 769px) {

  /* Hide the duplicate cards added for the mobile marquee loop */
  .ib-stats-scroll-wrap .ib-stat-card[aria-hidden="true"] {
    display: none !important;
  }
}

/* ════════════════════════════════════════════
   STATS SECTION — AUTO SCROLL MARQUEE (Mobile only)
════════════════════════════════════════════ */
@keyframes stats-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .ib-stats-scroll-wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
    /* Force Safari overflow clipping */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
  }

  /* Override all previous mobile grid rules for stats */
  .ib-stats-scroll-wrap .ib-stats-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content;
    grid-template-columns: unset !important;
    animation: stats-marquee 8s linear infinite;
  }

  /* Pause on hover/touch */
  .ib-stats-scroll-wrap:hover .ib-stats-grid,
  .ib-stats-scroll-wrap:active .ib-stats-grid {
    animation-play-state: paused;
  }

  /* Strip the card box — text only */
  .ib-stats-scroll-wrap .ib-stat-card {
    min-width: 130px;
    flex-shrink: 0;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 8px 20px !important;
    text-align: center;
    box-shadow: none !important;
    border: none !important;
  }
}

/* Responsive Navigation for Small Desktops */
@media(max-width: 1440px) {
  .ib-nav {
    gap: 12px;
    padding: 8px 16px;
  }

  .ib-nav-links {
    gap: 0;
  }

  .ib-nl {
    padding: 6px 8px;
    font-size: 13px;
    gap: 4px;
  }

  .ib-nl svg {
    width: 14px;
    height: 14px;
  }

  .ib-btn-primary {
    padding: 8px 16px;
    font-size: 13px;
  }

  .ib-nav-actions {
    gap: 12px;
  }

  .ib-logo {
    font-size: 16px;
  }
}

@media(max-width: 1250px) {
  .ib-nl svg {
    display: none;
  }

  .ib-nl {
    padding: 6px 8px;
    font-size: 12px;
  }

  .ib-nav-user {
    padding: 6px 8px;
    font-size: 13px;
  }

  .ib-nav-login {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* ── Fluid Responsive Sizing for Small Desktops ── */
@media(max-width: 1440px) {
  .ib-section {
    padding: 80px 0;
  }

  .ib-hero-title {
    font-size: clamp(28px, 3.5vw, 38px);
  }

  .ib-hero-sub {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .ib-experience-split {
    grid-template-columns: 45% 55%;
  }

  .ib-exp-content {
    padding: 80px 40px;
  }

  .ib-exp-step {
    gap: 24px;
    margin-bottom: 56px;
  }

  .ib-marquee-card {
    padding: 28px 0 20px;
  }

  .ib-marquee-section {
    padding: 36px 20px;
  }
}

@media(max-width: 1250px) {
  .ib-section {
    padding: 64px 0;
  }

  .ib-section-hd {
    margin-bottom: 40px;
  }

  .ib-section-hd h2 {
    font-size: clamp(24px, 3vw, 32px);
  }

  .ib-experience-split {
    grid-template-columns: 50% 50%;
  }

  .ib-exp-content {
    padding: 60px 32px;
  }

  .ib-exp-step {
    margin-bottom: 40px;
  }

  .ib-step-body h3 {
    font-size: 20px;
  }

  .ib-hero {
    min-height: 540px;
  }

  .ib-hero-title {
    font-size: clamp(26px, 3.2vw, 34px);
    margin-bottom: 16px;
  }

  .ib-hero-sub {
    font-size: 15px;
  }
}