/* Flora Quiz — marketing site. Palette + type mirror the in-app "Flora" design
   system (ADR-023): botanical cream/green/terracotta, Baloo 2 + Nunito. */

:root {
  --cream: #faf6eb;
  --cream-deep: #f3ecda;
  --ink: #2e2a24;
  --muted: #6e6a62;
  --leaf: #339955;
  --leaf-deep: #1f7a3c;
  --leaf-soft: #ddf2e1;
  --terra: #e07a5f;
  --terra-deep: #b85941;
  --terra-soft: #fce7de;
  --honey: #f5a623;
  --honey-soft: #fdeecf;
  --petal: #e983a8;
  --petal-soft: #fbe4ec;
  --sky-soft: #e3f1f9;
  --card: #ffffff;
  --border: #ede4d3;
  --edge: #e3d9c5;
  --shadow: 0 18px 40px -18px rgba(46, 42, 36, 0.28);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

a { color: var(--leaf-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { width: min(1100px, 92vw); margin: 0 auto; }

/* --- Header ---------------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 246, 235, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.nav .spacer { flex: 1; }
.nav a.navlink { color: var(--muted); font-weight: 700; }
.nav a.navlink:hover { color: var(--leaf-deep); text-decoration: none; }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary {
  background: var(--leaf);
  color: #fff;
  box-shadow: 0 6px 0 0 var(--leaf-deep);
}
.btn-primary:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 0 var(--leaf-deep); }
.btn-store {
  background: var(--ink);
  color: #fff;
  align-items: center;
}
.btn-store:hover { text-decoration: none; transform: translateY(-2px); }
.btn-store small { display: block; font-size: 0.7rem; font-weight: 600; opacity: 0.8; font-family: "Nunito", sans-serif; }
.btn-store strong { font-size: 1.05rem; line-height: 1.1; }
.btn-store .ico { font-size: 1.5rem; }

/* --- Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 0 84px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
}
.hero::before { width: 380px; height: 380px; background: var(--leaf-soft); top: -120px; left: -120px; opacity: 0.7; }
.hero::after { width: 420px; height: 420px; background: var(--terra-soft); bottom: -160px; right: -140px; opacity: 0.7; }
.hero .wrap { position: relative; z-index: 1; }
.hero img.logo { width: 128px; height: 128px; margin: 0 auto 20px; filter: drop-shadow(0 10px 24px rgba(31, 122, 60, 0.25)); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.hero .tag {
  display: inline-block;
  background: var(--honey-soft);
  color: #7a5410;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.hero p.lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }

/* --- Sections -------------------------------------------------------------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { color: var(--terra-deep); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--edge);
  border-radius: var(--radius);
  padding: 26px;
}
.card .emoji {
  font-size: 1.7rem;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  margin-bottom: 14px;
}
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }

/* --- Screenshots ----------------------------------------------------------- */
.shots-band { background: var(--cream-deep); }
.shots { display: flex; gap: 20px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; }
.shot { scroll-snap-align: center; flex: 0 0 auto; width: 220px; text-align: center; }
.phone {
  width: 220px; height: 460px;
  border-radius: 34px;
  background: var(--card);
  border: 8px solid var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-cap { margin-top: 12px; font-weight: 700; color: var(--ink); }

/* --- Trust strip ----------------------------------------------------------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; text-align: center; }
.trust .item .big { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--leaf-deep); }
.trust .item .lbl { color: var(--muted); font-size: 0.95rem; }

/* --- CTA / Footer ---------------------------------------------------------- */
.cta-final { text-align: center; }
.cta-final .box {
  background: linear-gradient(135deg, var(--leaf-soft), var(--sky-soft));
  border-radius: 28px;
  padding: 54px 28px;
}
footer { background: var(--ink); color: #d7d2c7; padding: 40px 0; }
footer .cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
footer .cols .spacer { flex: 1; }
footer a { color: #f0ece2; font-weight: 700; }
footer .brand { color: #fff; }
footer small { color: #a8a196; }

/* --- Legal / privacy page -------------------------------------------------- */
.legal { padding: 48px 0 72px; }
.legal .wrap { width: min(780px, 92vw); }
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.2em; }
.legal .updated { color: var(--muted); font-weight: 700; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { background: var(--cream-deep); }
.legal .callout {
  background: var(--leaf-soft);
  border-left: 4px solid var(--leaf);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 1.2em 0;
}
.legal table.scroll-x { display: block; overflow-x: auto; }

@media (max-width: 640px) {
  .nav a.navlink { display: none; }
}
