:root {
  --ink: #172322;
  --ink-soft: #354744;
  --forest: #143f3b;
  --forest-deep: #0d2f2c;
  --teal: #1c6b63;
  --comparison: #cf7627;
  --blue: #315f84;
  --mint: #dbe9e3;
  --mint-light: #edf4f0;
  --paper: #f5f3ed;
  --paper-warm: #fbfaf6;
  --white: #fff;
  --muted: #66736f;
  --line: #cad2ce;
  --line-dark: rgba(255, 255, 255, 0.18);
  --signal: #b35a42;
  --shadow: 0 22px 55px rgba(22, 48, 44, 0.1);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(20, 63, 59, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 63, 59, 0.035) 1px, transparent 1px),
    var(--paper-warm);
  background-size: 32px 32px;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

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

a,
button {
  color: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--forest);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 188px;
  height: auto;
  max-height: 80px;
  display: block;
}

.site-header .brand-logo {
  margin-block: 10px;
}

.brand-mark {
  position: relative;
  width: 45px;
  height: 45px;
  border: 1px solid var(--forest);
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--forest);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.3);
}

.brand-mark::before {
  width: 1px;
  height: 100%;
}

.brand-mark::after {
  width: 100%;
  height: 1px;
}

.brand-mark b {
  z-index: 1;
  padding: 3px;
  background: var(--forest);
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: -0.08em;
}

.brand-mark i {
  position: absolute;
  z-index: 2;
  right: -5px;
  bottom: -5px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--forest);
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--mint);
  font-family: var(--mono);
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
}

.brand-copy small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  color: var(--ink-soft);
  font-size: 0.79rem;
  font-weight: 650;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--teal);
}

.button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.button:focus-visible,
.text-link:focus-visible,
.filter-buttons button:focus-visible,
.retake-button:focus-visible,
.quiz-close:focus-visible,
.answer-option:focus-visible,
.faq-list summary:focus-visible,
.site-footer button:focus-visible,
.pair-button:focus-visible {
  outline: 3px solid #75a9a2;
  outline-offset: 3px;
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.65rem;
}

.button-dark,
.button-primary {
  color: var(--white);
  background: var(--forest);
  border-color: var(--forest);
}

.button-danger {
  color: var(--white);
  border-color: #8e352b;
  background: #8e352b;
}

.button-danger:hover {
  border-color: #6f241d;
  background: #6f241d;
}

.button-dark:hover,
.button-primary:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.button-light {
  color: var(--forest-deep);
  background: var(--mint);
  border-color: var(--mint);
}

.button-light:hover {
  background: var(--white);
  border-color: var(--white);
}

.button-quiet {
  color: var(--ink-soft);
  background: transparent;
  border-color: var(--line);
}

.button-quiet:hover {
  background: var(--paper);
}

.button-full {
  width: 100%;
}

.hero {
  overflow: hidden;
  padding-top: 28px;
  background:
    radial-gradient(circle at 12% 14%, rgba(219, 233, 227, 0.8), transparent 34%),
    rgba(251, 250, 246, 0.88);
}

.hero-brand-shell {
  padding-bottom: 42px;
}

.hero-brand-stage {
  position: relative;
}

.hero-brand-art {
  width: 100%;
  height: auto;
  display: block;
}

.hero-brand-actions {
  position: absolute;
  top: 71%;
  right: 1.2%;
  width: 32.5%;
  padding-left: 18px;
  border-left: 3px solid var(--signal);
}

.hero-brand-actions > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.65;
}

.hero-brand-actions .hero-actions {
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.hero-brand-actions .button {
  min-height: 43px;
  padding-inline: 16px;
  font-size: 0.65rem;
}

.hero-brand-trust {
  margin-top: 0;
}

.hero-grid {
  min-height: 610px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(490px, 1.06fr);
  align-items: center;
  gap: clamp(52px, 7vw, 108px);
}

.eyebrow {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 24px;
  height: 1px;
  background: currentColor;
}

.eyebrow.light {
  color: #a7c9c3;
}

.hero h1,
.section-heading h2,
.how-copy h2,
.privacy-heading h2,
.membership-copy h2,
.faq-grid h2,
.quiz-intro-copy h2,
.results-heading h2,
.question-stage h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(3rem, 5.35vw, 5rem);
  line-height: 0.99;
}

.hero h1 em {
  color: var(--teal);
  font-style: italic;
  font-weight: 400;
}

