/* ============================================================
   RAVING ROOFS — FAST REPAIR VS REPLACEMENT QUIZ
   Clean, white, 30–40 second homeowner-friendly quiz.
   Palette inspired by uploaded Raving Roofs van: orange, yellow,
   navy, black, white, with restrained usage.
   ============================================================ */

:root {
  --bg: #fffaf4;
  --white: #ffffff;
  --ink: #111111;
  --muted: #626b77;
  --line: #e7e2da;
  --soft: #fff3ec;

  --orange: #ff6f2c;
  --orange-dark: #db541a;
  --yellow: #ffc247;
  --navy: #083044;
  --red-soft: #fff1f1;
  --red-line: #ffc9c9;
  --green-soft: #ecf9f0;
  --green: #2f9b54;

  --radius: 18px;
  --shadow: 0 18px 42px rgba(17, 17, 17, .08);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
}

button, a { font: inherit; }

#app {
  width: min(620px, calc(100% - 28px));
  margin: 0 auto;
  padding: 32px 0 54px;
}

.start-screen,
.quiz-screen,
.result-screen {
  animation: fadeUp .22s ease both;
}

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

.center { text-align: center; }

.icon-main {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--orange);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 31px;
  box-shadow: 0 14px 32px rgba(255,111,44,.24);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

p {
  margin: 0;
  color: var(--muted);
}

.intro-copy {
  max-width: 440px;
  margin: 0 auto;
  font-size: 1rem;
}

.info-card {
  margin: 22px 0 26px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(17,17,17,.04);
  text-align: left;
}

.kicker {
  margin-bottom: 16px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink);
  font-size: .95rem;
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: .78rem;
  font-weight: 900;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 15px 27px;
  background: var(--orange);
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(255,111,44,.25);
  transition: background .15s ease, transform .15s ease;
}

.btn-main:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-main:visited { color: var(--white); }

.microcopy {
  margin-top: 14px;
  font-size: .88rem;
}

.emergency-box {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--red-line);
  background: var(--red-soft);
  border-radius: 12px;
  text-align: center;
  color: var(--ink);
  font-size: .92rem;
}

.emergency-box a {
  color: #d43520;
  font-weight: 900;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-weight: 750;
  font-size: .88rem;
  margin-bottom: 7px;
}

.progress-row strong {
  color: var(--navy);
}

.progress-track {
  height: 5px;
  background: #ebe6dd;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--orange);
  border-radius: 999px;
  transition: width .18s ease;
}

.question-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-size: 31px;
}

.question-title {
  text-align: center;
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 4vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.question-subtitle {
  text-align: center;
  max-width: 430px;
  margin: 0 auto 24px;
  font-size: .96rem;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(17,17,17,.035);
  transition: border-color .12s ease, transform .12s ease, background .12s ease;
}

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

.option-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fafafa;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.option-text {
  font-weight: 750;
}

.back-btn {
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 850;
  cursor: pointer;
}

.result-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.result-hero {
  padding: 28px 24px;
  text-align: center;
  background: var(--green-soft);
  border-bottom: 1px solid #cbeed7;
}

.result-hero.warning {
  background: #fff7df;
  border-bottom-color: #f6e0a6;
}

.result-hero.urgent {
  background: var(--red-soft);
  border-bottom-color: var(--red-line);
}

.result-hero.replace {
  background: #f3f7fb;
  border-bottom-color: #d8e3eb;
}

.result-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.result-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--navy);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.result-title {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.16;
  letter-spacing: -.035em;
}

.result-body {
  padding: 24px;
}

.result-body > p {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.plan {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.plan-title {
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: 14px;
  color: var(--ink);
}

.plan-steps {
  display: grid;
  gap: 16px;
}

.plan-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--white);
  font-size: .82rem;
  font-weight: 900;
}

.plan-step strong {
  display: block;
  margin-bottom: 2px;
}

.plan-step span {
  color: var(--muted);
  font-size: .93rem;
}

.wait-box {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--orange);
  background: var(--soft);
  border-radius: 10px;
  color: var(--ink);
  font-size: .94rem;
}

.answers {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.answer-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.answer-row:last-child {
  border-bottom: 0;
}

.answer-q {
  color: var(--muted);
  font-size: .86rem;
  margin-bottom: 3px;
}

.answer-a {
  font-weight: 850;
}

.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.retake {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
  padding: 13px 10px;
}

@media (max-width: 560px) {
  #app { width: min(100% - 20px, 620px); padding-top: 18px; }
  .option { grid-template-columns: 34px 1fr; padding: 13px 14px; }
  .result-actions { display: grid; }
  .btn-main, .retake { width: 100%; }
}


.educational-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}
