:root {
  --green: #16a34a;
  --green-dark: #15803d;
  --text: #0a0a0a;
  --muted: #6b7280;
  --bg: #f4f4f5;
  --card-bg: #ffffff;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

#progress-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--border);
  z-index: 50;
}
#progress-bar {
  height: 100%;
  width: 0%;
  background: var(--green);
  transition: width .4s ease;
}

#app {
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
  min-height: 100svh;
  opacity: 0;
  transition: opacity .35s ease;
}
#app.fade-in { opacity: 1; }

.card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.block { margin-bottom: .5rem; }
.spacer { height: 1.5rem; }

.text-block h1 {
  font-size: 1.4rem;
  line-height: 1.3;
  text-align: center;
  margin: 0 0 .75rem;
}
.text-block h2 {
  font-size: 1.15rem;
  line-height: 1.35;
  text-align: center;
  margin: 0 0 .5rem;
}
.text-block p {
  text-align: center;
  line-height: 1.5;
  margin: .25rem 0;
}
.text-block p.muted { color: var(--muted); font-size: .9rem; }
.text-block p.small { color: var(--muted); font-size: .85rem; }
.text-block p.tiny { color: #9ca3af; font-size: .72rem; text-align: center; }

.image-block { text-align: center; }
.image-block img { max-width: 100%; border-radius: .5rem; }

.trust-badges {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  padding: .6rem;
  background: #f9fafb;
  border-radius: .5rem;
}

.btn {
  display: block;
  width: 100%;
  padding: .9rem 1.25rem;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: .6rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: scale(.98); }
.btn.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); }
  50% { box-shadow: 0 0 0 10px rgba(22,163,74,0); }
}

.options-block { display: flex; flex-direction: column; gap: .6rem; }
.option-btn {
  padding: .85rem 1rem;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: .6rem;
  text-align: left;
  font-size: .98rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.option-btn p { margin: 0; }
.option-btn { display: flex; align-items: center; gap: .7rem; }
.option-btn span { flex: 1; }
.option-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; }
.option-btn.with-icon { padding: .6rem 1rem; }
.option-btn:hover { border-color: var(--green); }
.option-btn.selected { border-color: var(--green); background: #f0fdf4; }

.alert-box {
  background: #f0fdf4;
  border-left: 4px solid var(--green);
  border-radius: .5rem;
  padding: .9rem 1rem;
}
.alert-box p { margin: 0; font-size: .92rem; line-height: 1.5; }

.loading-bar-outer {
  height: 10px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 1rem;
}
.loading-bar-inner {
  height: 100%;
  width: 0%;
  background: var(--green);
  transition: width 5s linear;
}

.chart-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .7rem;
}
.chart-bar-outer {
  flex: 1;
  height: 22px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}
.chart-bar-inner {
  height: 100%;
  width: 0%;
  background: #cbd5e1;
  transition: width .8s ease;
}
.chart-row.featured .chart-bar-inner { background: var(--green); }
.chart-tooltip { font-size: .75rem; font-weight: 600; color: var(--green-dark); white-space: nowrap; }
.chart-legend { font-size: .75rem; color: var(--muted); white-space: nowrap; }

.metric-legend-row { font-size: .8rem; color: var(--muted); margin-bottom: .8rem; text-align: center; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 3px; }
.dot.before { background: #cbd5e1; }
.dot.after { background: var(--green); }

.metric-row { margin-bottom: .8rem; }
.metric-label { font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.metric-bars { display: flex; flex-direction: column; gap: .3rem; }
.metric-bar { height: 18px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.metric-bar-fill {
  height: 100%; width: 0%;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: .4rem;
  font-size: .65rem; color: #fff; font-weight: 600;
  transition: width 1s ease;
  white-space: nowrap;
}
.metric-bar.before .metric-bar-fill { background: #94a3b8; }
.metric-bar.after .metric-bar-fill { background: var(--green); }

.quotes-block { display: flex; flex-direction: column; gap: .7rem; }
.quote-card {
  background: #f9fafb;
  border-radius: .6rem;
  padding: .9rem 1rem;
}
.quote-card .stars { color: #f59e0b; font-size: .85rem; margin-bottom: .3rem; }
.quote-card p { margin: 0 0 .4rem; font-size: .9rem; line-height: 1.45; }
.quote-card .quote-name { font-size: .8rem; font-weight: 600; color: var(--muted); }

.checklist-block { list-style: none; padding: 0; margin: 0 0 .5rem; }
.checklist-block li {
  display: flex; align-items: flex-start; gap: .5rem;
  padding: .4rem 0; font-size: .92rem; line-height: 1.4;
  border-bottom: 1px dashed var(--border);
}
.checklist-block li:last-child { border-bottom: none; }
.check { color: var(--green); font-weight: 700; }

.price-block {
  text-align: center;
  background: #f0fdf4;
  border-radius: .75rem;
  padding: 1.2rem;
  margin: .5rem 0;
}
.price-title { font-weight: 700; margin: 0 0 .4rem; }
.price-before { text-decoration: line-through; color: var(--muted); margin: 0; font-size: .9rem; }
.price-value { font-size: 2.2rem; font-weight: 800; color: var(--green-dark); margin: .1rem 0; }
.price-after { color: var(--muted); font-size: .85rem; margin: 0; }

.notif-anchor { position: relative; height: 0; }
.toast {
  position: fixed;
  left: 1rem; bottom: 1rem;
  max-width: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .6rem;
  padding: .7rem .9rem;
  font-size: .82rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  transform: translateY(120%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  z-index: 60;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-sub { color: var(--muted); }
