/* ============================================================
   My Asthma Life — homepage enhancements (additive)
   Loaded AFTER assets/site.css. Overrides only what it needs.
   No existing class is removed; existing pages are unaffected
   unless they also load this file.
   ============================================================ */

/* ---- Brand lockup (sharp icon + text) ---- */
.brand-lockup { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { display: block; height: 40px; width: 40px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { color: var(--text); font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em; }
.brand-accent { color: #1f6fe0; }
.brand-tagline {
  color: var(--muted); font-size: .58rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-top: 2px;
}

.footer-brand {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem 1.5rem; margin-bottom: 1.4rem;
}
.footer-lockup .brand-name { color: #ffffff; }
.footer-lockup .brand-accent { color: #7fb6ff; }
.footer-lockup .brand-tagline { color: #b6c9c0; }
.footer-social {
  display: inline-flex; align-items: center; gap: .5rem;
  color: #dfeae5 !important; font-weight: 700; text-decoration: none;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: .5rem .9rem;
}
.footer-social:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.footer-social svg { flex: none; }

/* ---- Hero: soft wash + two-column with product shot ---- */
.hero--enhanced {
  position: relative;
  align-items: center;
  background:
    radial-gradient(900px 480px at 78% 18%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  overflow: clip;
}
.hero--enhanced h1 { max-width: 16ch; }
.hero--enhanced .lead { font-size: 1.22rem; max-width: 48ch; }

/* tighten the eyebrow's letterspacing to read crisper */
.hero--enhanced .eyebrow { letter-spacing: .04em; }

/* ---- Trust strip under the CTA ---- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  margin-top: 1.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
}
.trust-row b { color: var(--text); font-weight: 750; }
.trust-row svg { flex: none; color: var(--accent); }

/* ---- Phone frame holding the real app screenshot ---- */
.shot-wrap { position: relative; display: flex; justify-content: center; }
.shot-glow {
  position: absolute; inset: 4% 6%;
  background: radial-gradient(circle at 50% 32%, var(--accent-soft), transparent 70%);
  filter: blur(20px); z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: 300px; max-width: 100%;
  background: #0f1714;
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(24,37,31,.22), 0 8px 18px rgba(24,37,31,.12);
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 116px; height: 7px; border-radius: 99px;
  background: #2a352f; z-index: 3;
}
.phone__screen { display: block; border-radius: 32px; overflow: hidden; background: var(--bg); }
.phone__screen img { display: block; width: 100%; height: auto; }

/* floating accent chips peeking from behind the phone (decorative) */
.float-chip {
  position: absolute; z-index: 2;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow);
  font-size: .82rem; font-weight: 750; color: var(--accent-dark);
  padding: .42rem .7rem; display: inline-flex; align-items: center; gap: .4rem;
}
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.float-chip--tl { top: 22%; left: -8%; }
.float-chip--br { bottom: 14%; right: -5%; }

/* ---- Full-width safety band (relocated disclaimer) ---- */
.safety-band { background: var(--warn-bg); border-top: 1px solid #f1d28a; border-bottom: 1px solid #f1d28a; }
.safety-band__inner {
  max-width: 1120px; margin: 0 auto; padding: 1.4rem 1.25rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.safety-band__badge {
  flex: none; margin-top: .15rem;
  background: #fff; border: 1px solid #f1d28a; border-radius: 6px;
  color: var(--warn); font-size: .76rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; padding: .35rem .6rem;
}
.safety-band p { margin: 0; color: var(--warn); font-size: .95rem; max-width: 96ch; }

/* ---- Alternating section bands to break the white-card monotony ---- */
.band-muted { background: var(--surface-muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- Icons inside cards ---- */
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-dark);
  margin-bottom: .75rem;
}
.card__icon svg { width: 22px; height: 22px; }

/* ---- "How it works" three-step strip ---- */
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 1.5rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; box-shadow: var(--shadow); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: .7rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); margin: 0; }

/* ---- Plans mini-cards (homepage #plans-cta) ---- */
.plans-care-access { margin-top: 1.5rem; }
.plans-secondary { margin-top: 2rem; }

/* ---- features.html page-header with a product shot (scoped: only used
   there, does not affect .page-header on any other page) ---- */
.page-header--with-shot {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
}
.page-header--with-shot .shot-wrap { justify-content: center; }

/* ---- "Try the demo" banner (features.html) ---- */
.demo-banner-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem 2.8rem; }
.demo-banner {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
}
.demo-banner p { margin: 0; font-weight: 650; }
.demo-banner a { font-weight: 800; }

@media (max-width: 860px) {
  .page-header--with-shot { grid-template-columns: 1fr; }
  .page-header--with-shot .shot-wrap { order: -1; }
}

/* ---- Closing CTA band ---- */
.cta-band { background: var(--accent); color: #fff; }
.cta-band__inner { max-width: 1120px; margin: 0 auto; padding: 3rem 1.25rem; text-align: center; }
.cta-band__inner h2 { color: #fff; margin-bottom: .6rem; }
.cta-band__inner p { color: #dff0ea; max-width: 60ch; margin: 0 auto 1.5rem; }
.cta-band .button { background: #fff; color: var(--accent-dark); border-color: #fff; }
.cta-band .button.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .actions { justify-content: center; }

/* ---- Card hover lift ---- */
.card, .step { transition: transform .18s ease, box-shadow .18s ease; }
.card:hover, .step:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(24,37,31,.12); }

/* ---- Scroll reveal (progressive enhancement) ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .step { transition: none; }
  .card:hover, .step:hover { transform: none; }
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .hero--enhanced .shot-wrap { order: -1; }
  .phone { width: 268px; }
  .float-chip--tl { left: 2%; }
  .float-chip--br { right: 2%; }
}
