/* ============================================================
   Circi — Hero (split two-column + stacked product cards)
   Layered AFTER theme-navy-terracotta.css. Poppins preserved.
   --sage hardcoded #5C8275 (theme has no sage token).
   ============================================================ */

/* Override the centered full-width hero from styles-hero.css */
.hero.hero-split {
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero.hero-split .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

/* ----- Left column ----- */
.hero-split .hero-left { min-width: 0; }

.hero-split .hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 26px;
  box-shadow: 0 2px 8px rgba(42,69,111,0.04);
}
.hero-split .hero-pill .pill-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 600;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}
.hero-split .hero-pill .pill-pip {
  display: inline-block; width: 13px; height: 9px; border-radius: 1.5px;
  background: linear-gradient(180deg, #012169 0 50%, #E4002B 50% 100%);
}

.hero-split h1.hero-h {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--navy);
  margin: 0 0 22px;
  text-align: left;
  max-width: 20ch;
  text-wrap: balance;
}
.hero-split h1.hero-h .accent { color: var(--teal); }

.hero-split .hero-lede {
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 540px;
  margin: 0 0 34px;
  letter-spacing: -0.005em;
}

.hero-split .hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0 0 34px;
}

/* Trust row (icon + strong + span) */
.hero-split .hero-trust {
  display: flex; align-items: center;
  gap: 26px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.hero-split .htrust-item { display: flex; align-items: center; gap: 10px; }
.hero-split .htrust-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-split .htrust-text { font-size: 13px; line-height: 1.35; }
.hero-split .htrust-text strong { display: block; color: var(--navy); font-weight: 600; }
.hero-split .htrust-text span { color: var(--ink-3); }
.hero-split .htrust-divider { width: 1px; height: 32px; background: var(--rule); }

/* ----- Right column — stacked product cards ----- */
.hero-split .hero-visual {
  position: relative;
  height: 580px;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.hero-split .hero-blob {
  position: absolute; inset: 20px;
  border-radius: 32px;
  background: linear-gradient(135deg, #EEF2FF 0%, #E2E9FB 100%);
  z-index: 0;
}
.hero-split .hero-blob::before {
  content: ""; position: absolute; inset: 0; border-radius: 32px;
  background:
    radial-gradient(circle at 80% 20%, rgba(92,130,117,0.22), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(196,86,42,0.10), transparent 50%);
}
.hero-split .hero-blob::after {
  content: ""; position: absolute; inset: 0; border-radius: 32px;
  background-image: radial-gradient(circle, rgba(42,69,111,0.08) 1px, transparent 1.2px);
  background-size: 20px 20px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-split .pcard {
  position: absolute;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(42,69,111,0.22), 0 8px 16px -8px rgba(42,69,111,0.08);
  z-index: 2;
}

/* Card 1 — specialist profile */
.hero-split .card-profile {
  width: 340px; top: 80px; left: -20px; padding: 22px;
  transform: rotate(-2.5deg);
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1);
}
.hero-split .card-profile:hover { transform: rotate(0deg) translateY(-4px); }
.hero-split .profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hero-split .profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #C4562A, #5C8275);
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 18px; flex-shrink: 0; position: relative;
}
.hero-split .profile-avatar::after {
  content: ""; position: absolute; bottom: 0; right: 0;
  width: 14px; height: 14px; background: var(--success);
  border: 2px solid #fff; border-radius: 50%;
}
.hero-split .profile-name { font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; line-height: 1.2; }
.hero-split .profile-spec { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.hero-split .profile-verified {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--success);
  background: rgba(14,165,114,0.10);
  padding: 5px 10px; border-radius: 999px;
}
.hero-split .profile-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.hero-split .meta-cell { display: flex; flex-direction: column; gap: 3px; }
.hero-split .meta-cell .lbl { font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.hero-split .meta-cell .val { font-size: 13px; color: var(--navy); font-weight: 500; }
.hero-split .profile-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; }
.hero-split .ptag {
  font-size: 11px; font-weight: 500;
  background: var(--teal-soft); color: var(--teal);
  padding: 4px 10px; border-radius: 999px;
}
.hero-split .ptag.alt { background: #FFF1EC; color: #E0633A; }
.hero-split .profile-cta {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--navy); color: #fff;
  padding: 10px 12px 10px 16px;
  border-radius: 12px; font-size: 13px; font-weight: 600;
}
.hero-split .profile-cta .arr-circle {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); display: grid; place-items: center;
}

/* Card 2 — AI billing */
.hero-split .card-ai {
  width: 290px; top: 24px; right: -16px; padding: 18px;
  z-index: 3; transform: rotate(3deg); transform-origin: top right;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1);
}
.hero-split .card-ai:hover { transform: rotate(0deg) translateY(-4px); }
.hero-split .ai-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--rule-soft); margin-bottom: 12px;
}
.hero-split .ai-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.hero-split .ai-title { font-size: 13px; font-weight: 700; color: var(--navy); }
.hero-split .ai-sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.hero-split .ai-status { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--success); font-weight: 600; }
.hero-split .ai-status .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(14,165,114,0.5); animation: hpulse 2s infinite;
}
@keyframes hpulse {
  0% { box-shadow: 0 0 0 0 rgba(14,165,114,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(14,165,114,0); }
  100% { box-shadow: 0 0 0 0 rgba(14,165,114,0); }
}
.hero-split .ai-q {
  font-size: 12px; color: var(--ink-2);
  background: var(--paper); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 10px; line-height: 1.45;
}
.hero-split .ai-q::before { content: "Q · "; font-weight: 700; color: var(--ink-3); }
.hero-split .ai-a { font-size: 12px; line-height: 1.55; color: var(--navy); }
.hero-split .ai-a .code {
  font-weight: 600; color: var(--teal);
  background: var(--teal-soft); padding: 1px 6px; border-radius: 4px; font-size: 11px;
}
.hero-split .ai-source {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--rule);
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-3);
}
.hero-split .ai-source .src-tag { color: var(--teal); font-weight: 500; }

