/* ─── Landing page styles ───────────────────────────────────────────────────
   Loaded with the server-rendered home (index.php). Polished, modern refresh.
   Class names match the markup so the SPA and SEO content stay in sync.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--grad-hero);
  border-bottom: 1px solid var(--clr-border);
  padding: 4rem 1rem 3.25rem;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.hero__copy { flex: 1; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #137a47;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(30,168,96,.25);
  box-shadow: 0 1px 2px rgba(16,40,34,.04);
  padding: .35rem .85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.1rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero__h1 {
  font-size: clamp(2rem, 6vw, 2.85rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--clr-dark);
  margin-bottom: 1.1rem;
  letter-spacing: -.035em;
}

.hero__accent {
  background: var(--grad-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--clr-green);
}

.hero__lead {
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--clr-mid);
  margin-bottom: 1.9rem;
  max-width: 44ch;
}

.btn-scan-hero {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: var(--grad-green);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: .95rem 2.1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  box-shadow: var(--shadow-green);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn-scan-hero:hover  { box-shadow: 0 10px 28px rgba(30,168,96,.42); transform: translateY(-2px); }
.btn-scan-hero:active { transform: translateY(0) scale(.99); box-shadow: 0 3px 10px rgba(30,168,96,.32); }
.btn-scan-hero__icon { display: flex; align-items: center; }

.hero__manual-hint {
  margin-top: 1.05rem;
  font-size: .85rem;
  color: var(--clr-mid);
}
.hero__manual-hint a { color: var(--clr-green); font-weight: 600; }

/* Score ring demo illustration */
.hero__visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-score-demo {
  position: relative;
  width: 184px;
  height: 184px;
  flex-shrink: 0;
  padding: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.hero-score-demo svg { display: block; width: 100%; height: 100%; }

/* Number + label as one tidy group, centred inside the ring */
.hero-score-demo__content {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
}
.hero-score-demo__num {
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--clr-dark);
}
.hero-score-demo__label {
  font-size: .56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--clr-mid);
}

@media (max-width: 560px) { .hero__visual { display: none; } }

/* ── Trust strip ───────────────────────────────────────────────────────────── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.75rem;
  padding: 1rem 1rem;
  background: linear-gradient(90deg, #15212e 0%, #1c3040 100%);
  color: #e7eef0;
  font-size: .82rem;
  font-weight: 500;
}
.trust-strip div { display: flex; align-items: center; gap: .45rem; }
.trust-strip span { color: var(--clr-green-2); font-weight: 800; }

/* ── LP section wrapper ────────────────────────────────────────────────────── */
.lp-section { padding: 4rem 1rem; }
.lp-section--alt {
  background:
    radial-gradient(700px 300px at 50% 0%, #f0faf5 0%, rgba(240,250,245,0) 70%),
    var(--clr-bg);
  border-top:    1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.lp-section__inner { max-width: 720px; margin: 0 auto; }
.lp-section__inner--narrow { max-width: 640px; }

.lp-section__title {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 900;
  color: var(--clr-dark);
  text-align: center;
  margin-bottom: .55rem;
  letter-spacing: -.03em;
}
.lp-section__sub {
  text-align: center;
  color: var(--clr-mid);
  font-size: .95rem;
  margin-bottom: 2.75rem;
}

.lp-prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--clr-mid);
  margin-bottom: 2.25rem;
  text-align: center;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── Steps (how it works) ──────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
}

.step {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.35rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(30,168,96,.3); }

.step__icon {
  width: 60px; height: 60px;
  margin: 0 auto .9rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-green);
  border-radius: 18px;
  background: linear-gradient(135deg, #e4f8ee 0%, #dbf3ff 100%);
  box-shadow: inset 0 0 0 1px rgba(30,168,96,.12);
}
.step__title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
  color: var(--clr-dark);
}
.step__desc {
  font-size: .86rem;
  color: var(--clr-mid);
  line-height: 1.6;
}

/* ── Score bands ───────────────────────────────────────────────────────────── */
.score-bands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (max-width: 480px) { .score-bands { grid-template-columns: 1fr; } }

