:root {
  color-scheme: light;
  --gold: #c8a96a;
  --terracota: #8b5e3c;
  --vinho: #5a1f2e;
  --ebano: #0d0d0d;
  --bege: #f5e9da;
  --marrom-escuro: #3b2a1e;
  --text: #1b130d;
  --muted: #6f5546;
  --surface: #f7efe3;
  --surface-strong: #efe2d7;
  --border: rgba(139, 94, 60, 0.16);
  --shadow: 0 24px 60px rgba(82, 49, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(200, 169, 106, 0.18),
      transparent 24%
    ),
    linear-gradient(180deg, #f8efe3 0%, #e8dacb 100%);
  color: var(--text);
}

body {
  line-height: 1.75;
}

.page-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 24px;
  padding: 44px;
  border-radius: 32px;
  background: linear-gradient(
    180deg,
    rgba(245, 233, 218, 0.95),
    rgba(228, 200, 168, 0.95)
  );
  border: 1px solid rgba(139, 94, 60, 0.16);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(200, 169, 106, 0.18),
    transparent 32%
  );
  pointer-events: none;
}

.hero-copy {
  display: grid;
  gap: 16px;
  position: relative;
}

.hero .eyebrow {
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  color: var(--vinho);
}

.hero h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.02;
  color: var(--ebano);
}

.hero p {
  margin: 0;
  max-width: 700px;
  font-size: 1.05rem;
  color: var(--marrom-escuro);
}

.hero-badge {
  position: relative;
  align-self: center;
  justify-self: start;
  padding: 16px 26px;
  border-radius: 999px;
  background: rgba(138, 94, 60, 0.16);
  color: var(--vinho);
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(139, 94, 60, 0.12);
}

.card {
  margin-top: 28px;
  padding: 32px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.card--light {
  background: rgba(255, 255, 255, 0.72);
}

.card--main {
  background: rgba(251, 245, 236, 0.94);
}

.card--phases {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(139, 94, 60, 0.12);
}

.phase-badges {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.phase-badge {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(139, 94, 60, 0.1);
  box-shadow: 0 10px 24px rgba(82, 49, 33, 0.08);
}

.phase-badge strong {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--ebano);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.phase-range {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ebano);
  background: rgba(200, 169, 106, 0.15);
}

.phase-badge--chaotic {
  border-color: rgba(255, 119, 89, 0.18);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(255, 241, 232, 0.8)
  );
}

.phase-badge--basic {
  border-color: rgba(200, 169, 106, 0.18);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(245, 233, 218, 0.8)
  );
}

.phase-badge--developing {
  border-color: rgba(139, 94, 60, 0.18);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(235, 213, 187, 0.85)
  );
}

.phase-badge--structured {
  border-color: rgba(90, 31, 46, 0.18);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(220, 182, 155, 0.85)
  );
}

.phase-badge--consolidated {
  border-color: rgba(88, 44, 22, 0.18);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(210, 170, 129, 0.9)
  );
}

.card--result {
  background: linear-gradient(
    180deg,
    rgba(255, 250, 244, 0.95),
    rgba(244, 224, 196, 0.92)
  );
}

h2,
h3 {
  margin: 0 0 20px;
  line-height: 1.15;
  color: var(--ebano);
}

h2 {
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
}

h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
}

ul {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--marrom-escuro);
}

ul li {
  margin-bottom: 14px;
}

.section-grid {
  display: grid;
  gap: 34px;
}

.quiz-section {
  display: grid;
  gap: 22px;
  padding-top: 10px;
}

.quiz-section h3 {
  margin-top: 0;
  margin-bottom: 24px;
}

.quiz-section--full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: 22px;
  border: 1px solid rgba(139, 94, 60, 0.12);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

label:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 94, 60, 0.22);
  background: rgba(255, 250, 244, 0.98);
}

label span {
  display: inline-block;
}

input[type="checkbox"] {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  border-radius: 6px;
}

label > input[type="checkbox"] + * {
  margin-top: 2px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 16px 28px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--terracota));
  color: var(--ebano);
  box-shadow: 0 18px 30px rgba(139, 94, 60, 0.14);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 32px rgba(139, 94, 60, 0.22);
}

.btn--secondary {
  background: transparent;
  color: var(--ebano);
  border: 1px solid rgba(139, 94, 60, 0.18);
}

.hidden {
  display: none;
}

.result-score {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: var(--marrom-escuro);
}

.phase-name {
  font-family: "Manrope", sans-serif;
  font-size: 1.9rem;
  margin-bottom: 14px;
  color: var(--vinho);
}

.phase-description,
.recommendations {
  color: var(--marrom-escuro);
  font-size: 1rem;
}

.recommendations {
  margin-top: 18px;
}

.recommendations p {
  margin: 0 0 10px;
}

.footer {
  margin-top: 32px;
  text-align: center;
  color: var(--marrom-escuro);
  font-size: 0.95rem;
}

@media (min-width: 980px) {
  .section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 28px 18px 48px;
  }

  .hero {
    padding: 28px;
  }

  .card {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  label {
    grid-template-columns: auto;
  }

  .actions {
    flex-direction: column;
  }
}
