/* Landing page — a faithful translation of app/lib/screens/landing_page.dart.
   All sizes, colours, paddings and gaps mirror the Flutter widget tree. */

:root {
  --slate: #1e293b;
  --navy: #0f172a;
  --plum: #1a0a2e;
  --cta-plum: #2d1b4e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* LinearGradient(topLeft → bottomRight, [#1E293B, #0F172A, #1A0A2E]) */
  background: linear-gradient(135deg, var(--slate) 0%, var(--navy) 50%, var(--plum) 100%);
  min-height: 100vh;
}

/* ── Hero (Padding all: 48; extra 60 top / 80 bottom from SizedBoxes) ── */
.hero {
  padding: 48px 48px 128px;
  text-align: center;
}
.hero__title {
  margin: 60px 0 0;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  white-space: pre-line;
}
.hero__subtitle {
  margin: 24px auto 0;
  max-width: 900px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.5;
  white-space: pre-line;
}
.hero__buttons {
  margin: 48px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__prompt {
  margin: 40px auto 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.5;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
.btn--primary:hover { background: #f3f4f6; }
.btn--outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 500;
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.06); }
/* Primary hero button (padding H48 V20, 18px) */
.btn--lg { padding: 20px 48px; font-size: 18px; }
.btn--outline.btn--lg { font-size: 16px; }
/* Doc button (padding H32 V16, 16px, white text) */
.btn--doc {
  margin: 16px 0 0;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}
/* CTA button (padding H60 V24, 20px) */
.btn--xl { padding: 24px 60px; font-size: 20px; }

/* ── Features section (white sheet, radius top 40, padding 60) ── */
.features {
  background: #fff;
  border-radius: 40px 40px 0 0;
  padding: 60px 60px 80px;
  text-align: center;
}
.section-title {
  margin: 0;
  color: var(--navy);
  font-size: 36px;
  font-weight: 700;
}
.section-title--how { margin-top: 80px; }

/* Feature cards — Wrap(spacing 40, runSpacing 40), each card 320 wide */
.features__grid {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.feature-card {
  width: 320px;
  padding: 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feature-card__icon {
  padding: 20px;
  border-radius: 16px;
  display: inline-flex;
}
.feature-card__icon svg { display: block; }
.feature-card__title {
  margin: 20px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: #212121; /* grey900 */
}
.feature-card__desc {
  margin: 12px 0 0;
  font-size: 15px;
  color: #616161; /* grey700 */
  line-height: 1.5;
}

/* How it works — steps (left-aligned rows, 30px apart) */
.steps {
  margin-top: 40px;
  text-align: left;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.step + .step { margin-top: 30px; }
.step__num {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 30px;
  background: linear-gradient(to right, var(--slate), var(--cta-plum));
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__body { flex: 1; }
.step__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #212121;
}
.step__desc {
  margin: 8px 0 0;
  font-size: 16px;
  color: #616161;
  line-height: 1.5;
}

/* CTA box — content-width, centred, gradient, radius 20, padding 60 */
.cta {
  margin: 80px auto 0;
  max-width: max-content;
  padding: 60px;
  border-radius: 20px;
  background: linear-gradient(to right, var(--slate), var(--cta-plum));
}
.cta__title {
  margin: 0;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
}
.cta__subtitle {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}
.cta .btn--xl { margin-top: 32px; }

/* Footer */
.footer-text {
  margin: 60px 0 0;
  color: #757575; /* grey600 */
  font-size: 14px;
}
.support-link {
  display: inline-block;
  margin: 8px 0 20px;
  color: #9e9e9e; /* grey500 */
  font-size: 13px;
  text-decoration: none;
}
.support-link:hover { text-decoration: underline; }

/* ── Cookie consent banner ───────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 20px;
  width: calc(100% - 48px);
  max-width: 720px;
  padding: 16px 20px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner__btn {
  flex: none;
  margin-left: auto;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.cookie-banner__btn:hover { background: #f3f4f6; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 32px 24px 96px; }
  .hero__title { font-size: 36px; }
  .hero__subtitle { font-size: 18px; }
  .hero__buttons { flex-direction: column; gap: 16px; }
  .hero__buttons .btn { width: 100%; max-width: 360px; }
  .features { padding: 48px 24px 64px; }
  .section-title { font-size: 28px; }
  .cta { padding: 40px 28px; }
  .cta__title { font-size: 28px; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
  .cookie-banner__btn { width: 100%; }
}
