/* Content-driven curve clearance: reserve the original 9rem overlap plus a
   1.5rem breathing space. At wide widths the taller photo still sets row height. */
@media (min-width: 1024px) {
  #banricom-hero .bc-hero-copy { padding-bottom: calc(9rem + 1.5rem); }
  #banricom-hero #girl { align-self: flex-end; }
}
#banricom-hero > .text-white { pointer-events: none; }

/* The existing three-card structure, with quieter surfaces and clearer icons. */
#bc4-content .bc4-service-cards article {
  border: 1px solid #efede8;
  box-shadow: 0 12px 32px rgba(0, 6, 26, .065);
  padding-bottom: 26px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}
#bc4-content .bc4-service-icon { box-shadow: 0 6px 16px rgba(0, 6, 26, .08); }
#bc4-content .bc4-service-icon svg { width: 34px; height: 34px; stroke-width: 1.8; }
#bc4-content .bc4-service-sms { background: #fff0f6; color: #ac0049; }
#bc4-content .bc4-service-name { font-size: 11px; letter-spacing: .6px; }
#bc4-content .bc4-service-cards h3 { line-height: 1.45; }
#bc4-content .bc4-service-cards .bc4-text-link { gap: 10px; min-height: 44px; }
#bc4-content .bc4-service-cards article:focus-within {
  box-shadow: 0 14px 36px rgba(0, 6, 26, .12);
  border-color: #00061a;
}

/* Bright edges let the photographs breathe; a central scrim supports white copy. */
#bc4-content .bc4-entry { border-radius: 16px; overflow: hidden; }
#bc4-content .bc4-entry img { transition: transform 350ms ease; }
#bc4-content .bc4-entry-shade {
  background: linear-gradient(180deg, rgba(0, 6, 26, .28), rgba(0, 6, 26, .65) 26%, rgba(0, 6, 26, .65) 74%, rgba(0, 6, 26, .32));
}
#bc4-content .bc4-entry-copy { text-shadow: 0 1px 6px rgba(0, 6, 26, .35); }
#bc4-content .bc4-entry-link {
  background: rgba(0, 6, 26, .25);
  border-color: rgba(255, 255, 255, .8);
  text-shadow: none;
  transition: background 180ms ease, box-shadow 180ms ease;
}
#bc4-content .bc4-entry-primary { background: #ff0e75; border-color: #ff0e75; }
#bc4-content .bc4-entry-link:focus-visible { outline-color: #f6ec4f; outline-offset: 3px; }
@media (max-width: 1023px) {
  /* Copy fills more of the narrow photographs, so keep contrast at their edges. */
  #bc4-content .bc4-entry-shade {
    background: linear-gradient(180deg, rgba(0, 6, 26, .57), rgba(0, 6, 26, .6) 26%, rgba(0, 6, 26, .6) 74%, rgba(0, 6, 26, .57));
  }
}

