/**
 * Rescue / repair landing — centered duo row + checkout chase border + laptop type scale
 */

body.rescue-checkout-flow .shell.rescue-flow-wrap {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

body.rescue-checkout-flow .fc-corporate-hero {
  margin-left: 0;
  margin-right: 0;
  border-radius: 12px;
}

body.rescue-checkout-flow .fc-two-column-surface.fc-layout-duo {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

body.rescue-checkout-flow .fc-two-column-surface.fc-layout-duo .fc-col-technical,
body.rescue-checkout-flow .fc-two-column-surface.fc-layout-duo .fc-col-checkout-terminal {
  width: 100%;
  max-width: 100%;
}

body.rescue-checkout-flow .fc-two-column-surface:not(.fc-layout-duo) .fc-col-checkout-terminal .fc-checkout-chase-wrap {
  margin-top: 0;
}

/* Truth Shield + bulletin cards — full centered width in repair flow */
body.rescue-checkout-flow .fc-col-technical .truth-shield-rails.fc-bulletin-card,
body.rescue-checkout-flow .fc-col-technical .truth-shield-red.fc-bulletin-card,
body.rescue-checkout-flow .fc-col-technical .truth-shield-lethal.fc-bulletin-card,
body.rescue-checkout-flow .fc-col-technical .repair-encyclopedia-card,
body.rescue-checkout-flow .fc-col-technical .rescue-logic-card {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Side-by-side: Free Preliminary Check + Checkout */
.fc-action-duo-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 28px auto;
  padding: 0;
  box-sizing: border-box;
  clear: both;
}

.fc-action-duo-row .value-bridge-card {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.fc-action-duo-row .fc-checkout-chase-wrap {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

@media (min-width: 900px) {
  .fc-action-duo-row {
    flex-direction: row;
    align-items: stretch;
    gap: 28px;
  }

  .fc-action-duo-row .value-bridge-card,
  .fc-action-duo-row .fc-checkout-chase-wrap {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }
}

/* Field Cortex chasing glow border on checkout */
.fc-checkout-chase-wrap {
  position: relative;
  padding: 3px;
  border-radius: 12px;
  background: #0f172a;
  overflow: hidden;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.4), 0 0 8px rgba(37, 99, 235, 0.35);
}

.fc-checkout-chase-wrap::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    #0c4a6e,
    #1d4ed8,
    #2563eb,
    #38bdf8,
    #7dd3fc,
    #bae6fd,
    #38bdf8,
    #2563eb,
    #0c4a6e
  );
  animation: fc-checkout-chase-spin 3s linear infinite;
  z-index: 0;
}

@keyframes fc-checkout-chase-spin {
  to { transform: rotate(360deg); }
}

.fc-checkout-chase-wrap .fc-checkout-terminal {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: none;
  border-radius: 10px;
  box-shadow: none;
  height: 100%;
  box-sizing: border-box;
}

.fc-checkout-chase-wrap .fc-checkout-terminal-sticky {
  position: static;
}

/* Laptop typography — open, dominant, readable */
@media (min-width: 1024px) {
  body.rescue-checkout-flow {
    font-size: 18px;
  }

  body.rescue-checkout-flow .fc-corporate-hero .fc-hero-title {
    font-size: 2.15rem;
  }

  body.rescue-checkout-flow .fc-corporate-hero .fc-hero-meta {
    font-size: 1.05rem;
  }

  body.rescue-checkout-flow .value-bridge-kicker {
    font-size: 0.95rem;
  }

  body.rescue-checkout-flow .value-bridge-title {
    font-size: 1.75rem;
  }

  body.rescue-checkout-flow .value-bridge-unit,
  body.rescue-checkout-flow .value-bridge-list,
  body.rescue-checkout-flow .value-bridge-safety,
  body.rescue-checkout-flow .logic-wall-body {
    font-size: 1.08rem;
    line-height: 1.6;
  }

  body.rescue-checkout-flow .value-bridge-label {
    font-size: 0.95rem;
  }

  body.rescue-checkout-flow .fc-checkout-terminal .fc-terminal-head {
    font-size: 0.95rem;
  }

  body.rescue-checkout-flow .fc-checkout-terminal .price-amt {
    font-size: 2.35rem;
  }

  body.rescue-checkout-flow .checkout-value-proof,
  body.rescue-checkout-flow .safety-handshake-row,
  body.rescue-checkout-flow .fc-checkout-legal-muted {
    font-size: 1rem;
    line-height: 1.55;
  }

  body.rescue-checkout-flow #submit-pay {
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
  }

  body.rescue-checkout-flow .fc-bulletin-card,
  body.rescue-checkout-flow .repair-encyc-overview {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  body.rescue-checkout-flow .fc-bulletin-card .fc-bulletin-title,
  body.rescue-checkout-flow .repair-encyc-heading {
    font-size: 0.95rem;
    letter-spacing: 0.07em;
  }

  body.rescue-checkout-flow .utility-bulletin-lead,
  body.rescue-checkout-flow .truth-shield-rails-list,
  body.rescue-checkout-flow .truth-shield-rails-list li {
    font-size: 1.08rem;
    line-height: 1.62;
  }

  body.rescue-checkout-flow .failure-points-grid li {
    font-size: 1.02rem;
    line-height: 1.55;
  }

  body.rescue-checkout-flow .fc-model-lock-banner {
    font-size: 1rem;
    line-height: 1.55;
  }

  body.rescue-checkout-flow .rescue-logic-body {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  body.rescue-checkout-flow .fc-diag-console {
    max-width: 1200px;
  }
}

@media (max-width: 899px) {
  .fc-action-duo-row {
    margin-left: auto;
    margin-right: auto;
  }

  body.rescue-checkout-flow .value-bridge-card {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}
