/* Identidade Imob Prime: azul-marinho do Prime 90D + dourado metálico + marfim. */
:root {
  --bg: #f7f3ea;
  --surface: #fffdf8;
  --text: #16203a;
  --muted: #5e6475;
  --primary: #0d1626;
  --accent: #c9a24a;
  --gold-grad: linear-gradient(135deg, #f3dc9a 0%, #d4ad55 45%, #b08532 100%);
  --border: #e6dcc6;
  --danger: #b42318;
  --radius: 14px;
  --serif: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg) radial-gradient(circle at 50% -10%, rgba(201,162,74,.16), transparent 55%) no-repeat;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; }
.app { max-width: 640px; margin: 0 auto; padding: 24px 16px 56px; }
.screen { animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1 { font-size: 1.75rem; line-height: 1.2; margin: .4rem 0 .8rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 1.6rem 0 .6rem; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.lead { color: var(--muted); font-size: 1.05rem; }
.step { color: var(--muted); font-size: .9rem; margin: 1rem 0 0; }

.btn { display: block; width: 100%; padding: 15px 18px; border-radius: var(--radius); border: 0; font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--gold-grad); color: var(--primary); margin-top: 1.2rem; font-weight: 800; letter-spacing: .01em; box-shadow: 0 6px 18px rgba(176,133,50,.35), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-link { background: none; color: var(--muted); width: auto; padding: 12px 0; font-weight: 500; }

.progress { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }

.options { display: grid; gap: 10px; margin-top: 1rem; }
.option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); font: inherit; text-align: left; color: var(--text); cursor: pointer; }
.option:hover, .option:focus-visible { border-color: var(--primary); outline: none; }
.option.is-selected { border-color: var(--accent); background: #fbf6ea; }
.option-letter { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

.field { display: block; margin-top: 14px; }
.field span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.field input { width: 100%; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font: inherit; background: var(--surface); }
.field input:focus { border-color: var(--primary); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 4px; }
.error { color: var(--danger); font-size: .85rem; display: block; min-height: 1em; }

.result-card { background: var(--primary) radial-gradient(circle at 50% 0%, rgba(201,162,74,.22), transparent 60%); color: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid rgba(201,162,74,.45); }
.option.is-selected { border-color: var(--accent); background: #fbf3df; box-shadow: 0 0 0 3px rgba(201,162,74,.18); }
.offer { border-color: rgba(201,162,74,.45); box-shadow: 0 10px 30px rgba(22,32,58,.06); }
.badge { background: var(--gold-grad) !important; }
.gauge-fill { background: var(--gold-grad) !important; }
.result-card h1 { color: var(--accent); }
.result-card .goal { margin-top: 1rem; }
.result-card .phrase { font-style: italic; color: #d6dbe4; }

.video { margin: 1rem 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0b1220; }
.video iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder { height: 100%; display: grid; place-items: center; color: #9aa6b8; font-size: .95rem; }

.offer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 1.4rem; }
.offer h2 { margin-top: 0; }
.items { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 12px; }
.items li { padding-left: 28px; position: relative; }
.items li { padding-left: 38px; }
.items li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-grad); color: var(--primary); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.items strong { display: block; }
.items span { color: var(--muted); font-size: .95rem; }
.price { font-size: 2.2rem; font-weight: 800; margin: .6rem 0 0; }
.price-note, .guarantee { color: var(--muted); font-size: .9rem; margin: .3rem 0; }
.guarantee { text-align: center; margin-top: .8rem; }

.about { margin-top: 1.4rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-top: 8px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--muted); margin: .5rem 0 0; }

/* ---------- gamificação ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.proof { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 14px; }
.btn-pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,74,.45); } 50% { box-shadow: 0 0 0 10px rgba(201,162,74,0); } }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); margin-top: 1rem; }

.option { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.option-icon { flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--bg); color: #a8822f; display: grid; place-items: center; font-size: 1.05rem; font-weight: 700; }
.option-icon svg { width: 24px; height: 24px; }
.option.is-selected .option-icon, .option:hover .option-icon { color: var(--primary); }
.option.is-picked { transform: scale(.98); transition: transform .12s ease; }
.option.is-picked .option-icon { background: var(--accent); }
.options-grid { grid-template-columns: 1fr 1fr; }
.options-grid .option { flex-direction: column; text-align: center; padding: 18px 10px; gap: 8px; }
.options-grid .option-icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; }
.options-grid .option-icon svg { width: 30px; height: 30px; }

.toast { position: fixed; left: 50%; top: 16px; transform: translate(-50%, calc(-100% - 24px)); background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 700; font-size: .95rem; z-index: 20; transition: transform .35s ease; box-shadow: 0 6px 20px rgba(13,22,38,.25); }
.toast { opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.insight { margin: 2.2rem 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: relative; animation: rise .35s ease both; }
.insight-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 10px; }
.insight blockquote { margin: 0; font-size: 1.15rem; line-height: 1.5; }
.insight figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; font-weight: 600; }

.spinner { width: 56px; height: 56px; border-radius: 50%; border: 5px solid var(--border); border-top-color: var(--accent); animation: spin .9s linear infinite; margin: 2rem auto 0; }
@keyframes spin { to { transform: rotate(360deg); } }
[data-screen="analyzing"] h2 { text-align: center; }
.analysis { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 12px; }
.analysis li { display: flex; align-items: center; gap: 12px; color: var(--muted); opacity: .45; transition: opacity .3s; }
.analysis li.is-active, .analysis li.is-done { opacity: 1; color: var(--text); }
.analysis .check { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.analysis li.is-active .check { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.analysis li.is-done .check { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.analysis li.is-done .check::after { content: "✓"; }

.badge { --badge: var(--accent); width: 112px; height: 112px; margin: 14px auto 6px; border-radius: 50%; background: var(--badge); border: 5px solid #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(255,255,255,.08); }
.badge-emoji { display: grid; place-items: center; color: var(--primary); }
.badge-emoji svg { width: 56px; height: 56px; }
.result-card { text-align: center; }
.result-card h1 { margin-top: .4rem; }
.result-card.is-revealed .badge { animation: pop .7s cubic-bezier(.2,1.6,.4,1) both; }
.result-card.is-revealed h1 { animation: rise .5s .35s ease both; }
@keyframes pop { 0% { transform: scale(0) rotate(-25deg); } 100% { transform: scale(1) rotate(0); } }
.gauge { text-align: left; margin: 1.1rem 0; }
.gauge-head { display: flex; justify-content: space-between; font-size: .92rem; color: #d6dbe4; margin-bottom: 6px; }
.gauge-head strong { color: var(--accent); font-size: 1.1rem; }
.gauge-track { height: 12px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.gauge-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #f2d48a, var(--accent)); }
.result-card > p { text-align: left; }

.screen-intro { text-align: center; padding-top: 18px; }
.screen-intro .eyebrow { margin-top: 18px; }
.intro-emblem { width: 92px; height: 92px; margin: 0 auto; border-radius: 50%; background: var(--primary); border: 3px solid var(--accent); display: grid; place-items: center; font-size: 2.6rem; box-shadow: 0 0 0 8px rgba(201,162,74,.14), 0 12px 28px rgba(13,22,38,.22); }
.intro-emblem { width: 128px; height: 128px; overflow: hidden; }
.intro-emblem img, .insight-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.insight-avatar { width: 56px; height: 56px; overflow: hidden; border: 2px solid var(--accent); }
.about { text-align: center; }
.about-photo { width: 100%; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); border: 1px solid rgba(201,162,74,.5); box-shadow: 0 12px 28px rgba(22,32,58,.15); }
.about p { text-align: left; }
.intro-highlights { list-style: none; padding: 0; margin: 1.4rem 0 .4rem; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.intro-highlights li { background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 8px 13px; font-size: .88rem; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.hl-icon { display: inline-grid; color: #a8822f; }
.hl-icon svg { width: 18px; height: 18px; }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 30; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 640px) {
  .app { padding-top: 48px; }
  h1 { font-size: 2.1rem; }
}