/* Static completed states are the default. JS only sets transient state attributes. */
#bc4-content [data-demo] { contain: layout style; }
#bc4-content .bc4-sms-compose { padding: 14px; }
#bc4-content .bc4-sms-compose .bc4-ui-label { margin-top: 12px; }
#bc4-content .bc4-sms-compose h3 { font-size: 14px; }
#bc4-content .bc4-message-draft { margin-top: 10px; padding: 8px; transition: transform 240ms ease; }
#bc4-content .bc4-sms-received {
  bottom: 66px;
  padding: 12px;
  transition: opacity 240ms ease, transform 240ms ease;
}
#bc4-content .bc5-status { display: block; margin-top: 8px; min-height: 14px; font-size: 10px; }
#bc4-content .bc5-lifecycle {
  position: absolute;
  bottom: 29px;
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  color: #626574;
  font-size: 10px;
  line-height: 26px;
  text-align: center;
}
#bc4-content .bc5-lifecycle li { border-radius: 5px; background: #f1efe9; transition: background 200ms ease, color 200ms ease; }
#bc4-content .bc5-lifecycle [aria-current] { background: #00061a; color: white; }
#bc4-content [data-state='delivered'] .bc5-lifecycle [aria-current] { background: #e7f2e9; color: #247344; }
#bc4-content [data-state='created'] .bc4-sms-received { opacity: .55; transform: translateY(8px); }
#bc4-content [data-state='sending'] .bc4-sms-received { opacity: .7; transform: translateY(4px); }
#bc4-content [data-state='sending'] .bc4-message-draft { transform: translateX(5px); }
#bc4-content [data-state='submitted'] .bc4-sms-received { opacity: .85; }
#bc4-content [data-demo='sms']:not([data-state='delivered']) .bc5-status { color: #626574; }
#bc4-content .bc4-chat-out,
#bc4-content .bc5-reply { transition: opacity 240ms ease, transform 240ms ease; }
#bc4-content [data-state='sent'] .bc4-chat-out { transform: translateY(4px); }
#bc4-content [data-demo='whatsapp']:not([data-state='replied']) .bc5-reply { opacity: 0; transform: translateY(6px); visibility: hidden; }
#bc4-content [data-demo='whatsapp']:is([data-state='sent'], [data-state='delivered']) [data-demo-ticks] { color: #626574; }
#bc4-content .bc4-confirm-check { position: relative; }
#bc4-content .bc4-confirm-check::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 2px solid #e4e1d9;
  border-top-color: #00061a;
  border-radius: 50%;
  opacity: 0;
}
#bc4-content [data-state='processing'] .bc4-confirm-check { color: transparent; background: #f5f3ee; }
#bc4-content [data-state='processing'] .bc4-confirm-check::before { opacity: 1; animation: bc5-process 800ms linear infinite; }
#bc4-content [data-state='processing'] .bc4-success { color: #626574; }
#bc4-content [data-demo-complete='true'][data-demo='airtime']:not([data-demo-static]) .bc4-confirm-check { animation: bc5-confirm 300ms ease-out; }
@keyframes bc5-process { to { transform: rotate(360deg); } }
@keyframes bc5-confirm { from { transform: scale(.85); opacity: .5; } to { transform: scale(1); opacity: 1; } }
/* Paused demonstrations retain their state without running CSS animation offscreen. */
#bc4-content [data-demo-paused='true'] *,
#bc4-content [data-demo-paused='true'] *::before { animation-play-state: paused !important; }

/* Three simple connected steps; the existing list and copy remain intact. */
#bc4-content .bc4-steps { position: relative; }
#bc4-content .bc4-steps::before {
  content: '';
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 21px;
  border-left: 1px solid #e5e2d9;
}
#bc4-content .bc4-steps li { position: relative; margin: 26px 0; gap: 20px; }
#bc4-content .bc4-step-number { background: #fff9eb; border-color: #eee8d8; box-shadow: 0 4px 12px rgba(0, 6, 26, .05); }
#bc4-content .bc4-steps h3 { line-height: 1.4; }
#bc4-content .bc4-steps p { max-width: 430px; }

#bc4-content .bc4-final { padding: clamp(36px, 5vw, 64px) 24px; border: 1px solid #f5e7d2; }
#bc4-content .bc4-final h2 { font-size: clamp(27px, 3vw, 38px); max-width: 730px; margin: 0 auto 18px; }
#bc4-content .bc4-final > p:not(.bc4-eyebrow) { line-height: 1.8; }
#bc4-content .bc4-final-actions { margin-top: 30px; gap: 28px; flex-wrap: wrap; }
#bc4-content .bc4-final .bc4-primary { font-weight: 600; padding: 15px 30px; box-shadow: 0 5px 14px rgba(255, 14, 117, .12); }
#bc4-content .bc4-final .bc4-text-link { min-height: 44px; }
#bc4-footer .bc4-footer-brand { padding-top: 40px; padding-bottom: 36px; }
#bc4-footer .bc4-footer-links { gap: 6px 18px; line-height: 1.7; }
#bc4-footer .bc4-footer-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 2px; }
#bc4-footer .bc4-credits { padding-bottom: 14px; }
#bc4-footer a:focus-visible { border-radius: 3px; outline-width: 2px; outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  #bc4-content .bc4-service-cards article:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(0, 6, 26, .1); }
  #bc4-content .bc4-entry:hover img { transform: scale(1.025); }
  #bc4-content .bc4-entry-link:hover { background: #00061a; color: white; }
  #bc4-content .bc4-entry-primary:hover,
  #bc4-content .bc4-final .bc4-primary:hover { background: #f6ec4f; color: #00061a; }
}
@media (prefers-reduced-motion: reduce) {
  #bc4-content *, #bc4-content *::before, #bc4-footer * { animation: none !important; transition: none !important; }
  #banricom-hero [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Stage 6: a native disclosure preserves the header's closed geometry. */
#banricom-header [aria-expanded='false'] [data-menu-close],
#banricom-header [aria-expanded='true'] [data-menu-open] { display: none; }
@media (max-width: 767px) {
  #banricom-header [data-menu-toggle] {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -10px;
  }
  #banricom-header [data-menu-toggle][aria-expanded='true'] { box-shadow: 0 0 0 1px #00061a; }
  #primary-navigation { visibility: hidden; transform: none; transition: none; }
  #primary-navigation.bc6-menu-open { height: auto; visibility: visible; }
  #primary-navigation > a { display: flex; align-items: center; min-height: 44px; }
  #primary-navigation > .bc-nav-action { justify-content: center; }
}

