:root {
  --bg: #fdf6f0;
  --bg-card: #ffffff;
  --ink: #1a1216;
  --ink-soft: #5a4a52;
  --ink-mute: #8a7a82;
  --accent: #b9395c;
  --accent-soft: #f5e1e8;
  --accent-deep: #7a1f37;
  --line: #ebd9df;
  --ok: #2a8a5f;
  --shadow: 0 4px 24px rgba(122, 31, 55, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  flex: 1;
  padding: 32px 20px 60px;
  animation: fadeIn .35s ease;
}

.screen.active { display: flex; }

.container {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.container.center {
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 60vh;
}

/* tipografia */
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.5px;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.3px;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

h1 em, h2 em { color: var(--accent); font-style: normal; }

.lede {
  font-size: 17px;
  color: var(--ink-soft);
}
.lede.small { font-size: 14px; color: var(--ink-mute); margin-top: 8px; }
.hint { font-size: 14px; color: var(--ink-mute); margin-top: -8px; }

.footnote {
  margin-top: 24px;
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
}

/* progress */
.progress {
  background: var(--line);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width .35s ease;
}
.qcount {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* options */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.opt {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 2px solid var(--line);
  color: var(--ink);
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
}

.opt:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.opt.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 600;
}

.options.multi .opt.selected::after {
  content: "✓";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 800;
}

.options.multi .opt.none {
  margin-top: 6px;
  border-style: dashed;
}

/* CTAs */
.cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  padding: 18px 28px;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 16px;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, background .15s ease;
}

.cta:hover { background: var(--accent-deep); }
.cta:active { transform: scale(.98); }
.cta:disabled { background: var(--ink-mute); cursor: not-allowed; }

.cta.secondary {
  background: var(--ink);
}
.cta.secondary:hover { background: #000; }

.cta.big {
  font-size: 20px;
  padding: 22px 28px;
  width: 100%;
  margin-top: 12px;
}

/* spinner */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin-bottom: 24px;
}

.calc-line {
  font-size: 16px;
  color: var(--ink);
  margin: 8px 0;
  opacity: 0;
  transition: opacity .4s ease;
}
.calc-line.muted { color: var(--ink-soft); }
.calc-line.show { opacity: 1; }

/* result */
.anchor {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent-deep);
  line-height: 1.4;
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 14px;
  margin-top: -4px;
}

.result-badge {
  display: inline-block;
  background: var(--ok);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  border-radius: 20px;
  align-self: flex-start;
}

.result-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.result-block.highlight {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.result-block.final {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.result-block.final h3 { color: white; margin-bottom: 8px; }
.result-block.final p { color: #d4c8cc; margin-top: 8px; }
.result-block.final strong { color: white; }

.result-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.result-block.highlight .result-eyebrow { color: var(--accent-deep); }

.result-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.result-block.highlight .result-label { color: var(--accent-deep); font-size: 17px; }

.result-msg {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.result-block.highlight .result-msg { color: var(--ink); }

/* animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* desktop tweaks */
@media (min-width: 720px) {
  .screen { padding: 60px 32px 80px; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .opt { padding: 18px 22px; font-size: 17px; }
}
