/* ChegouLisboa site — brand tokens mirrored from the iOS app (Color+Chegou). */
:root {
  --bg: #f6f8fc;
  --fg: #1e293b;
  --muted: #64748b;
  --accent: #667eea;
  --accent-2: #764ba2;
  --pink: #f093fb;
  --accent-soft: rgba(102, 126, 234, 0.12);
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --grad: linear-gradient(135deg, #667eea, #764ba2);
  --correct: #10b981;
  --incorrect: #ef4444;
  --warn: #f59e0b;
  --streak: #f97316;
  --max: 66rem;
  --text-max: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --fg: #f8fafc;
    --muted: #94a3b8;
    --accent: #818cf8;
    --accent-2: #9d6bc3;
    --accent-soft: rgba(129, 140, 248, 0.16);
    --card: #1e293b;
    --border: rgba(248, 250, 252, 0.10);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }

/* ── Header ── */
header.site {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  padding: 1rem 1.25rem;
}
header.site .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
}
.brand img { width: 1.9rem; height: 1.9rem; border-radius: 0.45rem; }
nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-left: 1.15rem;
  font-size: 0.95rem;
  font-weight: 500;
}
nav a:hover { color: #fff; }

/* ── Gradient hero ── */
.hero {
  position: relative;
  background: var(--grad);
  color: #fff;
  padding: 7rem 1.25rem 3rem;
  overflow: hidden;
}
.hero::before {           /* calçada glow */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38rem 22rem at 85% 20%, rgba(240, 147, 251, 0.28), transparent 60%),
    radial-gradient(30rem 20rem at 5% 90%, rgba(255, 255, 255, 0.14), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.hero-copy { flex: 1 1 24rem; }
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero .lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
}
.hero .lede i { color: var(--pink); font-style: normal; font-weight: 600; }
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--accent-2);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.hero-note { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 0.9rem; }

/* ── Phone mockup ── */
.phone {
  flex: 0 0 auto;
  width: 17rem;
  margin: 0 auto;
  background: #0f172a;
  border-radius: 2.6rem;
  padding: 0.55rem;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255,255,255,0.15);
  transform: rotate(2.5deg);
}
.phone .shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2.1rem;
}

/* ── Calçada wave divider ── */
.wave { display: block; width: 100%; height: 3.5rem; }
.wave path { fill: var(--bg); }

/* ── Sections ── */
main { padding: 0 0 4rem; }
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 0;
}
.section > h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.section > .sub { color: var(--muted); margin: 0 0 1.8rem; max-width: 40rem; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* feature tiles */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.1rem;
  padding: 0;
  list-style: none;
  margin: 0;
}
.features li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}
.icon-tile {
  display: inline-flex;
  width: 2.9rem; height: 2.9rem;
  border-radius: 0.85rem;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  background: var(--grad);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}
.t-pink   { background: linear-gradient(135deg, #f093fb, #764ba2); box-shadow: 0 6px 16px rgba(240,147,251,0.35); }
.t-green  { background: linear-gradient(135deg, #10b981, #0ea5a4); box-shadow: 0 6px 16px rgba(16,185,129,0.35); }
.t-orange { background: linear-gradient(135deg, #f97316, #f59e0b); box-shadow: 0 6px 16px rgba(249,115,22,0.35); }
.features b { display: block; margin-bottom: 0.3rem; font-size: 1.05rem; }
.features small { color: var(--muted); font-size: 0.92rem; }

/* phrase cards */
.phrases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.1rem;
  padding: 0;
  list-style: none;
  margin: 0;
}
.phrases li {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 1rem;
  padding: 1.2rem 1.3rem;
}
.phrases li:nth-child(2) { border-left-color: var(--pink); }
.phrases li:nth-child(3) { border-left-color: var(--correct); }
.phrases .pt { font-weight: 800; font-size: 1.15rem; }
.phrases .en { color: var(--muted); margin-top: 0.15rem; }
.chip {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.1rem;
  padding: 0;
  list-style: none;
  margin: 0;
  counter-reset: step;
}
.steps li { position: relative; padding: 0.2rem 0 0 3.4rem; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0.1rem;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps b { display: block; }
.steps small { color: var(--muted); }

/* CTA band */
.cta {
  max-width: var(--max);
  margin: 3.5rem auto 0;
  padding: 0 1.25rem;
}
.cta .box {
  background: var(--grad);
  border-radius: 1.4rem;
  color: #fff;
  text-align: center;
  padding: 2.6rem 1.5rem;
  box-shadow: 0 18px 40px rgba(102, 126, 234, 0.35);
}
.cta h2 { margin: 0 0 0.4rem; font-size: 1.6rem; }
.cta p { margin: 0 0 1.2rem; color: rgba(255,255,255,0.85); }
.cta a.btn {
  display: inline-block;
  background: #fff;
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  margin: 0 0.3rem;
}
.cta a.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
a.badge-soon { text-decoration: none; transition: transform 0.15s ease; }
a.badge-soon:hover { transform: translateY(-2px); }

/* ── Legal pages ── */
.page-hero {
  background: var(--grad);
  color: #fff;
  padding: 6.5rem 1.25rem 2.2rem;
}
.page-hero .inner { max-width: var(--text-max); margin: 0 auto; }
.page-hero h1 { margin: 0 0 0.4rem; font-size: 2rem; }
.page-hero .meta { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
.page-hero .meta a { color: #fff; }
.legal {
  max-width: var(--text-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6rem; }
a { color: var(--accent); }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.tablewrap { overflow-x: auto; }

/* ── Footer ── */
footer.site {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .inner { max-width: var(--max); margin: 0 auto; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .hero { padding-top: 5.5rem; }
  .phone { transform: none; margin-top: 1rem; }
  nav a { margin-left: 0.8rem; }
}
