:root {
  --lw-navy: #071427;
  --lw-navy-2: #0b234d;
  --lw-navy-3: #102f63;
  --lw-gold: #d7aa4f;
  --lw-gold-2: #f0d28a;
  --lw-gold-dark: #a87822;
  --lw-white: #ffffff;
  --lw-bg: #f3f6fb;
  --lw-card: #ffffff;
  --lw-text: #172033;
  --lw-muted: #667085;
  --lw-border: #d9e1ee;
  --lw-danger: #b42318;
  --lw-success: #067647;
  --lw-warning: #b54708;
  --lw-shadow: 0 22px 55px rgba(7, 20, 39, .16);
  --lw-radius: 22px;
  --lw-radius-sm: 14px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--lw-text);
  background:
    radial-gradient(circle at top left, rgba(215,170,79,.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(11,35,77,.12), transparent 34%),
    linear-gradient(180deg, #f7f9fd 0%, #edf2fa 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(7,20,39,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,20,39,.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px 16px calc(26px + var(--safe-bottom));
}

.app-shell {
  width: min(100%, 510px);
  border-radius: var(--lw-radius);
  overflow: hidden;
  background: rgba(255,255,255,.82);
  box-shadow: var(--lw-shadow);
  border: 1px solid rgba(215,170,79,.16);
  backdrop-filter: blur(14px);
}

.brand-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 24px;
  text-align: center;
  background:
    linear-gradient(140deg, rgba(7,20,39,.96), rgba(11,35,77,.98)),
    var(--lw-navy);
  color: var(--lw-white);
}

.brand-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,170,79,.24), transparent 60%);
}

.brand-hero::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215,170,79,.82), transparent);
}

.logo-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: min(210px, 78%);
  margin: 0 auto 12px;
  border-radius: 12px;
}

.kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(215,170,79,.42);
  font-size: .79rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lw-gold);
  box-shadow: 0 0 0 4px rgba(215,170,79,.14);
}

.content {
  padding: 25px;
}

h1, h2 {
  margin: 0 0 9px;
  color: var(--lw-navy);
  text-align: center;
  letter-spacing: -.025em;
}

h1 { font-size: clamp(1.42rem, 3.5vw, 1.8rem); }
h2 { font-size: clamp(1.24rem, 3vw, 1.52rem); }

.subtitle {
  margin: 0 auto 20px;
  color: var(--lw-muted);
  text-align: center;
  line-height: 1.55;
  max-width: 39ch;
  font-size: .96rem;
}

.step { display: none; animation: slideFade .28s ease both; }
.step.active { display: block; }

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

.progress {
  display: grid;
  grid-template-columns: repeat(var(--steps, 4), 1fr);
  gap: 8px;
  margin: 0 0 21px;
  padding: 0;
  list-style: none;
}

.progress li {
  height: 5px;
  border-radius: 999px;
  background: #e7edf6;
  overflow: hidden;
}

.progress li::before {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lw-gold), var(--lw-gold-2));
  transition: width .25s ease;
}

.progress li.done::before,
.progress li.active::before { width: 100%; }

.form-grid { display: grid; gap: 13px; }
.field { display: grid; gap: 7px; margin-bottom: 13px; }
.field label {
  color: var(--lw-navy);
  font-size: .91rem;
  font-weight: 800;
}

.input, select.input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--lw-border);
  border-radius: var(--lw-radius-sm);
  padding: 13px 14px;
  color: var(--lw-text);
  background: #fff;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.input:focus, select.input:focus {
  border-color: var(--lw-gold);
  box-shadow: 0 0 0 5px rgba(215,170,79,.13);
}

.input::placeholder { color: #98a2b3; }

.option-grid { display: grid; gap: 12px; }
.option-card {
  width: 100%;
  min-height: 60px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--lw-border);
  border-radius: 17px;
  padding: 12px 14px;
  background: #fff;
  color: var(--lw-navy);
  text-align: left;
  cursor: pointer;
  transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease, background .17s ease;
}

.option-card:hover, .option-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(215,170,79,.72);
  box-shadow: 0 12px 24px rgba(7,20,39,.08);
  background: linear-gradient(180deg, #fff, rgba(215,170,79,.055));
}

.option-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(7,20,39,.055);
  color: var(--lw-gold-dark);
  font-size: 1.2rem;
}

.option-title { font-weight: 850; }
.option-desc { margin-top: 2px; color: var(--lw-muted); font-size: .82rem; line-height: 1.35; }
.option-arrow { color: var(--lw-gold-dark); font-weight: 900; }

