/* =========================================================
   Homepage & info-page styling
   ========================================================= */

.home-hero {
  position: relative;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.45), transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(29, 78, 216, 0.78) 100%);
  border: 1px solid rgba(191, 219, 254, 0.28);
  color: #eff6ff;
  padding: 3rem 2.5rem 3.2rem;
  box-shadow: 0 30px 60px rgba(8, 15, 40, 0.5);
  margin-bottom: 1.6rem;
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 65%);
  pointer-events: none;
}
.home-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25), transparent 70%);
  pointer-events: none;
}
.home-hero > * { position: relative; z-index: 1; }

.home-hero h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.home-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(191, 219, 254, 0.45);
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.35);
}
.home-hero .eyebrow::before {
  font-family: "FontAwesome";
  content: "\f132"; /* fa-shield */
  font-size: 0.85rem;
}

.home-hero .hero-subtitle {
  color: #dbeafe;
  font-size: 1.12rem;
  line-height: 1.55;
  max-width: 620px;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions .btn-primary {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.18);
}
.hero-actions .btn-primary:hover,
.hero-actions .btn-primary:focus {
  background: #eff6ff;
  color: #0f172a;
  border-color: #eff6ff;
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.28);
}

.hero-actions .btn-outline-light {
  border-width: 2px;
  background: rgba(255, 255, 255, 0.08);
}
.hero-actions .btn-outline-light:hover,
.hero-actions .btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.18);
}

/* Feature grid */
.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}

.feature-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.14);
  padding: 1.6rem 1.4rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.2);
}
.feature-card .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}
.feature-card h3 {
  color: #0f172a;
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.feature-card p {
  color: #475569;
  margin: 0;
  line-height: 1.55;
  font-size: 0.95rem;
}

/* Callout + CTA strip */
.home-callout {
  background: #ffffff;
  border-left: 5px solid #2563eb;
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.home-callout h2 {
  font-size: 1.4rem;
  color: #0f172a;
  text-align: left;
  margin-bottom: 0.5rem;
}
.home-callout p {
  color: #334155;
  margin: 0;
  font-size: 1rem;
}

.home-cta-strip {
  text-align: center;
  margin-bottom: 0.5rem;
}

.home-cta-strip a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.4);
}
.home-cta-strip a:hover {
  background: #1d4ed8;
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}
.home-cta-strip a::before {
  font-family: "FontAwesome";
  content: "\f075"; /* fa-comment */
}

/* ---------- home2 / info page ---------- */
.info-hero {
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
  color: #eff6ff;
  padding: 2.5rem 2.2rem;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(191, 219, 254, 0.2);
  box-shadow: 0 26px 55px rgba(8, 15, 40, 0.5);
}
.info-hero .eyebrow {
  display: inline-block;
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.info-hero h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 0.7rem;
  letter-spacing: -0.015em;
  font-weight: 800;
}
.info-hero p {
  color: #dbeafe;
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0;
}

.info-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.info-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.info-card .info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}
.info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: #0f172a;
}
.info-card p {
  font-size: 0.96rem;
  color: #475569;
  margin: 0;
}

.info-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.info-step {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 1.35rem 1.4rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.info-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}
.info-step h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
  padding-right: 2.5rem;
  color: #0f172a;
}
.info-step p {
  font-size: 0.94rem;
  color: #475569;
  margin: 0;
}

.info-closing {
  text-align: center;
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem 1.5rem 2.1rem;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}
.info-closing h2 {
  text-align: center;
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 0.8rem;
}
.info-closing p {
  max-width: 640px;
  margin: 0 auto 1.2rem;
  color: #475569;
}
.info-closing .btn { margin: 0.2rem; }

/* Responsive */
@media (max-width: 991px) {
  .home-feature-grid { grid-template-columns: 1fr; }
  .home-hero { padding: 2rem 1.4rem 2.3rem; }
  .info-sections { grid-template-columns: 1fr; }
  .info-steps { grid-template-columns: 1fr; }
}

/* Legacy bg-layers and blockitem used by the older home2 — hide to
   prevent leaking into the new info page if any stray refs remain. */
.bg, .bg2, .bg3 { display: none; }

/* ============================================================
   Daybreak palette overrides — applied everywhere. The base
   .app-body bg is now a pale-sky → cream → honey gradient
   (see styles.css), so hero panels and CTAs that were designed
   against the old near-black body have been re-tuned to read
   well on the lighter surface.
   ============================================================ */

/* Home hero travels deep-blue into warm coral so the page
   reads as a sunrise rather than a night sky. */
.home-hero {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.35), transparent 60%),
    linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #f97316 100%);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 30px 60px rgba(30, 58, 138, 0.32);
}
.home-hero::before {
  background: radial-gradient(circle, rgba(253, 186, 116, 0.35), transparent 65%);
}
.home-hero::after {
  background: radial-gradient(circle, rgba(191, 219, 254, 0.3), transparent 70%);
}

/* Secondary hero CTA (e.g. Open Dashboard / Create Account) was a
   barely-visible outline-light on the old near-black hero; on the
   brighter sunrise gradient it disappeared. Swap to solid amber
   so it complements the primary white CTA and pops against the
   blue half of the gradient. */
.hero-actions .btn-outline-light {
  background: #fbbf24;
  color: #0f172a;
  border-color: #fbbf24;
  border-width: 2px;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(251, 191, 36, 0.35);
}
.hero-actions .btn-outline-light:hover,
.hero-actions .btn-outline-light:focus {
  background: #f59e0b;
  color: #0f172a;
  border-color: #f59e0b;
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.45);
}

/* Info hero on About: sky → cream → peach with dark text. Reads
   as a brochure rather than a compliance portal. */
.info-hero {
  background: linear-gradient(135deg, #dbeafe 0%, #ffffff 55%, #fed7aa 100%);
  color: var(--color-ink);
  border: 1px solid #e2e8f0;
  box-shadow: 0 22px 45px rgba(30, 64, 175, 0.18);
}
.info-hero .eyebrow { color: #1d4ed8; }
.info-hero h1 { color: #0f172a; }
.info-hero p { color: #334155; }

/* "How it works" heading sits on the bright body, so it needs a
   warm-dark accent to read on cream. Centred to match the
   three-step grid underneath. */
h2.how-it-works-heading {
  color: #c2410c;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Callout strip — warm coral left border on the cream bg. */
.home-callout {
  border-left-color: #f97316;
}

/* CTA strip — coral-to-blue gradient pill on the cream body. */
.home-cta-strip a {
  background: linear-gradient(135deg, #2563eb, #f97316);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
}
.home-cta-strip a:hover {
  background: linear-gradient(135deg, #1d4ed8, #ea580c);
}
