:root {
  --ink: #11110f;
  --ink-soft: #23231f;
  --paper: #f3f0e8;
  --paper-deep: #e7e1d4;
  --card: #fbfaf6;
  --white: #ffffff;
  --bronze: #b88a46;
  --bronze-bright: #d4ad6b;
  --bronze-soft: #eee2cd;
  --muted: #6d6a62;
  --line: #d8d1c3;
  --danger: #a13c2f;
  --success: #426b50;
  --shadow: 0 24px 70px rgba(25, 23, 18, 0.12);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  color-scheme: light;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
}

.quiz-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 37vw) minmax(0, 1fr);
}

.brand-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(28px, 5vh, 60px);
  padding: clamp(28px, 4.2vw, 72px);
  color: var(--white);
  background:
    linear-gradient(145deg, transparent 0 56%, rgba(184, 138, 70, 0.10) 56% 67%, transparent 67%),
    radial-gradient(circle at 15% 82%, rgba(212, 173, 107, 0.14), transparent 32%),
    var(--ink);
}

.brand-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: clamp(36px, 6vw, 94px);
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.13) 18%, rgba(255, 255, 255, 0.13) 82%, transparent);
}

.brand-panel::after {
  content: "M";
  position: absolute;
  right: -0.07em;
  bottom: -0.18em;
  color: rgba(255, 255, 255, 0.025);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18rem, 38vw, 42rem);
  font-weight: 700;
  line-height: 0.75;
  pointer-events: none;
}

.brand-lockup {
  position: relative;
  z-index: 2;
  width: min(100%, 370px);
  display: block;
}

.brand-lockup img,
.mobile-brand img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-story {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--bronze-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #8a622d;
}

.brand-story h1 {
  max-width: 8.6ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.brand-story > p:last-child {
  max-width: 40ch;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 1rem;
  line-height: 1.72;
}

.trust-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-list span {
  min-height: 100px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
}

.trust-list span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-list i {
  color: var(--bronze-bright);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-footnote {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.quiz-workspace {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(rgba(17, 17, 15, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 15, 0.032) 1px, transparent 1px),
    var(--paper);
  background-size: 54px 54px;
}

.mobile-brand {
  display: none;
}

.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(145px, auto) minmax(160px, 380px) auto;
  align-items: center;
  gap: 28px;
  padding: 26px clamp(28px, 6vw, 94px);
  border-bottom: 1px solid rgba(107, 103, 94, 0.2);
  background: rgba(243, 240, 232, 0.92);
  backdrop-filter: blur(15px);
}

.step-copy {
  display: grid;
  gap: 2px;
}

.step-copy span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 500;
}

.progress {
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: rgba(17, 17, 15, 0.16);
}

.progress span {
  width: 25%;
  height: 100%;
  display: block;
  background: var(--bronze);
  transform-origin: left;
  transition: width 360ms cubic-bezier(.2, .7, .2, 1);
}

.progress-number {
  min-width: 44px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: right;
}

.screens {
  width: 100%;
  align-self: center;
}

.screen {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: clamp(42px, 8vh, 90px) clamp(28px, 6vw, 94px);
  animation: screen-in 420ms cubic-bezier(.2, .75, .2, 1) both;
}

.screen[hidden] {
  display: none;
}

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

.screen-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: clamp(30px, 5vh, 48px);
}

.screen-heading.compact {
  max-width: 790px;
}

.section-mark {
  min-width: 52px;
  margin-top: 5px;
  padding-top: 10px;
  border-top: 2px solid var(--bronze);
  color: #89622e;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.screen-heading h2,
.analysis-card h2,
.result-layout h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5.1vw, 4.65rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.screen-heading.compact h2 {
  font-size: clamp(2.25rem, 4.35vw, 4.1rem);
}

.screen-heading > div > p:last-child {
  max-width: 52ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.goal-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 0;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-md);
  cursor: pointer;
  isolation: isolate;
  text-align: left;
  box-shadow: 0 0 0 0 rgba(184, 138, 70, 0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.goal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgba(9, 9, 8, 0.91) 96%);
}

