/* Tokens espelhados de src/theme.ts para o site ficar igual ao app. */
:root {
  --bg: #FDF9F4;
  --surface: #FFFFFF;
  --surface-muted: #F0EAE4;
  --border: #E9E4DE;
  --ink: #1E1A16;
  --text: #362C24;
  --text-secondary: #6C6158;
  --text-tertiary: #8A7E75;
  --primary: #CB6440;
  --primary-dark: #A94620;
  --primary-light: #FEE5DB;
  --primary-light-text: #9E4421;
  --success: #1E7729;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --maxw: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Alternância de idioma: uma URL só serve pt e en, o que importa porque a
   App Store Connect aceita apenas um endereço de política de privacidade. */
html[data-lang="pt"] [lang="en"],
html[data-lang="en"] [lang="pt"] { display: none !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light-text); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 249, 244, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav a { color: var(--text-secondary); font-size: 14.5px; font-weight: 600; padding: 7px 10px; border-radius: 10px; }
.nav a:hover { background: var(--surface-muted); text-decoration: none; color: var(--ink); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
  flex-shrink: 0;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-tertiary);
  padding: 6px 13px;
  cursor: pointer;
  line-height: 1.4;
}
.lang-toggle button[aria-pressed="true"] { background: var(--primary); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-logo { width: 92px; height: 92px; border-radius: 24px; box-shadow: 0 14px 34px rgba(203, 100, 64, 0.24); margin-bottom: 26px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 800; color: var(--primary-light-text); margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5.4vw, 52px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 20px; font-weight: 800; }
.lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--text-secondary); margin: 0 0 30px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15.5px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-muted); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }

/* mockup de telefone montado em CSS — sem screenshot ainda */
.phone {
  width: min(300px, 82vw);
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  border-radius: 42px;
  background: var(--ink);
  padding: 11px;
  box-shadow: 0 30px 70px rgba(30, 26, 22, 0.26);
}
.phone-screen {
  height: 100%;
  border-radius: 32px;
  background: linear-gradient(168deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 26px;
  text-align: center;
  color: #fff;
}
.phone-screen img { width: 96px; border-radius: 22px; }
.phone-countdown { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.phone-caption { font-size: 15px; opacity: 0.92; }

/* ---------- seções ---------- */
section { padding: 62px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 14px; font-weight: 800; }
.section-head p { color: var(--text-secondary); margin: 0; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 23px;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 9px; font-size: 18.5px; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-secondary); font-size: 15.5px; line-height: 1.6; }

/* bloco de fechamento da home — centralizado mesmo no desktop, onde
   .section-head normalmente fica alinhado à esquerda */
.closing { text-align: center; margin-inline: auto; }
.closing-text { margin-bottom: 26px; }

/* faixa de privacidade */
.privacy-band { background: var(--surface-muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.privacy-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 30px; }
.privacy-list li { position: relative; padding-left: 32px; color: var(--text); font-size: 16px; }
.privacy-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--success);
  color: #fff;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- páginas de texto (política, termos, suporte) ---------- */
.doc { padding: 54px 0 84px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 40px); margin-bottom: 10px; }
.doc .updated { color: var(--text-tertiary); font-size: 14.5px; margin: 0 0 40px; }
.doc h2 { font-size: 23px; margin: 44px 0 14px; scroll-margin-top: 88px; }
.doc h3 { font-size: 17.5px; margin: 28px 0 10px; color: var(--ink); font-weight: 800; }
.doc p, .doc li { font-size: 16.5px; color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 9px; }
.doc li::marker { color: var(--primary); }

.callout {
  background: var(--primary-light);
  border: 1px solid #F3C9B8;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 26px 0;
}
.callout p { margin: 0; color: var(--primary-light-text); font-size: 16px; }
.callout strong { color: var(--primary-dark); }

.table-wrap { overflow-x: auto; margin: 22px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15.5px; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-muted); color: var(--ink); font-weight: 800; font-size: 14px; }
tr:last-child td { border-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 16px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 29px; height: 29px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.faq { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; margin-top: 26px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--ink);
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details > *:not(summary) { padding: 0 22px; margin-top: 0; }
.faq details > p:last-child { padding-bottom: 20px; }

/* ---------- rodapé ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0; background: var(--surface); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--text-secondary); font-size: 15px; font-weight: 600; }
.copyright { color: var(--text-tertiary); font-size: 14px; margin: 0; }

/* ---------- responsivo ---------- */
@media (max-width: 860px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero-logo { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .section-head { margin-inline: auto; text-align: center; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .site-header .wrap { min-height: 60px; gap: 10px; }
  .nav a { display: none; }
  .nav .lang-toggle { display: inline-flex; }
  .hero-logo { width: 76px; height: 76px; }
  section { padding: 44px 0; }
  .card { padding: 24px 21px; }
  .doc { padding: 38px 0 62px; }
  .doc h2 { font-size: 21px; margin-top: 36px; }
  .btn { width: 100%; }
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