.hero-lede {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.text-link {
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.8;
  text-decoration: none;
}

.trust-row {
  margin: 36px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  list-style: none;
}

.trust-row li {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.trust-row strong {
  color: var(--forest);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.trust-row span {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-report {
  position: relative;
  border: 1px solid #a9bbb5;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-report::before {
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(20, 63, 59, 0.09);
  content: "";
  pointer-events: none;
}

.report-header {
  position: relative;
  z-index: 1;
  min-height: 66px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--forest);
  color: var(--white);
}

.report-header > div {
  display: grid;
  gap: 3px;
}

.report-header span,
.report-header strong,
.preview-topline,
.cohort-label,
.no-photo-note {
  font-family: var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.report-header > div span {
  color: #bcd5d0;
  font-size: 0.57rem;
}

.report-header strong {
  font-size: 0.79rem;
}

.report-status {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #d9e9e5;
  font-size: 0.56rem;
}

.question-preview {
  position: relative;
  z-index: 1;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
}

.preview-topline {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.59rem;
}

.dimension-bars {
  display: grid;
  gap: 16px;
}

.dimension-bars > div {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(100px, 1fr) 26px;
  align-items: center;
  gap: 13px;
}

.dimension-bars span {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.dimension-bars span b {
  margin-right: 7px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.dimension-bars i {
  height: 5px;
  background: #dfe6e2;
  overflow: hidden;
}

.dimension-bars i em {
  height: 100%;
  display: block;
  background: var(--teal);
}

.dimension-bars strong {
  color: var(--forest);
  font-family: var(--mono);
  font-size: 0.69rem;
  text-align: right;
}

.anonymous-stack {
  position: relative;
  z-index: 1;
  padding: 19px 24px 14px;
}

.cohort-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.57rem;
}

.anonymous-stack article {
  min-height: 54px;
  padding: 10px 0;
  border-bottom: 1px solid #e0e5e2;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
}

.anonymous-stack article:last-of-type {
  border-bottom: 0;
}

.initial-badge {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--mint-light);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 800;
}

.initial-badge.blue {
  color: var(--blue);
  background: #edf2f7;
}

.initial-badge.lime {
  color: #546341;
  background: #eef1e5;
}

.anonymous-stack article div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.anonymous-stack article b {
  font-family: var(--serif);
  font-size: 0.83rem;
}

.anonymous-stack article small {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.52rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.anonymous-stack article > strong {
  min-width: 38px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-align: right;
}

.no-photo-note {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 13px 24px 21px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 0.55rem;
  line-height: 1.5;
}

.no-photo-note span {
  color: var(--signal);
  font-weight: 800;
  white-space: nowrap;
}

.hero-marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--mint-light);
}

.hero-marquee-track {
  width: max-content;
  display: flex;
  will-change: transform;
  animation: marquee 40s linear infinite;
}

.hero-marquee-group {
  min-height: 52px;
  padding-right: 22px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--forest);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-marquee i {
  color: var(--signal);
  font-style: normal;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.principle-section,
.match-section,
.privacy-section,
.faq-section {
  padding: 112px 0;
}

.section-heading {
  margin-bottom: 52px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.56fr);
  align-items: end;
  gap: 70px;
}

.section-heading h2,
.privacy-heading h2,
.membership-copy h2,
.faq-grid h2 {
  font-size: clamp(2.35rem, 4vw, 3.9rem);
  line-height: 1.05;
}

.split-heading > p {
  margin: 0 0 3px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.75;
}

.principle-grid {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.principle-card {
  min-height: 390px;
  padding: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
}

.principle-card:nth-child(even) {
  background: rgba(237, 244, 240, 0.8);
}

.principle-image {
  width: 100%;
  height: 168px;
  border-bottom: 1px solid var(--line);
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
}

.principle-card-copy {
  padding: 24px 22px 28px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.principle-card h3 {
  min-height: 2.4em;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.15;
}

.principle-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.68;
}

.possibility-section {
  padding: 112px 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 252, 245, 0.96), rgba(230, 241, 235, 0.82));
}

.possibility-heading {
  align-items: center;
}

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

.activity-card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(190px, 0.92fr);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
}

.activity-card:nth-child(2) {
  background: rgba(236, 243, 239, 0.94);
}

.activity-card:nth-child(3) {
  background: rgba(248, 235, 229, 0.92);
}

.activity-card:nth-child(4) {
  background: rgba(234, 241, 245, 0.94);
}

.activity-photo {
  width: 100%;
  height: 100%;
  min-height: 290px;
  aspect-ratio: 1;
  order: 1;
  display: block;
  object-fit: cover;
}

.activity-card figcaption {
  padding: clamp(24px, 3vw, 38px);
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.activity-card:nth-child(even) .activity-photo {
  order: 2;
}

.activity-card:nth-child(even) figcaption {
  order: 1;
}

.activity-card figcaption > span {
  margin-bottom: auto;
  padding-bottom: 34px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.06;
}

.activity-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.65;
}

.how-section {
  position: relative;
  padding: 112px 0;
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--forest-deep);
  background-size: 36px 36px;
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(70px, 10vw, 145px);
}

.how-copy {
  align-self: start;
  position: sticky;
  top: 116px;
}

.how-copy h2 {
  font-size: clamp(2.5rem, 4.3vw, 4.25rem);
  line-height: 1.02;
}

.how-copy > p:not(.eyebrow):not(.method-note) {
  margin: 25px 0 0;
  color: #c8d8d5;
  font-size: 0.9rem;
  line-height: 1.8;
}

.method-note {
  margin: 25px 0 30px;
  padding: 16px 18px;
  border: 1px solid var(--line-dark);
  color: #b9ccc8;
  font-size: 0.72rem;
  line-height: 1.65;
}

