:root {
  --bg: #141821;
  --bg-deep: #0e1118;
  --surface: #1b202b;
  --surface-alt: #232937;
  --border: #2a3040;
  --text: #e8eaf0;
  --muted: #8b93a7;
  --accent: #ff5a36;
  --accent-2: #e8334a;
  --blue: #3d8bff;
  --ok: #3ddc84;
  --warn: #ffb020;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Cabeçalho */
.top { background: var(--bg-deep); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 20px; flex: 1; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a.on { color: var(--text); text-decoration: none; }
.top .actions { display: flex; gap: 10px; align-items: center; }

/* Botões */
.btn {
  display: inline-block; border: 0; border-radius: 10px; padding: 10px 20px; font: inherit; font-weight: 600;
  cursor: pointer; text-align: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.btn:hover { opacity: .9; text-decoration: none; }
.btn.ghost { background: var(--surface-alt); color: var(--text); border: 1px solid var(--border); }
.btn.big { padding: 14px 30px; font-size: 18px; }
.btn.link { background: none; color: var(--blue); padding: 0; font-weight: 500; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Seções */
main { padding: 40px 0 64px; }
.hero { padding: 48px 0 32px; text-align: center; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.1; margin: 0 0 16px; }
.hero p { color: var(--muted); font-size: 20px; max-width: 680px; margin: 0 auto 28px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero small { display: block; margin-top: 14px; color: var(--muted); }
h1.page { font-size: 36px; margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 760px; }
h2 { font-size: 26px; margin: 48px 0 16px; }
h3 { margin: 0 0 8px; font-size: 18px; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { font-size: 26px; margin-bottom: 8px; }

/* Ícones (SVG embutido, ver Web/Icons.cs) */
.i { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.btn .i { margin-right: 6px; }
.btn.big .i { width: 22px; height: 22px; vertical-align: -5px; }
.i.yes { color: var(--ok); }
.i.no { color: var(--muted); opacity: .45; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .9em; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }

/* Início */
.eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.hero.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; text-align: left; padding-top: 24px; }
.hero.split h1 { font-size: clamp(32px, 4.4vw, 50px); }
.hero.split p { margin-left: 0; }
.hero.split .cta { justify-content: flex-start; }
.hero .meta { font-size: 14px; margin: 14px 0 0; }
.shot { margin: 0; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; background: var(--bg-deep);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 90, 54, .08); }
.shot img { display: block; width: 100%; height: auto; }

.facts { list-style: none; margin: 8px 0 0; padding: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; line-height: 1.45; }
.facts .i { width: 24px; height: 24px; color: var(--accent); margin-top: 1px; }
.facts strong { color: var(--text); }

.card.feature > .i { width: 44px; height: 44px; padding: 10px; border-radius: 12px; margin-bottom: 14px;
  color: var(--accent); background: rgba(255, 90, 54, .12); }
.grow { flex: 1 1 320px; }

.band { margin-top: 56px; padding: 40px 24px; text-align: center; border-radius: var(--radius); border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 50% 0%, rgba(255, 90, 54, .18), transparent 60%), var(--surface); }
.band h2 { margin: 0 0 8px; }
.band p { margin: 0 0 22px; }

/* Planos: garantias e comparação */
.assurances { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--muted); font-size: 15px; }
.assurances li { display: flex; gap: 8px; align-items: center; }
.assurances .i { color: var(--ok); }
/* position: relative prende o .sr (absoluto) da tabela aqui; sem isso ele escapava da rolagem e a página toda rolava de lado no celular. */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--surface); }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: center; }
.compare th[scope=row] { text-align: left; font-weight: 500; }
.compare thead th:first-child { text-align: left; }
.compare thead th { background: var(--surface-alt); font-size: 15px; }
.compare thead th:first-child, .compare th[scope=row] { position: sticky; left: 0; background: var(--surface); }
.compare thead th:first-child { background: var(--surface-alt); }
.compare tbody tr:hover td, .compare tbody tr:hover th { background: var(--surface-alt); }
.compare tfoot th, .compare tfoot td { border-bottom: 0; font-weight: 700; }
.compare td:nth-child(3) { background: rgba(255, 90, 54, .05); }

