/* Fala Go — public site stylesheet.
   Brand "Forward" identity: blue→orange gradient, orange CTA, deep-ink text.
   Tokens mirror the Flutter app (FriendlyTrust / Forward palette). */

:root {
  --blue: #1a5fd6;
  --orange: #ff7a00;
  --orange-ink: #e56e00;
  --ink: #13233f;
  --sub-ink: #5d7196;
  --bg: #ffffff;
  --bg-tint: #fff7ed;
  --card: #ffffff;
  --border: #e7eefb;
  --radius: 18px;
  --shadow: 0 18px 48px -24px rgba(19, 35, 63, 0.35);
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--orange) 100%);
  --maxw: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Avenir Next", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--orange-ink); text-decoration: none; }

/* Hamburger (mobile nav toggle) — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  padding: 0 10px;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Language picker */
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-picker {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 6px 10px;
}
.lang-picker .globe { font-size: 15px; line-height: 1; }
.lang-picker select {
  border: 0; background: transparent; font: inherit; font-weight: 600;
  font-size: 14px; color: var(--ink); cursor: pointer; padding-right: 2px;
  appearance: none; -webkit-appearance: none; outline: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -12px var(--orange); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-store {
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  text-align: left;
  line-height: 1.1;
}
.btn-store small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; }
.btn-store strong { font-size: 16px; font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  color: #fff;
  padding: 84px 0 96px;
}
.hero::after {
  /* accelerating-chevron motif watermark */
  content: "";
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; max-width: 760px; }
/* Hero top row: eyebrow + (phone-only) download button */
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.hero-download { display: none; } /* phones only — see media query */
.hero .eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 0; /* spacing handled by .hero-top */
}
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; margin: 0 0 18px; font-weight: 800; letter-spacing: -1px; }
.hero p.lead { font-size: clamp(17px, 2.5vw, 21px); opacity: 0.94; margin: 0 0 32px; max-width: 620px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
section.block { padding: 84px 0; }
section.tint { background: var(--bg-tint); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 12px; font-weight: 800; letter-spacing: -0.5px; }
.section-head p { color: var(--sub-ink); font-size: 18px; margin: 0; }

/* ---------- Service cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.card .ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 95, 214, 0.12), rgba(255, 122, 0, 0.14));
  font-size: 26px;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.card p { margin: 0; color: var(--sub-ink); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: step; }
.step { position: relative; padding-left: 8px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--sub-ink); font-size: 15px; }

/* ---------- Payment trust band ---------- */
.pay-band { text-align: center; }
.pay-band .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.pay-band .chip {
  background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 20px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow);
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px; max-width: 620px; margin: 0 auto; text-align: center;
}
.contact-card .row { color: var(--sub-ink); margin: 6px 0; font-size: 16px; }
.contact-card .row strong { color: var(--ink); }

/* ---------- Operator / footer ---------- */
.footer { background: var(--ink); color: #cdd8ee; padding: 56px 0 40px; }
.footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.footer a { color: #cdd8ee; font-weight: 500; }
.footer a:hover { color: #fff; }
.footer .brand img { height: 30px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer .links { display: flex; flex-direction: column; gap: 10px; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 14px; }
.footer .legal-note {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px; font-size: 13px; color: #93a3c4; line-height: 1.7;
}
.footer .legal-note strong { color: #fff; }

/* ---------- Legal document pages ---------- */
.legal-header {
  background: var(--grad); color: #fff; padding: 56px 0 44px;
}
.legal-header .wrap { max-width: 820px; }
.legal-header a.back { color: rgba(255,255,255,0.9); font-weight: 600; font-size: 14px; }
.legal-header h1 { margin: 14px 0 4px; font-size: clamp(28px, 5vw, 40px); }
.legal-header .meta { opacity: 0.9; font-size: 14px; }
.legal-lang { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.legal-lang a {
  color: #fff; font-weight: 600; font-size: 13px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 999px; padding: 4px 12px;
}
.legal-lang a:hover { background: rgba(255,255,255,0.15); text-decoration: none; }
.legal-lang a.current { background: #fff; color: var(--blue); border-color: #fff; }
.legal-body { max-width: 820px; margin: 0 auto; padding: 48px 24px 96px; }
.legal-body h1, .legal-body h2, .legal-body h3, .legal-body h4 { color: var(--ink); line-height: 1.25; margin-top: 2em; }
.legal-body h1 { font-size: 30px; }
.legal-body h2 { font-size: 24px; }
.legal-body h3 { font-size: 20px; }
.legal-body h4 { font-size: 17px; }
.legal-body p, .legal-body li { color: #2a3a52; font-size: 16px; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body li { margin: 6px 0; }
.legal-body hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.legal-body a { color: var(--orange-ink); }
.legal-body strong { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero { padding: 60px 0 68px; }
  section.block { padding: 60px 0; }
  .footer .cols { flex-direction: column; }
  /* Phones: move the "Download the app" button out of the header into the
     hero's "Fala Go" row; language selector stays in the header. */
  .header-download { display: none; }
  .hero-download { display: inline-flex; }
  /* Phones: collapse nav links into the hamburger dropdown. */
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 6px 24px 14px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 2px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
}