.goal-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.58) contrast(1.04);
  transform: scale(1.01);
  transition: transform 520ms cubic-bezier(.2, .75, .2, 1), filter 320ms ease;
}

.goal-overlay {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  align-items: end;
  padding: 24px;
}

.goal-index {
  grid-row: 1 / span 2;
  align-self: start;
  color: var(--bronze-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.goal-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1;
}

.goal-detail {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  line-height: 1.42;
}

.goal-card:hover,
.goal-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(18, 16, 12, 0.18), 0 0 0 2px var(--bronze);
}

.goal-card:hover img,
.goal-card:focus-visible img {
  filter: saturate(0.88) contrast(1.04);
  transform: scale(1.065);
}

.goal-card.is-selected {
  box-shadow: 0 0 0 3px var(--bronze);
}

.choice-list {
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.choice-row {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: padding 220ms ease, color 180ms ease, background-color 180ms ease;
}

.choice-radio {
  width: 24px;
  height: 24px;
  border: 1px solid #a8a195;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 6px transparent;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.choice-row > span:nth-child(2) {
  display: grid;
  gap: 5px;
}

.choice-row strong,
.entry-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.22rem, 2.3vw, 1.6rem);
  font-weight: 500;
}

.choice-row small,
.entry-card > span:last-child {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.choice-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.choice-row:hover,
.choice-row:focus-visible {
  padding-inline: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.choice-row:hover .choice-arrow,
.choice-row:focus-visible .choice-arrow,
.choice-row.is-selected .choice-arrow {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
  transform: rotate(45deg);
}

.choice-row.is-selected .choice-radio {
  border-color: var(--bronze);
  background: var(--bronze);
  box-shadow: inset 0 0 0 6px var(--paper);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.entry-card {
  min-height: 210px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: rgba(251, 250, 246, 0.68);
  cursor: pointer;
  text-align: left;
  transition: transform 220ms ease, border-color 180ms ease, color 180ms ease, background-color 180ms ease, box-shadow 220ms ease;
}

.entry-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--bronze);
  font-size: 1.45rem;
}

.entry-card:hover,
.entry-card:focus-visible,
.entry-card.is-selected {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.entry-card:hover .entry-icon,
.entry-card:focus-visible .entry-icon,
.entry-card.is-selected .entry-icon {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--bronze-bright);
}

.entry-card:hover > span:last-child,
.entry-card:focus-visible > span:last-child,
.entry-card.is-selected > span:last-child {
  color: rgba(255, 255, 255, 0.58);
}

.back-link,
.restart-link {
  min-height: 44px;
  margin-top: 30px;
  padding: 7px 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  transition: color 180ms ease;
}

.back-link:hover,
.back-link:focus-visible,
.restart-link:hover,
.restart-link:focus-visible {
  color: var(--ink);
}

.contact-form {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 18px;
}

.field {
  display: grid;
  gap: 10px;
}

.field > span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid #bdb5a7;
  border-radius: var(--radius-sm);
  outline: 0;
  color: var(--ink);
  background: rgba(251, 250, 246, 0.88);
  font-size: 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field input::placeholder {
  color: #918c83;
}

.field input:focus {
  border-color: var(--bronze);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(184, 138, 70, 0.14);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 650;
}

.consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.5;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
}

.consent-error {
  grid-column: 1 / -1;
  margin-top: -20px;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.primary-button {
  min-height: 64px;
  display: inline-grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 9px 10px 9px 24px;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(17, 17, 15, 0.14);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.primary-button i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--ink);
  background: var(--bronze-bright);
  font-size: 1.2rem;
  font-style: normal;
  transition: transform 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #282721;
  box-shadow: 0 17px 34px rgba(17, 17, 15, 0.2);
  transform: translateY(-2px);
}

