*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #0f172a; background: #ffffff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; }

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --fg: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --shadow-sm: 0 6px 20px rgba(2, 6, 23, 0.06);

  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --accent: #16a34a;
  --accent-2: #15803d;
  --whatsapp: #16a34a;
  --whatsapp-2: #15803d;

  --radius: 14px;
  --radius-sm: 12px;
  --container: 1120px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted-2); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 12px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { font-size: 22px; }
.brand__name { font-weight: 800; letter-spacing: -0.02em; color: var(--fg); }
.brand--footer .brand__name { color: var(--fg); }

.brand__logo {
  width: 140px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.header__actions { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: #cbd5e1; }
.btn--lg { padding: 12px 16px; border-radius: 14px; }
.btn--sm { padding: 9px 12px; border-radius: 12px; }
.btn--full { width: 100%; }

.btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-2); border-color: var(--primary-2); }

.btn--secondary { background: #fff; }

.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); border-color: var(--accent-2); }

.btn--ghost { background: transparent; }

.btn--whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-2));
  border-color: rgba(22, 163, 74, 0.35);
  color: #fff;
}
.btn--whatsapp:hover {
  filter: none;
  background: linear-gradient(135deg, var(--whatsapp-2), var(--whatsapp));
  border-color: rgba(22, 163, 74, 0.5);
}

.hero {
  background: radial-gradient(900px 500px at 20% 0%, rgba(37, 99, 235, 0.10), transparent 55%),
              radial-gradient(900px 500px at 80% 10%, rgba(34, 197, 94, 0.10), transparent 55%),
              linear-gradient(180deg, var(--bg-soft), #fff);
  padding: 44px 0 56px;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; }
.hero__copy { padding-top: 10px; }

h1 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; margin: 14px 0 12px; letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.02em; }
h3 { font-size: 18px; margin: 0 0 8px; }

.hero__sub { font-size: 1.07rem; color: var(--muted); margin: 0 0 16px; }

.hero__highlight {
  background: linear-gradient(180deg, rgba(34,197,94,0) 55%, rgba(34,197,94,0.18) 55%);
  padding: 0 6px;
  border-radius: 8px;
}

.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--border); background: rgba(255,255,255,0.75); border-radius: 999px; font-weight: 600; font-size: 0.92rem; }

.hero__media {
  margin: 14px 0 12px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.hero__media img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__caption {
  padding: 10px 12px;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--border);
  background: rgba(248,250,252,0.7);
}

.hero__checks { display: grid; gap: 8px; margin: 14px 0 18px; }
.check { color: var(--muted); font-weight: 600; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 14px; }
.hero__ctas--center { justify-content: center; }

.mini-trust { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.mini-trust__item { color: var(--muted-2); font-weight: 600; font-size: 0.95rem; }

.card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

@media (min-width: 981px) {
  .hero__checks {
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    max-width: 560px;
  }

  .hero__grid > .card {
    position: sticky;
    top: 86px;
  }
}
.card__head { margin-bottom: 12px; }
.card__title { font-size: 20px; margin: 0 0 6px; }
.card__desc { margin: 0; color: var(--muted-2); }

.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
label { font-weight: 700; font-size: 0.92rem; }
input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px;
  font: inherit;
  background: #fff;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input:focus { border-color: rgba(37,99,235,0.55); box-shadow: 0 0 0 4px rgba(37,99,235,0.12); }
input::placeholder { color: #94a3b8; }

.btn__loading { display: none; }
.is-loading .btn__text { display: none; }
.is-loading .btn__loading { display: inline; }

.form__meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted-2); font-weight: 600; font-size: 0.9rem; }