.method-note strong {
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.steps-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.steps-list li {
  padding: 30px 0;
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
}

.steps-list > li > span {
  color: #88aaa4;
  font-family: var(--mono);
  font-size: 0.67rem;
}

.steps-list h3 {
  margin: -5px 0 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.steps-list p {
  margin: 0;
  color: #b9cbc7;
  font-size: 0.77rem;
  line-height: 1.7;
}

.centered-heading {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.centered-heading .eyebrow {
  justify-content: center;
}

.sample-match-wrap {
  max-width: 740px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 24px;
}

.sample-match-card {
  border: 1px solid #aebcb7;
  background: var(--white);
  box-shadow: var(--shadow);
}

.sample-profile {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 17px;
  background: var(--mint-light);
}

.match-element {
  width: 76px;
  height: 76px;
  padding: 7px 8px 6px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  color: var(--white);
  background: var(--forest);
  line-height: 1;
}

.match-element-number {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.03em;
}

.match-element-symbol {
  font-family: var(--sans);
  font-size: 1.65rem;
  font-weight: 800;
}

.match-element-name {
  max-width: 100%;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 0.48rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-profile-copy {
  display: grid;
  gap: 7px;
}

.sample-profile-copy p,
.sample-profile-copy h3,
.sample-profile-copy span {
  margin: 0;
}

.sample-profile-copy p {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sample-profile-copy h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.sample-profile-copy span {
  color: var(--muted);
  font-size: 0.66rem;
}

.sample-profile > strong {
  color: var(--forest);
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 500;
  text-align: right;
}

.sample-profile > strong small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.match-reasons {
  padding: 8px 24px;
}

.match-reasons > div {
  padding: 17px 0;
  border-bottom: 1px solid #e2e6e4;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
}

.match-reasons > div:last-child {
  border-bottom: 0;
}

.match-reasons span,
.reason-block span {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.match-reasons b {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1.5;
}

.sample-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fafbf9;
}

.sample-actions span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.54rem;
  text-transform: uppercase;
}

.sample-actions button {
  padding: 8px 12px;
  border: 1px solid var(--forest);
  color: var(--forest);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 750;
  text-transform: uppercase;
}

.match-side-note {
  margin-bottom: 20px;
  padding: 21px;
  border-left: 3px solid var(--signal);
  background: #f1eee7;
}

.match-side-note span {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.match-side-note p {
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.65;
}

.privacy-section {
  border-block: 1px solid var(--line);
  background: rgba(237, 244, 240, 0.88);
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(70px, 10vw, 140px);
}

.privacy-heading > p:not(.eyebrow) {
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.8;
}

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

.privacy-list article {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
}

.privacy-list article > span {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--teal);
  background: var(--paper-warm);
  font-family: var(--mono);
}

.privacy-list h3 {
  margin: -2px 0 6px;
  font-family: var(--serif);
  font-size: 1.17rem;
  font-weight: 600;
}

.privacy-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.7;
}

.membership-section {
  padding: 112px 0;
  color: var(--white);
  background: var(--forest);
}

.membership-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: clamp(70px, 12vw, 155px);
}

.membership-copy h2 {
  max-width: 700px;
}

.membership-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 25px 0;
  color: #c5d8d4;
  font-size: 0.87rem;
  line-height: 1.8;
}

.membership-copy ul {
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 26px;
  list-style: none;
}

.membership-copy li {
  padding: 14px 0 14px 22px;
  border-top: 1px solid var(--line-dark);
  position: relative;
  color: #d2e0dd;
  font-size: 0.7rem;
  line-height: 1.5;
}

.membership-copy li::before {
  position: absolute;
  left: 0;
  content: "+";
  color: #91bbb3;
  font-family: var(--mono);
}

.price-card {
  padding: 31px;
  border: 1px solid #8ba9a3;
  color: var(--ink);
  background: var(--paper-warm);
  box-shadow: 13px 13px 0 rgba(0, 0, 0, 0.13);
}

.price-card > p:first-child {
  margin: 0;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.price {
  margin: 22px 0 20px;
  display: flex;
  align-items: start;
}

.price > span {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.price strong {
  font-family: var(--serif);
  font-size: 5.7rem;
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.85;
}

.price small {
  margin: auto 0 8px 15px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.59rem;
  text-transform: uppercase;
}

.price-note {
  min-height: 64px;
  margin: 0 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.71rem;
  line-height: 1.6;
}

.price-card > small {
  margin-top: 13px;
  display: block;
  color: var(--muted);
  font-size: 0.6rem;
  text-align: center;
}

.membership-intro {
  margin-bottom: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.52fr);
  align-items: end;
  gap: 70px;
}

.membership-intro h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4vw, 3.9rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.membership-intro > p {
  margin: 0 0 3px;
  color: #c5d8d4;
  font-size: 0.8rem;
  line-height: 1.8;
}

.plan-grid {
  width: min(100%, 920px);
  margin-inline: auto;
  border-top: 1px solid #8aa8a2;
  border-left: 1px solid #8aa8a2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.plan-card {
  min-height: 540px;
  padding: 29px;
  border-right: 1px solid #8aa8a2;
  border-bottom: 1px solid #8aa8a2;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #f2f3ef;
}

.plan-card-community {
  background: var(--mint-light);
}

.plan-card-featured {
  position: relative;
  color: var(--white);
  background: var(--forest-deep);
  box-shadow: inset 0 4px 0 #9bc7bf;
}

.plan-flag {
  position: absolute;
  top: -31px;
  right: -1px;
  padding: 8px 11px;
  color: var(--forest-deep);
  background: #9bc7bf;
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-card-head {
  min-height: 116px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  display: grid;
  align-content: space-between;
  gap: 20px;
}

.plan-card-featured .plan-card-head {
  border-color: var(--line-dark);
}

.plan-card-head > p {
  margin: 0;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-card-featured .plan-card-head > p {
  color: #9bc7bf;
}

.plan-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.plan-price strong {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.85;
}

.plan-price span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-card-featured .plan-price span {
  color: #9fb8b3;
}

.plan-description {
  min-height: 82px;
  margin: 23px 0 18px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.7;
}

.plan-card-featured .plan-description {
  color: #bfd0cd;
}

.plan-card > ul {
  margin: 0 0 27px;
  padding: 0;
  list-style: none;
}

.plan-card > ul li {
  padding: 12px 0 12px 21px;
  border-top: 1px solid var(--line);
  position: relative;
  color: var(--ink-soft);
  font-size: 0.67rem;
  line-height: 1.5;
}

.plan-card-featured > ul li {
  border-color: var(--line-dark);
  color: #d0ddda;
}

.plan-card > ul li::before {
  position: absolute;
  left: 0;
  color: var(--teal);
  content: "+";
  font-family: var(--mono);
  font-weight: 800;
}

.plan-card-featured > ul li::before {
  color: #9bc7bf;
}

.plan-card > .button {
  margin-top: auto;
}

.plan-card:not(.plan-card-featured) > .button-light {
  border-color: var(--forest);
  color: var(--forest);
  background: transparent;
}

.plan-card:not(.plan-card-featured) > .button-light:hover {
  color: var(--white);
  background: var(--forest);
}

.plan-card-featured > .button-primary {
  color: var(--forest-deep);
  background: #a9d0c9;
  border-color: #a9d0c9;
}

.plan-card-featured > .button-primary:hover {
  background: var(--white);
  border-color: var(--white);
}

.safety-standard {
  padding: 25px 28px;
  border: 1px solid #8aa8a2;
  border-top: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 42px;
  background: rgba(255, 255, 255, 0.06);
}

.safety-standard p {
  margin: 0;
  display: grid;
  gap: 5px;
}

.safety-standard p span {
  color: #9bc7bf;
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.safety-standard p strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
}

.safety-standard ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  list-style: none;
}

.safety-standard li {
  color: #bfd0cd;
  font-size: 0.62rem;
  line-height: 1.45;
}

.safety-standard li::before {
  margin-right: 7px;
  color: #9bc7bf;
  content: "✓";
}

.membership-availability-note {
  margin: 16px 0 0;
  color: #9fb8b3;
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.membership-access-panel {
  margin: 24px 0 0;
  padding: 17px 19px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: var(--mint-light);
}

.membership-access-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.membership-access-panel p {
  margin: 0;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.membership-access-panel strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}

.membership-access-panel > div:first-child > span {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.5;
}

.refinement-panel {
  margin: 24px 0 0;
  padding: 22px;
  border: 1px solid #aebcb7;
  border-left: 4px solid var(--signal);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  background: #f1eee7;
}

.refinement-panel > div:first-child {
  display: grid;
  gap: 6px;
}

.refinement-panel p {
  margin: 0;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.refinement-panel h3 {
  margin: 0;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}

.refinement-panel span {
  color: var(--ink-soft);
  font-size: 0.65rem;
  line-height: 1.6;
}

.refinement-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.refinement-actions .button {
  min-height: 42px;
  font-size: 0.62rem;
}

.refinement-actions [hidden] {
  display: none;
}

.foundation-panel {
  margin-top: 14px;
  border-left-color: var(--teal);
}

.tier-switcher {
  display: flex;
  flex-shrink: 0;
}

.tier-switcher button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-right: 0;
  color: var(--ink-soft);
  background: var(--white);
  font-family: var(--mono);
  font-size: 0.51rem;
  font-weight: 750;
  text-transform: uppercase;
}

.tier-switcher button:last-child {
  border-right: 1px solid var(--line);
}

.tier-switcher button.active {
  border-color: var(--forest);
  color: var(--white);
  background: var(--forest);
}

.tier-switcher button.active + button {
  border-left-color: var(--forest);
}

.filter-buttons.locked button:not([data-filter="all"]) {
  opacity: 0.45;
}

.result-card.result-restricted .result-initial {
  color: var(--forest);
  background: transparent;
}

.result-tier-note {
  margin: 0;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #f4f2eb;
  font-size: 0.59rem;
  line-height: 1.55;
}

.pair-button:disabled,
.pair-button.locked {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
  cursor: not-allowed;
  opacity: 0.75;
}

.faq-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(65px, 10vw, 135px);
}

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

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--teal);
  font-family: var(--mono);
  font-weight: 400;
  transition: transform 160ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 690px;
  margin: -4px 45px 25px 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.75;
}

.final-cta {
  color: var(--white);
  background: var(--forest-deep);
}

.final-cta-inner {
  min-height: 185px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
}

.final-cta p {
  max-width: 770px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--paper-warm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 40px;
}

.brand-footer .brand-mark {
  width: 38px;
  height: 38px;
}

.brand-footer .brand-logo {
  width: 210px;
  max-height: none;
}

.footer-grid > p {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.65;
}

.footer-grid > div {
  display: grid;
  justify-items: end;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.56rem;
}

.site-footer button,
.site-footer a {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--teal);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.56rem;
  text-decoration: none;
  text-transform: uppercase;
}

