/* ── FallerApp marketing site ──────────────────────────────────
   Colors match the Flutter app's seed palette:
     primary    #C42103   secondary  #E63402   tertiary  #FC6B05
   Mobile-first, no framework. */

:root {
  --primary: #C42103;
  --primary-dark: #8C1700;
  --secondary: #E63402;
  --tertiary: #FC6B05;
  --bg: #FFFAF7;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --muted: #6B6B6B;
  --border: #E5E5E5;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(196, 33, 3, 0.08);
  --max: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Header ─────────────────────────────────────────────────── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--text);
}
.brand img { height: 32px; width: auto; }
.brand:hover { text-decoration: none; }
nav.links { margin-left: auto; display: flex; align-items: center; gap: 18px; }
nav.links a {
  color: var(--text); font-weight: 500; font-size: 15px;
}
nav.links a:hover { color: var(--primary); text-decoration: none; }
.btn-access {
  background: var(--primary); color: #fff;
  padding: 9px 18px; border-radius: 8px; font-weight: 600;
  transition: background 0.15s ease;
}
.btn-access:hover { background: var(--primary-dark); text-decoration: none; }

/* ── Flag toggle ────────────────────────────────────────────── */
.flags { display: flex; gap: 6px; padding-left: 10px; border-left: 1px solid var(--border); margin-left: 4px; }
.flag {
  background: transparent; border: 2px solid transparent;
  border-radius: 6px; cursor: pointer; padding: 2px;
  width: 36px; height: 26px; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.flag:hover { transform: scale(1.05); }
.flag.active { border-color: var(--primary); }
.flag svg { width: 28px; height: 18px; border-radius: 2px; display: block; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
  color: #fff;
  padding: 80px 20px 90px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: clamp(16px, 2.2vw, 20px);
  max-width: 640px;
  margin: 0 auto 30px;
  opacity: 0.95;
}
.hero .btn-cta {
  display: inline-block;
  background: #fff; color: var(--primary);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700; font-size: 17px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero .btn-cta:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}

/* ── Sections ───────────────────────────────────────────────── */
main { max-width: var(--max); margin: 0 auto; padding: 60px 20px; }
section + section { margin-top: 70px; }
h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  margin-bottom: 30px;
  color: var(--primary-dark);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.subtitle {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 17px;
  max-width: 700px;
}

/* ── Module cards ──────────────────────────────────────────── */
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(196, 33, 3, 0.12);
}
.card .icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--tertiary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: #fff; font-size: 24px;
}
.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}
.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ── CTA strip ──────────────────────────────────────────────── */
.cta-strip {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  border: 1px solid var(--border);
  margin-top: 60px;
}
.cta-strip h2 { margin-bottom: 14px; color: var(--text); }
.cta-strip p { color: var(--muted); margin-bottom: 22px; font-size: 17px; }
.cta-strip .btn-cta {
  display: inline-block;
  background: var(--primary); color: #fff;
  padding: 13px 34px;
  border-radius: 10px;
  font-weight: 700;
  transition: background 0.15s ease;
}
.cta-strip .btn-cta:hover { background: var(--primary-dark); text-decoration: none; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
details.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}
details.faq-item[open] { box-shadow: var(--shadow); }
details.faq-item > summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 50px;
}
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px; color: var(--primary);
  font-weight: 300;
  transition: transform 0.2s ease;
}
details.faq-item[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
details.faq-item > div.answer {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
details.faq-item > div.answer p + p { margin-top: 10px; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
footer a { color: var(--muted); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  nav.links { gap: 12px; }
  nav.links a:not(.btn-access) { display: none; }
  .flags { padding-left: 8px; }
  .hero { padding: 60px 20px 70px; }
  main { padding: 40px 16px; }
  section + section { margin-top: 50px; }
}