.btn {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: center;
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.btn-primary {
  color: var(--lw-navy);
  background: linear-gradient(135deg, var(--lw-gold), var(--lw-gold-2));
  box-shadow: 0 16px 27px rgba(215,170,79,.28);
}

.btn-secondary {
  color: var(--lw-navy);
  background: #fff;
  border: 1px solid var(--lw-border);
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .68; cursor: not-allowed; transform: none; box-shadow: none; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(7,20,39,.22);
  border-top-color: var(--lw-navy);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.badge-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(215,170,79,.12);
  color: var(--lw-navy);
  border: 1px solid rgba(215,170,79,.32);
  font-size: .81rem;
  font-weight: 800;
}
.badge-muted { background: #f4f7fb; border-color: #e6ecf4; color: var(--lw-muted); }

.calc-box, .notice, .success-box, .preview-box {
  border-radius: 17px;
  padding: 15px;
  border: 1px solid var(--lw-border);
  background: #fff;
}

.calc-box {
  display: none;
  margin: 2px 0 17px;
  background: linear-gradient(180deg, rgba(7,20,39,.025), rgba(215,170,79,.085));
  border-color: rgba(215,170,79,.28);
}
.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
  color: var(--lw-muted);
}
.calc-row strong { color: var(--lw-navy); }
.calc-row.total {
  margin-top: 11px;
  padding-top: 12px;
  border-top: 1px solid rgba(215,170,79,.28);
  font-weight: 900;
  color: var(--lw-navy);
}

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  margin: 0 0 13px;
  border-radius: 17px;
  border: 1px solid var(--lw-border);
  background: #fbfcff;
  color: #475467;
  line-height: 1.5;
  font-size: .9rem;
}
.check-card input {
  margin-top: 4px;
  transform: scale(1.14);
  accent-color: var(--lw-gold-dark);
}
.check-card strong { color: var(--lw-navy); }

.error-msg {
  display: none;
  margin: 0 0 13px;
  padding: 12px 13px;
  border-radius: 14px;
  color: var(--lw-danger);
  background: rgba(180,35,24,.08);
  border: 1px solid rgba(180,35,24,.16);
  font-weight: 800;
  text-align: center;
  font-size: .88rem;
}

.notice {
  margin: 0 0 16px;
  line-height: 1.5;
  color: #475467;
  background: #f8fbff;
}
.notice.warning { border-color: rgba(181,71,8,.18); background: rgba(181,71,8,.065); color: #7a3b04; }
.notice.success { border-color: rgba(6,118,71,.18); background: rgba(6,118,71,.065); color: var(--lw-success); }
.notice strong { color: var(--lw-navy); }

.success-box {
  text-align: center;
  line-height: 1.6;
  border-color: rgba(6,118,71,.16);
  background: rgba(6,118,71,.055);
}
.success-box .protocol {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(6,118,71,.2);
  color: var(--lw-success);
  font-weight: 900;
}

.preview-box {
  margin-top: 15px;
  background: linear-gradient(180deg, #fff, #f9fbff);
  line-height: 1.5;
  word-break: break-word;
}
.preview-box small { display:block; color: var(--lw-muted); margin-bottom: 5px; }
.preview-box strong { color: var(--lw-navy); }

.footer-note {
  margin-top: 17px;
  text-align: center;
  color: var(--lw-muted);
  font-size: .8rem;
  line-height: 1.45;
}

.actions { display: grid; gap: 10px; margin-top: 14px; }
.two-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + var(--safe-bottom));
  transform: translateX(-50%) translateY(14px);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  width: min(calc(100% - 28px), 470px);
  padding: 13px 15px;
  border-radius: 16px;
  color: #fff;
  background: var(--lw-navy);
  box-shadow: 0 18px 35px rgba(7,20,39,.22);
  transition: opacity .22s ease, transform .22s ease;
  text-align: center;
  font-weight: 800;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--lw-success); }
.toast.warning { background: var(--lw-warning); }
.toast.error { background: var(--lw-danger); }

.home-grid { display: grid; gap: 12px; }
.home-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: 18px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--lw-border);
  transition: .18s ease;
}
.home-card:hover { transform: translateY(-1px); border-color: rgba(215,170,79,.6); box-shadow: 0 12px 24px rgba(7,20,39,.08); }
.home-card .icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: rgba(7,20,39,.055); font-size: 1.35rem; }
.home-card .title { color: var(--lw-navy); font-weight: 900; }
.home-card .desc { color: var(--lw-muted); font-size: .86rem; margin-top: 2px; line-height: 1.35; }

@media (max-width: 420px) {
  .page { padding: 14px 10px calc(14px + var(--safe-bottom)); }
  .content { padding: 20px 16px; }
  .brand-hero { padding: 24px 18px 20px; }
  .option-card { grid-template-columns: 38px 1fr auto; padding: 11px 12px; }
  .option-icon { width: 38px; height: 38px; }
  .two-actions { grid-template-columns: 1fr; }
}


.btn-whatsapp {
  color: #fff;
  background: linear-gradient(135deg, #128c7e, #25d366);
  box-shadow: 0 16px 27px rgba(18,140,126,.22);
}

.whatsapp-card {
  margin-top: 15px;
  border-color: rgba(18,140,126,.20);
  background: linear-gradient(180deg, #fff, rgba(37,211,102,.06));
}

.whatsapp-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--lw-navy);
  font-weight: 900;
}