.primary-button:hover i,
.primary-button:focus-visible i {
  transform: rotate(45deg);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-actions .back-link {
  margin-top: 0;
}

.analysis-card {
  width: min(100%, 690px);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  padding: clamp(32px, 7vw, 68px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(251, 250, 246, 0.8);
  box-shadow: var(--shadow);
  text-align: center;
}

.analysis-card h2 {
  max-width: 10ch;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.analysis-card > p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.analysis-orbit {
  position: relative;
  width: 134px;
  height: 134px;
  display: grid;
  place-items: center;
  margin-bottom: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.analysis-orbit::before,
.analysis-orbit::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(184, 138, 70, 0.6);
  border-radius: 50%;
  animation: rotate 6s linear infinite;
}

.analysis-orbit::after {
  inset: 27px;
  border-style: solid;
  border-color: rgba(17, 17, 15, 0.14);
  animation-direction: reverse;
  animation-duration: 4s;
}

.analysis-brand {
  position: relative;
  z-index: 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 700;
}

.analysis-orbit i {
  position: absolute;
  z-index: 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bronze);
}

.analysis-orbit i:nth-of-type(1) { top: 7px; left: 62px; }
.analysis-orbit i:nth-of-type(2) { right: 13px; bottom: 30px; }
.analysis-orbit i:nth-of-type(3) { left: 13px; bottom: 30px; }

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.analysis-progress {
  width: min(100%, 420px);
  height: 3px;
  margin-top: 28px;
  overflow: hidden;
  background: var(--line);
}

.analysis-progress span {
  width: 0;
  height: 100%;
  display: block;
  background: var(--bronze);
  transition: width 700ms ease;
}

.result-layout {
  max-width: 760px;
}

.result-seal {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  border: 1px solid var(--bronze);
  border-radius: 50%;
  background: var(--bronze-soft);
}

.result-seal span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--success);
  font-size: 1.55rem;
}

.result-layout h2 {
  max-width: 12ch;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
}

.result-copy {
  max-width: 55ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary div {
  min-height: 100px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
}

.summary div + div {
  border-left: 1px solid var(--line);
}

.summary dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary dd {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.3;
}

.result-cta {
  width: fit-content;
}

.restart-link {
  display: block;
  margin-top: 16px;
}

.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(28px, 6vw, 94px);
  border-top: 1px solid rgba(107, 103, 94, 0.2);
  color: #817d74;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: min(380px, calc(100vw - 44px));
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(184, 138, 70, 0.68);
  outline-offset: 4px;
}

