:root {
  --bg: #fff8fa;
  --surface: #ffffff;
  --surface-soft: #fff1f5;
  --text: #17141a;
  --muted: #746c76;
  --line: #eadde2;
  --primary: #f22972;
  --primary-strong: #d8175d;
  --accent: #ff7656;
  --success: #168c55;
  --danger: #c52d45;
  --shadow: 0 22px 60px rgba(54, 27, 39, .10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(242, 41, 114, .07), transparent 28rem),
    radial-gradient(circle at 90% 92%, rgba(255, 118, 86, .08), transparent 30rem),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 78px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(234, 221, 226, .9);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -.03em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
}

.brand span { font-size: 1.05rem; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 10px;
}

.whatsapp-mini {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border: 1px solid #d9cbd1;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 800;
  background: #fff;
}

.whatsapp-mini span { color: #20b86b; }

.page-shell {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 46px 20px 64px;
}

.screen {
  display: none;
  width: min(100%, 680px);
  animation: enter .25s ease;
}

.screen.active { display: block; }

@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-card,
.content-card {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero-card {
  width: min(100%, 650px);
  margin: auto;
  padding: 46px;
  text-align: center;
}

.logo-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(242, 41, 114, .15);
}

.logo-wrap img { width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  display: inline-block;
  color: var(--primary-strong);
  font-size: .73rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 12px;
}

h1, h2 {
  margin: 0;
  letter-spacing: -.045em;
  line-height: 1.06;
}

h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.45rem); }

.hero-copy,
.section-heading p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 520px;
  margin: 20px auto 28px;
  font-size: 1.04rem;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 28px;
}

.trust-row div {
  min-height: 86px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffafa;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
}

.trust-row strong {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: .78rem;
}

.trust-row span { font-size: .76rem; color: var(--muted); font-weight: 700; }

.btn {
  border: 0;
  border-radius: 14px;
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 26px rgba(242, 41, 114, .20);
}

.btn-primary:hover { box-shadow: 0 14px 30px rgba(242, 41, 114, .26); }

.btn-outline {
  color: var(--primary-strong);
  background: white;
  border: 1.5px solid var(--primary);
}

.btn-lg { min-height: 58px; padding-inline: 25px; font-size: 1rem; }
.full { width: 100%; }

.microcopy,
.secure-note,
.payment-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.content-card { padding: 34px; }

.progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: start;
  margin-bottom: 28px;
}

.progress-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #a2979c;
  min-width: 56px;
}

.progress-item span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1.5px solid #d9ccd1;
  background: #fff;
  font-size: .78rem;
  font-weight: 900;
}

.progress-item small { font-size: .68rem; font-weight: 800; }

.progress-item.active { color: var(--primary-strong); }
.progress-item.active span {
  color: white;
  border-color: var(--primary);
  background: var(--primary);
}

.progress-item.done { color: #7d7377; }
.progress-item.done span {
  color: var(--primary);
  background: var(--surface-soft);
  border-color: #ffd3df;
}

.progress-line {
  height: 2px;
  margin-top: 14px;
  background: #eadde2;
}
.progress-line.active { background: #ffc3d3; }

.back-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  margin-bottom: 24px;
  font-weight: 800;
}

.section-heading { margin-bottom: 26px; }
.section-heading p { margin: 10px 0 0; font-size: .94rem; }
.compact-heading { margin-bottom: 18px; }

.field { margin-bottom: 22px; }

.field label,
.field legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 850;
  font-size: .94rem;
}

.field legend { padding: 0; }

