/* ══════════════════════════════════════════════════════════════════
   FITRAHOUSE — Assessment Page Stylesheet  v2
══════════════════════════════════════════════════════════════════ */

.body--assess {
  background: var(--c-stone);
  min-height: 100svh;
}

/* ─── Copper progress bar — fixed top ───────────────────────── */
.a-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  background: rgba(34, 28, 20, 0.08);
}
.a-progress__fill {
  height: 100%;
  background: var(--c-copper);
  width: 0%;
  /* Smooth continuous motion — no steps */
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Back nav ────────────────────────────────────────────────── */
.a-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.6rem 2.2rem;
  pointer-events: none;
}
.a-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-bark-pale);
  pointer-events: all;
  transition: color 0.4s var(--ease-out);
  text-decoration: none;
}
.a-nav__back svg {
  width: 14px; height: 14px;
  transition: transform 0.4s var(--ease-out);
}
.a-nav__back:hover { color: var(--c-bark); }
.a-nav__back:hover svg { transform: translateX(-3px); }

/* ─── Main wrapper ────────────────────────────────────────────── */
.a-main {
  position: relative;
  min-height: 100svh;
}

/* ─── Screen system ───────────────────────────────────────────── */
/* Screens stack; only .is-active is shown */
.a-screen {
  position: absolute;
  inset: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  /* Slow dissolve — breathing quality */
  transition: opacity 0.95s cubic-bezier(0.4, 0, 0.2, 1);
}
.a-screen.is-active {
  opacity: 1;
  pointer-events: all;
  position: relative;    /* allow document flow when active */
}

/* Shared padding container */
.a-screen__pad {
  width: 100%;
  max-width: 520px;
  padding: 6.5rem 2.5rem 5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
/* Wider variant for the expanded intro */
.a-screen__pad--wide {
  max-width: 700px;
  padding: 6.5rem 3rem 5rem;
}

/* ─── INTRO SCREEN ────────────────────────────────────────────── */
.a-intro__mark {
  width: 52px; height: 52px;
  color: var(--c-copper);
  margin-bottom: 2.8rem;
  opacity: 0.85;
}

.a-intro__title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-bark);
  margin-bottom: 1.6rem;
  width: 100%;
}

.a-intro__desc {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--c-bark-mid);
  width: 100%;
  margin-bottom: 2.4rem;
}

.a-intro__cta { margin-bottom: 1.4rem; }

.a-intro__note {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(34, 28, 20, 0.3);
  text-align: center;
  line-height: 1.8;
}

/* ─── Intro context sections ──────────────────────────────────── */
.a-intro__context {
  width: 100%;
  text-align: left;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.a-intro__block {
  padding: 2.2rem 0;
}

.a-intro__block-title {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--c-bark);
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.a-intro__block-body {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 0.94rem;
  color: var(--c-bark-mid);
  line-height: 1.9;
}

.a-intro__block-body em {
  font-style: italic;
  color: var(--c-bark);
}

.a-intro__divider {
  height: 1px;
  background: rgba(34, 28, 20, 0.1);
  width: 100%;
}

/* Four types grid */
.a-intro__types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2.2rem 0 0;
}

.a-intro__type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.a-intro__type-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
  opacity: 0.85;
}

.a-intro__type-name {
  font-family: var(--f-serif);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-bark);
  letter-spacing: 0.02em;
}

.a-intro__type-el {
  font-family: var(--f-sans);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-bark-pale);
}

/* ─── QUESTIONS SCREEN ────────────────────────────────────────── */
.a-screen--questions {
  padding: 0;
  align-items: flex-start;
}
.a-screen--questions.is-active {
  position: relative;
  min-height: 100svh;
}

.a-questions {
  position: relative;
  width: 100%;
  min-height: 100svh;
}

