/* Scope to home page so we don't bleed styles elsewhere */
.home-page main{max-width:100%;padding:0}
.home-page .container{width:min(1150px,92%);margin:auto}

/* Brand tokens */
:root{
  --brand:#104879; --ink:#0e1e36; --muted:#5b6b83;
  --blue:#104879;        /* brand blue */
  --gold:#fec957;        /* accent for hero chat send */
  --bg:#f7fafc; --card:#ffffff; --ring:#e8eef5;
}

/* Buttons */
.home-page .btn{
  display:inline-block;background:var(--blue);color:#fff;
  padding:14px 20px;border-radius:12px;font-weight:700;transition:all .2s ease
}
.home-page .btn:hover{filter:brightness(1.06)}
.home-page .btn.outline{
  background:transparent;color:var(--blue);border:2px solid var(--blue)
}
.home-page .btn.outline:hover{background:rgba(16,72,121,.06)}

/* Hero */
.home-page .hero{background:linear-gradient(180deg,#f7fbff,#ffffff);padding:64px 0 28px}
.home-page .hero-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:40px;align-items:center}
.home-page .eyebrow{color:var(--blue);font-weight:800;letter-spacing:.14em;text-transform:uppercase;font-size:12px}
/* UPDATED color to brand blue */
.home-page h1.hero-title{font-size:48px;line-height:1.1;margin:.3em 0 .4em;color:#104879;letter-spacing:-0.02em}
.home-page .lead{font-size:18px;color:#334155;max-width:62ch}
.home-page .cta{margin-top:18px;display:flex;gap:12px;flex-wrap:wrap}

/* Center the hero visual on small screens */
.home-page .hero-grid{align-items:center}
@media (max-width:980px){
  .home-page .hero-grid{grid-template-columns:1fr}
  .home-page .hero-grid > *{margin-inline:auto}
  .home-page .hero-visual,
  .home-page .hero-visual img,
  .home-page .chat-demo{
    margin-inline:auto;
    width:min(540px,92%);
  }
}

/* Chat mock */
.home-page .chat-demo{background:#0e1e36;border-radius:16px;padding:18px;box-shadow:0 14px 34px rgba(16,72,121,.18);color:#fff}
.home-page .chat-demo h3{margin:0 0 12px 0;font-size:16px;letter-spacing:.08em;text-transform:uppercase;color:#9cc0ff}
.home-page .bubble{background:#173250;border-radius:14px;padding:12px 14px;margin:10px 0;max-width:95%}
.home-page .bubble.ai{background:#0c2d4f;border-left:4px solid #4aa3ff}
.home-page .bubble.user{background:#173b63;border-left:4px solid #8dd0ff;margin-left:auto}
.home-page .input{display:flex;margin-top:12px;background:#0b2540;border:1px solid #1f4570;border-radius:12px;overflow:hidden}
.home-page .input input{flex:1;border:0;background:transparent;color:#e6f0ff;padding:12px 14px;font-size:15px}
.home-page .input button{
  border:0;background:var(--gold);color:var(--blue);
  padding:0 16px;font-weight:800
}

/* Center the CTA buttons under the hero copy */
.home-page .cta{
  justify-content:center;         /* <— centers the two buttons */
}

/* Light digital pattern behind the hero area */
.home-page .hero{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 24px 24px, rgba(16,72,121,.06) 1px, transparent 1px) 0 0/32px 32px,
    linear-gradient(180deg,#f7fbff,#ffffff);
}

/* ===== Ad strips (landscape on desktop, square on mobile) ===== */
.home-page .ad-strip{
  padding:26px 0;
  background:#fbfdff;
  border-top:1px solid var(--ring);
  border-bottom:1px solid var(--ring);
}
.home-page .ad-grid{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(3,1fr); /* desktop: 3 landscape cards */
}
@media (max-width:1100px){
  .home-page .ad-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:660px){
  .home-page .ad-grid{ grid-template-columns:1fr; }
}

/* Card container */
.home-page .ad-card{
  position:relative;
  display:block;
  text-decoration:none;
  overflow:hidden;
  border:1px solid var(--ring);
  border-radius:16px;
  background:#eef5ff;
  box-shadow:0 8px 20px rgba(16,72,121,.06);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

/* Maintain aspect: landscape on desktop, square on mobile */
.home-page .ad-card::before{
  content:"";
  display:block;
  aspect-ratio:3/1; /* landscape */
}
@media (max-width:660px){
  .home-page .ad-card::before{ aspect-ratio:1/1; } /* square */
}

/* Content overlay */
.home-page .ad-content{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  text-align:center; padding:14px;
  color:#0e1e36;
}
.home-page .ad-title{
  font-weight:800; font-size:18px; color:#104879; margin:0;
}
.home-page .ad-sub{
  margin:6px 0 0; color:#42526b; font-size:14px;
}

/* Hover state */
.home-page .ad-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(16,72,121,.12);
  filter:brightness(1.02);
}

/* Optional background-image support */
.home-page .ad-card[data-bg]{ background:#0e1e36; }
.home-page .ad-card[data-bg]::before{
  background:var(--ad-img) center/cover no-repeat;
  opacity:.22;
  border-radius:16px 16px 0 0;
  display:block;
}

/* Trust strip (legacy pills; safe to keep if used elsewhere) */
.home-page .trust{padding:28px 0;border-top:1px solid var(--ring);border-bottom:1px solid var(--ring);background:#fbfdff}
.home-page .trust .row{display:flex;gap:28px;flex-wrap:wrap;align-items:center;justify-content:center;color:#6b7f99;font-weight:700}
.home-page .pill{
  display:inline-block;padding:6px 12px;border-radius:999px;background:#eef5ff;color:var(--blue);
  font-weight:700;font-size:12px;transition:all .2s ease
}
.home-page .pill:hover{background:var(--blue);color:#fff}

/* Sections */
.home-page section.section{padding:70px 0}
.home-page .section-title{font-size:28px;margin:0 0 12px;color:var(--brand)}
.home-page .cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.home-page .card{
  background:var(--card);border:1px solid var(--ring);border-radius:16px;padding:22px;
  box-shadow:0 8px 20px rgba(16,72,121,.05); transition:transform .15s ease, box-shadow .15s ease
}
.home-page .card h4{margin:6px 0 8px;color:#0e1e36}
.home-page .card p{color:#42526b}
.home-page .card-link{display:block;text-decoration:none;color:inherit}
.home-page .card-link:hover .card{transform:translateY(-2px);box-shadow:0 12px 24px rgba(16,72,121,.10)}
.home-page .card-link:hover .card h4{color:var(--blue)}

/* Center that one Features line */
.center-lead{ text-align:center; margin-left:auto; margin-right:auto }

/* FAQ */
.faq-bg{background:var(--bg)}
.faq-container{max-width:900px;margin:0 auto}
.faq-entry{margin-bottom:10px}
.faq-question{
  width:100%; text-align:left; display:flex; justify-content:space-between; align-items:center;
  background:#fff; border:1px solid var(--ring); border-radius:12px; padding:14px 16px;
  font-weight:700; color:var(--blue); transition:all .2s ease
}
.faq-question .faq-toggle{transition:color .2s ease}
.faq-question:hover{
  background:var(--blue); color:#fff;
}
.faq-question:hover .faq-toggle{ color:#fff }
.faq-entry.open .faq-question{
  background:var(--blue); color:#fff;
}
.faq-entry.open .faq-question .faq-toggle{ color:#fff }
.faq-answer{
  background:#fff; border:1px solid var(--ring); border-top:0; border-radius:0 0 12px 12px; padding:14px 16px
}
.faq-controls{display:flex; gap:12px; justify-content:center; margin:14px 0}
.faq-cta{margin-top:20px; text-align:left}

/* Responsive */
@media (max-width:980px){
  .home-page .cards{grid-template-columns:1fr 1fr}
  .home-page h1.hero-title{font-size:40px}
}
@media (max-width:640px){
  .home-page .cards{grid-template-columns:1fr}
  .home-page h1.hero-title{font-size:34px}
}

/* Section header accent */
.home-page #features{
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(16,72,121,.06), transparent 60%),
    linear-gradient(180deg, #ffffff, #f8fbff);
}

/* Card accents: thin blue border with gold top bar */
.home-page #features .card{
  border:1px solid rgba(16,72,121,.15);
  position:relative;
}
.home-page #features .card::before{
  content:"";
  position:absolute; inset:0 0 auto 0;
  height:4px; border-radius:16px 16px 0 0;
  background:#fec957;              /* gold bar */
}
.home-page #features .card h4{ color:#104879; }
.home-page #features .card-link:hover .card{
  box-shadow:0 12px 24px rgba(16,72,121,.12);
}
.home-page #features .card-link:hover .card h4{
  color:#0b3a64;                   /* darker blue on hover */
}

/* ===== Single responsive ad banner (no slider) ===== */
.home-page .ad-banner{
  background:#fbfdff;
  border-top:1px solid var(--ring);
  border-bottom:1px solid var(--ring);
  padding:26px 0;
}

/* Full-bleed across the site width */
.home-page .ad-banner--full{
  width:100%;
}
.home-page .ad-banner--full .ad-banner__frame{
  width:100%;
  max-width:none;
  margin:0;
}

/* If you prefer the standard site container width, use .ad-banner--contained */
.home-page .ad-banner--contained .ad-banner__frame{
  width:min(1150px,92%);
  margin:0 auto;
}

/* The clickable frame that maintains aspect ratio */
.home-page .ad-banner__frame{
  position:relative;
  display:block;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--ring);
  box-shadow:0 8px 20px rgba(16,72,121,.06);
  background:#eaf2ff;
  isolation:isolate;
}

/* Desktop: wide leaderboard look; Mobile: square */
.home-page .ad-banner__frame::before{
  content:"";
  display:block;
  aspect-ratio:6.5 / 1;        /* ~728x112 look; good for 728x90 assets */
  min-height:100px;            /* safety fallback */
}
@media (max-width:700px){
  .home-page .ad-banner__frame::before{
    aspect-ratio:1 / 1;
    min-height:260px;
  }
}

/* Make the image fill the frame */
.home-page .ad-banner picture,
.home-page .ad-banner img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;             /* fills frame nicely (minor crop possible) */
  display:block;
}

/* Trust / metrics */
.trust-strip { padding: 18px 0 6px; background:#f9fbff; border-top:1px solid #eef3ff; border-bottom:1px solid #eef3ff; }
.trust-row { display:flex; align-items:center; gap:16px; flex-wrap:wrap; justify-content:center; }
.trust-row .rating { font-weight:700; color:#104879; display:flex; gap:8px; align-items:center; }
.trust-sep { width:1px; height:20px; background:#e5eefc; }
.trust-logos {
  display: flex; gap: 16px; flex-wrap: wrap;
  align-items: center; justify-content: center;
  margin-top: 16px;
}
.trust-badge {
  font-size: 14px; color: #104879; background: #f2f7ff;
  border: 1px solid #dbe8ff; border-radius: 999px;
  padding: 8px 12px; white-space: nowrap;
}

.trust-logos img{ height:22px; filter:grayscale(1); opacity:.75 }

.benefits { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:16px 0 0; padding:0; list-style:none; }
.benefits li { background:#fff; border:1px solid #eef3ff; border-radius:10px; padding:10px 12px; text-align:center; color:#104879; font-weight:600; }
@media (max-width: 900px){ .benefits{ grid-template-columns:1fr 1fr } }

/* How it works + slider */
.how-it-works .how-steps{ counter-reset: step; margin:10px 0 18px; padding-left:0; list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.how-it-works .how-steps li{ background:#fff; border:1px solid #eef3ff; border-radius:12px; padding:12px 14px; position:relative; }
.how-it-works .how-steps li::before{ counter-increment: step; content: counter(step); position:absolute; top:-10px; left:-10px; width:28px; height:28px; border-radius:50%; background:#104879; color:#fff; display:grid; place-items:center; font-weight:700; }
@media (max-width:900px){ .how-it-works .how-steps{ grid-template-columns:1fr } }

.hiw-slider{ position:relative; overflow:hidden; border:1px solid #eef3ff; border-radius:14px; background:#fff; }
.hiw-track{ display:flex; transition:transform .5s ease; }
.hiw-slide{ min-width:100%; padding:8px; display:grid; place-items:center; }
.hiw-slide img{ width:100%; max-height:420px; object-fit:cover; border-radius:12px; }

.hiw-prev,.hiw-next{
  position:absolute; top:50%; transform:translateY(-50%);
  background:#fff; border:1px solid #e7efff; width:36px; height:36px; border-radius:50%;
  display:grid; place-items:center; cursor:pointer; color:#104879; font-size:22px; line-height:1;
}
.hiw-prev{ left:10px } .hiw-next{ right:10px }
.hiw-prev:hover,.hiw-next:hover{ background:#f4f8ff }

/* Testimonials */
.testimonials .t-carousel{ position:relative; overflow:hidden; margin-top:8px; }
.t-track{ display:flex; transition:transform .5s ease; }
.t-card{
  min-width:100%; background:#fff; border:1px solid #eef3ff; border-radius:14px; padding:18px;
  box-shadow:0 8px 20px rgba(16,24,40,.04);
}
.t-card blockquote{ margin:0 0 10px; font-size:1.05rem; color:#102a43 }
.t-card figcaption{ color:#58708a; font-size:.95rem }
.t-dots{ display:flex; gap:8px; justify-content:center; margin-top:10px }
.t-dots button{
  width:8px; height:8px; border-radius:50%; border:none; background:#d8e7ff; cursor:pointer;
}
.t-dots button[aria-selected="true"]{ background:#104879 }

/* Convert strip */
.convert-strip{ background:#104879; color:#fff; }
.convert-flex{ display:flex; gap:18px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.convert-form{ display:flex; gap:10px; }
.convert-form input{ padding:10px 12px; border-radius:8px; border:1px solid #e7efff; min-width:260px }
.convert-form .btn{ background:#ffc957; color:#104879; }
.muted{ opacity:.85 }

/* === Features section: alternate brand backgrounds (blue / gold) === */
/* Base reset for this section */
.home-page #features .card{
  border: 0;               /* cleaner block look */
  box-shadow: 0 8px 20px rgba(16,72,121,.08);
}
.home-page #features .card::before{ display:none; } /* hide the old gold top bar */

/* ODD = BLUE card */
.home-page #features .cards > a:nth-child(odd) .card{
  background: var(--blue);          /* #104879 */
  color: #fff;
}
.home-page #features .cards > a:nth-child(odd) .card h4{ color:#fff; }
.home-page #features .cards > a:nth-child(odd) .card p{ color: rgba(255,255,255,.92); }

/* EVEN = GOLD card */
.home-page #features .cards > a:nth-child(even) .card{
  background: var(--gold);          /* #fec957 */
  color: var(--blue);               /* strong readable contrast on gold */
}
.home-page #features .cards > a:nth-child(even) .card h4{ color: var(--blue); }
.home-page #features .cards > a:nth-child(even) .card p{ color: #0e1e36; } /* deep ink for body text */

/* Hover/focus lift with readability intact */
.home-page #features .card-link:hover .card,
.home-page #features .card-link:focus-visible .card{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16,72,121,.14);
  filter: brightness(1.02);
}

/* Disable the old "h4 turns blue on hover" rule here */
.home-page #features .card-link:hover .card h4{ color: inherit; }

/* ===== How it works: brand blue background + visible accents ===== */
.home-page .how-it-works{
  background: var(--blue);   /* #104879 */
  color: #fff;
}

/* Gold headline on blue for strong contrast */
.home-page .how-it-works .section-title{
  color: var(--gold);        /* #fec957 */
}

/* Step cards: keep white tiles but tune border for a blue backdrop */
.home-page .how-it-works .how-steps li{
  background:#fff;
  border: 1px solid rgba(255,255,255,.28); /* subtle against blue */
  color: var(--blue);
}

/* Counters: gold pill with blue number (very readable on blue bg) */
.home-page .how-it-works .how-steps li::before{
  background: var(--gold);
  color: var(--blue);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* Slider frame: soften the border so it sits nicely on blue */
.home-page .hiw-slider{
  border: 1px solid rgba(255,255,255,.25);
  background:#fff;
}

/* Slider arrows remain white, but give them a slightly warmer hover */
.home-page .hiw-prev,
.home-page .hiw-next{
  background:#fff;
  border:1px solid rgba(255,255,255,.55);
  color: var(--blue);
}
.home-page .hiw-prev:hover,
.home-page .hiw-next:hover{
  background:#f6f9ff;
}

/* Explicitly set common child elements too (in case earlier styles override) */
.home-page .how-it-works .how-steps li h4,
.home-page .how-it-works .how-steps li strong,
.home-page .how-it-works .how-steps li p,
.home-page .how-it-works .how-steps li span{
  color: var(--blue);
}

/* Links inside cards */
.home-page .how-it-works .how-steps li a{
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(16,72,121,.35);
}
.home-page .how-it-works .how-steps li a:hover{
  color: #0b3560; /* slightly darker blue */
  border-bottom-color: currentColor;
}

/* === Conversion strip: responsive layout === */
.convert-strip{ background: var(--blue); color:#fff; padding:32px 0; }

.convert-flex{
  display:flex; gap:18px; align-items:center; justify-content:space-between; flex-wrap:wrap;
}

/* Form base */
.convert-form{ display:flex; gap:10px; }
.convert-form input{
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #e7efff;
  min-width:260px;           /* desktop comfort */
  background:#fff; color:#0e1e36;
}
.convert-form .btn{
  background: var(--gold);
  color: var(--blue);
  border-radius:10px;
  white-space:nowrap;
}

/* ===== Tablet and down ===== */
@media (max-width: 960px){
  .convert-flex{
    flex-direction:column;             /* stack left/right columns */
    align-items:stretch;               /* stretch to full width */
    text-align:center;
    gap:16px;
  }
  .convert-strip h3{ margin-bottom:6px; }
  .convert-form{
    width:100%;
    display:grid;                      /* tidy alignment */
    grid-template-columns: 1fr auto;   /* input grows, button hugs */
    gap:10px;
    justify-content:center;
  }
  .convert-form input{
    min-width:0;                       /* allow shrinking on small screens */
    width:100%;
  }
}

/* ===== Small phones ===== */
@media (max-width: 520px){
  .convert-form{
    grid-template-columns: 1fr;        /* stack input and button */
  }
  .convert-form .btn{
    width:100%;                        /* full-width CTA */
    justify-self:stretch;
  }
}

/* Fix mobile "Send" button clipping in hero chat */
.home-page .chat-demo .input * { box-sizing: border-box; }

.home-page .chat-demo .input button{
  flex: 0 0 auto;          /* don't let flexbox shrink the button */
  min-width: 88px;         /* enough to show "Send" in all locales */
  white-space: nowrap;     /* keep label on one line */
  display: flex;           /* vertical centering insurance */
  align-items: center;
  justify-content: center;
}

/* Mobile ergonomics: avoid iOS zoom and keep padding tight */
@media (max-width: 520px){
  .home-page .chat-demo .input input{
    font-size: 16px;       /* >=16px prevents iOS zoom on focus */
  }
  .home-page .chat-demo .input button{
    padding: 0 14px;       /* fits narrow screens without truncation */
  }
}