.score-band {
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.score-band::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.score-band--green  { background: linear-gradient(180deg,#e6f9ef,#f4fcf8); border-color:#bfead2; }
.score-band--yellow { background: linear-gradient(180deg,#fdf4dd,#fffaf0); border-color:#f0e0a8; }
.score-band--red    { background: linear-gradient(180deg,#fde7e5,#fff5f4); border-color:#f4c7c2; }
.score-band--green::before  { background: var(--clr-green); }
.score-band--yellow::before { background: var(--clr-yellow); }
.score-band--red::before    { background: var(--clr-red); }

.score-band__range {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: .25rem;
}
.score-band--green  .score-band__range { color: #157a44; }
.score-band--yellow .score-band__range { color: #9a6a00; }
.score-band--red    .score-band__range { color: #b3362c; }

.score-band__label {
  font-size: .9rem;
  font-weight: 800;
  margin-bottom: .35rem;
  color: var(--clr-dark);
}
.score-band__desc {
  font-size: .77rem;
  color: var(--clr-mid);
  line-height: 1.45;
}

/* ── Features grid ─────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(30,168,96,.35); box-shadow: var(--shadow-lg); }

.feature-card__icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-green);
  border-radius: 14px;
  background: linear-gradient(135deg, #e4f8ee 0%, #dbf3ff 100%);
  margin-bottom: .85rem;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: .45rem;
  color: var(--clr-dark);
}
.feature-card p {
  font-size: .86rem;
  color: var(--clr-mid);
  line-height: 1.6;
  margin: 0;
}

/* ── FAQ accordion ─────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: .65rem; }

.faq-item {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item[open] { border-color: rgba(30,168,96,.4); box-shadow: 0 6px 20px rgba(16,40,34,.08); }

.faq-item__q {
  position: relative;
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: var(--clr-dark);
  user-select: none;
  -webkit-user-select: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: '';
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e8f6ef;
  position: relative;
  transition: transform .25s var(--ease), background .2s;
}
.faq-item__q::before {
  content: '+';
  position: absolute;
  right: 1.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-green);
  z-index: 1;
  transition: transform .25s var(--ease);
}
.faq-item[open] .faq-item__q::before { content: '−'; }

.faq-item__a {
  padding: 0 1.3rem 1.15rem;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--clr-mid);
}
.faq-item__a p { margin: 0; }

/* ── Bottom CTA section ────────────────────────────────────────────────────── */
.lp-cta-footer {
  text-align: center;
  padding: 4rem 1rem;
  background:
    radial-gradient(600px 260px at 50% 0%, #d9f7e8 0%, rgba(217,247,232,0) 70%),
    linear-gradient(180deg, #f3fbf7 0%, #fff 100%);
  border-top: 1px solid var(--clr-border);
}
.lp-cta-footer h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.05rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--clr-dark);
  margin-bottom: .55rem;
}
.lp-cta-footer p {
  color: var(--clr-mid);
  font-size: 1rem;
  margin-bottom: 1.9rem;
}

/* ── Site footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-navy);
  color: #9fb1bd;
  padding: 2.5rem 1rem;
  font-size: .84rem;
}
.site-footer__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.site-footer__brand p { margin: .4rem 0 0; color: #7e94a2; max-width: 30ch; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
}
.site-footer__links a { color: #7fe8b3; text-decoration: none; font-weight: 500; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__legal { color: #61727e; line-height: 1.65; }
.site-footer__legal a { color: #7fe8b3; }

@media (min-width: 520px) {
  .site-footer__inner { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
  .site-footer__legal { width: 100%; padding-top: .9rem; border-top: 1px solid #24333f; }
}

/* ─── Dark mode ────────────────────────────────────────────────────────────
   Everything using a CSS var already adapts automatically (see app.css).
   These are the landing page's own hardcoded light-theme pastels: hero
   glass surfaces, decorative gradient washes, and the score-band/icon-tile
   backgrounds. */
@media (prefers-color-scheme: dark) {
  .hero__eyebrow {
    color: var(--tint-green-fg);
    background: rgba(255,255,255,.06);
    border-color: rgba(111,227,163,.25);
  }
  .hero-score-demo { background: rgba(26,34,44,.72); }

  .lp-section--alt {
    background:
      radial-gradient(700px 300px at 50% 0%, rgba(111,227,163,.06) 0%, rgba(111,227,163,0) 70%),
      var(--clr-bg);
  }

  .step__icon,
  .feature-card__icon {
    background: linear-gradient(135deg, #16301f 0%, #142a3a 100%);
  }

  .score-band--green  { background: linear-gradient(180deg,#16301f,#131c17); border-color: #235235; }
  .score-band--yellow { background: linear-gradient(180deg,#3a2f0d,#211c0e); border-color: #5c4a15; }
  .score-band--red    { background: linear-gradient(180deg,#3a1614,#20120f); border-color: #602420; }
  .score-band--green  .score-band__range { color: var(--tint-green-fg); }
  .score-band--yellow .score-band__range { color: var(--tint-yellow-fg); }
  .score-band--red    .score-band__range { color: var(--tint-red-fg); }

  .faq-item__q::after { background: #16301f; }

  .lp-cta-footer {
    background:
      radial-gradient(600px 260px at 50% 0%, rgba(111,227,163,.08) 0%, rgba(111,227,163,0) 70%),
      var(--clr-bg);
  }
}

/* ─── Desktop / tablet ─────────────────────────────────────────────────────
   Below this the layout is already a well-proportioned single centred
   column; wider than this, opening the copy/steps/feature grids out to a
   wider measure uses the space instead of leaving a phone-width column
   stranded in the middle of a desktop viewport. */
@media (min-width: 900px) {
  .hero__inner { max-width: 1080px; gap: 4rem; }
  .lp-section__inner { max-width: 1080px; }
  .lp-section__inner--narrow { max-width: 760px; }
  .site-footer__inner { max-width: 1080px; }
}
