/*
 * Autopilot-spezifische Kompatibilitäts- und Inhaltsstile.
 * Die gemeinsamen Framework-Layer werden in index.html danach geladen und
 * sind für Tokens, Theme, Test Controls und Result Components maßgeblich.
 */

:root {
  --bg-top: #c2d1bf;
  --bg-mid: #b9cbb6;
  --bg-bottom: #aebdaa;
  --text: #454c50;
  --muted: #5c6569;
  --headline: #353d41;
  --nav: #596e75;
  --mauve: #a26d7a;
  --mauve-dark: #875763;
  --paper: #f5f6f0;
  --card: rgba(245, 246, 240, 0.62);
  --card-strong: rgba(250, 250, 246, 0.82);
  --line: rgba(89, 110, 117, 0.28);
  --line-strong: rgba(89, 110, 117, 0.48);
  --focus: #70434e;
  --shadow: 0 18px 52px rgba(45, 55, 58, 0.1);
  --shadow-soft: 0 8px 28px rgba(45, 55, 58, 0.065);
  --radius-lg: 9px;
  --radius-md: 5px;
  --content: 960px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 11% 2%, rgba(255, 255, 255, 0.38), transparent 28rem),
    radial-gradient(circle at 88% 44%, rgba(245, 246, 240, 0.16), transparent 32rem),
    linear-gradient(155deg, var(--bg-top), var(--bg-mid) 48%, var(--bg-bottom));
  background-attachment: fixed;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.68;
}

button,
input {
  font: inherit;
}

