
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --coral: #ED7254;
  --coral-dark: #c45a3e;
  --cyan: #6EBCBF;
  --teal: #0D9095;
  --teal-dark: #0a7478;
  --cream: #FDF8F3;
  --dark: #1C1C1C;
  --mid: #555555;
  --light: #999999;
  --border: #EBEBEB;
}

html, body {
  min-height: 100vh;
  background: var(--cream);
  color: var(--dark);
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.header {
  padding: 28px 24px 0;
  display: flex;
  justify-content: center;
}
.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
}

.logo strong {
  font-weight: 900;
}

.logo {
  font-weight: 400;
}

/* ── SCREENS ── */
.screen { display: none; flex: 1; flex-direction: column; }
.screen.active { display: flex; }

/* ── INTRO ── */
#intro {
  padding: 40px 28px 48px;
  justify-content: center;
  animation: fadeUp 0.6s ease both;
}
.intro-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 24px;
}
.intro-h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 16px;
}
.intro-h1 em {
  font-style: italic;
  color: var(--teal);
}
.intro-sub {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 40px;
}
.intro-sub strong {
  color: var(--dark);
  font-weight: 600;
}
.btn-primary {
  display: block;
  width: 100%;
  padding: 17px;
  background: var(--coral);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:active { transform: scale(0.98); background: var(--coral-dark); }
.intro-note {
  text-align: center;
  font-size: 11px;
  color: var(--light);
  margin-top: 14px;
  letter-spacing: 0.04em;
}

/* ── QUIZ ── */
#quiz { padding: 20px 0 48px; }

.progress-bar-wrap {
  padding: 0 24px;
  margin-bottom: 28px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 8px;
}
.progress-track {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

.q-card {
  margin: 0 16px;
  background: white;
  border-radius: 20px;
  padding: 28px 24px 24px;
  border: 1px solid var(--border);
  animation: slideQ 0.35s ease both;
}
.q-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}
.q-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 24px;
}

.options { display: flex; flex-direction: column; gap: 10px; }

.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 13px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  background: white;
  text-align: left;
  width: 100%;
  -webkit-appearance: none;
}
.opt:active { transform: scale(0.99); }
.opt.selected {
  border-color: var(--teal);
  background: rgba(13,144,149,0.05);
}
.opt.selected .opt-icon {
  background: var(--teal);
  color: white;
}
.opt-icon {
  font-size: 17px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #F5F5F0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}
.opt-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.45;
  flex: 1;
}
.opt-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--light);
  margin-top: 2px;
}

.btn-next-wrap { padding: 16px 16px 0; }
.btn-next {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
  opacity: 0;
  pointer-events: none;
}
.btn-next.show { opacity: 1; pointer-events: all; }
.btn-next:active { transform: scale(0.98); background: var(--teal-dark); }

/* ── RESULT ── */
#result {
  padding: 32px 20px 56px;
  animation: fadeUp 0.5s ease both;
}
.result-badge {
  display: inline-block;
  background: rgba(13,144,149,0.1);
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.result-profile-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
}
.result-headline {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 20px;
}
.result-divider {
  width: 32px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  margin-bottom: 20px;
}
.result-body {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 24px;
  white-space: pre-line;
}
.result-bridge {
  background: white;
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 32px;
}
.btn-cta {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--coral);
  color: white;
  border: none;
  border-radius: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  text-align: center;
  margin-bottom: 12px;
}
.btn-cta:active { transform: scale(0.98); background: var(--coral-dark); }
.btn-restart {
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--light);
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px;
  transition: color 0.2s;
}
.btn-restart:active { color: var(--mid); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideQ {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
