/* ═══════════════════════════════════════════════════════
   LifeScreen — Main Stylesheet
   ═══════════════════════════════════════════════════════ */
@import url('variables.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Accessibility ───────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Utility: Container ──────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container--narrow { max-width: var(--max-width-narrow); }
.container--wide   { max-width: var(--max-width-wide); }

/* ── Utility: Section Spacing ────────────────────────── */
.section {
  padding: var(--space-24) 0;
}
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.section__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.section--dark .section__tag { color: var(--color-primary-light); }

.section__heading {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extra);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.section__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: var(--leading-relaxed);
}
.section--dark .section__sub { color: var(--color-text-light); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: var(--weight-semi);
  font-size: var(--text-base);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}
.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
}
.btn--accent:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-text-inverse);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn--sm { font-size: var(--text-sm); padding: 0.625rem 1.5rem; }
.btn--lg { font-size: var(--text-lg); padding: 1rem 2.5rem; }

/* ═══════════════════════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow var(--duration) var(--ease-out);
}
.header--scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  color: var(--color-text);
}
.header__brand svg { flex-shrink: 0; }

.header__nav { display: flex; align-items: center; gap: var(--space-8); }
.header__nav a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  transition: color var(--duration);
}
.header__nav a:hover { color: var(--color-primary); }

.header__cta { display: flex; align-items: center; gap: var(--space-3); }

/* Mobile menu trigger */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.header__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semi);
  color: var(--color-text);
}
.mobile-nav__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-size: var(--text-2xl);
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  padding: calc(72px + var(--space-24)) 0 var(--space-24);
  text-align: center;
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
}

.hero__headline {
  font-size: var(--text-6xl);
  font-weight: var(--weight-extra);
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
  max-width: 820px;
  margin: 0 auto var(--space-6);
}
.hero__headline span { color: var(--color-primary); }

.hero__sub {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.hero__badge {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════ */
.stats {
  padding: var(--space-16) 0;
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}
.stats__item-value {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extra);
  line-height: 1;
  margin-bottom: var(--space-2);
  color: #fff;
}
.stats__item-label {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: var(--leading-normal);
}

/* ═══════════════════════════════════════════════════════
   HOW IT WORKS (3 Steps)
   ═══════════════════════════════════════════════════════ */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}
.step-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  transition: all var(--duration) var(--ease-out);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}
.step-card__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}
.step-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
}
.step-card__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ═══════════════════════════════════════════════════════
   FEATURES GRID (Why Screen)
   ═══════════════════════════════════════════════════════ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}
.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  transition: all var(--duration) var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.feature-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-primary);
}
.feature-card__tag {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.feature-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}
.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ═══════════════════════════════════════════════════════
   COMPARISON TABLE
   ═══════════════════════════════════════════════════════ */
.comparison__table-wrap {
  margin-top: var(--space-12);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.comparison__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.comparison__table th,
.comparison__table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.comparison__table thead th {
  font-weight: var(--weight-semi);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  padding-bottom: var(--space-4);
}
.comparison__table thead th:last-child {
  color: var(--color-primary);
}
.comparison__table td:first-child {
  font-weight: var(--weight-medium);
  color: var(--color-text);
}
.comparison__table td:last-child {
  font-weight: var(--weight-semi);
  color: var(--color-primary);
}
/* Highlight column */
.comparison__table th.highlight,
.comparison__table td.highlight {
  background: var(--color-primary-light);
}
.comparison__table th.highlight {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.comparison__table tbody tr:last-child td.highlight {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}
.testimonial-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--duration) var(--ease-out);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}
.testimonial-card__quote {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  margin-bottom: var(--space-6);
  position: relative;
  padding-left: var(--space-5);
  border-left: 3px solid var(--color-primary);
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.testimonial-card__avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--color-primary);
}
.testimonial-card__name {
  font-weight: var(--weight-semi);
  font-size: var(--text-sm);
}
.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ═══════════════════════════════════════════════════════
   PARTNER CTA (Blood Centers)
   ═══════════════════════════════════════════════════════ */
