/* Palco Zero: site institucional.
   Tokens espelham o design system do app (lib/core/theme/app_color_tokens.dart, "Uber Base"):
   preto e branco, Inter, azul só para links, claro e escuro pelo sistema. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --text: #000000;
  --text-2: #4b4b4b;
  --text-3: #5e5e5e;
  --primary: #000000;
  --on-primary: #ffffff;
  --link: #175bcc;
  --border: #e2e2e2;
  --border-strong: #868686;
  --success: #166c3b;
  --success-bg: #eaf6ed;
  --warning: #845201;
  --warning-bg: #fdf2dc;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  --phone-bezel: #0b0b0b;
  --screen-bg: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --maxw: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --surface: #292929;
    --surface-2: #383838;
    --text: #dedede;
    --text-2: #c4c4c4;
    --text-3: #ababab;
    --primary: #ffffff;
    --on-primary: #000000;
    --link: #93b4ee;
    --border: #484848;
    --border-strong: #8c8c8c;
    --success: #8fc19c;
    --success-bg: #162f1e;
    --warning: #d7ac57;
    --warning-bg: #39240a;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    --phone-bezel: #3a3a3a;
    --screen-bg: #161616;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip:focus { left: 8px; text-decoration: none; }

/* ── Navegação ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: -0.3px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: none; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: inline-flex; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--text); cursor: pointer;
}
.mobile-menu { display: none; border-top: 1px solid var(--border); padding: 8px 24px 16px; background: var(--bg); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* ── Botões ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-md); font-weight: 600; font-size: 15px; letter-spacing: 0.1px;
  border: 1.5px solid transparent; cursor: pointer; transition: transform 160ms, opacity 160ms;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 56px 0 24px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 600; border: 1px solid var(--border);
}
.pill b { background: var(--success-bg); color: var(--success); padding: 2px 8px; border-radius: 999px; font-size: 12px; }
h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; margin: 18px 0 18px; text-wrap: balance; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores a { display: inline-flex; }
.stores a:hover { opacity: 0.85; text-decoration: none; }
.stores img.apple { height: 46px; width: auto; }
.stores img.google { height: 60px; width: auto; margin: -7px -4px; }
.fine { font-size: 14px; color: var(--text-3); margin-top: 16px; }

/* ── Celular (moldura com captura do app) ───────────────── */
.phone {
  position: relative; width: 100%; max-width: 270px; border-radius: 38px; padding: 8px;
  background: var(--phone-bezel); box-shadow: var(--shadow);
}
.phone::before {
  content: ''; position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 8px; border-radius: 4px; background: var(--phone-bezel); z-index: 2;
}
/* Faixa de status própria acima da captura: a "ilha" fica nela e não cobre o cabeçalho do app. */
.phone picture { display: block; width: 100%; padding-top: 26px; background: var(--screen-bg); border-radius: 30px; overflow: hidden; }
.phone img { display: block; width: 100%; aspect-ratio: 540 / 1008; object-fit: cover; object-position: top; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; }
.hero-phones .phone:nth-child(2) { margin-left: -56px; margin-top: 48px; }
.hero-phones .phone:nth-child(1) { z-index: 1; }

/* ── Seções ─────────────────────────────────────────────── */
section { padding: 72px 0; }
.alt { background: var(--surface-2); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--text-2); font-size: 18px; margin-top: 14px; }

/* O encontro */
.match { display: grid; gap: 14px; }
.match-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px;
}
.alt .match-card { background: var(--bg); }
.match-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; margin-bottom: 14px; }
.match-card p { color: var(--text-2); margin-top: 8px; }
.match-card.hl { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.match-card.hl p { color: var(--on-primary); opacity: 0.86; }
.match-card.hl .ico { background: var(--on-primary); color: var(--primary); }
@media (min-width: 820px) { .match { grid-template-columns: 1fr 1fr 1fr; } }

/* Blocos de recurso (texto + celular) */
.feature { display: grid; gap: 32px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature-text h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.025em; line-height: 1.12; }
.feature-text p { color: var(--text-2); font-size: 17px; margin-top: 12px; max-width: 32em; }
.feature-text ul { margin-top: 14px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.feature-text li { color: var(--text-2); display: flex; gap: 10px; }
.feature-text li::before { content: ''; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 9px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); margin-bottom: 10px; border: 1px solid var(--border); }
.feature-visual { display: flex; justify-content: center; }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .feature.flip .feature-visual { order: -1; }
}

/* Grade de recursos menores */
.grid3 { display: grid; gap: 14px; margin-top: 32px; }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.alt .mini { background: var(--bg); }
.mini .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); color: var(--text); display: grid; place-items: center; margin-bottom: 12px; border: 1px solid var(--border); }
.mini p { color: var(--text-2); margin-top: 6px; font-size: 15.5px; }
@media (min-width: 700px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }

/* Como funciona */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); font-weight: 800; margin-bottom: 14px;
}
.step p { color: var(--text-2); margin-top: 8px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Banner grátis */
.free { background: var(--primary); color: var(--on-primary); border-radius: 24px; padding: 48px 28px; display: grid; gap: 24px; align-items: center; }
.free h2 { color: var(--on-primary); }
.free p { color: var(--on-primary); opacity: 0.86; font-size: 18px; margin-top: 12px; max-width: 34em; }
.free ul { list-style: none; display: grid; gap: 10px; }
.free li { display: flex; gap: 10px; font-weight: 600; }
.free li::before { content: '✓'; font-weight: 800; }
@media (min-width: 820px) { .free { grid-template-columns: 1.2fr 0.8fr; padding: 56px; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; padding: 18px 36px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 26px; font-weight: 400; color: var(--text-3); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--text-2); padding: 0 0 20px; max-width: 42em; }

/* CTA final */
.cta { text-align: center; }
.cta .stores { justify-content: center; margin-top: 28px; }
.cta p { color: var(--text-2); font-size: 18px; margin-top: 12px; }

/* Rodapé */
.footer { border-top: 1px solid var(--border); padding: 48px 0 28px; background: var(--bg); }
.footer-grid { display: grid; gap: 32px; }
.footer h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer li a, .footer li span { color: var(--text-2); font-size: 15px; }
.footer-brand p { color: var(--text-2); max-width: 26em; margin-top: 12px; font-size: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 14px; }
.footer-bottom a { color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom img { width: 18px; height: 18px; border-radius: 4px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* Telas grandes e movimento reduzido */
@media (min-width: 900px) {
  .hero { padding: 80px 0 40px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .phone { max-width: 290px; }
}
@media (max-width: 520px) {
  /* Dois aparelhos que cabem na largura: 54% + 54% - 8% = 100%. */
  .hero-phones .phone { width: 54%; max-width: 220px; }
  .hero-phones .phone:nth-child(2) { margin-left: -8%; margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