@media (max-width: 1180px) {
  .quiz-shell {
    grid-template-columns: minmax(320px, 34vw) minmax(0, 1fr);
  }

  .brand-panel {
    padding: 34px;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }

  .trust-list span {
    min-height: 58px;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 8px;
    padding-block: 11px;
  }

  .trust-list span + span {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .entry-card {
    min-height: 128px;
    grid-template-columns: auto 1fr;
    align-items: center;
    align-content: center;
  }

  .entry-icon {
    grid-row: 1 / span 2;
    margin: 0 8px 0 0;
  }
}

@media (max-width: 860px) {
  .quiz-shell {
    display: block;
  }

  .brand-panel {
    display: none;
  }

  .quiz-workspace {
    min-height: 100svh;
  }

  .mobile-brand {
    min-height: 92px;
    display: flex;
    align-items: center;
    padding: 16px 22px;
    background: var(--ink);
  }

  .mobile-brand img {
    width: min(100%, 315px);
  }

  .workspace-topbar {
    top: 0;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 17px 22px;
  }

  .screen {
    padding: 42px 22px 54px;
  }

  .goal-card {
    min-height: 225px;
  }

  .workspace-footer {
    padding-inline: 22px;
  }
}

@media (max-width: 640px) {
  .mobile-brand {
    min-height: 76px;
  }

  .mobile-brand img {
    width: min(100%, 255px);
  }

  .workspace-topbar {
    grid-template-columns: 1fr auto;
  }

  .step-copy strong {
    font-size: 1rem;
  }

  .progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .progress-number {
    grid-column: 2;
    grid-row: 1;
  }

  .screen-heading {
    gap: 14px;
  }

  .section-mark {
    min-width: 38px;
  }

  .screen-heading h2,
  .screen-heading.compact h2 {
    font-size: clamp(2.05rem, 10vw, 3.25rem);
  }

  .goal-grid {
    grid-template-columns: 1fr;
  }

  .goal-card {
    min-height: 190px;
  }

  .goal-overlay {
    padding: 20px;
  }

  .choice-row {
    min-height: 84px;
    gap: 13px;
  }

  .choice-arrow {
    width: 36px;
    height: 36px;
  }

  .entry-card {
    min-height: 118px;
    padding: 20px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-actions {
    display: grid;
  }

  .primary-button {
    width: 100%;
  }

  .form-actions .back-link {
    justify-self: start;
  }

  .summary {
    grid-template-columns: 1fr;
  }

  .summary div {
    min-height: 74px;
    padding-inline: 8px;
  }

  .summary div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .result-cta {
    width: 100%;
  }

  .workspace-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 380px) {
  .mobile-brand {
    padding-inline: 16px;
  }

  .workspace-topbar,
  .screen,
  .workspace-footer {
    padding-inline: 16px;
  }

  .screen-heading {
    grid-template-columns: 1fr;
  }

  .section-mark {
    width: 42px;
  }

  .choice-radio {
    display: none;
  }

  .choice-row {
    grid-template-columns: 1fr auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Composição central — mantém o quiz como único foco da página. */
.quiz-shell {
  display: block;
}

.quiz-workspace {
  min-height: 100svh;
  grid-template-rows: auto auto 1fr auto;
  background:
    radial-gradient(circle at 50% 16%, rgba(184, 138, 70, 0.11), transparent 28rem),
    var(--paper);
}

.mobile-brand {
  position: relative;
  z-index: 24;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 24px 42px;
  background: var(--ink);
}

.brand-home {
  width: min(100%, 318px);
  display: block;
}

.mobile-brand img {
  width: 100%;
  height: auto;
}

.live-activity {
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: min(92vw, 440px);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(184, 138, 70, 0.3);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(251, 250, 246, 0.98);
  box-shadow: 0 14px 35px rgba(17, 17, 15, 0.12);
  font-size: 0.82rem;
  font-weight: 650;
  text-align: center;
  transform: translateX(-50%);
}

.live-activity strong {
  color: #8a622d;
  font-size: 0.92rem;
}

.live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #4d815d;
  box-shadow: 0 0 0 0 rgba(77, 129, 93, 0.4);
  animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(77, 129, 93, 0.42); }
  70% { box-shadow: 0 0 0 9px rgba(77, 129, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 129, 93, 0); }
}

.workspace-topbar {
  top: 0;
  width: min(calc(100% - 40px), 820px);
  margin: 40px auto 0;
  padding: 16px 20px;
  border: 1px solid rgba(107, 103, 94, 0.18);
  border-radius: 14px;
  background: rgba(251, 250, 246, 0.92);
  box-shadow: 0 12px 28px rgba(17, 17, 15, 0.05);
}

.screens {
  align-self: start;
}

.screen {
  width: min(100%, 860px);
  padding: clamp(42px, 7vh, 72px) 20px 64px;
}

.screen-heading,
.screen-heading.compact {
  max-width: 720px;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  margin-inline: auto;
  text-align: center;
}

.screen-heading .section-mark {
  display: none;
}

.screen-heading h2,
.screen-heading.compact h2 {
  max-width: 14ch;
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  line-height: 1.02;
}

.screen-heading > div > p:last-child {
  margin-inline: auto;
}

.goal-grid,
.choice-list,
.entry-grid,
.contact-form {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.goal-card {
  min-height: 205px;
  border-radius: 16px;
}

.goal-card:hover,
.goal-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(18, 16, 12, 0.14), 0 0 0 2px var(--bronze);
}

.entry-card {
  min-height: 185px;
  box-shadow: none;
}

.back-link {
  display: block;
  margin-inline: auto;
}

.form-actions {
  justify-content: center;
}

.form-actions .back-link {
  margin-inline: 0;
}

.analysis-card,
.result-layout {
  margin-inline: auto;
  text-align: center;
}

.result-layout {
  display: grid;
  justify-items: center;
}

.result-layout h2,
.result-copy {
  margin-inline: auto;
}

.summary {
  width: 100%;
  text-align: left;
}

.workspace-footer {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
  padding-inline: 0;
}

.activity-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  width: min(390px, calc(100vw - 32px));
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid rgba(184, 138, 70, 0.28);
  border-radius: 14px;
  color: var(--white);
  background: rgba(17, 17, 15, 0.96);
  box-shadow: 0 20px 52px rgba(17, 17, 15, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 240ms ease, transform 240ms ease;
}

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

.activity-toast-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--bronze-bright);
  font-size: 1rem;
  font-weight: 900;
}