.partner-cta {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1e3a5f 100%);
}
.partner-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.partner-cta__benefits {
  margin: var(--space-8) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.partner-cta__benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-light);
}
.partner-cta__benefit svg { flex-shrink: 0; margin-top: 2px; }
.partner-cta__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-cta__visual-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.partner-cta__visual-stat {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extra);
  color: #fff;
  margin-bottom: var(--space-2);
}
.partner-cta__visual-label {
  font-size: var(--text-lg);
  color: var(--color-text-light);
}

/* ═══════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════ */
.faq__list {
  margin-top: var(--space-12);
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  color: var(--color-text);
  text-align: left;
  transition: color var(--duration);
}
.faq-item__question:hover { color: var(--color-primary); }
.faq-item__icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  transition: transform 0.3s var(--ease-out);
}
.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.3s;
}
.faq-item.is-open .faq-item__answer {
  max-height: 400px;
}
.faq-item__answer p {
  padding-bottom: var(--space-6);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  font-size: var(--text-base);
}

/* ═══════════════════════════════════════════════════════
   LOCATION FINDER
   ═══════════════════════════════════════════════════════ */
.location-finder {
  padding: var(--space-20) 0;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}
.location-finder__heading {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extra);
  margin-bottom: var(--space-4);
}
.location-finder__sub {
  font-size: var(--text-lg);
  opacity: 0.85;
  margin-bottom: var(--space-8);
}
.location-finder__form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  max-width: 480px;
  margin: 0 auto;
}
.location-finder__input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: var(--text-base);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--duration);
}
.location-finder__input::placeholder { color: rgba(255,255,255,0.6); }
.location-finder__input:focus { border-color: #fff; }
.location-finder__btn {
  padding: 1rem 2rem;
  background: #fff;
  color: var(--color-primary);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
}
.location-finder__btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: var(--space-16) 0 var(--space-8);
}
.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: #fff;
  margin-bottom: var(--space-3);
}
.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  max-width: 280px;
  line-height: var(--leading-relaxed);
}
.footer__links {
  display: flex;
  gap: var(--space-12);
}
.footer__link-group h4 {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-4);
}
.footer__link-group a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  padding: var(--space-1) 0;
  transition: color var(--duration);
}
.footer__link-group a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}
.footer__social {
  display: flex;
  gap: var(--space-4);
}
.footer__social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration);
  color: var(--color-text-light);
}
.footer__social a:hover { background: rgba(255,255,255,0.16); color: #fff; }

.footer__disclaimer {
  width: 100%;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.25);
  text-align: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.06);
  line-height: var(--leading-relaxed);
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered children */
.stagger > * { transition-delay: calc(var(--i, 0) * 0.08s); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .hero__headline { font-size: var(--text-5xl); }
  .steps__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .partner-cta__inner { grid-template-columns: 1fr; text-align: center; }
  .partner-cta__benefits { align-items: center; }
  .partner-cta__visual { order: -1; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}

/* Mobile */
@media (max-width: 768px) {
  .section { padding: var(--space-16) 0; }
  .section__heading { font-size: var(--text-3xl); }

  .hero { padding-top: calc(72px + var(--space-16)); }
  .hero__headline { font-size: var(--text-4xl); }
  .hero__sub { font-size: var(--text-base); }
  .hero__badges { gap: var(--space-4); }

  .header__nav { display: none; }
  .header__cta .btn { display: none; }
  .header__toggle { display: flex; }

  .features__grid { grid-template-columns: 1fr; }

  .comparison__table { font-size: var(--text-xs); }
  .comparison__table th, .comparison__table td { padding: var(--space-3); }

  .footer__top { flex-direction: column; }
  .footer__links { flex-direction: column; gap: var(--space-8); }
  .footer__bottom { flex-direction: column; text-align: center; }

  .location-finder__form { flex-direction: column; }
  .location-finder__input,
  .location-finder__btn { width: 100%; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero__headline { font-size: var(--text-3xl); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .stats__grid { grid-template-columns: 1fr; }
}