/* Baixar */
.download .app-icon { width: 56px; height: 56px; border-radius: 12px; }
.nowrap { flex-wrap: nowrap; }
.hash { font-size: 13px; margin: 10px 0 0; overflow-wrap: anywhere; }

/* Planos */
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 34px; font-weight: 700; margin: 4px 0 12px; }
.plan .price small { font-size: 16px; color: var(--muted); font-weight: 400; }
.plan ul { padding-left: 20px; margin: 0 0 20px; color: var(--muted); flex: 1; }
.plan form { margin: 0; }
.plan .btn { width: 100%; }
/* O cartão é flex em coluna: sem isto a etiqueta estica na largura toda. */
.plan .tag { align-self: flex-start; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 10px; background: var(--accent); color: #fff; margin-bottom: 8px; }
.tag.ok { background: var(--ok); color: #0f1117; }

/* Formulários */
.form { max-width: 440px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form input[type=email], .form input[type=text], .form input[type=password] {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: var(--bg-deep);
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px;
}
.form.wide { max-width: 640px; }
.form input[type=file] { display: block; width: 100%; margin-bottom: 14px; color: var(--muted); font: inherit; }
.form input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: var(--text); background: var(--surface-alt); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; margin-right: 12px; cursor: pointer; }
progress { width: 100%; height: 10px; accent-color: var(--accent); margin-bottom: 6px; }
.btn:disabled { opacity: .5; cursor: progress; }
.form .label-row { margin-bottom: 6px; }
.form .label-row label { margin: 0; }
.form .hint { font-size: 14px; margin: -6px 0 14px; }
.btn.full { width: 100%; }
.form input.code { font-size: 28px; letter-spacing: 8px; text-align: center; }
.alert { border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; border: 1px solid var(--border); background: var(--surface-alt); }
.alert.error { border-color: var(--accent-2); }
.alert.ok { border-color: var(--ok); }

/* Passos */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin-bottom: 18px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-alt); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 700;
}

/* Perguntas */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

.legal { max-width: 780px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); }

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.mt { margin-top: 32px; }
.mt-s { margin-top: 10px; }
.m0 { margin: 0; }
ul.list { margin: 0; padding-left: 20px; }
dl.info { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
dl.info dt { color: var(--muted); }
dl.info dd { margin: 0; font-weight: 600; }

/* Rodapé */
.foot { border-top: 1px solid var(--border); background: var(--bg-deep); padding: 40px 0 24px; color: var(--muted); font-size: 14px; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot .about p { margin: 12px 0 0; max-width: 320px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot h4 { margin: 0 0 4px; color: var(--text); font-size: 14px; }
.foot a { color: var(--muted); overflow-wrap: anywhere; }
.foot a:hover { color: var(--text); }
.foot .brand { font-size: 18px; }
.foot .brand img { width: 28px; height: 28px; }
.foot .copy { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; }

/* Tablet e celular */
@media (max-width: 980px) {
  .hero.split { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero.split p { margin-left: auto; }
  .hero.split .cta { justify-content: center; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .foot .cols { grid-template-columns: 1fr 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .top .wrap { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  /* Menu desce para a própria linha; "flex: 1" do desktop o espremia ao lado do botão Entrar. */
  .top .actions { margin-left: auto; }
  .nav { order: 3; flex: 1 1 100%; overflow-x: auto; gap: 18px; padding-bottom: 2px; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  h1.page { font-size: 28px; }
  .hero p { font-size: 18px; }
  h2 { font-size: 23px; margin-top: 40px; }
  .card { padding: 20px; }
  .download .btn { width: 100%; }
  .compare { min-width: 480px; font-size: 15px; }
  .compare th, .compare td { padding: 10px 12px; }
}

@media (max-width: 560px) {
  main { padding-top: 24px; }
  .hero { padding-top: 8px; }
  .facts { grid-template-columns: 1fr; padding: 16px; }
  .hero .btn.big, .band .btn.big { width: 100%; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .band { padding: 32px 16px; }
}

/* Em telas bem estreitas o "Baixar grátis" do topo sai: o menu logo abaixo já tem Baixar. */
@media (max-width: 420px) {
  .hide-xs { display: none; }
  .btn.big { padding: 13px 20px; font-size: 17px; }
}
