:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-dark: #1a1a1a;
  --border: rgba(255,255,255,0.08);
  --text: #f0ede8;
  --muted: #8a8a8a;
  --gold: #c8a96e;
  --orange: #e8c98e;
  --accent2: #e8c98e;
  --amber: #f97316;
  --red: #c0392b;
  --font: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0 6px;
}

.brand-mark {
  display: flex;
  align-items: baseline;
}

.brand-raio {
  font-family: var(--font);
  font-style: italic;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: .03em;
  color: var(--text);
}

.brand-x {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 44px;
  color: var(--gold);
  letter-spacing: -.02em;
  transform: skewX(-8deg);
  text-shadow: 0 0 18px rgba(200,169,110,.5);
  margin-left: 1px;
}

.brand-audience {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}

.progress-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.08);
}

.progress-bar {
  height: 100%;
  background: var(--gold);
  transition: width .3s ease;
}

.container {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 32px 24px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(200,169,110,.14);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  align-self: center;
}

h1 {
  font-family: var(--font);
  font-size: 34px;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  margin: 0 0 12px;
}

.subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  margin: 0 0 28px;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
}

.question-dim {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(200,169,110,.14);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.question-skill {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 6px;
}

.question-label {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px;
  line-height: 1.35;
}

.slider-value {
  text-align: center;
  font-family: var(--font);
  font-size: 40px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  height: 6px;
  margin-bottom: 8px;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.num-btn {
  aspect-ratio: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}

.num-btn:hover { border-color: var(--gold); }

.num-btn.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-dark);
  transform: scale(1.05);
}

.nav-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

button {
  font-family: var(--sans);
  cursor: pointer;
  border: none;
  border-radius: 4px;
}

.btn-primary {
  flex: 1;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 20px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 20px;
}

.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.field-label {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

input[type="text"] {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.open-answer-input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px 16px;
  margin-bottom: 16px;
  resize: vertical;
}

.phone-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.phone-code {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px 8px;
  width: 132px;
}

.phone-wrap input[type="tel"] {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
}

.results-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 20px;
}

.results-score-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.score-box {
  flex: 1;
  text-align: center;
  background: var(--bg-dark);
  border-radius: 10px;
  padding: 18px 12px;
}

.dim-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(200,169,110,.16);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.score-box .num {
  font-family: var(--font);
  font-size: 38px;
  font-weight: 600;
  color: var(--gold);
}

.score-box .den {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}

.score-box .label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  color: var(--text);
}

.score-box .label-cta {
  font-family: var(--font);
  font-style: italic;
  font-size: 13px;
  margin-top: 4px;
  color: var(--gold);
}

.weakest-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent2);
  margin: 0 0 12px;
}

.weakest-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.weakest-item:last-child { border-bottom: none; }

.chart-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin: 0 0 12px;
}

.chart-block {
  margin-bottom: 22px;
}

.chart-block:last-child {
  margin-bottom: 0;
}

.chart-row {
  display: grid;
  grid-template-columns: 108px 1fr 26px;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.chart-label {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.chart-bar-track {
  height: 8px;
  background: var(--bg-dark);
  border-radius: 999px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .4s ease;
}

.chart-score {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.weakest-item .score {
  color: var(--gold);
  font-weight: 800;
}

.cta-block {
  text-align: center;
  margin-top: 8px;
}

.cta-headline {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.4;
}

.btn-cta {
  display: block;
  width: 100%;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 20px;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 12px;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
}

.btn-cta:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-cta-secondary {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
}

.btn-cta-secondary:hover { border-color: var(--gold); color: var(--gold); }

.profile-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  text-align: left;
  transition: border-color .15s ease, transform .1s ease;
}

.profile-option:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.profile-option-label {
  font-family: var(--font);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}

.profile-option-desc {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

.error-msg {
  color: var(--red);
  font-family: var(--sans);
  font-size: 14px;
  margin: -8px 0 16px;
  display: none;
}

.error-msg.visible { display: block; }

.btn-pdf {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-radius: 4px;
  margin-top: 4px;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.btn-pdf:hover { background: var(--gold); color: var(--bg); }
.btn-pdf:disabled { opacity: .6; cursor: wait; }

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 0 32px;
  opacity: .9;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.85) 60%, #000 100%);
  pointer-events: none;
}

.footer-banner-frame {
  width: 100%;
  max-width: 420px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32px, #000 calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 32px, #000 calc(100% - 32px), transparent 100%);
}

.footer-banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22px, #000 calc(100% - 16px), transparent 100%);
}

.footer-logo-fallback {
  height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
  color: var(--gold);
}