.activity-toast > span:last-child {
  display: grid;
  gap: 4px;
}

.activity-toast strong {
  font-size: 0.84rem;
}

.activity-toast small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .mobile-brand {
    min-height: 108px;
    padding: 16px 18px 36px;
  }

  .brand-home {
    width: min(100%, 246px);
  }

  .live-activity {
    bottom: -20px;
    width: calc(100% - 32px);
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.74rem;
  }

  .workspace-topbar {
    width: calc(100% - 32px);
    margin-top: 36px;
    padding: 14px 16px;
  }

  .screen {
    padding: 38px 16px 48px;
  }

  .screen-heading,
  .screen-heading.compact {
    margin-bottom: 28px;
  }

  .screen-heading h2,
  .screen-heading.compact h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .goal-card {
    min-height: 178px;
  }

  .entry-card {
    min-height: 112px;
  }

  .workspace-footer {
    width: calc(100% - 32px);
  }

  .activity-toast {
    bottom: 14px;
  }
}

/* Fluxo de uma tela: cada etapa ocupa somente a área útil do aparelho. */
html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.quiz-shell,
.quiz-workspace {
  height: 100svh;
  min-height: 0;
  overflow: hidden;
}

.quiz-workspace {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.mobile-brand {
  min-height: 106px;
  padding-block: 15px 32px;
}

.brand-home {
  width: min(100%, 265px);
}

.live-activity {
  bottom: -19px;
  min-height: 38px;
  padding-block: 7px;
}

.workspace-topbar {
  position: relative;
  top: auto;
  margin-top: 28px;
  padding-block: 12px;
}

.screens {
  min-height: 0;
  align-self: stretch;
  display: grid;
  overflow: hidden;
}

.screen {
  height: 100%;
  min-height: 0;
  display: grid;
  align-content: center;
  overflow: hidden;
  padding-block: clamp(18px, 3.4vh, 36px);
}

.screen[hidden] {
  display: none;
}

.screen-heading,
.screen-heading.compact {
  margin-bottom: clamp(14px, 2.4vh, 24px);
}

.screen-heading .eyebrow {
  margin-bottom: 8px;
}

.screen-heading h2,
.screen-heading.compact h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.25rem);
}

