/* =========================================================
   PÉ DE ALGODÃO — QUESTIONÁRIO
   Arquivo: quiz-pedealgodao.css
   ========================================================= */

:root {
  --ink: #252321;
  --muted: #77716d;
  --paper: #fbf8f5;
  --white: #ffffff;
  --sand: #eee5dd;
  --sand-dark: #dfd0c4;
  --rose: #c98f82;
  --rose-dark: #a96d61;
  --rose-soft: #f2e0dc;
  --line: #e8dfd9;
  --success: #5e806d;

  --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow: 0 24px 70px rgba(61, 45, 36, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 12%, rgba(201, 143, 130, 0.08), transparent 26rem),
    linear-gradient(180deg, --white 0%, var(--paper) 100%);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* -------------------------
   Header
   ------------------------- */

.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.brand__logo {
  display: block;
  width: 180px;
  height: auto;
  object-fit: contain;
}

.header-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 180ms ease;
}

.header-link:hover {
  color: var(--ink);
}

/* -------------------------
   Page / hero
   ------------------------- */

.quiz-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.quiz-hero {
  min-height: 330px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--sand);
  box-shadow: var(--shadow);
}

.hero-copy {
  align-self: center;
  padding: 54px clamp(28px, 6vw, 76px);
}

.eyebrow {
  display: inline-block;
  color: var(--rose-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 680px;
  margin: 14px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.hero-copy p {
  max-width: 610px;
  margin: 0;
  color: #615a55;
  font-size: 16px;
  line-height: 1.7;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-points span {
  padding: 9px 12px;
  border: 1px solid rgba(70, 51, 42, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: #645b55;
  font-size: 12px;
}

.hero-points strong {
  color: var(--ink);
}

.hero-art {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.75), transparent 36%),
    linear-gradient(145deg, #d4a79e, #bd8277);
}

.hero-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 205px;
  height: 205px;
  transform: translate(-50%, -50%) rotate(-7deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(255, 250, 247, 0.91);
  color: var(--rose-dark);
  text-align: center;
  box-shadow: 0 22px 55px rgba(76, 47, 41, 0.17);
}

.hero-circle span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-circle strong {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(0.2px);
}

.cloud--one {
  width: 240px;
  height: 75px;
  top: 18%;
  left: -50px;
  transform: rotate(-12deg);
}

.cloud--two {
  width: 300px;
  height: 90px;
  right: -90px;
  bottom: 15%;
  transform: rotate(10deg);
}

/* -------------------------
   Quiz card
   ------------------------- */

.quiz-card {
  position: relative;
  width: min(820px, 100%);
  margin: -26px auto 0;
  padding: 32px;
  border: 1px solid rgba(45, 33, 27, 0.07);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.progress-area {
  margin-bottom: 34px;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee9e5;
}

.progress-fill {
  width: 13%;
  height: 100%;
  border-radius: inherit;
  background: var(--rose);
  transition: width 280ms ease;
}

.question {
  animation: questionIn 320ms ease both;
}

@keyframes questionIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 700;
}

.question h2 {
  max-width: 700px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.question-helper {
  margin: 11px 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.option {
  min-height: 64px;
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.option:hover {
  border-color: var(--sand-dark);
  background: #fcfaf9;
  transform: translateY(-1px);
}

.option:focus-visible {
  outline: 3px solid rgba(201, 143, 130, 0.28);
  outline-offset: 2px;
}

.option.is-selected {
  border-color: var(--rose);
  background: #fcf2ef;
  box-shadow: 0 8px 24px rgba(169, 109, 97, 0.10);
}

.option-marker {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f0ed;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.option.is-selected .option-marker {
  background: var(--rose);
  color: #fff;
}

.option-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.option-check {
  color: transparent;
  font-size: 15px;
  font-weight: 700;
}

.option.is-selected .option-check {
  color: var(--rose-dark);
}

.quiz-footer {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.privacy-note {
  margin: 0;
  color: #99918c;
  font-size: 11px;
  line-height: 1.5;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid rgba(201, 143, 130, 0.28);
  outline-offset: 3px;
}

.button--ghost {
  flex: 0 0 auto;
  background: #f5f1ee;
  color: var(--ink);
}

.button--ghost:hover {
  background: #ebe3de;
}

.button--ghost:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

/* -------------------------
   Result
   ------------------------- */

.result {
  padding: 30px 10px 14px;
  text-align: center;
}

.result.is-visible {
  animation: questionIn 320ms ease both;
}

.result-icon {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e7f0eb;
  color: var(--success);
  font-size: 26px;
  font-weight: 700;
}

.result h2 {
  max-width: 620px;
  margin: 12px auto;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #49403e;
}

.result p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.button--primary {
  min-width: 180px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 35, 33, 0.15);
}

.button--primary:hover {
  background: #3b3835;
}

/* -------------------------
   Footer
   ------------------------- */

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #99918c;
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: var(--ink);
}

/* -------------------------
   Responsive
   ------------------------- */

@media (max-width: 820px) {
  .site-header,
  .quiz-page,
  .site-footer {
    width: min(100% - 28px, 680px);
  }

  .site-header {
    min-height: 72px;
  }

  .quiz-page {
    padding-top: 28px;
    padding-bottom: 54px;
  }

  .quiz-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 38px 28px 30px;
  }

  .hero-art {
    min-height: 190px;
  }

  .hero-circle {
    width: 145px;
    height: 145px;
  }

  .hero-circle strong {
    font-size: 23px;
  }

  .cloud--one {
    top: 15%;
  }

  .cloud--two {
    bottom: 8%;
  }

  .quiz-card {
    margin-top: -18px;
    padding: 24px 20px;
  }

  .options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-link {
    font-size: 12px;
  }

  .brand__name {
    font-size: 21px;
  }

  .brand__tagline {
    font-size: 8px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .hero-points {
    gap: 7px;
  }

  .hero-points span {
    font-size: 10px;
  }

  .quiz-card {
    border-radius: 20px;
  }

  .question h2 {
    font-size: 31px;
  }

  .option {
    min-height: 60px;
  }

  .quiz-footer {
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
