/* Manual do Mestre — Portugal
   Tema claro + laranja, no molde da página de vendas original (manualdomestre.com.br/saas):
   fundo slate-50, cartões brancos, texto slate-900, laranja-500 nos botões.
   O navy fica reservado para os "ecrãs" (telemóvel, painel) — o contraste é a graça. */

:root {
  --bg: #f8fafc;        /* slate-50 — página */
  --bg-2: #ffffff;      /* cartões e secções alternadas */
  --bg-3: #f1f5f9;      /* slate-100 — cartões interiores, chips */
  --line: #e2e8f0;      /* slate-200 */
  --txt: #0f172a;       /* slate-900 */
  --txt-2: #475569;     /* slate-600 */
  --txt-3: #64748b;     /* slate-500 — o 400 não passa no contraste a 14px */
  --orange: #f97316;    /* botões e destaques grandes */
  --orange-2: #ea580c;  /* texto laranja pequeno: precisa de ser mais escuro sobre branco */
  --orange-dark: #c2410c;
  --navy: #0a1024;      /* os ecrãs escuros dentro da página clara */
  --navy-2: #111d40;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 640px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

section { padding: 56px 0; }
section.tight { padding: 36px 0; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(28px, 7vw, 40px); }
h2 { font-size: clamp(24px, 5.5vw, 32px); margin-bottom: 16px; }
h3 { font-size: 19px; font-weight: 700; }

p { color: var(--txt-2); margin-bottom: 16px; }
p.lead { font-size: 19px; color: var(--txt); }
strong { color: var(--txt); font-weight: 700; }
.hl { color: var(--orange-2); font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.center { text-align: center; }
.muted { color: var(--txt-3); font-size: 14px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1024px) { header { backdrop-filter: blur(12px); } }
.hd { display: flex; align-items: center; gap: 10px; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto; }
.logo {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: grid; place-items: center; font-size: 17px;
}
.hd-name { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.hd-sub { font-size: 11px; color: var(--txt-3); }
.hd-price { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--orange-2); }

/* ---------- Botões ---------- */
.btn {
  display: block; width: 100%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff; border: none;
  padding: 18px 24px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 17px; font-weight: 800;
  text-align: center; text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(249, 115, 22, 0.32); }
.btn:active { transform: translateY(0); }
.btn small { display: block; font-size: 13px; font-weight: 500; opacity: 0.9; margin-top: 3px; }

.btn-ghost {
  display: block; width: 100%;
  background: transparent; color: var(--txt-2);
  border: 1px solid var(--line);
  padding: 15px 24px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600;
  text-align: center; text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { border-color: var(--txt-3); color: var(--txt); }

/* ---------- Cartões ---------- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.card + .card { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 40px; }
.hero h1 { margin-bottom: 16px; }
.hero .sub { font-size: 18px; color: var(--txt-2); margin-bottom: 26px; }

.ticks { list-style: none; margin: 0 0 28px; }
.ticks li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0; font-size: 16px; color: var(--txt);
}
.ticks li::before {
  content: '✓'; color: var(--green); font-weight: 800;
  flex-shrink: 0; line-height: 1.5;
}

/* ---------- Tabela de preços reais ---------- */
.pricetable { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pricetable-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.pricetable-row:last-child { border-bottom: none; }
.pricetable-row .what { font-size: 15px; color: var(--txt); }
.pricetable-row .cost { font-size: 16px; font-weight: 800; color: var(--red); white-space: nowrap; }
.pricetable-src { font-size: 12px; color: var(--txt-3); margin-top: 10px; line-height: 1.5; }

/* ---------- Grelha de funcionalidades ---------- */
.grid { display: grid; gap: 12px; }
@media (min-width: 560px) { .grid.g2 { grid-template-columns: 1fr 1fr; } }

.feat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feat .ico { font-size: 24px; margin-bottom: 10px; display: block; }
.feat h3 { margin-bottom: 5px; }
.feat p { font-size: 14px; margin: 0; }

/* ---------- Caixa da oferta ---------- */
.offer {
  background: var(--bg-2);
  border: 2px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08), 0 0 0 6px rgba(249, 115, 22, 0.08);
}
.offer-list { list-style: none; margin-bottom: 20px; }
.offer-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.offer-list li:last-child { border-bottom: none; }
.offer-list .val { color: var(--txt-3); white-space: nowrap; }
.offer-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0 4px; margin-bottom: 18px;
  border-top: 2px solid var(--line);
  font-size: 15px; color: var(--txt-2);
}
.offer-total .old { text-decoration: line-through; color: var(--txt-3); white-space: nowrap; }

.price-now { text-align: center; margin-bottom: 22px; }
.price-now .amount {
  font-size: 52px; font-weight: 900; color: var(--orange);
  line-height: 1; letter-spacing: -0.03em;
}
.price-now .once { font-size: 14px; color: var(--txt-2); margin-top: 8px; }

/* ---------- Meios de pagamento ---------- */
.pays { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.pay {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-3); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--txt-2);
}

/* ---------- Garantia ---------- */
.guarantee {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.guarantee .ico { font-size: 34px; margin-bottom: 10px; }
.guarantee h3 { color: var(--green); margin-bottom: 8px; }
.guarantee p { font-size: 15px; margin: 0; }

/* ---------- FAQ ---------- */
details {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 10px; overflow: hidden;
}
details summary {
  padding: 17px 20px; cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; color: var(--orange); font-size: 22px; font-weight: 400; flex-shrink: 0; }
details[open] summary::after { content: '−'; }
details .body { padding: 0 20px 18px; color: var(--txt-2); font-size: 15px; }
details .body p:last-child { margin-bottom: 0; }

/* ---------- Autor ---------- */
.author { display: flex; gap: 16px; align-items: flex-start; }
.author-av {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: grid; place-items: center; font-size: 24px;
}

/* ---------- Planos (app) ---------- */
.plan { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.plan + .plan { margin-top: 14px; }
.plan.best { border-color: var(--orange); box-shadow: 0 16px 40px rgba(249,115,22,0.16); }
.plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; white-space: nowrap;
}
.plan-name { font-size: 14px; font-weight: 700; color: var(--txt-2); text-transform: uppercase; letter-spacing: 0.06em; }
.plan-price { font-size: 38px; font-weight: 900; color: var(--txt); letter-spacing: -0.02em; margin: 6px 0 2px; }
.plan-price span { font-size: 16px; font-weight: 600; color: var(--txt-3); }
.plan-eq { font-size: 14px; color: var(--green); font-weight: 600; margin-bottom: 16px; }
.plan ul { list-style: none; margin-bottom: 20px; }
.plan ul li { padding: 6px 0; font-size: 15px; color: var(--txt-2); display: flex; gap: 9px; }
.plan ul li::before { content: '✓'; color: var(--green); font-weight: 800; }

/* ---------- Rodapé ---------- */
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; text-align: center; }
footer a { color: var(--txt-3); text-decoration: none; font-size: 13px; }
footer a:hover { color: var(--txt-2); }
footer .sep { color: var(--line); margin: 0 8px; }

/* ---------- Barra fixa ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.28s ease;
}
.sticky-cta.on { transform: translateY(0); }
.sticky-cta .inner { max-width: var(--maxw); margin: 0 auto; }
body { padding-bottom: 0; }

/* ---------- Utilidades ---------- */
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 22px; }
.mt-l { margin-top: 34px; }
.divider { height: 1px; background: var(--line); margin: 34px 0; }

/* ---------- Página de obrigado ---------- */
.trial {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 22px;
  text-align: left;
}
.trial h3 { color: var(--orange-2); margin-bottom: 8px; }
.trial p { font-size: 15px; }
.trial .email { color: var(--txt); font-weight: 700; word-break: break-all; }
[hidden] { display: none !important; }

/* ---------- Consentimento de cookies ---------- */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  max-width: 560px; margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}
.consent p { font-size: 14px; margin-bottom: 12px; }
.consent a { color: var(--orange-2); }
.consent .row { display: flex; gap: 8px; }
.consent button {
  flex: 1; font-family: var(--font); font-size: 14px; font-weight: 700;
  border-radius: 10px; padding: 12px; cursor: pointer; border: 1px solid var(--line);
}
.consent .sim { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff; border: none; }
.consent .nao { background: transparent; color: var(--txt-2); }
.sticky-cta.on ~ .consent { bottom: 92px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