.card__foot { margin-top: 14px; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.inline-actions { display: flex; gap: 10px; }

.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: #0b1220; color: #e2e8f0; }
.section--dark .muted { color: #94a3b8; }
.section--dark .btn--secondary { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: #fff; }
.section--dark .btn--secondary:hover { border-color: rgba(255,255,255,0.22); }

.section__head { max-width: 760px; margin: 0 auto 22px; text-align: center; }
.kicker { margin: 0 0 8px; font-weight: 800; color: rgba(37,99,235,0.95); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; }

.grid { display: grid; gap: 14px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(2,6,23,0.02);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #cbd5e1; }
.tile__icon { font-size: 26px; margin-bottom: 8px; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; align-items: start; }

.list { display: grid; gap: 10px; margin-top: 14px; }
.list__item { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--muted); }
.dot { width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(22,163,74,0.12); color: var(--accent); border: 1px solid rgba(22,163,74,0.18); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: rgba(255,255,255,0.8); }
.stat__num { font-weight: 900; font-size: 28px; letter-spacing: -0.02em; }
.stat__label { color: var(--muted-2); font-weight: 700; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: #fff; }
.step__n { width: 34px; height: 34px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; background: rgba(37,99,235,0.14); color: var(--primary); border: 1px solid rgba(37,99,235,0.22); margin-bottom: 10px; }

.quote { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: rgba(255,255,255,0.85); }
.quote__stars { font-weight: 900; }
.quote__text { margin: 10px 0 12px; color: var(--muted); font-weight: 600; line-height: 1.55; }
.quote__who { display: flex; gap: 8px; align-items: baseline; margin: 0; }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 16px; border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); padding: 18px; background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(34,197,94,0.08)); }
.callout__icon { font-size: 34px; }
.callout__body p { margin: 8px 0 14px; color: var(--muted); font-weight: 600; }
.callout__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.toast {
  position: fixed; right: 16px; bottom: 16px;
  background: #0b1220; color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.toast__inner { display: flex; gap: 10px; align-items: center; }
.toast__icon { width: 24px; height: 24px; border-radius: 999px; background: rgba(22,163,74,0.18); border: 1px solid rgba(22,163,74,0.28); display: inline-flex; align-items: center; justify-content: center; color: #86efac; font-weight: 900; }

/* Thank you page */
.ty {
  background: radial-gradient(900px 500px at 20% 0%, rgba(37, 99, 235, 0.10), transparent 55%),
              radial-gradient(900px 500px at 80% 10%, rgba(34, 197, 94, 0.10), transparent 55%),
              linear-gradient(180deg, var(--bg-soft), #fff);
}

.ty__section { min-height: calc(100vh - 160px); display: flex; align-items: center; }
.ty__wrap { max-width: 920px; }

.ty__card { text-align: center; padding: 22px; }

.ty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(22, 163, 74, 0.22);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
}

.ty__title { margin: 0 0 8px; }
.ty__sub { margin: 0; font-weight: 600; }

.ty__steps {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.ty__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.75);
}

.ty__stepN {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.22);
}

.ty__stepBody h3 { margin: 0 0 4px; }
.ty__stepBody p { margin: 0; font-weight: 600; }

.ty__help {
  margin-top: 16px;
  padding: 14px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: rgba(248,250,252,0.85);
  text-align: center;
}

.ty__helpTitle { margin: 0; font-weight: 900; }
.ty__helpSub { margin: 6px 0 12px; font-weight: 600; }

.ty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ty__fine { margin-top: 14px; }

.footer { border-top: 1px solid var(--border); background: rgba(255,255,255,0.7); }
.footer__bottom { padding: 18px 0; text-align: center; }

/* CTA band (repeated CTA like funnel pages) */
.cta-band {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(34,197,94,0.08));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-band__text { display: grid; gap: 2px; }
.cta-band__text strong { font-weight: 900; }
.cta-band__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Danger tiles for pain section */
.tile--danger {
  background: rgba(255,255,255,0.9);
}
.tile--danger h3 { letter-spacing: -0.01em; }

/* Offer stack */
.offer { display: grid; gap: 14px; }
.offer__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.offer__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}
.offer__list { display: grid; gap: 10px; margin-top: 10px; }
.offer__item { font-weight: 700; color: var(--muted); }
.offer__note { margin: 12px 0 0; font-weight: 600; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 12px;
}
.faq__item summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '＋';
  float: right;
  color: var(--muted-2);
  font-weight: 900;
}
.faq__item[open] summary::after { content: '－'; }
.faq__item p { margin: 10px 0 0; }

/* Sticky CTA bar (mobile only) */
.sticky { display: none; }
.sticky__btn {
  flex: 1;
  text-decoration: none;
  font-weight: 900;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  text-align: center;
}
.sticky__btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.sticky__btn--secondary { background: #fff; }
.sticky__btn--whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-2));
  border-color: rgba(22, 163, 74, 0.45);
  color: #fff;
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { order: 2; }
  .hero__grid > .card { order: 1; }
  .split { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .offer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header__actions { display: none; }
  .grid--3 { grid-template-columns: 1fr; }
  .form__meta { flex-direction: column; align-items: flex-start; }
  .hero__ctas { flex-direction: column; }
  .inline-actions { width: 100%; }
  .inline-actions .btn { flex: 1; }

  .ty__card { padding: 18px; }
  .ty__actions { flex-direction: column; }
  .ty__actions .btn { width: 100%; }

  .sticky {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 10px;
    z-index: 60;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  body { padding-bottom: 92px; }
}

@media (min-width: 981px) {
  .ty__card { padding: 26px; }
  .ty__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .ty__step { grid-template-columns: 1fr; }
  .ty__stepN { margin-bottom: 8px; }
}

/* small form errors */
input[aria-invalid="true"] { border-color: rgba(239,68,68,0.7); box-shadow: 0 0 0 4px rgba(239,68,68,0.12); }