/* Individual question card */
.q-card {
  position: absolute;
  inset: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2.5rem 4rem;
  opacity: 0;
  pointer-events: none;
  /* Slow crossfade — deliberate dissolve, not a slide */
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.q-card.is-active {
  opacity: 1;
  pointer-events: all;
  position: relative;
}

.q-card__inner {
  max-width: 580px;
  width: 100%;
}

.q-num {
  font-family: var(--f-sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-copper);
  margin-bottom: 1.6rem;
  opacity: 0.75;
}

.q-text {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--c-bark);
  margin-bottom: 3rem;
}

/* Radio-style answer options */
.q-options {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.q-option {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(34, 28, 20, 0.1);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  text-align: left;
  width: 100%;
  transition: opacity 0.35s var(--ease-out);
}
.q-option:first-child { border-top: 1px solid rgba(34, 28, 20, 0.1); }

/* Radio dot */
.q-option__dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(34, 28, 20, 0.3);
  border-radius: 50%;
  margin-top: 3px;
  position: relative;
  transition:
    border-color 0.4s var(--ease-out),
    background   0.4s var(--ease-out);
}
.q-option__dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--c-copper);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.q-option__text {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: clamp(0.88rem, 1.4vw, 0.96rem);
  color: var(--c-bark-mid);
  line-height: 1.6;
  letter-spacing: 0.01em;
  transition: color 0.35s var(--ease-out);
}

/* Hover */
.q-option:hover .q-option__dot {
  border-color: var(--c-copper);
}
.q-option:hover .q-option__text {
  color: var(--c-bark);
}

/* Selected */
.q-option.is-selected .q-option__dot {
  border-color: var(--c-copper);
}
.q-option.is-selected .q-option__dot::after {
  opacity: 1;
}
.q-option.is-selected .q-option__text {
  color: var(--c-bark);
}

/* Fade siblings when one is selected */
.q-options.has-selection .q-option:not(.is-selected) {
  opacity: 0.35;
}

/* ─── EMAIL SCREEN ────────────────────────────────────────────── */
.a-email__title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--c-bark);
  margin-bottom: 2.4rem;
  text-align: center;
}

.a-email__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.a-email__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(34, 28, 20, 0.2);
  padding: 0.8rem 0;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--c-bark);
  text-align: center;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.4s;
}
.a-email__input::placeholder { color: rgba(34, 28, 20, 0.28); }
.a-email__input:focus { border-color: var(--c-copper); }

.a-email__note {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(34, 28, 20, 0.3);
  font-style: italic;
}

/* ─── RESULT SCREEN ───────────────────────────────────────────── */
.a-screen--result {
  align-items: flex-start;
}
.a-screen--result.is-active {
  position: relative;
  min-height: 100svh;
}

/* Result hero band */
.r-hero {
  width: 100%;
  min-height: 52svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 4rem 2rem 3.5rem;
  overflow: hidden;
}

.r-hero__parallax {
  position: absolute;
  inset: -20% 0;
  will-change: transform;
}
.r-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.r-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}

.r-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 560px;
}

.r-label {
  font-family: var(--f-sans);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.8rem;
}

.r-type {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
  margin-bottom: 0.5rem;
}

.r-subtitle {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  font-style: italic;
}

/* Result body */
.r-body {
  background: var(--c-stone);
  padding: 3.5rem clamp(2rem, 8vw, 10rem) 5rem;
  display: flex;
  justify-content: center;
}
.r-body__inner {
  max-width: 580px;
  width: 100%;
}

.r-para {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: clamp(0.92rem, 1.5vw, 1rem);
  color: var(--c-bark-mid);
  line-height: 1.95;
  margin-bottom: 1.8rem;
}
.r-para:last-of-type { margin-bottom: 0; }

.r-rule {
  border: none;
  border-top: 1px solid rgba(34,28,20,0.08);
  margin: 2.8rem 0;
}

.r-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.r-restart {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-bark-pale);
  border-bottom: 1px solid rgba(34,28,20,0.2);
  padding-bottom: 2px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  transition: color 0.4s var(--ease-out);
}
.r-restart:hover { color: var(--c-bark); }

