/**
 * Field Cortex — `/rescue` portal styles (loaded via /css/style.css).
 * Inline styles in rescue.ejs remain as fallback; this file layers polish + ensures nginx can serve CSS.
 */
@charset "utf-8";

/* Carroll County legal gate — impossible to miss */
.tos-fortress.rescue-legal-gate {
  border: 3px solid #1a365d;
  border-radius: 0.75rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 10px 28px rgba(26, 54, 93, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 1.15rem 1.1rem 1.35rem;
}

.tos-fortress.rescue-legal-gate #pregate-title {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

/* Official portal title — metallic blue shimmer (matches header wordmark) */
.portal-title.portal-title-official {
  font-size: clamp(1.05rem, 4.2vw, 1.45rem);
  margin: 0 auto 0.5rem;
  max-width: 22rem;
  display: block;
  background: linear-gradient(
    110deg,
    #0c4a6e 0%,
    #1d4ed8 14%,
    #2563eb 28%,
    #38bdf8 38%,
    #7dd3fc 48%,
    #38bdf8 54%,
    #2563eb 66%,
    #1e40af 82%,
    #172554 100%
  );
  background-size: 220% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.65))
    drop-shadow(0 -1px 0 rgba(15, 23, 42, 0.72))
    drop-shadow(0 2px 0 rgba(15, 23, 42, 0.42))
    drop-shadow(0 4px 6px rgba(15, 23, 42, 0.58));
  animation: fc-portal-title-shimmer 14s ease-in-out infinite alternate;
}

@keyframes fc-portal-title-shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 100% center;
  }
}

/* Price hero — high-contrast professional panel */
.price-hero.price-hero-highlight {
  margin: 0.35rem 0 1.35rem;
  padding: 1rem 1rem 1.15rem;
  border-radius: 0.75rem;
  border: 2px solid #1e40af;
  background: linear-gradient(165deg, #ffffff 0%, #eff6ff 45%, #dbeafe 100%);
  box-shadow:
    0 4px 6px -1px rgba(30, 64, 175, 0.15),
    0 12px 24px -8px rgba(15, 23, 42, 0.18);
}

.price-hero.price-hero-highlight .price-label {
  color: #1e3a8a;
  opacity: 1;
}

.price-hero.price-hero-highlight .price-amt {
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.price-hero.price-hero-highlight .price-note {
  color: #334155;
  font-weight: 800;
}

/* --- Desktop / ultra-wide — layered with rescue.ejs inline rules --- */
@media (min-width: 1024px) {
  body.rescue-checkout-flow,
  body.rescue-chat-mode {
    font-size: 19px;
  }

  body.rescue-checkout-flow p,
  body.rescue-chat-mode p {
    font-size: 1.06em;
    font-weight: 700;
    line-height: 1.62;
  }

  body.rescue-checkout-flow .shell.rescue-flow-wrap {
    max-width: min(75rem, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  body.rescue-checkout-flow .portal-title.portal-title-official {
    font-size: clamp(2.5rem, 3.2vw, 3rem);
    max-width: none;
  }

  body.rescue-checkout-flow .value-bridge-card,
  body.rescue-checkout-flow .quick-steps-card {
    max-width: min(62.5rem, 100%);
  }

  body.rescue-checkout-flow .site-header {
    width: 100%;
  }
}

@media (min-width: 1440px) {
  body.rescue-checkout-flow .shell.rescue-flow-wrap {
    max-width: min(90rem, 100%);
  }
}

@media (min-width: 1600px) {
  body.rescue-checkout-flow,
  body.rescue-chat-mode {
    font-size: 21px;
  }

  body.rescue-checkout-flow .shell.rescue-flow-wrap {
    max-width: min(100rem, 100%);
  }
}