/* Preserve the hero/trust strip; tighten only the existing content rhythm. */
#bc4-content > section { margin-top: clamp(56px, 6vw, 80px); }
#bc4-content .bc4-service-cards { margin-top: 64px; }
#bc4-content .bc4-service-cards .bc4-text-link { text-underline-offset: 4px; text-decoration: underline; text-decoration-color: #c6c7cd; }
#bc4-content .bc4-service-cards .bc4-text-link:is(:hover, :focus-visible) { text-decoration-color: #00061a; }
#bc4-content .bc4-steps li { margin-top: 20px; margin-bottom: 20px; }
#bc4-content .bc4-final { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(28px, 4vw, 44px); }
#bc4-content .bc4-final-actions { margin-top: 24px; }
#bc4-footer { margin-top: clamp(56px, 6vw, 80px); }
#bc4-footer .bc4-footer-brand { padding-top: 32px; padding-bottom: 28px; }
#bc4-footer .bc4-footer-links a { min-height: 44px; }

/* Message content remains reserved in the compact illustration throughout. */
#bc4-content [data-state='created'] .bc4-message-draft { animation: bc6-compose 400ms ease-out; }
#bc4-content .bc4-sms-received > p { transition: opacity 240ms ease, transform 240ms ease; }
#bc4-content [data-demo='sms'] .bc4-sms-received { opacity: 1; }
#bc4-content [data-demo='sms']:is([data-state='created'], [data-state='sending']) .bc4-sms-received > p { opacity: 0; visibility: hidden; transform: translateY(6px); }
#bc4-content [data-state='submitted'] .bc4-sms-received > p { opacity: .7; }
#bc4-content [data-demo='sms'][data-state='delivered'] .bc5-status::before { content: '✓ '; }
#bc4-content [data-demo='whatsapp'][data-state='sent'] .bc4-chat-out { animation: bc6-compose 220ms ease-out; }
@keyframes bc6-compose { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
#bc4-content .bc4-airtime-confirmation { padding: 16px; }
#bc4-content .bc4-airtime-confirmation .bc4-confirm-check { margin-top: 12px; }
#bc4-content .bc4-airtime-confirmation .bc4-amount { margin-top: 0; margin-bottom: 0; }
#bc4-content .bc4-airtime-confirmation .bc4-confirm-foot { margin-top: 10px; padding-top: 10px; }
#bc4-content .bc6-reference { margin-top: 6px; font-size: 10px; line-height: 16px; color: #626574; transition: opacity 180ms ease; }
#bc4-content [data-demo='airtime']:not([data-state='successful']) .bc6-reference { visibility: hidden; opacity: 0; }
#bc4-content [data-demo='airtime'][data-state='ready'] .bc4-confirm-check { background: #fff8df; color: #00061a; }
#bc4-content [data-demo='airtime'][data-state='ready'] .bc4-success { color: #626574; }
#bc4-content .bc4-canvas:not(.bc4-canvas-api) .bc4-visual-caption { font-size: 9px; }
@media (prefers-reduced-motion: reduce) {
  #banricom-header *, #banricom-hero * { animation: none !important; transition: none !important; }
}