/* ─── Responsive ─────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 768px) {
  .a-nav { padding: 1.2rem 1.4rem; }

  /* Intro screen — generous horizontal padding, no overflow */
  .a-screen__pad {
    padding: 5rem 1.8rem 4rem;
    align-items: flex-start;
    text-align: left;
  }
  .a-screen__pad--wide {
    padding: 5rem 1.8rem 4rem;
    max-width: 100%;
  }

  .a-intro__mark {
    width: 40px;
    height: 40px;
    margin-bottom: 2rem;
    align-self: flex-start;
  }

  .a-intro__title {
    font-size: 2rem;
    margin-bottom: 1.4rem;
    text-align: left;
  }

  .a-intro__desc {
    font-size: 0.95rem;
    margin-bottom: 2.4rem;
    text-align: left;
    line-height: 1.85;
  }

  /* Context blocks — more breathing room */
  .a-intro__context {
    margin-bottom: 3rem;
  }

  .a-intro__block {
    padding: 2rem 0;
  }

  .a-intro__block-title {
    font-size: 1rem;
    margin-bottom: 0.9rem;
  }

  .a-intro__block-body {
    font-size: 0.92rem;
    line-height: 1.85;
  }

  /* Types — 2×2 grid on mobile */
  .a-intro__types {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
    padding: 2rem 0 0;
  }

  .a-intro__type {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    gap: 0.8rem;
  }

  .a-intro__type-dot {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .a-intro__type-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .a-intro__type-name { font-size: 0.88rem; }
  .a-intro__type-el   { font-size: 0.65rem; }

  /* CTA full width */
  .a-intro__cta {
    width: 100%;
    text-align: center;
    align-self: stretch;
  }

  .a-intro__note {
    text-align: left;
    font-size: 0.65rem;
  }

  /* Questions */
  .q-card {
    padding: 5rem 1.8rem 3rem;
    align-items: flex-start;
  }

  .q-card__inner { max-width: 100%; }

  .q-text {
    font-size: 1.3rem;
    margin-bottom: 2.2rem;
    line-height: 1.35;
  }

  .q-num { margin-bottom: 1.2rem; }

  .q-option {
    padding: 1.1rem 0;
    gap: 1rem;
    /* Larger tap targets */
    min-height: 52px;
  }

  .q-option__dot {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    flex-shrink: 0;
  }

  .q-option__text {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  /* Email screen */
  .a-screen--email .a-screen__pad {
    text-align: center;
    align-items: center;
  }

  .a-email__title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .a-email__form { gap: 1.4rem; }

  .a-email__input {
    font-size: 1rem;
    padding: 1rem 0;
  }

  /* Submit button full width on mobile */
  .a-email__form .btn-copper {
    width: 100%;
  }

  /* Result */
  .r-hero {
    min-height: 42svh;
    padding: 3rem 1.6rem 2.8rem;
  }

  .r-type { font-size: 2.6rem; }

  .r-body {
    padding: 3rem 1.6rem 4.5rem;
  }

  .r-body__inner { max-width: 100%; }

  .r-para {
    font-size: 0.93rem;
    line-height: 1.9;
    margin-bottom: 1.6rem;
  }

  .r-rule { margin: 2.2rem 0; }

  .r-cta {
    gap: 1.4rem;
    align-items: stretch;
  }

  .r-cta .btn-copper {
    width: 100%;
    padding: 1rem 2rem;
  }
}

/* Small phones (375px and under) */
@media (max-width: 420px) {
  .a-screen__pad,
  .a-screen__pad--wide {
    padding: 4.5rem 1.4rem 3.5rem;
  }

  .a-intro__title { font-size: 1.75rem; }
  .a-intro__desc  { font-size: 0.9rem; }
  .a-intro__block-body { font-size: 0.88rem; }
  .a-intro__block { padding: 1.6rem 0; }

  .q-card { padding: 4.5rem 1.4rem 2.5rem; }
  .q-text { font-size: 1.18rem; }

  .r-hero { min-height: 38svh; }
  .r-type { font-size: 2.1rem; }
  .r-body { padding: 2.4rem 1.4rem 4rem; }
  .r-para { font-size: 0.88rem; }
}
