:root {
  --ink: #292536;
  --ink-soft: #555060;
  --muted: #666070;
  --brand-color: #292536;
  --purple: #773be0;
  --canvas: #f7f7fb;
  --paper: #ffffff;
  --lilac: #eeebf6;
  --line: #dfdce8;
  --terracotta: #914019;
  --gold: #ffd126;
  --blue: #245ce8;
  --green: #266087;
  --plum: #a13376;
  --focus: #97600b;
  --error: #a33a3a;
  --shadow: 0 8px 24px rgba(41, 37, 54, 0.06);
  --shadow-lift: 0 12px 28px rgba(41, 37, 54, 0.1);
  --radius: 20px;
  --max: 1200px;
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

a {
  color: var(--brand-color);
}

h1,
h2,
h3,
h4,
.brand,
.eyebrow,
.nav-link,
.button,
button {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 6vw, 4.45rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 3.5vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.3;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--focus);
  border-radius: 8px;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--paper);
  background: rgba(41, 37, 54, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.brand-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 6px 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.path-mark {
  position: relative;
  display: inline-block;
  width: 31px;
  height: 31px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-right-color: transparent;
  border-radius: 50%;
}

.path-mark::after {
  position: absolute;
  right: -3px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--gold);
  border: 2px solid var(--brand-color);
  border-radius: 50%;
}

.brand-lockup {
  display: grid;
  text-align: left;
}

.brand {
  font-size: 1.12rem;
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.brand-variant {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  min-height: 44px;
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
}

.save-state {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: .875rem;
}

.save-state::before {
  width: 7px;
  height: 7px;
  content: "";
  background: #cce5d9;
  border-radius: 50%;
}

.page-shell {
  min-height: calc(100vh - 72px);
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 24px 100px;
}

.page-narrow {
  max-width: 800px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 36px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  color: var(--paper);
  background: var(--brand-color);
  border-radius: 24px;
}

.hero::after {
  position: absolute;
  right: -145px;
  bottom: -225px;
  width: 430px;
  height: 430px;
  content: "";
  border: 64px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
}

.hero-copy,
.hero-aside {
  position: relative;
  z-index: 1;
}

.hero-copy p {
  max-width: 660px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: inherit;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  content: "";
  background: currentColor;
}

.eyebrow-on-dark {
  color: #f6cf68;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  color: var(--paper);
  background: var(--brand-color);
  border: 1px solid var(--brand-color);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-on-dark {
  color: var(--brand-color);
  background: var(--paper);
  border-color: var(--paper);
}

.button-ghost-on-dark {
  color: var(--paper);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
}

.button-secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.button-tertiary {
  color: var(--brand-color);
  background: transparent;
  border-color: transparent;
}

.button-danger {
  color: var(--error);
  background: var(--paper);
  border-color: #d8aaaa;
}

.button-small {
  min-height: 40px;
  padding: 9px 13px;
  font-size: .875rem;
}

.hero-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-size: .875rem;
}

.hero-aside {
  align-self: stretch;
  padding: 22px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-aside-label {
  margin-bottom: 10px;
  color: var(--purple);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-aside h2 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.hero-aside p {
  font-size: 0.95rem;
}

.snapshot-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 20px 0;
}

.snapshot-mini span {
  display: block;
  height: 8px;
  background: var(--lilac);
  border-radius: 20px;
}

.snapshot-mini span:nth-child(1) { background: var(--purple); }
.snapshot-mini span:nth-child(2) { background: var(--blue); }
.snapshot-mini span:nth-child(3) { background: var(--terracotta); }
.snapshot-mini span:nth-child(4) { background: var(--gold); }

.section {
  padding-top: 62px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

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

.need-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 22px;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent, var(--brand-color));
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.need-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent, var(--brand-color));
  box-shadow: var(--shadow);
}

.need-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  margin-bottom: 18px;
  color: var(--accent, var(--brand-color));
  background: #f0ebf8;
  background: color-mix(in srgb, var(--accent, var(--brand-color)) 11%, white);
  border-radius: 50%;
  font-size: .875rem;
  font-weight: 800;
}

.need-card h3 {
  font-size: 1.24rem;
}

.need-title {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: .875rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.need-card p {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--brand-color);
  font-size: 0.88rem;
  font-weight: 800;
}

.card-action::after {
  content: "→";
  transition: transform 160ms ease;
}

.need-card:hover .card-action::after {
  transform: translateX(3px);
}

.dashboard-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 20px;
}

.panel,
.continue-card,
.info-panel,
.form-card,
.result-card,
.empty-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.continue-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--paper);
  background: var(--brand-color);
  border-color: var(--brand-color);
}

.continue-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
}

.continue-card h3 {
  font-size: 1.34rem;
}

.quiet-stat {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quiet-stat-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  color: var(--brand-color);
  background: var(--lilac);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
}

