:root {
  --background: hsl(30 20% 97%);
  --foreground: hsl(20 10% 15%);
  --primary: hsl(72 72% 64%);
  --primary-foreground: hsl(78 20% 10%);
  --secondary: hsl(30 15% 93%);
  --muted: hsl(30 10% 94%);
  --muted-foreground: hsl(20 5% 50%);
  --border: hsl(30 15% 88%);
  --quiz-option: hsl(40 20% 96%);
  --quiz-option-selected: hsl(78 45% 90%);
  --quiz-option-border: hsl(30 15% 88%);
  --quiz-option-selected-border: hsl(78 45% 50%);
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.4;
}

button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 28rem;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  position: relative;
}

.screen {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ===== START SCREEN ===== */
.hero-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 1rem 1rem;
}

.hero {
  width: 100%;
  height: 24rem;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.start-content {
  padding: 2rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--foreground);
}

.subtitle {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.start-cta { margin-top: 2rem; }

.ig-link {
  margin-top: auto;
  padding-top: 2rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.2s;
  display: block;
}

.ig-link:hover { color: var(--foreground); }

/* ===== PRIMARY BUTTON + SHINE ===== */
.btn-primary {
  width: 100%;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 1.25rem;
  font-weight: 500;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s, opacity 0.2s;
}

.btn-primary:active:not(:disabled) { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-shine::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg,
    transparent 0%,
    hsla(0,0%,100%,0.25) 45%,
    hsla(0,0%,100%,0.4) 50%,
    hsla(0,0%,100%,0.25) 55%,
    transparent 100%);
  animation: shine-sweep 2.75s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine-sweep {
  0%   { left: -100%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}

/* ===== QUESTION SCREEN ===== */
#screen-question { min-height: 100vh; }

.question-content {
  flex: 1;
  padding: 2rem 1.25rem 1rem;
  transition: opacity 250ms ease-in-out, transform 250ms ease-in-out;
}

.question-content.fade-out {
  opacity: 0;
  transform: translateX(1rem);
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--quiz-option-border);
  background: var(--quiz-option);
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.option:hover { border-color: hsl(20 5% 50% / 0.3); }
.option:active { transform: scale(0.98); }

.option.selected {
  background: var(--quiz-option-selected);
  border-color: var(--quiz-option-selected-border);
}

.option-emoji {
  font-size: 1.875rem;
  flex-shrink: 0;
  line-height: 1;
}

.option-img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  object-fit: cover;
}

.option-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  bottom: 0;
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.progress {
  width: 100%;
  height: 0.5rem;
  background: var(--muted);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 9999px;
  width: 0%;
  transition: width 400ms ease-out;
}

.nav-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.step-circle {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.back-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-foreground);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, opacity 0.2s;
}

.back-btn:hover:not(:disabled) { background: var(--secondary); }
.back-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ===== CONTACT FORM ===== */
.contact-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.25rem 1.5rem;
}

.contact-content h2 { margin-bottom: 0; font-size: 1.5rem; }
.contact-content .subtitle { margin-top: 0.5rem; }

.form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  transition: border-color 0.2s;
  background: var(--background);
}

.field:focus-within { border-color: var(--primary); }

.field-icon {
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.field input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  min-width: 0;
}

.field input::placeholder { color: hsl(20 5% 50% / 0.5); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

.consent input {
  margin-top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.consent .link { color: var(--primary); }

/* ===== THANKS ===== */
.thanks {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  animation: fade-in 0.4s ease-out;
}

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

.check-icon {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.thanks h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.thanks p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 24rem;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translate(-50%, -120%);
  background: white;
  color: var(--foreground);
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 100;
  font-size: 0.875rem;
  max-width: 90%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.success { border-left: 4px solid hsl(120 60% 50%); }
.toast.error   { border-left: 4px solid hsl(0 84% 60%); }
