/* ————————————————————————————————————————
   KETO SPIRIT ANIMAL — warm woods, playful
   ———————————————————————————————————————— */

:root {
  --paper: #FAF3E7;
  --card: #FFFDF7;
  --line: #E5D9C2;
  --ink: #26291F;
  --muted: #6E6A58;
  --moss: #3E7C4F;
  --fox: #E8752E;
  --display: "Gabarito", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(80% 55% at 50% -6%, #F3E7CE, transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--fox); color: #fff; }

a { color: var(--fox); }

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: 6px;
}

/* header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
}

.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span { color: var(--fox); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 24px);
  font-size: 13.5px;
  font-weight: 600;
}

.site-header nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.site-header nav a:hover { color: var(--ink); }

/* stage */

main { flex: 1; display: flex; }

.stage {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 6vh, 70px) clamp(16px, 5vw, 40px) clamp(50px, 8vh, 80px);
  text-align: center;
}

.paw-field {
  position: absolute;
  top: 8px;
  right: 6%;
  font-size: 60px;
  opacity: 0.10;
  transform: rotate(-18deg);
  pointer-events: none;
  user-select: none;
}

.screen[hidden] { display: none; }

/* start */

.animal-row {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 2vw, 16px);
  font-size: clamp(30px, 6vw, 48px);
  margin-bottom: 22px;
}

.animal-row span {
  display: inline-block;
  transition: transform 0.2s;
}

.animal-row span:hover { transform: translateY(-6px) rotate(-6deg); }

.stage h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(38px, 7.6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.stage h1 em { font-style: normal; color: var(--moss); }

.lede {
  max-width: 50ch;
  margin: 20px auto 0;
  font-size: clamp(15.5px, 1.6vw, 18px);
  color: var(--muted);
}

.asterisk { margin-top: 10px; font-size: 13px; color: var(--muted); font-style: italic; }

.btn-big {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  background: var(--moss);
  border: none;
  border-radius: 999px;
  padding: 16px 32px;
  box-shadow: 0 12px 30px rgba(62, 124, 79, 0.30);
  transition: transform 0.15s, background 0.2s;
}

.btn-big:hover { background: #4C9662; transform: translateY(-2px); }
.btn-big:active { transform: scale(0.98); }

.btn-ghost {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 14px 26px;
  transition: border-color 0.2s, transform 0.15s;
}

.btn-ghost:hover { border-color: var(--fox); transform: translateY(-2px); }

/* quiz */

.progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.q-count {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--moss);
  white-space: nowrap;
}

.q-bar {
  flex: 1;
  height: 10px;
  background: #EFE4CD;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.q-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--moss), var(--fox));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.q-text {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(24px, 4.4vw, 38px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 26px;
  text-wrap: balance;
}

.q-options { display: grid; gap: 12px; }

.q-opt {
  cursor: pointer;
  text-align: left;
  font-family: var(--body);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.q-opt:hover {
  border-color: var(--moss);
  background: #F4FBF0;
  transform: translateX(4px);
}

/* result */

.result-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fox);
}

.r-emoji {
  font-size: clamp(80px, 16vw, 130px);
  line-height: 1.1;
  margin: 14px 0 4px;
  animation: pop 0.5s cubic-bezier(0.22, 1.4, 0.36, 1);
}

@keyframes pop {
  from { transform: scale(0.4) rotate(-14deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.r-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(38px, 7vw, 64px);
  letter-spacing: -0.02em;
}

.r-tagline {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  font-style: italic;
  margin-top: 6px;
}

.r-traits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.r-traits span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  color: var(--moss);
  background: #EAF4E4;
  border: 1px solid #CFE3C6;
  border-radius: 999px;
  padding: 6px 14px;
}

.r-plan {
  max-width: 560px;
  margin: 26px auto 0;
  text-align: left;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
}

.r-plan h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--fox);
}

.r-plan ul { list-style: none; }

.r-plan li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
}

.r-plan li:last-child { border-bottom: none; }

.r-plan li::before {
  content: "\1F43E";
  position: absolute;
  left: 0;
  font-size: 12px;
  top: 11px;
}

.r-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.r-actions .btn-big { margin-top: 0; }

.r-next { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* footer */

.site-footer {
  padding: 26px var(--gutter) 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 4px;
}

/* reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .r-emoji { animation: none; }
  .q-opt:hover, .btn-big:hover, .btn-ghost:hover, .animal-row span:hover { transform: none; }
  .q-fill { transition: none; }
}
