:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-2: #f1ede4;
  --ink: #1d2a24;
  --muted: #5d6a63;
  --line: #e4ded2;
  --primary: #2f5d50;
  --primary-ink: #ffffff;
  --primary-soft: #e3ece8;
  --accent: #c4805e;
  --accent-soft: #f6e8df;
  --danger: #b4443a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(29, 42, 36, .04), 0 8px 24px rgba(29, 42, 36, .06);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
a { color: var(--primary); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--sans); padding: 15px 26px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #244a40; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: #e9c9c5; }
.btn-danger:hover { background: #fbeeed; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header { padding: 22px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 17px;
}
.brand-name { font-family: var(--serif); font-size: 19px; line-height: 1.1; }
.brand-sub { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 80px; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); margin: 16px 0 20px; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta { display: flex; gap: 24px; margin-top: 36px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--primary); }

.portrait { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  overflow: hidden; background: linear-gradient(160deg, var(--primary-soft), var(--accent-soft));
  box-shadow: var(--shadow);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-family: var(--serif); color: var(--primary);
}
.portrait-fallback .initials { font-size: 96px; line-height: 1; }
.portrait-fallback small { display: block; font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 10px; }
.portrait-badge {
  position: absolute; left: -24px; bottom: 36px; background: var(--surface); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.portrait-badge strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.portrait-badge span { font-size: 13px; color: var(--muted); }
.portrait::before {
  content: ''; position: absolute; right: -18px; top: -18px; width: 110px; height: 110px;
  border-radius: 50%; border: 1.5px solid var(--accent); opacity: .5;
}

/* ---------- Seções da landing ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 12px 0 16px; }
.section .intro { color: var(--muted); max-width: 620px; margin: 0 0 44px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.section:not(.section-alt) .step-card { background: var(--surface); }
.step-num { font-family: var(--serif); font-size: 34px; color: var(--accent); line-height: 1; }
.step-card h3 { font-size: 21px; margin: 16px 0 8px; }
.step-card p { color: var(--muted); margin: 0; font-size: 15px; }

.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; background: var(--primary-soft); position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; padding: 0; list-style: none; }
.tags li { background: var(--primary-soft); color: var(--primary); padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.privacy-note {
  display: flex; gap: 16px; align-items: flex-start; background: var(--accent-soft); border-radius: var(--radius);
  padding: 20px 22px; color: #6b4a38; font-size: 15px;
}
.privacy-note svg { flex: none; margin-top: 2px; }

.site-footer { padding: 36px 0; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- Formulário ---------- */
.form-shell { max-width: 760px; margin: 0 auto; padding: 8px 20px 80px; }
.progress { margin-bottom: 28px; }
.progress-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.progress-top strong { color: var(--ink); font-weight: 600; }
.progress-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width .35s ease; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-card { padding: 40px; }
.form-card h2 { font-size: 32px; margin-bottom: 8px; }
.form-card .step-desc { color: var(--muted); margin: 0 0 12px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { grid-column: 1 / -1; padding: 22px 0 0; }
.field.half { grid-column: span 1; }
.field-group-title { grid-column: 1 / -1; padding-top: 30px; font-weight: 600; }
.field.compact { padding-top: 14px; }
.field label.q, .field .q { display: block; font-weight: 600; margin-bottom: 10px; font-size: 15.5px; }
.field .req { color: var(--accent); margin-left: 3px; }
.field .help { font-size: 14px; color: var(--muted); margin: -4px 0 12px; }

.input-wrap { position: relative; }
.input, textarea.input {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.input-wrap .suffix { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.input-wrap.has-suffix .input { padding-right: 46px; }

.options { display: flex; flex-direction: column; gap: 8px; }
.options.inline { flex-direction: row; flex-wrap: wrap; }
.options.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer; background: var(--bg); transition: all .15s; font-size: 15px;
  user-select: none;
}
.option span::before {
  content: ''; flex: none; width: 18px; height: 18px; border: 1.5px solid #b9b2a4; background: #fff;
  border-radius: 50%; transition: all .15s;
}
.option input[type=checkbox] + span::before { border-radius: 5px; }
.option span:hover { border-color: #c9c1b2; }
.option input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.option input:checked + span::before {
  border-color: var(--primary); background: var(--primary);
  box-shadow: inset 0 0 0 3px #fff;
}
.option input[type=checkbox]:checked + span::before {
  box-shadow: none;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.option input:focus-visible + span { box-shadow: 0 0 0 4px var(--primary-soft); }
.options.inline .option span { padding: 10px 16px; }
.options.cards .option span {
  flex-direction: column; justify-content: center; padding: 22px 16px; font-size: 17px; font-family: var(--serif);
}
.options.cards .option span::before { display: none; }
.options.cards .option svg { width: 34px; height: 34px; color: var(--accent); }
.options.compact { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.options.compact .option span { padding: 8px 12px; font-size: 14px; }
.options.compact .option span::before { display: none; }
.other-input { margin-top: 8px; }

.scale { display: flex; gap: 8px; }
.scale .option { flex: 1; }
.scale .option span { justify-content: center; padding: 12px 0; font-weight: 600; }
.scale .option span::before { display: none; }
.scale-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }

.consent span { align-items: flex-start; font-size: 14.5px; line-height: 1.55; padding: 16px 18px; color: var(--ink) !important; font-weight: 400 !important; }
.consent span::before { margin-top: 2px; }

.field.error .input, .field.error .option span { border-color: var(--danger); }
.error-msg { color: var(--danger); font-size: 13.5px; margin-top: 8px; display: none; }
.field.error .error-msg { display: block; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-alert { background: #fbeeed; color: var(--danger); border-radius: 12px; padding: 12px 16px; margin-top: 20px; font-size: 14.5px; }
.draft-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 16px; }

.success { text-align: center; padding: 64px 40px; }
.success-icon { width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.success h2 { font-size: 36px; margin-bottom: 12px; }
.success p { color: var(--muted); max-width: 460px; margin: 0 auto 8px; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero .container, .about { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 16px; }
  .portrait { max-width: 340px; order: -1; }
  .steps { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
}
@media (max-width: 600px) {
  .container, .form-shell { padding-left: 16px; padding-right: 16px; }
  .form-card { padding: 26px 20px; }
  .form-card h2 { font-size: 26px; }
  .fields { grid-template-columns: 1fr; }
  .field.half { grid-column: 1 / -1; }
  .portrait { max-width: 260px; }
  .portrait-badge { left: 8px; bottom: 16px; }
  .portrait::before { display: none; }
  .section { padding: 56px 0; }
  .form-nav .btn { flex: 1; }
  .hero-actions .btn { width: 100%; }
}
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}

/* ---------- Pagamento ---------- */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-method { position: relative; cursor: pointer; }
.pay-method input { position: absolute; opacity: 0; }
.pay-method span {
  display: flex; flex-direction: column; gap: 2px; padding: 18px; border: 1.5px solid var(--line);
  border-radius: 14px; background: var(--bg); transition: all .15s;
}
.pay-method strong { font-size: 15px; }
.pay-method em { font-style: normal; font-family: var(--serif); font-size: 26px; color: var(--primary); }
.pay-method small { color: var(--muted); font-size: 13px; }
.pay-method input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.pay-method input:focus-visible + span { box-shadow: 0 0 0 4px var(--primary-soft); }
.pay-pix { text-align: center; padding-top: 8px; }
.pay-pix img { width: 220px; height: 220px; margin: 8px auto 12px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.pay-amount { font-size: 16px; margin: 12px 0 4px; }
.pay-amount strong { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--primary); }
.muted-sm { color: var(--muted); font-size: 14px; }
.copy-box { display: flex; gap: 8px; margin: 12px 0 16px; }
.copy-box .input { font-size: 13px; padding: 10px 12px; }
.pay-wait { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 14px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#cardPaymentBrick_container { margin-top: 12px; }
@media (max-width: 600px) { .pay-methods { grid-template-columns: 1fr; } }
.aviso-topo { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; font-size: 14.5px; max-width: calc(100% - 32px); box-shadow: var(--shadow); }

.options.scale { flex-direction: row; }