a:not(.button):not(.brand):not(.skip-link) {
  color: var(--headline);
  text-decoration-color: rgba(135, 87, 99, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

a:not(.button):not(.brand):not(.skip-link):visited {
  color: var(--headline);
}

a:not(.button):not(.brand):not(.skip-link):hover {
  color: var(--mauve-dark);
  text-decoration-color: var(--mauve-dark);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

#question-title:focus-visible {
  margin-left: -0.65rem;
  padding-left: 0.65rem;
  outline: 0;
  box-shadow: -3px 0 0 rgba(162, 109, 122, 0.8);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: var(--paper);
  color: var(--headline);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  width: min(100% - 3rem, 1180px);
  min-height: 104px;
  margin: 0 auto;
  align-items: center;
  justify-content: flex-start;
  padding: 1.65rem 0 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(220px, 24vw, 278px);
  height: auto;
}

.app-shell {
  width: min(100% - 2rem, var(--content));
  margin: 0 auto;
  padding: clamp(1.8rem, 5vw, 4.4rem) 0 5.5rem;
}

.view {
  animation: view-in 360ms ease both;
}

.intro-view {
  position: relative;
  isolation: isolate;
  overflow: clip;
  max-width: 920px;
  margin: 0;
  text-align: left;
}

.intro-view::before {
  position: absolute;
  z-index: -1;
  top: 1rem;
  right: -22rem;
  width: 34rem;
  height: 34rem;
  border: 1.5px solid rgba(162, 109, 122, 0.5);
  border-radius: 50%;
  content: "";
}

.intro-view::after {
  position: absolute;
  z-index: -1;
  top: 18rem;
  right: -11rem;
  width: 26rem;
  height: 1rem;
  background:
    radial-gradient(circle at 40% 50%, rgba(162, 109, 122, 0.9) 0 0.42rem, transparent 0.46rem),
    linear-gradient(rgba(162, 109, 122, 0.58), rgba(162, 109, 122, 0.58)) center / 100% 1px no-repeat;
  content: "";
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--nav);
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  max-width: 100%;
  margin: 0 0 0.85rem;
  color: var(--mauve-dark);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.45;
  text-transform: uppercase;
  text-wrap: balance;
}

h1,
h2,
h3 {
  color: var(--headline);
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  margin: 0 0 0.7rem;
  font-size: clamp(3rem, 7.5vw, 5.9rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.08;
}

h3 {
  margin: 2.1rem 0 0.75rem;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 400;
}

p {
  margin: 0 0 1rem;
}

.lead {
  max-width: 690px;
  margin: 0 0 2.5rem;
  color: var(--nav);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.42;
}

.intro-copy {
  max-width: 670px;
  margin: 0 0 2.15rem;
  padding: 1.55rem 0 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.prompt-line {
  color: var(--headline);
  font-size: 1.13rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-width: 0;
  min-height: 50px;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 3px;
  padding: 0.82rem 1.6rem;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.button:hover:not(:disabled) {
  text-decoration: none;
}

.button:active:not(:disabled) {
  text-decoration: none;
}

.button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.button > span[aria-hidden="true"] {
  display: inline-block;
  flex: 0 0 auto;
  line-height: 1;
}

.button-primary {
  background: var(--mauve);
  color: #fff;
  box-shadow: 0 4px 12px rgba(92, 67, 74, 0.14);
}

.button-primary:hover:not(:disabled) {
  background: var(--mauve-dark);
  color: #fff;
  box-shadow: 0 5px 14px rgba(92, 67, 74, 0.16);
}

.button-primary:disabled {
  cursor: not-allowed;
  background: rgba(89, 110, 117, 0.34);
  color: rgba(255, 255, 255, 0.84);
  box-shadow: none;
}

.button-secondary {
  min-height: auto;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding-inline: 0.15rem;
  background: transparent;
  color: var(--nav);
  box-shadow: none;
}

.button-secondary:hover:not(:disabled) {
  border-bottom-color: var(--mauve-dark);
  color: var(--mauve-dark);
}

a.button,
a.button:hover,
a.button:focus,
a.button:visited,
a.button:active {
  text-decoration: none;
}

a.button-primary,
a.button-primary:hover,
a.button-primary:focus,
a.button-primary:visited,
a.button-primary:active {
  color: #fff;
}

a.button-secondary,
a.button-secondary:hover,
a.button-secondary:focus,
a.button-secondary:visited,
a.button-secondary:active {
  color: var(--nav);
}

.duration {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.92rem;
}

.test-transparency {
  max-width: 630px;
  margin: 1.65rem 0 0;
  color: rgba(53, 61, 65, 0.76);
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.62;
}

.test-transparency p {
  margin-bottom: 0.72rem;
}

.test-privacy-link,
.test-privacy-link:visited {
  display: inline-block;
  border-bottom: 1px solid transparent;
  color: rgba(53, 61, 65, 0.84);
  font-weight: 700;
  text-decoration: none;
}

.test-privacy-link:hover {
  border-bottom-color: rgba(135, 87, 99, 0.62);
  color: var(--mauve-dark);
  text-decoration: none;
}

.test-privacy-link span {
  display: inline-block;
  transition: transform 150ms ease;
}

.test-privacy-link:hover span {
  transform: translateX(2px);
}

.progress-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
}

.quiz-brand {
  display: block;
  width: clamp(188px, 23vw, 236px);
}

.quiz-brand img {
  display: block;
  width: 100%;
  height: auto;
}

#question-count {
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

#progress-percent {
  display: none;
}

.progress-track {
  height: 3px;
  overflow: hidden;
  margin: 0 0 clamp(2.3rem, 6vw, 4.5rem);
  border-radius: 99px;
  background: rgba(89, 110, 117, 0.18);
}

.progress-fill {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: var(--mauve);
  transition: width 260ms ease;
}

.question-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz-view {
  max-width: 820px;
  margin: 0 auto;
}

.quiz-view h2 {
  max-width: 760px;
}

.scenario {
  max-width: 720px;
  margin: 0 0 1.75rem;
  color: rgba(53, 61, 65, 0.92);
  font-size: clamp(1.06rem, 2.2vw, 1.2rem);
}

.scenario p:last-child {
  margin-bottom: 0;
}

.question-prompt {
  margin: 0 0 1.15rem;
  color: var(--headline);
  font-size: 1.08rem;
  font-style: italic;
}

.answer-list {
  display: grid;
  gap: 0.65rem;
}


.answer-hint {
  min-height: 1.55rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.88rem;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.55rem;
}

.result-kicker {
  margin: 0 0 0.35rem;
  color: var(--nav);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-name {
  margin-bottom: 0.65rem;
  font-size: clamp(2.5rem, 8vw, 5.1rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-transform: uppercase;
}

.result-hook {
  max-width: 690px;
  margin: 0;
  color: var(--nav);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 400;
  line-height: 1.45;
}

.secondary-result {
  margin-top: 1.7rem;
  padding-top: 1.45rem;
  border-top: 1px solid var(--line);
}

.secondary-result .result-kicker {
  margin-bottom: 0.3rem;
}

.secondary-name {
  margin: 0;
  color: var(--headline);
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.secondary-hook {
  max-width: 38rem;
  margin: 0.55rem 0 0;
  color: var(--nav);
  font-size: 1.05rem;
}

.score-grid {
  margin: 1.6rem 0 0;
}

.score-row {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(7rem, 2fr) 2rem;
  gap: 0.75rem;
  align-items: center;
  margin: 0.6rem 0;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.score-track {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(89, 110, 117, 0.15);
}

.score-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--nav);
}

.grounded-summary {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.grounded-summary strong {
  color: var(--headline);
  font-size: 1.08rem;
}

.no-match-summary {
  margin-top: 0.9rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.55;
}

.result-caution {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid rgba(162, 109, 122, 0.72);
  background: rgba(250, 250, 246, 0.35);
  color: var(--headline);
}

.pattern-framing {
  max-width: 42rem;
  margin: 0 0 clamp(2.8rem, 7vw, 4.8rem);
  padding: 1.2rem 0 1.2rem 1.25rem;
  border-left: 2px solid var(--mauve);
  color: var(--nav);
  font-size: clamp(1.08rem, 2.4vw, 1.25rem);
  line-height: 1.6;
}

.pattern-context {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.pattern-context h2,
.mixed-profile-chapter > h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.mixed-profile-chapter {
  margin-top: 4rem;
}

.mixed-profile-chapter + .mixed-profile-chapter {
  padding-top: 4rem;
  border-top: 1px solid var(--line);
}

.profile-copy {
  max-width: 42rem;
}

.profile-copy > p:first-child {
  color: var(--headline);
  font-size: clamp(1.15rem, 2.6vw, 1.32rem);
  line-height: 1.68;
}

.profile-short-hook {
  max-width: 38rem;
  margin: 0 0 1.8rem;
  color: var(--nav);
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  line-height: 1.45;
}

.profile-essentials {
  display: grid;
  max-width: 42rem;
  gap: 0;
  border-top: 1px solid var(--line);
}

.profile-essentials section {
  padding: 1.35rem 0 1.3rem;
  border-bottom: 1px solid var(--line);
}

.profile-essentials h3 {
  margin: 0 0 0.45rem;
  color: var(--nav);
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.profile-essentials p {
  margin: 0;
}

.profile-core-sentence {
  max-width: 42rem;
  margin: 1.8rem 0 0;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--mauve);
  background: rgba(250, 250, 246, 0.28);
  color: var(--headline);
  font-family: var(--sans);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  letter-spacing: 0.035em;
  line-height: 1.55;
}

.result-details-content {
  padding: 0.6rem 0 2.2rem;
}

.result-details-content > p:first-child {
  color: var(--headline);
  font-size: clamp(1.08rem, 2.4vw, 1.22rem);
  line-height: 1.68;
}

.result-details-content .profile-section {
  margin-top: clamp(2.2rem, 6vw, 3.6rem);
}

.profile-section {
  margin-top: clamp(2.6rem, 7vw, 4.4rem);
}

.profile-section h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
}

.profile-section p {
  margin-bottom: 1.2rem;
}

.model-section {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(2rem, 7vw, 4.75rem);
  border-color: rgba(162, 109, 122, 0.25);
  background: rgba(194, 209, 191, 0.34);
}

.model-section::after {
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(162, 109, 122, 0.25);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.practice-section {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 4.5rem);
  border-top: 3px solid rgba(162, 109, 122, 0.68);
  background: rgba(250, 250, 246, 0.46);
}

.model-section ul {
  margin: 1rem 0;
  padding-left: 1.3rem;
}

.model-section li {
  margin-bottom: 0.45rem;
}

.model-abilities {
  max-width: 42rem;
  padding-left: 1.25rem;
}

.model-formula {
  max-width: 42rem;
  margin: clamp(2rem, 5vw, 3rem) 0 1.6rem;
  padding: 1.25rem 1.35rem;
  border-top: 1px solid rgba(162, 109, 122, 0.55);
  border-bottom: 1px solid rgba(162, 109, 122, 0.55);
  color: var(--headline);
  font-family: var(--sans);
  letter-spacing: 0.045em;
  line-height: 1.55;
}

.model-guiding-question {
  margin: 2rem 0 0;
  color: var(--mauve-dark);
  font-family: var(--sans);
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: 0.12em;
}

.model-details {
  margin-top: clamp(2rem, 5vw, 3rem);
}

.model-details .choice-highlight {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.profile-quote,
.difference {
  margin: 1.3rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--mauve);
  background: rgba(255, 255, 255, 0.2);
}

.difference p:last-child,
.profile-quote p:last-child {
  margin-bottom: 0;
}

.model-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-weight: 700;
}

.choice-highlight {
  position: relative;
  max-width: 44rem;
  margin: clamp(3rem, 8vw, 5.5rem) 0 0;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border-top: 1px solid rgba(162, 109, 122, 0.55);
  border-bottom: 1px solid rgba(162, 109, 122, 0.55);
  background: rgba(250, 250, 246, 0.22);
}

.choice-highlight p {
  margin-bottom: 0.7rem;
}

.choice-highlight p:last-child {
  margin: 1.2rem 0 0;
  color: var(--mauve-dark);
  font-family: var(--sans);
  font-size: clamp(1.35rem, 4vw, 2.15rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.practice-script {
  max-width: 42rem;
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
  padding: clamp(2rem, 6vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.practice-script p {
  max-width: 40rem;
  margin-bottom: 1.4rem;
  line-height: 1.78;
}

.practice-script .pause {
  margin: 1.8rem 0;
  color: var(--nav);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.newsletter-form {
  position: relative;
  max-width: 700px;
  margin-top: 2rem;
}

.newsletter-field {
  display: grid;
  gap: 0.45rem;
}

.newsletter-field label {
  color: var(--headline);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.newsletter-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 0.78rem 0.9rem;
  background: rgba(250, 250, 246, 0.72);
  color: var(--headline);
  font-family: var(--sans);
  font-size: 1rem;
}

.newsletter-field input::placeholder {
  color: rgba(69, 76, 80, 0.62);
}

.newsletter-field input:focus {
  border-color: var(--mauve-dark);
  outline: 3px solid rgba(112, 67, 78, 0.2);
  outline-offset: 1px;
}

.newsletter-consent {
  display: grid;
  max-width: 680px;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.7rem;
  align-items: start;
  margin-top: 1.15rem;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.87rem;
  line-height: 1.55;
}

.newsletter-consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--mauve-dark);
}

.newsletter-privacy-link,
.newsletter-meta,
.newsletter-status {
  font-family: var(--sans);
  font-size: 0.83rem;
}

.newsletter-privacy-link {
  margin: 0.5rem 0 1.3rem;
}

.newsletter-submit {
  text-transform: none;
}

.newsletter-meta {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.newsletter-status {
  min-height: 1.5em;
  margin: 0.8rem 0 0;
  color: var(--mauve-dark);
  font-weight: 700;
}

.newsletter-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter-confirmation {
  max-width: 700px;
  margin-top: 2rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.newsletter-confirmation h3 {
  margin-bottom: 0.55rem;
}

.newsletter-confirmation p {
  margin-bottom: 0;
}

.result-subtitle,
.result-quantitative {
  max-width: 690px;
  color: var(--nav);
  font-size: clamp(1.12rem, 2.8vw, 1.35rem);
  line-height: 1.55;
}

.result-quantitative {
  margin-top: 1.5rem;
  color: var(--headline);
  font-weight: 700;
}

.result-narrow-note,
.method-boundary,
.quality-note,
.secondary-tie-note {
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--mauve);
  background: rgba(250, 250, 246, 0.42);
}

.result-section,
.principle-card,
.quality-note,
.secondary-tie-note {
  padding: clamp(1.35rem, 4.5vw, 2.4rem);
  border: 1px solid rgba(89, 110, 117, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(245, 246, 240, 0.32);
  box-shadow: var(--shadow-soft);
}

.result-section > h2,
.principle-card > h2,
.quality-note > h2,
.secondary-tie-note > h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.8rem, 4.8vw, 2.8rem);
  line-height: 1.08;
}

.result-section > .eyebrow,
.principle-card > .eyebrow {
  margin-bottom: 0.6rem;
}

.principle-card {
  border-left: 4px solid var(--mauve);
}

.principle-card h2 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.principle-card p:last-child,
.quality-note p:last-child,
.secondary-tie-note p:last-child {
  margin-bottom: 0;
}

.section-intro {
  max-width: 42rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
}


.profile-card h3,
.grounded-capacity h3,
.secondary-movement h3 {
  margin-top: 1.6rem;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.02em;
}


.profile-highlight,
.profile-direction,
.practice-question,
.reflection-question {
  color: var(--headline);
  font-size: clamp(1.08rem, 2.7vw, 1.28rem);
  font-weight: 700;
  line-height: 1.5;
}

.equal-profile-grid,
.function-card-grid,
.capacity-terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.equal-profile-card,
.function-card,
.capacity-terms > div {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(250, 250, 246, 0.62);
}

.equal-profile-card h3,
.function-card h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
}

.equal-profile-card strong {
  color: var(--nav);
  font-family: var(--sans);
}

.tie-interpretation {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.grounded-capacity {
  border-color: rgba(89, 110, 117, 0.34);
  background: linear-gradient(135deg, rgba(227, 232, 218, 0.58), rgba(245, 246, 240, 0.3));
}

.capacity-terms {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.capacity-terms dt {
  margin-bottom: 0.45rem;
  color: var(--headline);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capacity-terms dd {
  margin: 0;
  line-height: 1.55;
}

.short-practice {
  border-left: 4px solid var(--mauve);
}

.short-practice ol {
  margin: 1.2rem 0 1.4rem;
  padding-left: 1.45rem;
}

.short-practice li {
  margin: 0.65rem 0;
  padding-left: 0.35rem;
}

.depth-section > .profile-depth {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.depth-section > .profile-depth > .eyebrow,
.depth-section > .profile-depth > h2 {
  display: none;
}

.depth-section .result-details,
.long-practice-details {
  margin-top: 0.8rem;
}

.long-practice-details .practice-script {
  max-width: 46rem;
}

.long-practice-details .practice-script p {
  max-width: 42rem;
}

.confirmation-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
}

.confirmation-page .site-header {
  width: min(100% - 3rem, 820px);
  min-height: 96px;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.2rem) 0 1rem;
}

.confirmation-page .brand-logo {
  width: clamp(210px, 23vw, 258px);
}

.confirmation-shell {
  display: flex;
  width: min(100% - 2rem, 820px);
  margin: 0 auto;
  align-items: center;
  padding: clamp(1.5rem, 4.5vw, 3.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.confirmation-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 6vw, 4.75rem);
  border: 1px solid rgba(89, 110, 117, 0.22);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(250, 250, 246, 0.76), rgba(245, 246, 240, 0.5));
  box-shadow: var(--shadow-soft);
}

.confirmation-card::before {
  position: absolute;
  z-index: -1;
  top: -12rem;
  right: -13rem;
  width: 23rem;
  height: 23rem;
  border: 1px solid rgba(162, 109, 122, 0.26);
  border-radius: 50%;
  content: "";
}

.confirmation-card .eyebrow {
  margin-bottom: clamp(0.9rem, 2vw, 1.2rem);
}

.confirmation-card h1 {
  max-width: 680px;
  margin-bottom: clamp(1.6rem, 3.5vw, 2.2rem);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 0.96;
}

.confirmation-card > p:not(.eyebrow) {
  max-width: 610px;
  margin: 0;
}

.confirmation-card > p:not(.eyebrow) + p {
  margin-top: 0.9rem;
}

.confirmation-card > p:nth-of-type(2) {
  color: var(--headline);
  font-size: clamp(1.12rem, 2vw, 1.24rem);
  line-height: 1.58;
}

.confirmation-card .confirmation-note {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.55;
}

.confirmation-card .button {
  margin-top: clamp(1.8rem, 4vw, 2.4rem);
  text-transform: none;
}

.confirmation-page .site-footer {
  width: min(100% - 2rem, 780px);
  margin: 0 auto;
  padding: 1.45rem 0 2.25rem;
  border-top: 1px solid rgba(89, 110, 117, 0.24);
}

.confirmation-page .site-footer p:first-child {
  color: rgba(53, 61, 65, 0.78);
}

.privacy-note {
  margin-top: 2.5rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.86rem;
}

.site-footer {
  padding: 1.4rem 1rem 2.5rem;
  color: rgba(53, 61, 65, 0.72);
  font-family: var(--sans);
  font-size: 0.8rem;
  text-align: center;
}

.site-footer p {
  margin-bottom: 0.15rem;
}

.site-footer p:first-child {
  letter-spacing: 0.035em;
}

.footer-links > span {
  padding-inline: 0.18rem;
}

.site-footer a,
.site-footer a:visited {
  display: inline-block;
  min-height: 44px;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid transparent;
  color: rgba(53, 61, 65, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  border-bottom-color: rgba(135, 87, 99, 0.58);
  color: var(--mauve-dark);
  text-decoration: none;
}

.legal-shell {
  width: min(100% - 2rem, 820px);
  margin: 0 auto;
  padding: clamp(2.2rem, 6vw, 5rem) 0 clamp(5rem, 9vw, 8rem);
}

.legal-hero {
  max-width: 760px;
  padding-bottom: clamp(2.7rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line-strong);
}

.legal-hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 5.25rem);
}

.legal-hero .lead {
  max-width: 650px;
  margin-bottom: 1.7rem;
}

.legal-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
}

.legal-jump-nav a,
.legal-jump-nav a:visited {
  padding-block: 0.45rem;
  color: var(--nav);
  text-decoration: none;
}

.legal-jump-nav a:hover {
  color: var(--mauve-dark);
  text-decoration: none;
}

.legal-section {
  scroll-margin-top: 2rem;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 0;
}

.legal-section + .legal-section {
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--line-strong);
}

.legal-section > h2 {
  max-width: 720px;
  margin-bottom: clamp(2.4rem, 6vw, 4rem);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
}

.legal-copy {
  max-width: 700px;
}

.legal-copy h3 {
  margin-top: 2.65rem;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
}

.legal-copy h3:first-child {
  margin-top: 0;
}

.legal-copy p,
.legal-copy ul {
  margin-bottom: 1rem;
}

.legal-copy ul {
  padding-left: 1.2rem;
}

.legal-copy li {
  margin-bottom: 0.28rem;
  padding-left: 0.2rem;
}

.legal-contact-lines {
  font-style: normal;
}

.legal-contact-lines span {
  display: block;
}

.legal-page .site-footer {
  border-top: 1px solid rgba(89, 110, 117, 0.18);
}

.noscript-note {
  position: fixed;
  bottom: 0;
  width: 100%;
  margin: 0;
  padding: 1rem;
  background: #fff4d6;
  color: #322b1d;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

body:has(#quiz-view:not([hidden])) .site-header {
  display: none;
}

body:has(#quiz-view:not([hidden])) .app-shell {
  padding-top: clamp(1.5rem, 5vw, 3.6rem);
}

body:has(#result-view:not([hidden])) .site-header {
  min-height: 116px;
}

body:has(#result-view:not([hidden])) .brand-logo {
  width: clamp(238px, 26vw, 300px);
}

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

@media (max-width: 560px) {
  body {
    font-size: 1rem;
    background:
      radial-gradient(circle at 12% 1%, rgba(255, 255, 255, 0.38), transparent 20rem),
      linear-gradient(155deg, var(--bg-top), var(--bg-mid) 52%, var(--bg-bottom));
  }

  .site-header {
    width: min(100% - 1.5rem, 1180px);
    min-height: 76px;
    padding-block: 1.15rem 0.65rem;
  }

  .brand-logo {
    width: 208px;
  }

  .confirmation-page .site-header {
    width: min(100% - 1.5rem, 820px);
    min-height: 78px;
    padding: 1.15rem 0 0.65rem;
  }

  .confirmation-page .brand-logo {
    width: 196px;
  }

  .confirmation-shell {
    width: min(100% - 1.25rem, 820px);
    padding: 1.25rem 0 3.25rem;
  }

  .confirmation-card {
    padding: 2rem 1.25rem 2.25rem;
  }

  .confirmation-card::before {
    top: -9rem;
    right: -11rem;
    width: 18rem;
    height: 18rem;
  }

  .confirmation-card h1 {
    margin-bottom: 1.45rem;
    font-size: clamp(2.55rem, 13vw, 3.45rem);
  }

  .confirmation-card .confirmation-note {
    margin-top: 1.3rem;
    padding-top: 1.05rem;
  }

  .confirmation-page .site-footer {
    width: min(100% - 1.5rem, 780px);
    padding: 1.25rem 0 1.8rem;
  }

  .app-shell {
    width: min(100% - 1.25rem, var(--content));
    padding-top: 2rem;
    padding-bottom: 4rem;
  }

  .intro-view::before {
    top: 3rem;
    right: -14.5rem;
    width: 21rem;
    height: 21rem;
  }

  .intro-view::after {
    top: 13rem;
    right: -9rem;
    width: 15rem;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .lead {
    margin-bottom: 2rem;
  }

  .hero-kicker {
    margin-bottom: 0.7rem;
    letter-spacing: 0.15em;
  }

  .intro-copy {
    padding: 1.25rem 0 1rem;
  }

  .test-transparency {
    margin-top: 1.4rem;
  }

  .legal-shell {
    width: min(100% - 1.5rem, 820px);
    padding-top: 2.5rem;
  }

  .legal-hero {
    padding-bottom: 2.7rem;
  }

  .legal-section {
    padding-top: 3.5rem;
  }

  .legal-section + .legal-section {
    margin-top: 3.5rem;
  }

  .progress-meta {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .quiz-brand {
    width: 194px;
  }

  #question-count {
    font-size: 0.78rem;
  }

  .progress-track {
    margin-bottom: 2.5rem;
  }

  .result-hero {
    padding: 1.5rem 1.25rem 1.8rem;
  }

  .result-hero::before {
    right: -14rem;
  }

  .protocol-card {
    padding: 2rem 0 0;
  }

  .pattern-framing {
    margin-bottom: 2.8rem;
  }


  .choice-highlight {
    padding-inline: 1rem;
  }

  .protocol-card .button-primary {
    width: 100%;
  }

  .newsletter-submit,
  .confirmation-card .button {
    width: 100%;
  }

  .newsletter-consent {
    font-size: 0.84rem;
  }

  .quiz-actions .button {
    flex: 1;
    padding-inline: 0.85rem;
  }

  .quiz-actions .button-secondary {
    flex: 0 0 auto;
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  .site-header {
    width: min(100% - 2.5rem, 1180px);
  }

  .intro-view::before {
    right: -26rem;
  }

  .intro-view::after {
    right: -15rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button > span[aria-hidden="true"] {
    transition: transform 150ms ease;
  }

  .button:hover:not(:disabled) > span[aria-hidden="true"] {
    transform: translateX(2px);
  }
}

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

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