:root {
  --bg: #fff7ed;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #2b1b16;
  --muted: #755e56;
  --primary: #ff6b4a;
  --primary-dark: #c93d20;
  --secondary: #7656ff;
  --accent: #ffd166;
  --happy: #35c9a4;
  --rose: #ff8fab;
  --danger: #cc3344;
  --line: rgba(43, 27, 22, 0.12);
  --shadow: 0 28px 80px rgba(121, 69, 39, 0.2);
  --glow: 0 0 0 1px rgba(255,255,255,.64), 0 30px 90px rgba(255, 107, 74, .18);
  --radius: 30px;
  --radius-small: 18px;
  --max: 1180px;
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
a { color: inherit; }

.soft-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 200, 87, 0.38), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(125, 95, 255, 0.18), transparent 26%),
    radial-gradient(circle at 55% 86%, rgba(72, 207, 174, 0.2), transparent 30%),
    linear-gradient(135deg, #fff7e9 0%, #fff1f4 48%, #f2fbff 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 10px 24px rgba(255, 122, 89, 0.3);
}
.brand strong { display: block; line-height: 1; }
.brand small { color: var(--muted); font-size: 0.82rem; }

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}
.nav a.active, .nav a:hover { background: var(--text); color: white; }
.menu-toggle { display: none; }

main { max-width: var(--max); margin: 0 auto; padding: 26px 20px 70px; }
.tab-panel { display: none; animation: fadeIn 0.34s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.hero { min-height: 560px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  background: rgba(255, 122, 89, 0.12);
  border: 1px solid rgba(255, 122, 89, 0.25);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 0.82rem;
}
h1 { font-size: clamp(2.3rem, 7vw, 5.1rem); line-height: 0.94; letter-spacing: -0.06em; margin: 20px 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -0.04em; margin: 0 0 8px; }
h3 { margin: 0 0 12px; font-size: 1.15rem; }
p { line-height: 1.65; color: var(--muted); }
.hero-copy p { font-size: 1.12rem; max-width: 680px; }
.hero-actions, .cta-row, .share-panel { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #2d1f1a; box-shadow: 0 14px 30px rgba(255, 122, 89, 0.32); }
.btn.secondary { background: var(--secondary); color: white; box-shadow: 0 14px 30px rgba(125, 95, 255, 0.26); }
.btn.ghost { background: rgba(255, 255, 255, 0.72); color: var(--text); border: 1px solid var(--line); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.trust-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.trust-strip span {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
}

.score-preview { position: relative; min-height: 430px; }
.pulse-heart {
  position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 190px; height: 190px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 5rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: var(--shadow);
  animation: pulse 2s infinite ease-in-out;
}
@keyframes pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.06); } }
.floating-card, .orbit-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 18px;
  font-weight: 900;
}
.floating-card { right: 20px; top: 20px; display: grid; gap: 3px; }
.floating-card span { font-size: 2rem; }
.floating-card small { color: var(--muted); }
.o1 { left: 12px; top: 88px; background: #fff7c5; }
.o2 { right: 8px; bottom: 68px; background: #e9e3ff; }
.o3 { left: 60px; bottom: 16px; background: #dffaf3; }

.card, .page-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 38px);
  margin: 24px 0;
  backdrop-filter: blur(18px);
}
.section-head, .quiz-top, .result-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.step-badge {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--text);
  color: white;
  font-weight: 900;
  margin-bottom: 12px;
}

.lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
label { display: grid; gap: 8px; color: var(--text); font-weight: 850; }
input, textarea {
  width: 100%;
  border: 1px solid rgba(45, 31, 26, 0.16);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  padding: 14px 15px;
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255, 122, 89, 0.15); }
.full-row { grid-column: 1 / -1; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; color: var(--muted); }
.checkbox input { width: auto; margin-top: 5px; }
.bot-field { position: absolute; left: -9999px; opacity: 0; }
.form-message { font-weight: 850; margin-bottom: 0; }
.form-message.error { color: var(--danger); }
.form-message.ok { color: #187a5f; }
.hidden { display: none !important; }

.progress-wrap { height: 12px; border-radius: 999px; background: rgba(45, 31, 26, 0.1); overflow: hidden; margin: 24px 0; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--happy), var(--accent), var(--primary)); transition: width 0.25s ease; }
.mini-score {
  min-width: 96px;
  text-align: center;
  padding: 14px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
}
.mini-score strong { display: block; font-size: 1.55rem; }
.mini-score small { color: var(--muted); font-weight: 800; }
.quiz-form { display: grid; gap: 18px; }
.question-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  padding: 18px;
}
.question-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.question-number {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 89, 0.15);
  color: var(--primary-dark);
  font-weight: 950;
}
.options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.option {
  position: relative;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: #fff;
  cursor: pointer;
  color: var(--muted);
  font-weight: 850;
}
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option:has(input:checked) { background: linear-gradient(135deg, rgba(255, 122, 89, 0.95), rgba(255, 200, 87, 0.95)); color: #2d1f1a; border-color: transparent; box-shadow: 0 12px 20px rgba(255, 122, 89, 0.18); }
.quiz-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.result-card { position: relative; overflow: hidden; }
.confetti { font-size: 1.5rem; margin-bottom: 8px; letter-spacing: 8px; }
.score-ring {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--primary) 0deg, var(--accent) var(--scoreDeg, 0deg), rgba(45,31,26,0.1) 0deg);
  box-shadow: 0 16px 36px rgba(255, 122, 89, 0.26);
  position: relative;
}
.score-ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: white;
}
.score-ring strong, .score-ring small { position: relative; z-index: 1; }
.score-ring strong { font-size: 2.4rem; align-self: end; }
.score-ring small { align-self: start; font-weight: 900; color: var(--muted); }
.result-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 18px; margin-top: 24px; }
.analysis-box, .pillar-box {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
}
#recommendations { color: var(--muted); line-height: 1.65; padding-left: 20px; }
.pillar-results { display: grid; gap: 14px; }
.pillar-item { display: grid; gap: 7px; }
.pillar-row { display: flex; justify-content: space-between; gap: 10px; font-weight: 900; }
.pillar-meter { height: 12px; background: rgba(45,31,26,0.1); border-radius: 999px; overflow: hidden; }
.pillar-fill { height: 100%; background: linear-gradient(90deg, var(--secondary), var(--happy)); border-radius: inherit; }
.save-status { font-weight: 850; color: var(--muted); }

.page-card { min-height: 260px; display: grid; align-content: center; }
.page-card.bright { background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255, 247, 197, .9)); }
.page-card.warm { background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255, 230, 215, .9)); }
.page-card.social { background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(233, 227, 255, .9)); }
.page-card.speaker { background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(223, 250, 243, .9)); }
.page-card h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.book-grid, .social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.book-grid article, .social-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.book-grid span, .social-card span { font-size: 2rem; }
.social-card { display: grid; gap: 8px; }
.social-card strong { font-size: 1.25rem; }
.social-card small { color: var(--muted); font-weight: 800; }
.social-card:hover { transform: translateY(-3px); }
.resume-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.resume-list span { background: rgba(255,255,255,.68); border: 1px solid var(--line); border-radius: 999px; padding: 10px 12px; font-weight: 850; color: var(--muted); }

.qr-card { display: grid; grid-template-columns: 1fr 0.85fr; gap: 22px; }
.qr-form { display: grid; gap: 16px; align-content: start; }
.qr-output { display: grid; gap: 14px; justify-items: center; }
#qrCanvas { width: 260px; height: 260px; background: white; border-radius: 22px; padding: 14px; box-shadow: 0 14px 30px rgba(45,31,26,0.12); }
#shareLink { min-height: 96px; resize: vertical; }
.compact { margin-top: 0; justify-content: center; }
.hint { font-size: 0.92rem; text-align: center; margin: 0; }