/* Assessment dialog */
.quiz-dialog,
.matches-dialog {
  width: min(1100px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid #91a59f;
  border-radius: 0;
  color: var(--ink);
  background: var(--paper-warm);
  box-shadow: 0 32px 100px rgba(3, 20, 18, 0.4);
}

.quiz-dialog::backdrop,
.matches-dialog::backdrop {
  background: rgba(7, 28, 26, 0.76);
  backdrop-filter: blur(6px);
}

.matches-dialog {
  width: min(1180px, calc(100% - 28px));
  border-top: 5px solid var(--signal);
}

.matches-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 76px;
  padding-inline: clamp(20px, 4vw, 44px);
  border-bottom-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
  background: var(--forest-deep);
}

.matches-header-copy {
  margin-right: auto;
  display: grid;
  gap: 4px;
}

.matches-header-copy span {
  color: #a9c5c0;
  font-family: var(--mono);
  font-size: 0.49rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.matches-header-copy strong {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
}

.matches-header .quiz-close {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.quiz-shell {
  min-height: min(780px, calc(100dvh - 28px));
  display: flex;
  flex-direction: column;
}

.quiz-header {
  min-height: 72px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-brand .brand-mark {
  width: 39px;
  height: 39px;
}

.quiz-brand .brand-logo {
  width: 180px;
  max-height: 66px;
}

.quiz-header-status {
  margin-right: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quiz-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: transparent;
  font-family: var(--mono);
  font-size: 1.1rem;
}

.quiz-view[hidden] {
  display: none !important;
}

.quiz-intro {
  min-height: 620px;
  padding: 64px clamp(35px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(60px, 10vw, 120px);
  background:
    linear-gradient(rgba(20, 63, 59, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 63, 59, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.quiz-intro-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1.03;
}

.quiz-intro-copy > p:not(.eyebrow) {
  margin: 25px 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.78;
}

.quiz-intro-copy ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.quiz-intro-copy li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.61rem;
  text-transform: uppercase;
}

.quiz-intro-copy li::before {
  margin-right: 12px;
  color: var(--teal);
  content: "[✓]";
}

.profile-form {
  padding: 28px;
  border: 1px solid var(--line);
  display: grid;
  background: var(--white);
  box-shadow: var(--shadow);
}

.profile-form label {
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.57rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-form input,
.profile-form select {
  width: 100%;
  height: 48px;
  margin-bottom: 19px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fcfcfa;
  outline: none;
}

.profile-form input:focus,
.profile-form select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28, 107, 99, 0.12);
}

.profile-form > small {
  margin: -9px 0 20px;
  color: var(--muted);
  font-size: 0.59rem;
  line-height: 1.5;
}

.question-view {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.question-progress-wrap {
  padding: 18px 30px 0;
}

.question-meta {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.question-meta span:last-child {
  color: var(--teal);
}

.progress-track {
  height: 4px;
  background: #dce3df;
}

.progress-track span {
  width: 4%;
  height: 100%;
  display: block;
  background: var(--teal);
  transition: width 220ms ease;
}

.question-stage {
  width: min(760px, calc(100% - 50px));
  margin: auto;
  padding: 45px 0;
}

.question-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.question-stage h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  outline: none;
}

.question-context {
  margin: 14px 0 25px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.65;
}

.answer-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.answer-option {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: start;
  gap: 13px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease;
}

.answer-option:hover {
  border-color: #8aa39d;
  background: var(--mint-light);
}

.answer-option.selected {
  border-color: var(--teal);
  background: #e8f2ee;
  box-shadow: inset 4px 0 0 var(--teal);
}

.answer-option > span:first-child {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 800;
}

.answer-option.selected > span:first-child {
  border-color: var(--teal);
  color: var(--white);
  background: var(--teal);
}

.answer-option > span:last-child {
  display: grid;
  gap: 6px;
}

.answer-option b {
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.answer-option small {
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.45;
}

.question-controls {
  padding: 17px 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: #fafbf9;
}

.question-controls .button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.results-view {
  padding: 45px clamp(25px, 5vw, 64px) 55px;
}

.results-heading {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
}

.results-heading h2 {
  max-width: 770px;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.05;
  outline: none;
}

.results-heading > div:first-child > p:last-child {
  max-width: 690px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.answer-complete {
  min-width: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mint-light);
}

.answer-complete strong {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
}

.answer-complete span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.5rem;
  line-height: 1.45;
  text-transform: uppercase;
}

.results-toolbar {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-buttons button,
.retake-button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-buttons button.active {
  border-color: var(--forest);
  color: var(--white);
  background: var(--forest);
}

.retake-button {
  border: 0;
  border-bottom: 1px solid var(--line);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.results-loading,
.results-waiting {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--mint-light);
  font-size: 0.7rem;
  line-height: 1.65;
}

.results-waiting strong {
  display: block;
  margin-bottom: 7px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.results-waiting p {
  margin: 0;
}

.result-card {
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.result-card-head {
  padding: 17px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 45px 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--mint-light);
}

.result-initial {
  width: 45px;
  height: 45px;
  border: 1px solid var(--forest);
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--forest);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 800;
}

.result-name h3,
.result-name p {
  margin: 0;
}

.result-name h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.result-name p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.61rem;
}

.result-score {
  color: var(--teal);
  display: grid;
  font-family: var(--serif);
  font-size: 2rem;
  justify-items: end;
}

.result-score strong {
  font: inherit;
  font-weight: 400;
}

.result-score small {
  font-family: var(--mono);
  font-size: 0.54rem;
}

.result-score em {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.result-card-body {
  flex: 1;
  padding: 18px;
}

.result-card-body > p:not(.result-location) {
  margin: 0 0 17px;
  color: var(--ink-soft);
  font-size: 0.67rem;
  line-height: 1.65;
}

.result-location {
  margin: 0 0 13px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
}

.reason-block {
  padding: 12px 0;
  border-top: 1px solid #e1e6e3;
  display: grid;
  gap: 6px;
}

.reason-block b {
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 550;
  line-height: 1.5;
}

.match-dimension-profile {
  border-top: 1px solid #e1e6e3;
}

.match-dimension-title {
  margin: 0;
  padding: 12px 0 8px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.match-dimension-legend {
  padding: 0 0 9px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.49rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.match-dimension-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.match-dimension-legend i {
  width: 10px;
  height: 4px;
  display: inline-block;
}

.match-dimension-legend .is-viewer {
  background: var(--comparison);
}

.match-dimension-legend .is-match {
  background: var(--teal);
}

.match-dimension-row {
  padding: 10px 0 11px;
  border-top: 1px solid #e1e6e3;
}

.match-dimension-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.match-dimension-heading > span {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 600;
}

.match-dimension-heading small {
  margin-right: 7px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 750;
}

.match-dimension-heading strong {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.63rem;
}

.match-dimension-bars {
  margin: 6px 0 7px;
}

.match-dimension-track {
  height: 3px;
  overflow: hidden;
  background: #dfe7e3;
}

.match-dimension-track i {
  display: block;
  height: 100%;
}

.match-dimension-track.is-viewer i {
  background: var(--comparison);
}

.match-dimension-track.is-match i {
  background: var(--teal);
}

.match-dimension-row > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.62rem;
  line-height: 1.45;
}

.result-card-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fafbf9;
}

.result-card-footer > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.48rem;
  text-transform: uppercase;
}

.pair-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--forest);
  display: inline-flex;
  align-items: center;
  color: var(--forest);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 750;
  text-decoration: none;
  text-transform: uppercase;
}

.pair-button.requested {
  color: var(--white);
  background: var(--forest);
}

.results-privacy {
  margin: 22px 0 0;
  padding: 15px 17px;
  border-left: 3px solid var(--signal);
  display: flex;
  gap: 13px;
  color: var(--ink-soft);
  background: #f1eee7;
  font-size: 0.65rem;
  line-height: 1.6;
}

.results-privacy p {
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 500;
  right: 22px;
  bottom: 22px;
  max-width: 410px;
  padding: 14px 17px;
  border: 1px solid #7b9992;
  color: var(--white);
  background: var(--forest-deep);
  box-shadow: 0 14px 40px rgba(8, 35, 32, 0.28);
  font-size: 0.68rem;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: none;
}

.quiz-account-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.6;
}

.quiz-account-note a {
  color: var(--teal);
  font-weight: 750;
}

.account-body {
  min-height: 100vh;
}

.account-nav-shell .button {
  margin-left: auto;
}

.account-main {
  padding: 80px 0 100px;
}

.account-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 70px;
}

.account-intro h1 {
  max-width: 760px;
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.account-intro h1 em {
  color: var(--teal);
  font-weight: 400;
}

.account-intro > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.8;
}

.account-grid {
  margin-top: 58px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 22px;
}

.account-grid[hidden],
.profile-settings[hidden],
.account-report[hidden] {
  display: none;
}

.account-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.account-card-featured {
  border-top: 4px solid var(--teal);
}

.account-card-kicker {
  margin: 0 0 11px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.57rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-card h2,
.account-dashboard h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
}

.account-card > p:not(.account-card-kicker),
.account-dashboard p {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.65;
}

.account-card form {
  margin-top: 25px;
  display: grid;
  gap: 9px;
}

.account-card label {
  margin-top: 8px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-card input,
.account-card select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #aebcb7;
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.account-card input:focus,
.account-card select:focus {
  outline: 3px solid rgba(117, 169, 162, 0.35);
  border-color: var(--teal);
}

.account-card form > small {
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.5;
}

.account-card form .button {
  margin-top: 15px;
}

.account-form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.account-form-pair > div {
  display: grid;
  gap: 9px;
}

.account-dashboard {
  margin-top: 58px;
  padding: 32px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 25px;
  background: var(--mint-light);
  box-shadow: var(--shadow);
}

.account-dashboard[hidden] {
  display: none;
}

.account-element {
  width: 88px;
  height: 88px;
  padding: 8px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  place-items: center;
  color: var(--white);
  background: var(--forest);
}

.account-element span,
.account-element small {
  font-family: var(--mono);
  font-size: 0.5rem;
}

.account-element b {
  font-size: 2rem;
}

.account-dashboard-actions {
  display: flex;
  gap: 10px;
}

.account-report {
  position: relative;
  margin-top: 28px;
  border: 1px solid #a9bbb5;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.account-report::before {
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(20, 63, 59, 0.09);
  content: "";
  pointer-events: none;
}

.account-report .dimension-bars > div {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 12px;
  padding: 10px 0 11px;
  border-top: 1px solid #e1e6e3;
}

.account-report .dimension-bars > div:first-child {
  border-top: 0;
}

.account-report .dimension-bars span {
  grid-column: 1;
  grid-row: 1;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 600;
}

.account-report .dimension-bars span b {
  font-size: 0.5rem;
  font-weight: 750;
}

.account-report .dimension-bars > div > strong {
  grid-column: 2;
  grid-row: 1;
  align-self: baseline;
  color: var(--teal);
  font-size: 0.63rem;
}

.account-report .dimension-bars > div > i {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: 3px;
  margin: 6px 0 7px;
}

.account-report .dimension-bars i em {
  width: 0;
  transition: width 500ms ease;
}

.account-dimension-summary {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.62rem;
  line-height: 1.45;
}

.account-report-key {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.65;
}

.account-sequence article > strong.waiting {
  color: var(--muted);
  font-size: 0.58rem;
}

.profile-settings {
  margin-top: 32px;
}

.profile-settings-heading {
  padding: 28px 30px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 50px;
  background: var(--white);
}

.profile-settings-heading h2 {
  margin: 13px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.profile-settings-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.75;
}

.profile-settings-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.profile-settings-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.photo-settings-card {
  position: sticky;
  top: 20px;
}

.profile-photo-frame {
  width: 100%;
  aspect-ratio: 1;
  margin: 19px 0 22px;
  border: 1px solid var(--line);
  background: var(--mint-light);
  overflow: hidden;
}

.profile-photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-photo-frame img[hidden],
.profile-photo-placeholder[hidden] {
  display: none;
}

.profile-photo-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-settings-card form,
.profile-details-card form {
  display: grid;
  gap: 12px;
}

.profile-settings-card label {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.57rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.profile-settings-card input,
.profile-settings-card select,
.profile-settings-card textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #aebcb7;
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.profile-settings-card textarea {
  min-height: 110px;
  line-height: 1.55;
  resize: vertical;
}

.profile-settings-card input:focus,
.profile-settings-card select:focus,
.profile-settings-card textarea:focus {
  outline: 3px solid rgba(117, 169, 162, 0.35);
  border-color: var(--teal);
}

.photo-settings-card form > small {
  color: var(--muted);
  font-size: 0.57rem;
  line-height: 1.6;
}

.profile-photo-review {
  margin: -9px 0 20px;
  padding: 9px 10px;
  border: 1px solid #c9d4cf;
  color: var(--teal);
  background: var(--mint-light);
  font-family: var(--mono);
  font-size: 0.53rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

.profile-photo-review[hidden] {
  display: none;
}

.profile-photo-guidance {
  padding: 13px;
  border-left: 3px solid var(--signal);
  display: grid;
  gap: 5px;
  background: #f1eee7;
}

.profile-photo-guidance strong {
  color: var(--ink);
  font-size: 0.64rem;
}

.profile-photo-guidance span {
  color: var(--ink-soft);
  font-size: 0.58rem;
  line-height: 1.55;
}

.photo-crop-dialog {
  width: min(calc(100% - 32px), 620px);
  max-height: min(92dvh, 860px);
  margin: auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  overflow: auto;
}

.photo-crop-dialog::backdrop {
  background: rgba(6, 27, 25, 0.82);
  backdrop-filter: blur(3px);
}

.photo-crop-shell {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.photo-crop-header {
  min-height: 92px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: var(--forest);
}

.photo-crop-header span {
  display: block;
  margin-bottom: 5px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-crop-header h2 {
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.photo-crop-close {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  flex: 0 0 auto;
  color: var(--white);
  background: transparent;
  font: 300 1.65rem/1 var(--sans);
  cursor: pointer;
}

.photo-crop-close:hover,
.photo-crop-close:focus-visible {
  color: var(--forest);
  background: var(--white);
}

.photo-crop-close:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

.photo-crop-body {
  padding: 24px;
}

.photo-crop-preview {
  width: min(100%, 470px);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 1px solid var(--line);
  background-color: #dce7e2;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.42) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.42) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.42) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.42) 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  overflow: hidden;
}

.photo-crop-preview canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.photo-crop-preview canvas.is-dragging {
  cursor: grabbing;
}

.photo-crop-preview canvas:focus-visible {
  outline: 4px solid var(--signal);
  outline-offset: -4px;
}

.photo-crop-instructions {
  width: min(100%, 470px);
  margin: 16px auto 18px;
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.65;
}

.photo-crop-zoom {
  width: min(100%, 470px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
}

.photo-crop-zoom label,
.photo-crop-zoom output {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.photo-crop-zoom output {
  text-align: right;
}

.photo-crop-zoom input {
  width: 100%;
  accent-color: var(--signal);
  cursor: pointer;
}

.photo-crop-status {
  min-height: 18px;
  margin: 15px 0 0;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.55rem;
  text-align: center;
}

.photo-crop-status.error {
  color: #9f3f32;
}

.photo-crop-actions {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.photo-crop-actions .button:disabled,
.photo-crop-close:disabled {
  opacity: 0.55;
  cursor: wait;
}

.assessment-reset-dialog {
  width: min(calc(100% - 32px), 540px);
  margin: auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.assessment-reset-dialog::backdrop {
  background: rgba(6, 27, 25, 0.86);
  backdrop-filter: blur(3px);
}

.assessment-reset-shell {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-top: 5px solid #8e352b;
  background: var(--paper-warm);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.assessment-reset-shell h2 {
  margin: 10px 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.assessment-reset-shell > p:not(.account-card-kicker):not(.assessment-reset-status) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.7;
}

.assessment-reset-actions {
  margin-top: 25px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.assessment-reset-status {
  min-height: 18px;
  margin: 14px 0 0;
  color: #8e352b;
  font-family: var(--mono);
  font-size: 0.56rem;
}

.profile-details-card fieldset {
  margin: 0;
  padding: 0 0 25px;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.profile-details-card fieldset + fieldset {
  padding-top: 13px;
}

.profile-details-card legend {
  width: 100%;
  margin-bottom: 16px;
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 650;
}

.profile-fieldset-note {
  margin: -6px 0 10px;
  color: var(--ink-soft);
  font-size: 0.69rem;
  line-height: 1.65;
}

.preference-delay-note {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-left: 3px solid var(--rust);
  color: var(--ink-soft);
  background: #f5f1e8;
  font-size: 0.62rem;
  line-height: 1.55;
}

.preference-delay-note.pending {
  border-left-color: var(--teal);
  background: var(--mint-light);
}

.preference-delay-note.bypassed {
  border-left-color: #4b8c64;
  background: #edf5ef;
}

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

.profile-form-grid-three {
  grid-template-columns: minmax(110px, 0.5fr) minmax(110px, 0.5fr) minmax(210px, 1fr);
}

.profile-form-grid > div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.profile-details-card form > .button {
  justify-self: start;
  margin-top: 8px;
}

.account-status {
  min-height: 24px;
  margin-top: 20px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.account-status.error {
  color: #9f3f32;
}

.account-privacy-note {
  margin-top: 38px;
  padding: 20px 22px;
  border-left: 3px solid var(--signal);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 25px;
  background: #f1eee7;
}

.account-privacy-note span {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 750;
  text-transform: uppercase;
}

.account-privacy-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.65;
}

@media (max-width: 850px) {
  .account-intro,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-intro {
    gap: 28px;
  }

  .account-dashboard {
    grid-template-columns: 76px 1fr;
  }

  .account-dashboard-actions {
    grid-column: 1 / -1;
  }

  .account-report .dimension-bars > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .profile-settings-heading,
  .profile-settings-grid {
    grid-template-columns: 1fr;
  }

  .profile-settings-heading {
    gap: 24px;
  }

  .photo-settings-card {
    position: static;
  }

  .profile-photo-frame {
    width: min(260px, 100%);
  }
}

@media (max-width: 620px) {
  .account-main {
    padding-top: 52px;
  }

  .account-nav-shell .button {
    padding-inline: 9px;
    font-size: 0.53rem;
  }

  .account-card {
    padding: 23px;
  }

  .account-form-pair,
  .account-privacy-note {
    grid-template-columns: 1fr;
  }

  .account-dashboard {
    padding: 23px;
  }

  .account-dashboard-actions {
    flex-direction: column;
  }

  .account-report .dimension-bars > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .profile-settings-heading,
  .profile-settings-card {
    padding: 22px;
  }

  .profile-form-grid,
  .profile-form-grid-three {
    grid-template-columns: 1fr;
  }

  .profile-details-card form > .button {
    width: 100%;
  }

  .photo-crop-dialog {
    width: 100%;
    max-height: 100dvh;
  }

  .photo-crop-shell {
    min-height: 100dvh;
    border: 0;
  }

  .photo-crop-header,
  .photo-crop-body {
    padding-inline: 18px;
  }

  .photo-crop-actions {
    padding-inline: 18px;
    flex-direction: column-reverse;
  }

  .photo-crop-actions .button {
    width: 100%;
  }
}

@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
  }

  .principle-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .membership-grid {
    grid-template-columns: 1fr 340px;
    gap: 60px;
  }

  .plan-card {
    padding: 24px;
  }

  .safety-standard {
    grid-template-columns: 240px 1fr;
    gap: 30px;
  }

  .safety-standard ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  :root {
    --shell: min(100% - 36px, 700px);
  }

  .desktop-nav {
    display: none;
  }

  .nav-shell .button {
    margin-left: auto;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-brand-shell {
    padding-bottom: 48px;
  }

  .hero-brand-actions {
    position: static;
    width: min(100%, 610px);
    margin: -6px 0 32px;
  }

  .hero-brand-actions > p {
    font-size: 0.92rem;
  }

  .hero-grid,
  .split-heading,
  .membership-intro,
  .how-grid,
  .privacy-grid,
  .membership-grid,
  .faq-grid,
  .quiz-intro {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
    gap: 55px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-report {
    width: min(100%, 610px);
  }

  .split-heading {
    gap: 24px;
  }

  .membership-intro {
    gap: 24px;
  }

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

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

  .plan-description {
    min-height: 0;
  }

  .plan-flag {
    top: 0;
  }

  .safety-standard {
    grid-template-columns: 1fr;
  }

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

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

  .how-copy {
    position: static;
  }

  .how-grid,
  .privacy-grid,
  .membership-grid,
  .faq-grid {
    gap: 60px;
  }

  .sample-match-wrap {
    grid-template-columns: 1fr;
  }

  .match-side-note {
    margin: 0;
  }

  .price-card {
    width: min(100%, 430px);
  }

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

  .footer-grid > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .quiz-intro {
    align-items: start;
    gap: 45px;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .site-header .brand-copy small {
    display: none;
  }

  .site-header .brand-logo {
    width: 148px;
    max-height: 62px;
    margin-block: 8px;
  }

  .nav-shell {
    min-height: 66px;
  }

  .nav-shell .button {
    min-height: 37px;
    padding-inline: 12px;
  }

  .hero {
    padding-top: 14px;
  }

  .hero-brand-shell {
    padding-bottom: 38px;
  }

  .hero-brand-art {
    width: 116%;
    max-width: none;
    margin-left: -8%;
  }

  .hero-brand-actions {
    margin-top: -4px;
    padding-left: 14px;
  }

  .hero-grid {
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .text-link {
    align-self: flex-start;
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .membership-access-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .tier-switcher button {
    flex: 1;
  }

  .report-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .dimension-bars > div {
    grid-template-columns: 1fr 65px 22px;
    gap: 9px;
  }

  .dimension-bars span {
    font-size: 0.63rem;
  }

  .principle-section,
  .possibility-section,
  .match-section,
  .privacy-section,
  .faq-section,
  .membership-section,
  .how-section {
    padding: 78px 0;
  }

  .principle-grid,
  .membership-copy ul,
  .safety-standard ul {
    grid-template-columns: 1fr;
  }

  .principle-card {
    min-height: 250px;
  }

  .principle-image {
    height: 220px;
  }

  .activity-card {
    grid-template-columns: 1fr;
  }

  .activity-photo,
  .activity-card:nth-child(even) .activity-photo {
    height: auto;
    min-height: 0;
    order: 1;
  }

  .activity-card figcaption,
  .activity-card:nth-child(even) figcaption {
    min-height: 220px;
    order: 2;
  }

  .sample-profile {
    grid-template-columns: 68px 1fr;
  }

  .match-element {
    width: 68px;
    height: 68px;
  }

  .sample-profile > strong {
    grid-column: 2;
    font-size: 2rem;
    text-align: left;
  }

  .match-reasons > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .sample-actions,
  .final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-cta-inner {
    padding-block: 50px;
  }

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

  .footer-grid > p {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-grid > div {
    justify-items: start;
  }

  .quiz-dialog,
  .matches-dialog {
    width: 100%;
    max-height: 100dvh;
    border: 0;
  }

  .quiz-shell {
    min-height: 100dvh;
  }

  .quiz-header {
    min-height: 65px;
    padding-inline: 16px;
  }

  .quiz-brand .brand-copy small {
    display: none;
  }


  .quiz-brand .brand-logo {
    width: 138px;
    max-height: 58px;
  }

  .quiz-header-status {
    display: none;
  }

  .quiz-intro {
    min-height: 0;
    padding: 45px 20px 60px;
  }

  .profile-form {
    padding: 21px;
  }

  .question-progress-wrap {
    padding: 15px 18px 0;
  }

  .question-stage {
    width: calc(100% - 36px);
    padding: 34px 0;
  }

  .answer-options,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .answer-option {
    min-height: 75px;
  }

  .question-controls {
    position: sticky;
    bottom: 0;
    padding: 13px 18px;
  }

  .question-controls .button {
    min-height: 43px;
    padding-inline: 13px;
    font-size: 0.61rem;
  }

  .results-view {
    padding: 35px 18px 45px;
  }

  .results-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .refinement-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .refinement-actions,
  .assessment-reset-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .refinement-actions .button,
  .refinement-actions .retake-button,
  .assessment-reset-actions .button {
    width: 100%;
  }

  .answer-complete {
    width: max-content;
  }

  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Account security, policy, and notification controls */
.account-recovery { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.account-recovery summary,.account-data-card summary { cursor: pointer; color: var(--teal); font-weight: 700; }
.account-recovery form,.account-data-card form { margin-top: 14px; }
.account-consent { margin: 16px 0; display: grid !important; grid-template-columns: auto 1fr; align-items: start; gap: 9px; font-size: .72rem !important; line-height: 1.5; }
.account-consent input { width: auto !important; margin-top: 3px; }
.verification-notice { margin-top: 18px; padding: 18px 20px; border: 1px solid #d69d50; border-left: 4px solid var(--signal); display: flex; align-items: center; justify-content: space-between; gap: 22px; background: #fff6e7; }
.verification-notice strong { font-family: var(--serif); }
.verification-notice p { margin: 4px 0 0; color: var(--muted); font-size: .72rem; }
.notification-choice-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.notification-choice-grid label { padding: 11px; border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 9px; background: #fff; }
.notification-choice-grid input { width: auto !important; margin-top: 2px; }
.notification-choice-grid span { display: grid; gap: 2px; }
.notification-choice-grid strong { font-size: .72rem; }
.notification-choice-grid small { color: var(--muted); font-size: .62rem; line-height: 1.45; }
.notification-choice-grid .is-required { background: #f1f4f2; }
.account-management { padding-block: 56px 20px; }
.account-management-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.account-management-grid h3 { margin: 7px 0 16px; font-family: var(--serif); font-size: 1.25rem; }
.account-management-grid form { display: grid; align-content: start; gap: 8px; }
.account-management-grid input { width: 100%; padding: 10px; border: 1px solid var(--line); background: #fff; }
.account-management-grid .button { margin-top: 8px; justify-self: start; }
.account-data-card > p { color: var(--muted); font-size: .72rem; line-height: 1.6; }
.account-data-card details { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.button-danger { border-color: #8e3828 !important; color: #fff !important; background: #8e3828 !important; }
.account-policy-links,.legal-footer { padding-block: 22px 40px; display: flex; justify-content: center; gap: 20px; font: 700 .62rem var(--mono); text-transform: uppercase; }
.legal-page { padding-block: 60px; }
.legal-card { max-width: 820px; margin: 0 auto; padding: clamp(25px,5vw,58px); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.legal-card h1 { margin: 8px 0 12px; font: 600 clamp(2.3rem,6vw,4.8rem)/.95 var(--serif); letter-spacing: -.04em; }
.legal-card h2 { margin: 32px 0 8px; font: 600 1.3rem var(--serif); }
.legal-card p { color: var(--ink-soft); line-height: 1.7; }
.legal-effective { color: var(--muted) !important; font: 700 .62rem var(--mono); text-transform: uppercase; }
.legal-card hr { margin: 38px 0 24px; border: 0; border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  .account-management-grid { grid-template-columns: 1fr; }
  .notification-choice-grid { grid-template-columns: 1fr; }
  .verification-notice { align-items: flex-start; flex-direction: column; }
}