/* Card 3 — referral toast */
.hero-split .card-referral {
  width: 270px; bottom: 24px; right: 8px; padding: 16px;
  z-index: 4; background: var(--navy); color: #fff; border-color: transparent;
  transform: rotate(-2deg);
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1);
}
.hero-split .card-referral:hover { transform: rotate(0deg) translateY(-4px); }
.hero-split .ref-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hero-split .ref-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.12); display: grid; place-items: center; flex-shrink: 0;
}
.hero-split .ref-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.6); font-weight: 600; }
.hero-split .ref-time { margin-left: auto; font-size: 11px; color: rgba(255,255,255,0.5); }
.hero-split .ref-body { font-size: 13px; line-height: 1.45; }
.hero-split .ref-body strong { color: #84B6A6; font-weight: 600; }

/* ----- Responsive ----- */
@media (max-width: 1080px) {
  .hero.hero-split .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-split .hero-visual { height: 540px; max-width: 560px; margin: 0; }
}

/* ----- Hero stats bar (merged into hero, same bg) ----- */
.hero-split .hero-stats {
  position: relative;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-split .hero-stats::before {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
}
.hero-split .hero-stats-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 600;
  max-width: 130px;
  line-height: 1.4;
}
.hero-split .hs {
  border-left: 1px solid var(--rule);
  padding-left: 24px;
}
.hero-split .hs-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1;
}
.hero-split .hs-num sup {
  font-size: 14px;
  color: var(--teal);
  margin-left: 1px;
  top: -0.55em;
  position: relative;
  font-weight: 600;
}
.hero-split .hs-label { font-size: 12px; color: var(--ink-2); margin-top: 6px; line-height: 1.4; }

@media (max-width: 1080px) {
  .hero-split .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
    margin-top: 48px;
  }
  .hero-split .hero-stats-label { grid-column: 1 / -1; max-width: none; }
  .hero-split .hs:nth-child(2) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .hero-split .hero-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero.hero-split { padding: 36px 0 56px; }
  .hero-split .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-split .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-split .hero-trust { gap: 16px; }
  .hero-split .htrust-divider { display: none; }
  .hero-split .hero-visual { height: 440px; }
  .hero-split .card-profile { width: 270px; left: 0; padding: 18px; }
  .hero-split .card-ai { width: 230px; right: 0; padding: 14px; }
  .hero-split .card-referral { width: 210px; right: 0; padding: 14px; }
}
