:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #16202a;
  --muted: #5b6673;
  --line: #e3e7ec;
  --brand: #0f5c4a;
  --brand-dark: #0b4538;
  --accent: #e8f3ef;
  --warn: #b45309;
  --danger: #b91c1c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 32, 42, .06), 0 8px 24px rgba(16, 32, 42, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--brand); }
img { max-width: 100%; display: block; }

.container { width: min(1080px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(720px, 100% - 32px); margin: 0 auto; }

/* Header */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: var(--ink); font-size: 18px; }
.logo span { color: var(--brand); }
.topbar nav a { margin-left: 20px; font-size: 14px; color: var(--muted); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: #f1f3f6; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 16px; }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.hero ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.hero ul li { padding-left: 28px; position: relative; }
.hero ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.hero .price-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.doc-preview {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; aspect-ratio: 210/260; font-family: Georgia, "Times New Roman", serif; font-size: 11px; color: #333;
  position: relative; overflow: hidden;
}
.doc-preview h4 { text-align: center; font-size: 12px; margin: 0 0 14px; letter-spacing: .04em; }
.doc-preview p { margin: 0 0 8px; text-align: justify; }
.doc-preview .blur { filter: blur(2px); opacity: .5; }
.doc-preview .stamp {
  position: absolute; right: 18px; bottom: 18px; background: var(--accent); color: var(--brand);
  font-family: var(--font); font-weight: 700; font-size: 12px; padding: 6px 10px; border-radius: 8px;
}

/* Sections */
.section { padding: 48px 0; }
.section h2 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 8px; }
.section .sub { color: var(--muted); margin: 0 0 28px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps .card { position: relative; padding-top: 28px; }
.steps .card::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -12px; left: 18px; background: var(--brand); color: #fff;
  font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px;
}
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.trust { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 20px; }
.trust span::before { content: "•"; margin-right: 8px; color: var(--brand); }
.cta-band { background: var(--brand); color: #fff; text-align: center; padding: 48px 0; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { opacity: .9; margin: 0 0 22px; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
footer { padding: 28px 0; font-size: 13px; color: var(--muted); text-align: center; }
footer p { margin: 4px 0; }

/* App */
.app { padding: 28px 0 80px; }
.progress { display: flex; gap: 6px; margin: 0 0 20px; }
.progress span { flex: 1; height: 6px; border-radius: 999px; background: var(--line); }
.progress span.done { background: var(--brand); }
.progress span.current { background: var(--brand); opacity: .55; }
.step-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.step-head h1 { font-size: 24px; margin: 0; letter-spacing: -.02em; }
.step-head small { color: var(--muted); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; color: var(--brand); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid .full { grid-column: 1 / -1; }
.grid .third { grid-column: span 1; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
label.field { display: block; font-size: 14px; font-weight: 600; }
label.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.field input, .field select, .field textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.field input.invalid, .field select.invalid { border-color: var(--danger); }
.field textarea { min-height: 90px; resize: vertical; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.radios { display: grid; gap: 8px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--brand); background: var(--accent); }
.radio input { margin-top: 4px; accent-color: var(--brand); }
.radio b { display: block; font-size: 15px; }
.radio small { color: var(--muted); }
.error-msg { color: var(--danger); font-size: 14px; margin: 8px 0 0; display: none; }
.error-msg.show { display: block; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.hidden { display: none !important; }
.notice { background: var(--accent); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--brand-dark); }
.notice.warn { background: #fff4e5; color: var(--warn); }

/* Preview */
.preview-wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: start; }
.preview-frame { background: #e9ecef; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 70vh; min-height: 480px; }
.preview-frame iframe { width: 100%; height: 100%; border: 0; }
.buy-box { position: sticky; top: 80px; }
.buy-box .price { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.buy-box .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.buy-box ul { padding-left: 18px; color: var(--muted); font-size: 14px; margin: 12px 0 18px; }

/* Checkout modal */
.modal-bg { position: fixed; inset: 0; background: rgba(16, 32, 42, .55); display: none; align-items: flex-end; justify-content: center; z-index: 50; padding: 0; }
.modal-bg.open { display: flex; }
.modal { background: var(--card); width: min(560px, 100%); max-height: 94vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 24px; }
.modal h2 { margin: 0 0 4px; font-size: 22px; }
.modal .close { float: right; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); }
.bump { border: 2px dashed #d9b36a; background: #fffbf0; border-radius: 10px; padding: 14px; margin: 12px 0; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.bump:has(input:checked) { border-style: solid; border-color: #c9962d; }
.bump input { width: 20px; height: 20px; margin-top: 3px; accent-color: #c9962d; }
.bump b { display: block; }
.bump small { color: var(--muted); }
.bump .bump-price { margin-left: auto; white-space: nowrap; font-weight: 800; }
.bump .bump-price s { color: var(--muted); font-weight: 400; font-size: 13px; margin-right: 4px; }
.total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin: 16px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.pix-box { text-align: center; padding: 10px 0; }
.pix-box .qr { width: 180px; height: 180px; margin: 10px auto; background: repeating-conic-gradient(#16202a 0 25%, #fff 0 50%) 0 0/20px 20px; border: 8px solid #fff; outline: 1px solid var(--line); }
.pix-box code { display: block; background: var(--bg); padding: 10px; border-radius: 8px; font-size: 12px; word-break: break-all; margin: 10px 0; }
.downloads { display: grid; gap: 10px; margin-top: 12px; }
.downloads .btn { justify-content: flex-start; }
.upsell { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 18px; background: var(--accent); }
.upsell h3 { margin: 0 0 6px; }
.upsell ul { margin: 8px 0 12px; padding-left: 18px; font-size: 14px; }

@media (max-width: 820px) {
  .hero-grid, .preview-wrap { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: 1fr; }
  .grid, .grid-3 { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr 1fr; }
  .topbar nav { display: none; }
  .preview-frame { height: 60vh; }
  .buy-box { position: static; }
}