.footer { max-width: var(--max); margin: 0 auto; padding: 28px 20px 46px; color: var(--muted); }
.footer p { margin: 4px 0; }
.footer .small { font-size: 0.88rem; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: white; }
  .nav { position: fixed; left: 16px; right: 16px; top: 78px; display: none; flex-direction: column; border-radius: 24px; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { text-align: center; }
  .grid-2, .result-grid, .qr-card { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 34px; }
  .score-preview { min-height: 330px; }
  .lead-form, .options { grid-template-columns: 1fr; }
  .book-grid, .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head, .quiz-top, .result-hero { flex-direction: column; }
}

@media (max-width: 560px) {
  main { padding-inline: 14px; }
  .topbar { padding-inline: 14px; }
  .book-grid, .social-grid { grid-template-columns: 1fr; }
  .score-ring { width: 124px; height: 124px; }
  .btn { width: 100%; }
  .brand small { display: none; }
}


/* Ajustes visuais - versão mais alegre, emocional e premium */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .75;
  pointer-events: none;
}
body::before {
  width: 280px;
  height: 280px;
  right: -90px;
  top: 120px;
  background: radial-gradient(circle, rgba(255, 143, 171, .34), transparent 64%);
}
body::after {
  width: 240px;
  height: 240px;
  left: -82px;
  bottom: 40px;
  background: radial-gradient(circle, rgba(53, 201, 164, .28), transparent 64%);
}
.soft-bg {
  background:
    radial-gradient(circle at 13% 10%, rgba(255, 209, 102, 0.48), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(118, 86, 255, 0.22), transparent 27%),
    radial-gradient(circle at 50% 92%, rgba(53, 201, 164, 0.25), transparent 32%),
    linear-gradient(135deg, #fff8ed 0%, #fff0f4 45%, #eefbff 100%);
}
.topbar {
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 48px rgba(121,69,39,.12);
}
.brand-mark {
  font-size: 1.28rem;
  box-shadow: 0 16px 34px rgba(255, 107, 74, 0.32), inset 0 1px 0 rgba(255,255,255,.55);
}
.brand strong { letter-spacing: -.02em; }
h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  background: linear-gradient(120deg, #2b1b16 8%, #c93d20 50%, #7656ff 98%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2, h3 { color: #2b1b16; }
.eyebrow {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.68), 0 10px 30px rgba(255, 107, 74, .1);
}
.btn.primary {
  background: linear-gradient(135deg, #ff6b4a 0%, #ffd166 100%);
  box-shadow: 0 18px 36px rgba(255, 107, 74, 0.34), inset 0 1px 0 rgba(255,255,255,.55);
}
.btn.secondary { background: linear-gradient(135deg, #7656ff, #9e8cff); }
.btn.ghost { background: rgba(255, 255, 255, 0.8); }
.card, .page-card, .book-grid article, .social-card {
  box-shadow: var(--glow);
}
.card::selection, .page-card::selection { background: rgba(255, 209, 102, .55); }
.lead-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,.93), rgba(255,244,232,.9)),
    radial-gradient(circle at 100% 0%, rgba(255,209,102,.35), transparent 40%);
}
.quiz-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(242,251,255,.9)),
    radial-gradient(circle at 0% 0%, rgba(118,86,255,.16), transparent 42%);
}
.result-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,247,237,.92)),
    radial-gradient(circle at 92% 8%, rgba(255,209,102,.28), transparent 36%);
}
.question-card:hover,
.social-card:hover,
.book-grid article:hover {
  transform: translateY(-4px);
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 30px 80px rgba(121,69,39,.18);
}
.option {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.68);
}
.option:hover {
  border-color: rgba(255, 107, 74, .42);
  background: #fffaf5;
}
.score-ring {
  background: conic-gradient(#ff6b4a 0deg, #ffd166 var(--scoreDeg, 0deg), rgba(45,31,26,0.1) 0deg);
}
.social-card:first-child {
  background: linear-gradient(135deg, rgba(223,250,243,.96), rgba(255,255,255,.9));
  border-color: rgba(53,201,164,.35);
}
.footer {
  text-align: center;
}
@media (max-width: 900px) {
  .topbar { border-radius: 24px; }
}
