/* Quanttik Budget — mismos tokens que qapp.css */
:root {
  --bg-app: #1a1a1a;
  --bg-elevated: #222222;
  --bg-surface: #242424;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;
  --border: #3a3a3a;
  --accent-cyan: #1ad4c1;
  --accent-gold: #f2e8cf;
  --accent-lime: #c2cf82;
  --font: "Outfit", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-app);
  line-height: 1.45;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 12% 8%, rgba(26, 212, 193, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 18%, rgba(43, 79, 110, 0.18), transparent 52%),
    var(--bg-app);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem calc(2.5rem + var(--safe-b));
}

.brand { display: block; margin: 0.4rem 0 1.2rem; height: auto; }

.progress { height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 1.6rem; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1ad4c1, #f2e8cf, #c2cf82); transition: width 0.4s ease; }

.step[hidden] { display: none; }
.step { animation: rise 0.35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 0.6rem; }
h1 { font-size: clamp(1.9rem, 7vw, 2.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 0.7rem; }
h2 { font-size: 1.45rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h2.small { font-size: 1rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.2rem; }
h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.8rem; }
.lead { color: var(--text-secondary); margin-bottom: 1.1rem; }

textarea,
input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}
textarea { resize: vertical; min-height: 130px; }
textarea:focus,
input:focus { border-color: var(--accent-cyan); }
input[type="text"] { margin-bottom: 0.6rem; }

.examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin: 0.8rem 0 1rem; }
.chip {
  font: inherit;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--accent-cyan); color: var(--text-primary); }

.btn {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  color: #0e1a19;
  background: var(--accent-cyan);
  border: 0;
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); margin-top: 0.8rem; }
.row { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.row .btn { margin-top: 0; }
.row .btn--ghost { flex: 0 0 34%; }

.error.hint { color: var(--accent-cyan); }
.error { color: #ff8a80; font-size: 0.9rem; min-height: 1.2em; margin-bottom: 0.5rem; }

.spinner { width: 38px; height: 38px; border: 3px solid var(--border); border-top-color: var(--accent-cyan); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 3rem auto 1.2rem; }
#stepLoading h2 { text-align: center; color: var(--text-secondary); font-weight: 500; font-size: 1.1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.recap { font-size: 0.9rem; color: var(--text-secondary); background: var(--bg-surface); border-left: 3px solid var(--accent-cyan); border-radius: 8px; padding: 0.7rem 0.9rem; margin-bottom: 1.3rem; }
.recap b { color: var(--text-primary); font-weight: 600; }

.options { display: grid; gap: 0.6rem; }
.opt {
  font: inherit;
  text-align: left;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.opt:hover { border-color: #5a5a5a; }
.opt[aria-pressed="true"] { border-color: var(--accent-cyan); background: rgba(26, 212, 193, 0.1); }

.price { font-size: clamp(2rem, 9vw, 2.9rem); font-weight: 800; background: linear-gradient(90deg, #1ad4c1, #f2e8cf); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; margin: 0.2rem 0 0.4rem; }
.meta { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 1.1rem; }
.items { list-style: none; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.items li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0.9rem; font-size: 0.9rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.items li:last-child { border-bottom: 0; }
.items li span:last-child { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.4rem; }

.lead-form { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 18px; padding: 1.1rem; }
input[type="email"] { width: 100%; font: inherit; font-size: 1rem; color: var(--text-primary); background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.85rem 1rem; outline: none; margin-bottom: 0.6rem; transition: border-color 0.2s; }
input[type="email"]:focus { border-color: var(--accent-cyan); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sent { background: var(--bg-elevated); border: 1px solid var(--accent-cyan); border-radius: 18px; padding: 1.1rem; }
.sent p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0.6rem; }
.sent[hidden], .lead-form[hidden] { display: none; }
.foot { margin-top: 2rem; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); text-align: center; }

.qhint { color: var(--text-muted); font-size: 0.9rem; margin: -0.4rem 0 1rem; }
.price.bump { animation: bump 0.35s ease; }
@keyframes bump { 50% { transform: scale(1.03); } }
.adjust { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 1rem; background: var(--bg-surface); }
.adjust summary { cursor: pointer; padding: 0.85rem 1rem; font-weight: 600; font-size: 0.95rem; list-style: none; }
.adjust summary::-webkit-details-marker { display: none; }
.adjust summary::after { content: "＋"; float: right; color: var(--accent-cyan); }
.adjust[open] summary::after { content: "−"; }
.adjust summary span { display: block; font-weight: 400; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.adjust__body { padding: 0 1rem 1rem; }
.adjust h4 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-cyan); margin: 0.9rem 0 0.4rem; }
.adj { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; font-size: 0.9rem; color: var(--text-secondary); cursor: pointer; border-bottom: 1px solid #2e2e2e; }
.adj:last-child { border-bottom: 0; }
.adj input { accent-color: #1ad4c1; width: 18px; height: 18px; flex: none; }
.adj em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.adj.on { color: var(--text-primary); }
