@font-face {
  font-family: "Paytone One";
  src: url("fonts/PaytoneOne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --cream: #FFFFFB;
  --ink: #220C10;
  --sage: #779B73;
  --sage-dark: #5f8259;
  --periwinkle: #CBC1ED;
  --ink-soft: rgba(34, 12, 16, 0.62);
  --ink-faint: rgba(34, 12, 16, 0.14);
  --font-display: "Paytone One", "Montserrat", sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-lg: 20px;
  --radius-full: 999px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  height: 100%;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* Decorative ambient blobs, sitewide */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
body::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -100px;
  background: var(--periwinkle);
  opacity: 0.35;
}
body::after {
  width: 280px;
  height: 280px;
  bottom: -100px;
  left: -110px;
  background: var(--sage);
  opacity: 0.22;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

p { margin: 0; }

button { font-family: inherit; }

/* Progress bar */
.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--periwinkle);
  z-index: 50;
  padding-top: var(--safe-top);
  background-clip: content-box;
  box-sizing: content-box;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--sage);
  border-radius: 0 4px 4px 0;
  transition: width 0.35s ease;
}

/* App shell */
.app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  width: 100%;
}

.screen {
  display: none;
  min-height: 100dvh;
  width: 100%;
  padding: calc(28px + var(--safe-top)) 22px calc(28px + var(--safe-bottom));
  align-items: flex-start;
  justify-content: center;
}
.screen.active {
  display: flex;
  animation: rise 0.38s ease both;
}
[data-screen="q1"].active,
[data-screen="q2"].active,
[data-screen="q3"].active,
[data-screen="q4"].active,
[data-screen="q5"].active,
[data-screen="q6"].active,
[data-screen="q7"].active {
  align-items: center;
}
[data-screen="loading"].active,
[data-screen="thankyou"].active,
[data-screen="disqualified"].active {
  align-items: center;
}

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

.screen__inner {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.screen__inner--center {
  text-align: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin: 0 0 14px;
}
.eyebrow--chip {
  display: inline-block;
  background: var(--periwinkle);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: var(--radius-full);
}

/* Hero image */
.hero {
  position: relative;
  margin: calc(-1 * (28px + var(--safe-top))) -22px 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  isolation: isolate;
  background: var(--cream);
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 62% 78% at 50% 46%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 78% at 50% 46%, #000 25%, transparent 100%);
}

.title {
  font-size: clamp(28px, 7.5vw, 36px);
}
.title--small {
  font-size: clamp(22px, 6vw, 28px);
}

.subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.screen--landing .subtitle {
  margin-bottom: 20px;
}

.contact-intro {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  background: rgba(119, 155, 115, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 22px;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
}
.field input {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 2px solid var(--ink-faint);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}
.field input:focus {
  border-color: var(--sage);
}
.field input::placeholder {
  color: rgba(34, 12, 16, 0.35);
}
.field__hint {
  font-size: 13px;
  color: var(--ink-soft);
}

/* Buttons */
.btn {
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  padding: 18px 24px;
  min-height: 58px;
  width: 100%;
  transition: transform 0.12s ease, opacity 0.2s ease, background 0.2s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: var(--sage);
  color: var(--cream);
}
.btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn--primary:not(:disabled):hover {
  background: var(--sage-dark);
}

.microcopy {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 12px;
}

/* Question screens */
.q-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 10px;
}

.question {
  font-size: clamp(22px, 6.5vw, 28px);
  margin-bottom: 26px;
}

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

.option {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 2px solid var(--ink-faint);
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  min-height: 58px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.option:active {
  transform: scale(0.98);
}
.option:hover {
  border-color: var(--sage);
}
.option.selected {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--cream);
}

/* Archetype result screen */
.title--archetype {
  font-size: clamp(26px, 7.2vw, 34px);
}
.archetype-tagline {
  font-weight: 700;
  font-size: 16px;
  color: var(--sage-dark);
  margin-bottom: 18px;
}
.archetype-body p {
  margin-bottom: 14px;
}
.archetype-body {
  margin-bottom: 18px;
}
.archetype-memorable {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(19px, 5vw, 23px);
  line-height: 1.3;
  color: var(--sage-dark);
  margin-bottom: 20px;
}
#archetypePriority {
  margin-bottom: 26px;
}
.result-footer {
  border-top: 2px solid var(--ink-faint);
  padding-top: 20px;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid var(--ink-faint);
  border-top-color: var(--sage);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 22px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Small screens */
@media (max-width: 360px) {
  .screen { padding-left: 18px; padding-right: 18px; }
  .option { padding: 16px 16px; }
}