.field-help {
  margin: -3px 0 9px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.label-row span {
  color: #a0959a;
  font-size: .72rem;
  white-space: nowrap;
}

input[type="text"],
input[type="tel"],
textarea {
  width: 100%;
  border: 1.5px solid #dfd3d8;
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  outline: none;
  padding: 14px 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

textarea { resize: vertical; min-height: 130px; line-height: 1.5; }

input:focus,
textarea:focus {
  border-color: #f76d9d;
  box-shadow: 0 0 0 4px rgba(242, 41, 114, .09);
}

input::placeholder,
textarea::placeholder { color: #b0a6aa; }

.field-error {
  display: none;
  color: var(--danger);
  font-size: .75rem;
  margin-top: 6px;
}

.field.invalid .field-error { display: block; }
.field.invalid input,
.field.invalid textarea { border-color: var(--danger); }

.divider {
  height: 1px;
  background: var(--line);
  margin: 28px 0;
}

.option-grid {
  display: grid;
  gap: 10px;
}

.option-grid-2 { grid-template-columns: repeat(2, 1fr); }
.option-grid-3 { grid-template-columns: repeat(3, 1fr); }

.choice {
  position: relative;
  margin: 0 !important;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  min-height: 46px;
  padding: 10px 12px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1.5px solid #e1d5da;
  border-radius: 12px;
  background: #fff;
  color: #514a4d;
  font-size: .82rem;
  font-weight: 800;
  transition: .15s ease;
}

.choice input:checked + span {
  color: var(--primary-strong);
  border-color: #f85d94;
  background: var(--surface-soft);
  box-shadow: 0 0 0 3px rgba(242, 41, 114, .07);
}

.choice input:focus-visible + span {
  outline: 3px solid rgba(242, 41, 114, .18);
  outline-offset: 2px;
}

.contact-box {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 18px;
  background: #fff7f9;
  border: 1px solid #f1dce3;
}

.contact-title {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.contact-title strong { display: block; font-size: .92rem; }
.contact-title small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}

.icon-circle,
.summary-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #ffe5ed;
  font-weight: 900;
}

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field.compact { margin-bottom: 0; }
.field.compact label { font-size: .78rem; }

.order-id-row {
  margin: 2px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border: 1px dashed #e0cad2;
  border-radius: 13px;
  color: var(--muted);
  font-size: .79rem;
}
.order-id-row strong { color: var(--text); }

.summary-list {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: white;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.summary-item:last-child { border-bottom: 0; }
.summary-item > div { min-width: 0; }

.summary-item small {
  display: block;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .06em;
  margin-bottom: 3px;
}

.summary-item strong {
  display: block;
  font-size: .91rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.description-item { align-items: flex-start; }
.description-item strong { font-weight: 650; color: #4a4246; }

.payment-card {
  margin-top: 20px;
  padding: 20px;
  background: #fff8fa;
  border: 1px solid #f0dce3;
  border-radius: 18px;
}

.payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ecdce2;
}

.payment-head span { font-weight: 850; }
.payment-head strong { color: var(--success); font-size: 1.35rem; }

.pix-area {
  padding: 17px 0;
}

.pix-label {
  display: block;
  color: var(--muted);
  font-size: .66rem;
  letter-spacing: .08em;
  font-weight: 900;
  margin-bottom: 6px;
}

.pix-area code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: .83rem;
  margin-bottom: 8px;
}

.pix-area small { color: var(--muted); }
.pix-area small strong { color: var(--text); }

.payment-card .btn + .btn { margin-top: 10px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  z-index: 50;
  padding: 11px 16px;
  border-radius: 999px;
  background: #201b1d;
  color: white;
  font-weight: 800;
  font-size: .82rem;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 700px) {
  .topbar {
    height: 66px;
    padding-inline: 16px;
  }

  .brand img { width: 36px; height: 36px; }
  .brand span { display: none; }
  .nav-link { display: none; }
  .whatsapp-mini { padding: 9px 12px; font-size: .78rem; }

  .page-shell {
    min-height: calc(100vh - 66px);
    padding: 24px 12px 40px;
    align-items: start;
  }

  .hero-card,
  .content-card {
    border-radius: 22px;
  }

  .hero-card {
    padding: 30px 18px;
  }

  .logo-wrap {
    width: 104px;
    height: 104px;
    margin-bottom: 20px;
  }

  .trust-row { gap: 7px; }
  .trust-row div { min-height: 80px; padding: 12px 6px; }
  .trust-row span { font-size: .68rem; }

  .content-card { padding: 22px 16px; }

  .progress-item small { display: none; }
  .progress-item { min-width: 36px; }

  .option-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .phone-grid { grid-template-columns: 1fr; }
  .field.compact + .field.compact { margin-top: 12px; }

  .btn-lg { min-height: 56px; }
}

@media (max-width: 380px) {
  .option-grid-2,
  .option-grid-3 { grid-template-columns: 1fr; }
  .trust-row span { font-size: .62rem; }
}