.quiet-stat p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.cycle {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.cycle-step {
  position: relative;
  padding: 16px 10px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.cycle-step::before {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 0 auto 8px;
  color: var(--brand-color);
  background: var(--lilac);
  border-radius: 50%;
  content: attr(data-step);
  font-size: .875rem;
  font-weight: 800;
}

.cycle-step span {
  font-size: .875rem;
  font-weight: 750;
}

.cycle-step.is-done,
.cycle-step.is-current {
  border-color: var(--brand-color);
}

.cycle-step.is-done::before {
  color: var(--paper);
  background: var(--brand-color);
  content: "✓";
}

.cycle-step.is-current {
  background: var(--lilac);
}

.cycle-step.is-current::before {
  color: var(--paper);
  background: var(--brand-color);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 24px;
  padding: 0;
  color: var(--brand-color);
  background: transparent;
  border: 0;
  font-weight: 750;
  cursor: pointer;
}

.breadcrumb::before {
  margin-right: 8px;
  content: "←";
}

.area-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  gap: 28px;
  padding: clamp(26px, 5vw, 50px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 7px solid var(--accent, var(--brand-color));
  border-radius: 20px;
}

.area-hero h1 {
  font-size: clamp(2rem, 5vw, 3.55rem);
}

.need-prompt {
  display: inline-block;
  margin-bottom: 13px;
  padding: 6px 10px;
  color: var(--accent, var(--brand-color));
  background: #f0ebf8;
  background: color-mix(in srgb, var(--accent, var(--brand-color)) 10%, white);
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 800;
}

.area-hero-copy > p {
  max-width: 660px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.area-help {
  align-self: start;
  padding: 22px;
  background: var(--canvas);
  border-radius: 13px;
}

.area-help ul,
.plain-list {
  margin: 0;
  padding-left: 21px;
}

.area-help li + li,
.plain-list li + li {
  margin-top: 8px;
}

.move-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.move-option {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 20px;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
}

.move-option:hover,
.move-option.is-selected {
  border-color: var(--brand-color);
  box-shadow: var(--shadow);
}

.move-option.is-selected {
  background: var(--lilac);
}

.move-option span:first-child {
  margin-bottom: 12px;
  color: var(--brand-color);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.move-option strong {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.move-option small {
  margin-top: auto;
  color: var(--ink-soft);
  font-size: .875rem;
  line-height: 1.5;
}

.focus-builder {
  margin-top: 18px;
  padding: 26px;
  background: var(--lilac);
  border-radius: var(--radius);
}

.focus-builder[hidden] {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 780;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #8b809d;
  border-radius: 9px;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: .875rem;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-pill {
  position: relative;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
}

.choice-pill label {
  display: block;
  height: 100%;
  padding: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #8b809d;
  border-radius: 9px;
  cursor: pointer;
}

.choice-pill input:checked + label {
  color: var(--paper);
  background: var(--brand-color);
  border-color: var(--brand-color);
}

.choice-pill input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

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

.quiz-intro {
  padding: clamp(26px, 5vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 7px solid var(--purple);
  border-radius: 20px;
}

.guardrail {
  margin: 22px 0;
  padding: 16px 18px;
  background: var(--lilac);
  border-radius: 10px;
}

.guardrail strong {
  display: block;
  margin-bottom: 3px;
}

.quiz-card {
  padding: clamp(24px, 5vw, 46px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.quiz-progress-line {
  width: 100%;
  height: 8px;
  margin: 12px 0 32px;
  overflow: hidden;
  background: var(--lilac);
  border-radius: 50px;
}

.quiz-progress-line span {
  display: block;
  height: 100%;
  background: var(--purple);
  border-radius: inherit;
  transition: width 220ms ease;
}

.question-label {
  margin-bottom: 9px;
  color: var(--purple);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.quiz-card h2 {
  min-height: 2.3em;
  margin-bottom: 25px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  border: 0;
}

.scale legend {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: .875rem;
}

.scale-choice {
  position: relative;
}

.scale-choice input {
  position: absolute;
  opacity: 0;
}

.scale-choice label {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  text-align: center;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.scale-choice label strong {
  color: var(--brand-color);
  font-size: 1.05rem;
}

.scale-choice label small {
  color: var(--ink-soft);
  font-size: .875rem;
  line-height: 1.25;
}

.scale-choice input:checked + label {
  color: var(--paper);
  background: var(--brand-color);
  border-color: var(--brand-color);
}

.scale-choice input:checked + label strong,
.scale-choice input:checked + label small {
  color: var(--paper);
}

.scale-choice input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 26px;
}

.results-header {
  padding: clamp(26px, 5vw, 48px);
  color: var(--paper);
  background: var(--brand-color);
  border-radius: 20px 20px 0 0;
}

.results-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.results-header p {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

.results-body {
  padding: clamp(24px, 5vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 20px 20px;
}

.dimension-list {
  display: grid;
  gap: 18px;
  margin: 26px 0 30px;
}

.dimension-row {
  display: grid;
  grid-template-columns: 130px 1fr 58px;
  align-items: center;
  gap: 14px;
}

.dimension-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.dimension-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--dimension);
  border-radius: 50%;
}

.dimension-track {
  height: 13px;
  overflow: hidden;
  background: #eeecf2;
  border-radius: 30px;
}

.dimension-fill {
  height: 100%;
  background: var(--dimension);
  border-radius: inherit;
}

.dimension-score {
  text-align: right;
  font-weight: 800;
}

.result-summary {
  padding: 22px;
  background: var(--lilac);
  border-radius: 12px;
}

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

.reflection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.reflection-prompt {
  padding: 18px;
  background: var(--canvas);
  border-radius: 10px;
}

.reflection-prompt span {
  display: block;
  margin-bottom: 8px;
  color: var(--purple);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reflection-prompt p {
  margin: 0;
  font-weight: 650;
}

.summary-card {
  padding: 28px;
  color: var(--paper);
  background: var(--brand-color);
  border-radius: 18px;
}

.summary-card p {
  color: rgba(255, 255, 255, 0.78);
}

.plan-line {
  margin: 20px 0;
  padding: 18px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 10px;
  font-size: 1.05rem;
}

.plan-line strong {
  color: var(--brand-color);
}

.path-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  margin-top: 20px;
}

.stack {
  display: grid;
  gap: 16px;
}

.mini-label {
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attempt-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.attempt-item {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  border-radius: 10px;
}

.attempt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: .875rem;
  font-weight: 720;
}

.attempt-item p {
  margin-bottom: 8px;
}

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

.success-panel {
  margin-bottom: 18px;
  padding: 18px 20px;
  color: var(--ink);
  background: #e2efe8;
  border: 1px solid #a8cbb7;
  border-radius: 10px;
}

.caution-panel {
  margin-top: 22px;
  padding: 18px 20px;
  background: #ffeddc;
  border-left: 4px solid var(--terracotta);
  border-radius: 8px;
}

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

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

.privacy-point {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.privacy-point strong {
  display: block;
  margin-bottom: 7px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.75);
  background: var(--brand-color);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 92px;
}

.footer-inner p {
  margin: 0;
  font-size: .875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-link {
  min-height: 42px;
  padding: 9px 11px;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

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

.lede,
.section-intro {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.realism-card h2 {
  margin-bottom: 18px;
}

.lens-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.lens-grid div {
  min-height: 100px;
  padding: 13px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.lens-grid strong,
.lens-grid span {
  display: block;
}

.lens-grid strong {
  margin-bottom: 4px;
  color: var(--brand-color);
  font-size: .875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lens-grid span {
  color: var(--ink-soft);
  font-size: .875rem;
  line-height: 1.4;
}

.mini-label-on-dark {
  color: rgba(255, 255, 255, 0.64);
}

.cycle-seven {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.realism-guardrail {
  margin: 24px 0 30px;
  background: #eeebf6;
  border-left: 4px solid var(--blue);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.scenario-card {
  min-height: 230px;
  padding: 24px;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.scenario-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-color);
  box-shadow: var(--shadow);
}

.scenario-card > span {
  display: block;
  margin-bottom: 12px;
  color: var(--purple);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scenario-card h3 {
  font-size: 1.3rem;
}

.scenario-card p {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.scenario-card > strong {
  color: var(--brand-color);
  font-size: 0.88rem;
}

.tradeoff-pair,
.plan-conditions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 24px;
}

.tradeoff-pair > div,
.plan-conditions > div {
  padding: 17px;
  background: var(--paper);
  border: 1px solid rgba(41, 37, 54, 0.18);
  border-radius: 10px;
}

.tradeoff-pair span,
.plan-conditions span {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-color);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tradeoff-pair p,
.plan-conditions p {
  margin: 0;
}

.page-scenario {
  max-width: 1040px;
}

.scenario-hero {
  padding: clamp(26px, 5vw, 52px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 7px solid var(--accent, var(--brand-color));
  border-radius: 20px;
}

.scenario-hero h1 {
  max-width: 850px;
  font-size: clamp(2rem, 5vw, 3.7rem);
}

.scenario-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent, var(--brand-color));
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scenario-situation {
  max-width: 790px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.tension-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  max-width: 790px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tension-line strong {
  color: var(--accent, var(--brand-color));
}

.scenario-section {
  padding-top: 44px;
}

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

.option-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  min-height: 128px;
  padding: 18px;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.option-card:hover,
.option-card.is-selected {
  border-color: var(--brand-color);
  box-shadow: var(--shadow);
}

.option-card.is-selected {
  background: var(--lilac);
}

.option-letter {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--brand-color);
  background: var(--lilac);
  border-radius: 50%;
  font-size: .875rem;
  font-weight: 800;
}

.option-card.is-selected .option-letter {
  color: var(--paper);
  background: var(--brand-color);
}

.option-card strong,
.option-card small {
  display: block;
}

.option-card strong {
  margin: 3px 0 8px;
  font-size: 1rem;
}

.option-card small {
  color: var(--ink-soft);
  font-size: .875rem;
  line-height: 1.45;
}

.decision-review {
  margin-top: 26px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--lilac);
  border-radius: 18px;
}

.selected-analysis > h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
}

.decision-question {
  padding: 16px 18px;
  background: var(--paper);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
}

.comparison-details {
  margin: 22px 0;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.comparison-details summary {
  color: var(--brand-color);
  font-weight: 800;
  cursor: pointer;
}

.comparison-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.comparison-list article {
  padding: 16px;
  background: var(--canvas);
  border-radius: 8px;
}

.comparison-list article p {
  margin-bottom: 7px;
  font-size: 0.88rem;
}

.context-questions {
  margin: 20px 0;
  padding: 19px;
  color: var(--paper);
  background: var(--brand-color);
  border-radius: 10px;
}

.context-questions ul {
  margin-bottom: 0;
}

.decision-review form {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(41, 37, 54, 0.2);
}

.plan-conditions > div {
  color: var(--ink);
}

.evidence-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.evidence-item {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.evidence-item h2 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.evidence-item p {
  margin: 0;
  color: var(--ink-soft);
}

.outcome-worse {
  border-left-color: var(--terracotta);
}

.outcome-mixed {
  border-left-color: var(--gold);
}

.outcome-unclear {
  border-left-color: var(--ink-soft);
}

.mobile-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 30;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  padding: 5px;
  background: rgba(41, 37, 54, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  box-shadow: 0 18px 40px rgba(41, 37, 54, 0.24);
}

.mobile-nav button {
  min-height: 52px;
  padding: 7px 4px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 760;
}

.mobile-nav button[aria-current="page"] {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.13);
}

dialog {
  width: min(92vw, 480px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(41, 37, 54, 0.3);
}

dialog::backdrop {
  background: rgba(41, 37, 54, 0.68);
}

.dialog-body {
  padding: 28px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
  animation: toast-in 180ms ease both;
}

.noscript {
  max-width: 680px;
  margin: 80px auto;
  padding: 24px;
}

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

.start-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(28px, 5vw, 54px);
  color: var(--paper);
  overflow: hidden;
  background: var(--brand-color);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px 30px 30px 8px;
  box-shadow: 0 22px 55px rgba(41, 37, 54, 0.14);
}

.start-shell::after {
  position: absolute;
  right: -185px;
  bottom: -250px;
  width: 470px;
  height: 470px;
  pointer-events: none;
  content: "";
  border: 68px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
}

.start-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.start-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(2.45rem, 5vw, 4.6rem);
}

.start-copy p {
  max-width: 480px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.start-note {
  padding-top: 16px;
  color: rgba(255, 255, 255, 0.66);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: .875rem;
}

.start-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.start-choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-left: 4px solid var(--accent, var(--gold));
  border-radius: 14px 14px 14px 5px;
  box-shadow: 0 8px 20px rgba(41, 37, 54, 0.08);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.start-choice:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.start-choice:focus-visible {
  transform: translateY(-2px);
}

.start-number {
  color: var(--ink-soft);
  font-size: .875rem;
  font-weight: 800;
}

.start-choice-copy,
.start-choice-copy strong,
.start-choice-copy small {
  display: block;
}

.start-choice-copy strong {
  line-height: 1.3;
}

.start-choice-copy small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: .875rem;
}

.start-arrow {
  color: var(--purple);
  font-size: 1.2rem;
  transition: transform 160ms ease;
}

.start-choice:hover .start-arrow,
.start-choice:focus-visible .start-arrow {
  transform: translateX(3px);
}

.lens-section {
  padding-top: 48px;
}

.lens-grid-light {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lens-grid-light div {
  min-height: 112px;
  background: var(--paper);
  border-top: 3px solid var(--brand-color);
  border-radius: 5px 14px 14px 14px;
  box-shadow: 0 8px 24px rgba(41, 37, 54, 0.055);
}

.footer-note {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: .875rem;
}

@media (max-width: 900px) {
  .hero,
  .start-shell,
  .area-hero,
  .path-layout {
    grid-template-columns: 1fr;
  }

  .need-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cycle {
    grid-template-columns: repeat(4, 1fr);
  }

  .move-list,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .cycle-seven {
    grid-template-columns: repeat(4, 1fr);
  }

  .lens-grid-light {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 64px;
    padding: 0 18px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: grid;
  }

  .page {
    padding: 24px 16px 110px;
  }

  .hero {
    gap: 24px;
    padding: 28px 22px;
    border-radius: 18px;
  }

  .start-shell {
    gap: 24px;
    padding: 28px 20px;
    border-radius: 18px;
  }

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

  .section {
    padding-top: 44px;
  }

  .section-heading {
    display: block;
  }

  .need-grid,
  .dashboard-strip,
  .form-grid,
  .reflection-grid,
  .scenario-grid,
  .option-grid,
  .comparison-list,
  .tradeoff-pair,
  .plan-conditions {
    grid-template-columns: 1fr;
  }

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

  .cycle {
    grid-template-columns: 1fr;
    gap: 7px;
  }

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

  .tension-line {
    grid-template-columns: 1fr;
  }

  .cycle-step {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    text-align: left;
  }

  .cycle-step::before {
    margin: 0;
  }

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

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

  .scale-choice label {
    min-height: 58px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 14px;
    text-align: left;
  }

  .scale-choice label strong {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    background: rgba(41, 37, 54, 0.08);
    border-radius: 50%;
  }

  .scale-choice input:checked + label strong {
    background: rgba(255, 255, 255, 0.14);
  }

  .quiz-card h2 {
    min-height: auto;
  }

  .dimension-row {
    grid-template-columns: 100px 1fr 48px;
    gap: 9px;
  }

  .continue-card,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .toast {
    right: 14px;
    bottom: 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .mobile-nav,
  .site-footer,
  .button-row,
  .breadcrumb,
  .toast {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .page,
  .quiz-shell {
    max-width: none;
    padding: 0;
  }

  .results-header {
    color: #000;
    background: #fff;
    border: 1px solid #bbb;
  }

  .results-header p {
    color: #222;
  }

  .results-body,
  .summary-card,
  .panel,
  .attempt-item {
    color: #000;
    background: #fff;
    box-shadow: none;
    break-inside: avoid;
  }

  .summary-card p {
    color: #222;
  }
}

/* Forward visual system alignment */
:root {
  --canvas: #f7f7fb;
  --paper: #ffffff;
  --ink: #292536;
  --ink-soft: #555060;
  --muted: #666070;
  --line: #dfdce8;
  --lilac: #eeebf6;
  --brand-color: #292536;
  --purple: #773be0;
  --blue: #245ce8;
  --terracotta: #fa802d;
  --gold: #ffd126;
  --plum: #e92b96;
  --radius: 20px;
}

body { background: var(--canvas); }

.site-header {
  background: var(--ink);
  border-bottom: 0;
  backdrop-filter: none;
}

.header-inner {
  width: min(1200px, calc(100% - 4rem));
  min-height: 88px;
  padding: 0;
}

.brand-button {
  gap: .8rem;
  padding: 0;
}

.brain-mark {
  display: block;
  width: 58px;
  height: 54px;
  flex-shrink: 0;
  background: url('tgmc-logo.jpg') no-repeat -279px -29px / 367px 114px;
  mix-blend-mode: screen;
}

.brand-lockup { line-height: 1.25; }
.brand { font-size: 1.45rem; font-weight: 700; letter-spacing: -.055em; }
.brand-variant { margin-top: .15rem; color: #d0c8df; font-size: .75rem; letter-spacing: .015em; text-transform: none; }

.desktop-nav { gap: .25rem; }
.nav-link {
  min-height: 44px;
  padding: .65rem 1rem;
  border-radius: 100px;
  color: #e2ddeb;
  font-size: .9rem;
  font-weight: 600;
}
.nav-link:hover { background: #443d53; }
.nav-link[aria-current="page"] { color: var(--ink); background: white; }

.page {
  width: min(1200px, calc(100% - 4rem));
  max-width: none;
  padding: 3rem 0 4rem;
}

.start-shell {
  display: block;
  overflow: visible;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.start-shell::after { display: none; }
.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, .65fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.25rem;
}
.home-intro h1 { max-width: 720px; }
.start-lead { max-width: 290px; margin: 0 0 .3rem; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.7; }
.start-shell .eyebrow { margin-bottom: .65rem; color: var(--purple); }
.start-shell h1 { font-size: clamp(2.15rem, 4vw, 3.65rem); }

.start-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.start-choice {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}
.start-choice::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--tile);
  border-radius: 20px;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  transition: filter 180ms ease;
}
.start-choice:nth-child(2)::before { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%); }
.start-choice:nth-child(3)::before { clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%, 0 34px); }
.start-choice:nth-child(4)::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 34px 100%, 0 calc(100% - 34px)); }
.start-choice:nth-child(6)::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 34px); }
.start-choice:hover { transform: translateY(-3px); box-shadow: none; }
.start-choice:hover::before { filter: brightness(1.04); }
.start-choice-copy strong { display: block; max-width: 16ch; font-size: clamp(1.35rem, 2.05vw, 1.8rem); line-height: 1.2; letter-spacing: -.035em; }
.start-description { display: block; max-width: 29ch; margin-top: .7rem; color: var(--ink); font-size: 1rem; line-height: 1.5; }
.start-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--tile-accent); font-size: .875rem; font-weight: 600; }
.start-arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; font-size: 1.25rem; line-height: 1; }
.home-footnote { margin-top: 1.4rem; color: var(--ink-soft); }

.lens-grid-light div { background: var(--paper); border-top: 3px solid var(--ink); border-radius: 5px 14px 14px 14px; box-shadow: 0 8px 24px rgba(41,37,54,.055); }

.need-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.need-card { min-height: 232px; padding: 1.75rem 2rem; border: 0; border-radius: 8px; background: transparent; box-shadow: none; }
.need-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--tile); border-radius: 20px; clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); }
.need-card:nth-child(2)::before { clip-path: polygon(0 0,100% 0,100% calc(100% - 34px),calc(100% - 34px) 100%,0 100%); }
.need-card:nth-child(3)::before { clip-path: polygon(34px 0,100% 0,100% 100%,0 100%,0 34px); }
.need-card:nth-child(4)::before { clip-path: polygon(0 0,100% 0,100% 100%,34px 100%,0 calc(100% - 34px)); }
.need-card:nth-child(6)::before { clip-path: polygon(0 0,100% 0,100% 100%,0 100%,0 34px); }
.need-card:hover { transform: translateY(-3px); border-color: transparent; box-shadow: none; }
.need-card:hover::before { filter: brightness(1.04); }
.need-index { background: rgba(255,255,255,.6); }
.need-title { color: var(--ink-soft); }
.card-action { color: var(--tile-accent, var(--purple)); }

.site-footer { background: var(--ink); }
.footer-inner { width: min(1200px, calc(100% - 4rem)); max-width: none; padding: 28px 0 92px; }

@media (max-width: 900px) {
  .start-grid, .need-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .header-inner, .page, .footer-inner { width: calc(100% - 2rem); }
  .header-inner { min-height: 64px; }
  .page { padding: 24px 0 110px; }
  .home-intro { display: block; }
  .start-lead { max-width: 34ch; margin-top: 1rem; }
  .start-grid, .need-grid { grid-template-columns: 1fr; }
  .start-choice { min-height: 190px; }
}


/* Plain-language support stays optional and works with keyboard or touch. */
.language-help {
  margin: 1.25rem 0;
  padding: 1rem 1.125rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.language-help summary {
  padding: 0.25rem 0;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1rem 1.5rem;
  margin: 1rem 0 0;
}

.language-grid dt {
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.language-grid dd {
  margin: 0;
  line-height: 1.6;
}

.writing-help {
  margin: 0 0 1.5rem;
  padding: 0.875rem 1rem;
  color: var(--ink);
  border-left: 3px solid currentColor;
  font-size: 1rem;
  line-height: 1.6;
}

.field, .plan-line, .language-grid > div, .review-plan {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: grid; }
  .page { padding-bottom: 110px; }
  .toast { bottom: 86px; }
}

@media print {
  .language-help, .writing-help { display: none !important; }
}

/* Continuing practice uses a reply, a choice and a separate result. */
.practice-turn, .practice-result { scroll-margin-top: 6rem; }
.practice-turn { padding: clamp(1.1rem, 4vw, 2.25rem); border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.practice-step { font-size: .875rem; font-weight: 700; color: var(--purple); }
.practice-caption { font-size: .875rem; line-height: 1.6; }
.story-reply { margin: 1.25rem 0 1.75rem; max-width: 48rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--purple); border-radius: 0 18px 18px 18px; background: var(--lilac); }
.story-reply > span { font-size: .875rem; font-weight: 700; }
.story-reply > p { margin: .5rem 0 0; font-size: clamp(1.125rem, 2.1vw, 1.375rem); line-height: 1.6; }
.next-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .875rem; }
.next-choice { display: flex; gap: .875rem; align-items: flex-start; text-align: left; min-height: 4rem; padding: 1rem; border: 2px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); cursor: pointer; }
.next-choice:hover, .next-choice.is-selected { border-color: var(--purple); background: #f0ebf8; }
.next-choice.is-selected { box-shadow: inset 4px 0 var(--purple); }
.choice-count { flex: 0 0 1.6rem; font-weight: 800; color: var(--purple); }
.practice-result { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.practice-result h3 { margin: .4rem 0; font-size: 1.4rem; }
.practice-notice { padding: 1rem 1.25rem; margin: 1.25rem 0; background: #fff2c9; border-radius: 12px; }
.practice-notice p { margin: .5rem 0 0; }
.practice-finish, .record-revisit { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.practice-finish > span { font-size: .875rem; }
.plan-from-practice { padding: 1.25rem; margin-top: 1rem; background: var(--paper); border: 2px solid var(--purple); border-radius: 14px; }
.plan-from-practice > summary { font-size: 1.125rem; font-weight: 700; cursor: pointer; }
.plan-from-practice[open] > summary { margin-bottom: 1rem; }
.learning-record { padding: clamp(1.125rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.record-facts { display: flex; flex-wrap: wrap; gap: 1rem 3rem; padding-bottom: 1rem; }
.record-facts > div { display: flex; flex-direction: column; }
.record-facts strong { font-size: 2rem; line-height: 1.3; color: var(--brand-color); }
.record-facts span { font-size: .875rem; }
.record-insight { border-left: 3px solid var(--purple); padding: .25rem 1rem; margin: 1rem 0; overflow-wrap: anywhere; }
.record-revisit { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.record-revisit > span { flex: 1 1 15rem; overflow-wrap: anywhere; }
.review-context { margin-bottom: 1.25rem; padding: 1.25rem; background: var(--lilac); border-radius: 12px; overflow-wrap: anywhere; }
.story-reply, .next-choice > span, .practice-result { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 650px) {
  .next-choices { grid-template-columns: 1fr; }
  .story-reply { padding: 1rem; }
  .practice-finish .button, .record-revisit .button { width: 100%; }
}
@media print {
  .next-choices, .practice-finish .button, .record-revisit .button { display: none !important; }
  .practice-turn, .practice-result, .learning-record { break-inside: avoid; }
}

/* Shared Forward identity, using the same layout and assets as the main site. */
[hidden] { display: none !important; }
#app { min-height: 100svh; display: flex; flex-direction: column; }
button { color: inherit; }
a { text-underline-offset: .2em; }
button, summary { cursor: pointer; }
[tabindex="-1"]:focus { outline: none; }
h1, h2, h3, h4 { font-weight: 650; letter-spacing: -.045em; line-height: 1.15; overflow-wrap: break-word; }
h1 { max-width: 850px; font-size: clamp(2.15rem, 4vw, 3.65rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
.site-header { position: relative; top: auto; z-index: 20; background: var(--ink); border: 0; backdrop-filter: none; }
.header-inner { width: min(var(--max), calc(100% - 4rem)); min-height: 88px; padding: 0; gap: 1.5rem; }
.site-header :focus-visible { outline-color: var(--gold); }
.brand-button { gap: .8rem; padding: 0; flex-shrink: 0; }
.brain-mark { display: block; flex-shrink: 0; width: 58px; height: 54px; background: url('tgmc-logo.jpg') no-repeat -279px -29px / 367px 114px; mix-blend-mode: screen; }
.brand-lockup { line-height: 1.25; }
.brand { font-size: 1.45rem; font-weight: 700; letter-spacing: -.055em; line-height: 1.25; }
.brand-variant { margin-top: .15rem; font-size: .75rem; font-weight: 400; letter-spacing: .015em; color: #d0c8df; text-transform: none; }
.desktop-nav { display: flex; gap: .25rem; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: .65rem 1rem; border-radius: 100px; color: #e2ddeb; font-size: .9rem; font-weight: 600; }
.nav-link:hover { background: #443d53; color: white; }
.nav-link[aria-current="page"] { background: white; color: var(--ink); }
.menu-button { display: none; align-items: center; min-height: 44px; padding: .5rem .9rem; border: 1px solid #746a84; border-radius: 100px; background: transparent; color: white; }
.mobile-nav { display: none; }
.page-shell { flex: 1; min-height: 0; }
.page { width: min(var(--max), calc(100% - 4rem)); padding: 3rem 0 4rem; }
.page-narrow { max-width: 800px; }
.page-scenario { max-width: 1060px; }
.eyebrow { margin-bottom: .85rem; font-size: .875rem; font-weight: 650; letter-spacing: 0; text-transform: none; color: var(--purple); }
.eyebrow::before { content: none; }
.eyebrow-on-dark { color: #e2ddeb; }
.mini-label, .need-title, .scenario-kicker, .scenario-card > span, .move-option > span:first-child,
.tradeoff-pair span, .plan-conditions span, .lens-grid strong { font-weight: 650; letter-spacing: 0; text-transform: none; }
.mini-label { color: var(--purple); }
.mini-label-on-dark { color: #d0c8df; }
.lede, .section-intro { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.7; }
.button { min-height: 46px; padding: .65rem 1.1rem; border-radius: 100px; font-size: .9375rem; font-weight: 650; line-height: 1.4; }
.button:hover { transform: none; background: #4b415d; color: white; }
.button-secondary:hover, .button-on-dark:hover, .button-tertiary:hover { background: #f6f2fa; color: var(--ink); border-color: var(--purple); }
.button-danger:hover { background: #fff0ed; color: var(--error); border-color: var(--error); }
.button-small { min-height: 44px; font-size: .875rem; }
.breadcrumb { margin-bottom: 1.1rem; color: var(--ink-soft); font-size: .9375rem; font-weight: 600; }
.breadcrumb:hover { color: var(--purple); }
.start-shell { display: block; padding: 0; overflow: visible; color: var(--ink); background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.start-shell::after { content: none; }
.home-intro { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(230px, .65fr); gap: 2rem; align-items: end; margin-bottom: 2.25rem; }
.home-intro h1 { max-width: 720px; margin: 0; }
.home-intro .eyebrow { margin-bottom: .65rem; }
.start-lead { max-width: 290px; margin: 0 0 .3rem; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.7; }
.start-grid, .need-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.start-choice, .need-card { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 1.25rem; min-height: 232px; padding: 1.75rem 2rem; color: var(--ink); text-align: left; background: transparent; border: 0; border-radius: 8px; box-shadow: none; transition: transform 180ms ease; }
.start-choice::before, .need-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--tile); border-radius: 20px; clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); transition: filter 180ms ease; }
.start-choice:nth-child(2)::before, .need-card:nth-child(2)::before { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%); }
.start-choice:nth-child(3)::before, .need-card:nth-child(3)::before { clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%, 0 34px); }
.start-choice:nth-child(4)::before, .need-card:nth-child(4)::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 34px 100%, 0 calc(100% - 34px)); }
.start-choice:nth-child(6)::before, .need-card:nth-child(6)::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 34px); }
.start-choice:hover, .need-card:hover { box-shadow: none; transform: none; }
.start-choice:focus-visible, .need-card:focus-visible { outline-color: var(--ink); outline-offset: 5px; transform: none; }
.start-choice-copy strong, .need-card h3 { max-width: 16ch; font-size: clamp(1.35rem, 2.05vw, 1.8rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
.start-description { display: block; max-width: 29ch; margin-top: .7rem; font-size: 1rem; font-weight: 400; line-height: 1.5; }
.start-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--tile-accent); font-size: .875rem; font-weight: 600; }
.start-arrow { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; color: inherit; border: 1px solid currentColor; border-radius: 50%; font-size: 1.25rem; line-height: 1; }
.start-choice:hover .start-arrow, .start-choice:focus-visible .start-arrow { transform: none; }
.home-footnote { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 1.4rem; color: var(--ink-soft); font-size: .875rem; }
.home-footnote p { margin: 0; }
.continue-strip { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.25rem; padding: .85rem 1.2rem; background: #eee8f5; border-radius: 14px; font-size: .9375rem; }
.continue-strip p { margin: 0; }
.continue-strip button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: var(--purple); border: 0; background: none; font-weight: 700; }
.need-card { justify-content: flex-start; gap: 0; }
.need-index { display: none; }
.need-title { color: var(--tile-accent); }
.need-card p { margin: .7rem 0 1.25rem; font-size: 1rem; line-height: 1.5; }
.card-action { color: var(--tile-accent, var(--purple)); font-weight: 600; }
.section { padding-top: 3rem; }
.section-heading { gap: 2rem; margin-bottom: 1.5rem; }
.section-heading > div { flex: 1 1 44%; }
.section-heading > p { flex: 1 1 48%; color: var(--ink-soft); font-size: 1rem; }
.section-heading h2 { margin-bottom: 0; }
.lens-section { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.lens-grid-light div { min-height: auto; padding: 1.25rem; border: 1px solid var(--line); border-radius: 16px; box-shadow: none; }
.lens-grid strong { font-size: 1rem; color: var(--ink); }
.lens-grid span { font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
.area-hero { padding: 2rem; border-left-width: 4px; gap: 2rem; }
.area-hero h1, .scenario-hero h1 { font-size: clamp(2rem, 3.8vw, 3rem); }
.need-prompt { font-weight: 650; border-radius: 100px; padding: .35rem .8rem; }
.area-help { border-radius: 16px; background: color-mix(in srgb, var(--accent, var(--purple)) 6%, white); }
.scenario-card { min-height: 220px; padding: 1.75rem; border-radius: 20px; }
.scenario-card p, .move-option small, .option-card small { font-size: 1rem; line-height: 1.6; }
.scenario-card > span { color: var(--purple); }
.scenario-card > strong { color: var(--ink); font-size: .9375rem; font-weight: 650; }
.move-option { padding: 1.4rem; border-radius: 16px; }
.move-option:hover, .move-option.is-selected, .option-card:hover, .option-card.is-selected { border-color: var(--purple); box-shadow: none; }
.move-option.is-selected, .option-card.is-selected { background: #f0ebf8; }
.scenario-hero { padding: 2rem; border-top-width: 4px; }
.scenario-kicker { margin-bottom: .85rem; }
.scenario-situation { font-size: 1.0625rem; line-height: 1.7; }
.option-card { border-radius: 14px; padding: 1rem; }
.decision-review { padding: 1.5rem; border-radius: 20px; }
.field label, .field legend { font-size: 1rem; font-weight: 600; line-height: 1.5; }
.field input, .field select { min-height: 48px; }
.field input, .field textarea, .field select { border-radius: 12px; font-size: 1rem; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #6b6178; }
.field, .form-grid, .path-layout > *, .area-hero > *, .option-card > *, .section-heading > * { min-width: 0; }
.form-card > .field + .field { margin-top: 1.25rem; }
.plan-line, .plan-conditions p, .record-insight p, .attempt-item p { white-space: pre-wrap; overflow-wrap: anywhere; }
.plan-conditions p { color: var(--ink); }
.summary-card { border-radius: 20px; }
.summary-card h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.comparison-details { padding: 1.25rem; border-radius: 16px; }
.comparison-details summary { min-height: 30px; color: var(--ink); font-weight: 650; }
.comparison-details summary::marker, .plan-from-practice summary::marker, .language-help summary::marker { color: var(--purple); }
.comparison-list article p { font-size: 1rem; line-height: 1.6; }
.comparison-list h4 { margin-bottom: .75rem; font-size: 1.0625rem; }
.tradeoff-pair span, .plan-conditions span { font-size: .9375rem; }
.practice-turn, .practice-result { scroll-margin-top: 1.5rem; }
.practice-step { color: var(--purple); }
.next-choice.is-selected { background: #f0ebf8; }
.plan-from-practice { border-width: 1px; }
.context-questions { border-radius: 16px; }
.evidence-item { padding: 1.5rem; border-radius: 20px; }
.evidence-item h2 { font-size: 1.125rem; line-height: 1.5; }
.site-footer { background: #eeedf3; color: var(--ink); }
.footer-inner { width: min(var(--max), calc(100% - 4rem)); align-items: flex-start; gap: 3rem; padding: 2rem 0; }
.footer-inner .footer-brand { font-size: .9375rem; font-weight: 650; letter-spacing: -.01em; }
.footer-note { margin-top: .5rem; color: var(--ink-soft); font-size: .875rem; }
.footer-side { max-width: 460px; }
.footer-links { gap: .25rem 1rem; margin: -.65rem 0 .5rem; }
.footer-link { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 0; border-radius: 0; color: var(--ink); font-size: .875rem; font-weight: 600; }
.footer-link:hover { color: var(--purple); text-decoration: underline; }
.footer-privacy { color: var(--ink-soft); }
.toast { bottom: 22px; }
@media (hover: hover) {
  .start-choice:hover, .need-card:hover { transform: translateY(-3px); }
  .start-choice:hover::before, .need-card:hover::before { filter: brightness(1.04); }
}
@media (max-width: 980px) {
  .header-inner, .page, .footer-inner { width: calc(100% - 3rem); }
  .home-intro { grid-template-columns: 1.35fr .65fr; }
  .start-choice, .need-card { padding: 1.4rem 1.5rem; min-height: 235px; }
  .nav-link { padding: .6rem .8rem; }
  .area-hero { padding: 1.5rem; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 78px; }
  .desktop-nav { display: none; position: absolute; top: calc(100% - 1px); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: .7rem 1rem 1rem; background: var(--ink); box-shadow: 0 12px 24px #29253622; }
  .desktop-nav.is-open { display: flex; }
  .nav-link { text-align: left; }
  .menu-button { display: inline-flex; }
  .home-intro { display: block; margin-bottom: 1.5rem; }
  .start-lead { margin-top: .9rem; max-width: 580px; }
  .start-grid, .need-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-choice, .need-card { min-height: 222px; }
  .start-choice-copy strong, .need-card h3 { font-size: 1.4rem; }
  .page { padding-top: 2rem; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: .85rem; }
  .area-hero, .path-layout, .scenario-grid, .option-grid, .comparison-list, .tradeoff-pair, .plan-conditions, .form-grid { grid-template-columns: 1fr; }
  .lens-grid-light { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .footer-side { max-width: 630px; }
}
@media (max-width: 500px) {
  .header-inner, .page, .footer-inner { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: .5rem .7rem; padding: .65rem 0; }
  .brand-button { gap: .6rem; flex-shrink: 1; min-width: 0; }
  .brand-lockup { min-width: 0; }
  .brand { font-size: 1.3rem; }
  .brand-variant { max-width: 155px; overflow-wrap: break-word; }
  .brain-mark { width: 44px; height: 43px; background-size: 287px 89px; background-position: -218px -22px; }
  .menu-button { font-size: .875rem; }
  .page { padding-top: 1.75rem; padding-bottom: 2.5rem; }
  h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .start-grid, .need-grid { gap: 8px; }
  .start-choice, .need-card { padding: 1.2rem 1.1rem; min-height: 238px; gap: 1rem; }
  .start-choice::before, .need-card::before { border-radius: 13px; }
  .start-choice-copy strong, .need-card h3 { font-size: 1.25rem; line-height: 1.22; }
  .start-description { font-size: 1rem; line-height: 1.5; margin-top: .65rem; }
  .start-card-bottom { gap: .35rem; }
  .start-arrow { width: 29px; height: 29px; }
  .need-card { gap: 0; }
  .section { padding-top: 2rem; }
  .lens-section { margin-top: 2rem; }
  .lens-grid-light { grid-template-columns: 1fr; }
  .area-hero, .scenario-hero, .summary-card, .panel, .form-card, .empty-card { padding: 1.25rem; }
  .area-help { padding: 1.2rem; }
  .area-hero h1, .scenario-hero h1 { font-size: 2rem; }
  .scenario-card { padding: 1.4rem; }
  .tension-line { grid-template-columns: 1fr; }
  .decision-review { padding: 1rem; }
  .practice-turn { padding: 1.1rem; }
  .comparison-details, .plan-from-practice { padding: 1rem; }
  .record-facts { gap: 1rem 2rem; }
  .button { max-width: 100%; }
  .footer-links { gap: .25rem 1.25rem; }
}
@media (max-width: 359px) {
  .start-grid, .need-grid { grid-template-columns: 1fr; }
  .start-choice, .need-card { min-height: 192px; padding: 1.5rem; }
  .start-choice-copy strong, .need-card h3 { font-size: 1.5rem; max-width: 20ch; }
  .brand-variant { max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .start-choice:hover, .need-card:hover { transform: none; }
}
@media (forced-colors: active) {
  .start-choice, .need-card, .option-card, .next-choice { border: 1px solid ButtonText; }
  .start-choice, .need-card { color: LinkText; }
  .start-choice::before, .need-card::before { background: Canvas; }
  .option-card.is-selected, .next-choice.is-selected { outline: 2px solid Highlight; }
  .nav-link[aria-current="page"] { outline: 1px solid Highlight; }
}
@media print {
  .page { width: 100%; max-width: none; padding: 0; }
  #app { min-height: 0; }
  .summary-card, .context-questions { color: #000; background: #fff; }
  .summary-card p, .summary-card .mini-label { color: #222; }
  .start-choice, .need-card { border: 1px solid #999; break-inside: avoid; }
}

/* Keep saving feedback visible, including when browser storage is unavailable. */
.storage-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; width: min(var(--max), calc(100% - 2rem)); margin: 1.5rem auto 0; padding: 1.25rem; border: 1px solid #a54c17; border-radius: 14px; color: #653413; background: #fff2df; }
.storage-notice > div { flex: 1 1 20rem; }
.storage-notice p { margin: .35rem 0 0; }
.start-choice, .start-choice-copy, .need-card { min-width: 0; overflow-wrap: anywhere; }
@media print {
  .storage-notice, .form-actions, .plan-from-practice { display: none !important; }
}