.screen-heading > div > p:last-child {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.goal-grid {
  height: min(40vh, 310px);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.goal-card {
  min-height: 0;
}

.goal-overlay {
  padding: 16px 18px;
}

.goal-detail {
  display: none;
}

.choice-row {
  min-height: 62px;
  padding-block: 9px;
}

.choice-row strong {
  font-size: clamp(1.06rem, 2vw, 1.35rem);
}

.entry-card {
  min-height: 138px;
  padding: 18px;
}

.entry-icon {
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
}

.contact-form {
  gap: 8px 16px;
}

.field {
  gap: 6px;
}

.field input {
  min-height: 54px;
}

.field-error {
  min-height: 15px;
}

.consent-error {
  margin-top: -5px;
}

.form-actions {
  margin-top: 4px;
}

.primary-button {
  min-height: 56px;
}

.primary-button i {
  width: 40px;
  height: 40px;
}

.analysis-card {
  padding: clamp(24px, 4vh, 38px);
}

.analysis-orbit {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.analysis-orbit i:nth-of-type(1) {
  top: 7px;
  left: 45px;
}

.analysis-orbit i:nth-of-type(2) {
  right: 9px;
  bottom: 24px;
}

.analysis-orbit i:nth-of-type(3) {
  left: 9px;
  bottom: 24px;
}

.analysis-card h2,
.result-layout h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

.result-seal {
  width: 70px;
  height: 70px;
  margin-bottom: 16px;
}

.result-seal span {
  width: 42px;
  height: 42px;
}

.result-copy {
  margin-top: 12px;
  line-height: 1.5;
}

.summary {
  margin-block: 18px;
}

.summary div {
  min-height: 74px;
  padding-block: 10px;
}

.workspace-footer {
  display: none;
}

@media (max-width: 640px) {
  .mobile-brand {
    min-height: 88px;
    padding: 10px 16px 28px;
  }

  .brand-home {
    width: min(100%, 210px);
  }

  .live-activity {
    bottom: -17px;
    min-height: 35px;
    padding-block: 6px;
  }

  .workspace-topbar {
    margin-top: 24px;
    padding-block: 9px;
  }

  .screen {
    padding-block: 16px;
  }

  .screen-heading,
  .screen-heading.compact {
    margin-bottom: 14px;
  }

  .screen-heading h2,
  .screen-heading.compact h2 {
    font-size: clamp(1.72rem, 7.8vw, 2.35rem);
  }

  .screen-heading > div > p:last-child {
    margin-top: 6px;
    font-size: 0.82rem;
  }

  .goal-grid {
    height: min(43vh, 300px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .goal-card {
    min-height: 0;
  }

  .goal-overlay {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 12px;
  }

  .goal-index {
    display: none;
  }

  .goal-name {
    font-size: 1.22rem;
  }

  .choice-row {
    min-height: 58px;
    padding: 7px 5px;
  }

  .choice-row small {
    display: none;
  }

  .entry-grid {
    gap: 7px;
  }

  .entry-card {
    min-height: 70px;
    padding: 8px 12px;
  }

  .entry-icon {
    width: 38px;
    height: 38px;
  }

  .entry-card > span:last-child {
    display: none;
  }

  .entry-card strong {
    font-size: 1.05rem;
  }

  .contact-form {
    gap: 2px;
  }

  .field {
    gap: 4px;
  }

  .field > span {
    font-size: 0.68rem;
  }

  .field input {
    min-height: 49px;
  }

  .field-error {
    min-height: 13px;
  }

  .consent {
    gap: 9px;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .consent input {
    width: 18px;
    height: 18px;
  }

  .primary-button {
    min-height: 50px;
  }

  .primary-button i {
    width: 36px;
    height: 36px;
  }

  .form-actions .back-link {
    display: none;
  }

  .result-layout .eyebrow {
    margin-bottom: 8px;
  }

  .result-copy {
    font-size: 0.86rem;
  }

  .summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-block: 12px;
  }

  .summary div {
    min-height: 64px;
    padding: 8px;
  }

  .summary div + div {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .summary dt {
    font-size: 0.56rem;
  }

  .summary dd {
    font-size: 0.78rem;
  }
}

@media (max-height: 720px) {
  .mobile-brand {
    min-height: 76px;
    padding-block: 7px 24px;
  }

  .brand-home {
    width: min(100%, 188px);
  }

  .live-activity {
    min-height: 32px;
    bottom: -15px;
    font-size: 0.68rem;
  }

  .live-activity strong {
    font-size: 0.76rem;
  }

  .workspace-topbar {
    margin-top: 20px;
    padding-block: 7px;
  }

  .step-copy strong {
    font-size: 0.88rem;
  }

  .step-copy span,
  .progress-number {
    font-size: 0.64rem;
  }

  .screen {
    padding-block: 10px;
  }

  .screen-heading,
  .screen-heading.compact {
    margin-bottom: 10px;
  }

  .screen-heading .eyebrow {
    display: none;
  }

  .screen-heading h2,
  .screen-heading.compact h2 {
    font-size: clamp(1.55rem, 6.6vw, 2.15rem);
  }

  .screen-heading > div > p:last-child {
    margin-top: 4px;
    font-size: 0.76rem;
  }

  .goal-grid {
    height: min(42vh, 260px);
  }

  .goal-name {
    font-size: 1.1rem;
  }

  .activity-toast {
    min-height: 58px;
    padding-block: 8px;
  }
}

/* Em telas excepcionalmente baixas, preserva acesso ao conteúdo em vez de cortá-lo. */
@media (max-height: 560px) {
  html,
  body {
    height: auto;
    overflow: auto;
    overscroll-behavior: auto;
  }

  .quiz-shell,
  .quiz-workspace {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .screens,
  .screen {
    height: auto;
    overflow: visible;
  }
}
