@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-400.ttf") format("truetype");
}

/* RC v0.76 functional surfaces; the full visual pass follows in a separate commit. */
.personality-map,
.prep-day-feedback,
.test-path-card {
  border: 1px solid rgba(29, 69, 71, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.personality-map {
  margin-bottom: 28px;
  padding: clamp(24px, 4vw, 52px);
}

.personality-map-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  gap: 28px;
  align-items: end;
}

.personality-map-header h3 {
  margin: 10px 0 14px;
}

.personality-map-progress {
  display: grid;
  gap: 4px;
}

.personality-map-progress strong {
  font-family: var(--pa-serif, Georgia, serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
}

.personality-map-progress span,
.personality-map-progress small {
  color: var(--pa-muted, #6c7d80);
}

.personality-map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 34px 0;
  border-top: 1px solid rgba(29, 69, 71, 0.13);
  border-bottom: 1px solid rgba(29, 69, 71, 0.13);
}

.personality-coordinate {
  padding: 24px 20px;
}

.personality-coordinate + .personality-coordinate {
  border-left: 1px solid rgba(29, 69, 71, 0.13);
}

.personality-coordinate span,
.personality-map-tests span,
.prep-day-feedback > span {
  display: block;
  margin-bottom: 10px;
  color: var(--pa-muted, #6c7d80);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.personality-coordinate strong,
.personality-map-tests strong,
.prep-day-feedback > strong {
  display: block;
  color: var(--pa-deep, #1d4547);
}

.personality-coordinate p,
.personality-map-note {
  margin: 10px 0 0;
  color: var(--pa-muted, #6c7d80);
}

.personality-map-tests {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.personality-map-tests a {
  min-width: 180px;
  padding: 16px 18px;
  border: 1px solid rgba(29, 69, 71, 0.13);
  color: inherit;
  text-decoration: none;
}

.prep-day-feedback {
  margin-top: 18px;
  padding: 22px;
}

.prep-day-feedback p {
  margin: 10px 0 0;
}

.test-path-card {
  display: grid;
  gap: 10px;
  margin: 28px 0 34px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}

.test-path-card strong {
  font-family: var(--pa-serif, Georgia, serif);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 500;
}

.test-path-card p,
.test-path-card em {
  margin: 0;
}

.test-path-card em {
  color: var(--pa-deep, #1d4547);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.matching-criticality-field small {
  display: block;
  margin-top: 7px;
  color: var(--pa-muted, #6c7d80);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .personality-map-header,
  .personality-map-grid {
    grid-template-columns: 1fr 1fr;
  }

  .personality-coordinate:nth-child(3) {
    border-left: 0;
  }

  .personality-coordinate:nth-child(n + 3) {
    border-top: 1px solid rgba(29, 69, 71, 0.13);
  }
}

@media (max-width: 540px) {
  .personality-map-header,
  .personality-map-grid {
    grid-template-columns: 1fr;
  }

  .personality-coordinate + .personality-coordinate {
    border-top: 1px solid rgba(29, 69, 71, 0.13);
    border-left: 0;
  }
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-500.ttf") format("truetype");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-600.ttf") format("truetype");
}

:root {
  --ink: #1f2d36;
  --muted: #60717c;
  --soft: #f7f1e8;
  --paper: #fffdf9;
  --sky: #d8ecfb;
  --sky-deep: #7eb8de;
  --sage: #dbe9df;
  --sage-deep: #5c806c;
  --gold: #ead8a8;
  --clay: #efcfc2;
  --mist: #f4f8f8;
  --surface: rgba(255, 255, 255, 0.86);
  --line: rgba(55, 78, 92, 0.16);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(42, 66, 78, 0.1);
  --shadow-soft: 0 10px 30px rgba(42, 66, 78, 0.07);
  --radius: 8px;
  --radius-lg: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("assets/paper-grain.png");
  opacity: 0.18;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 72px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(255, 253, 249, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(52, 81, 96, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #1f475b;
  background: var(--sky);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.header-cta {
  transition: color 160ms ease;
}

.nav a:hover,
.header-cta:hover {
  color: var(--ink);
}

.header-cta {
  color: #2e657f;
  font-size: 14px;
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 128px clamp(20px, 5vw, 72px) 58px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.96) 0%, rgba(255, 253, 249, 0.83) 39%, rgba(255, 253, 249, 0.18) 100%),
    linear-gradient(0deg, rgba(255, 253, 249, 0.92) 0%, rgba(255, 253, 249, 0) 33%);
  z-index: -1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 50%;
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: #4c849e;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 520;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(38px, 5vw, 68px);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4.4vw, 60px);
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.25;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 32px;
  color: #405663;
  font-size: clamp(18px, 2.1vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  color: #153548;
  background: #bfe1f5;
  border-color: rgba(67, 132, 163, 0.18);
}

.button.primary:hover {
  background: #add8f1;
}

.button.secondary {
  color: #284758;
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #426171;
  font-size: 14px;
}

.trust-row span {
  padding: 7px 11px;
  border: 1px solid rgba(84, 136, 159, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.standalone-page {
  padding-top: clamp(112px, 13vw, 164px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.narrow {
  width: min(900px, 100%);
}

.lead {
  margin: 0;
  color: #314955;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 4vw, 48px);
  line-height: 1.18;
  text-align: center;
}

.split {
  background: #f6fbff;
  border-block: 1px solid rgba(126, 184, 222, 0.18);
}

.split-grid,
.safety-grid,
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
}

.contrast-list,
.safety-points {
  display: grid;
  gap: 18px;
}

.contrast-list article,
.steps article,
.safety-points div,
.signup-form,
.prep-app {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 40px rgba(52, 81, 96, 0.07);
}

.contrast-list article {
  padding: 24px;
}

.number,
.step-index {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: #326276;
  border-radius: 50%;
  background: #e9f6fd;
  font-size: 13px;
  font-weight: 760;
}

.contrast-list p,
.steps p,
.safety p,
.join p {
  color: var(--muted);
}

.value-band {
  background: #fff8ef;
}

.center-copy {
  width: min(820px, 100%);
  margin: 0 auto 36px;
  text-align: center;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill-grid span {
  padding: 10px 14px;
  color: #3b5b68;
  border: 1px solid rgba(120, 151, 160, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 620;
}

.section-heading {
  width: min(740px, 100%);
  margin-bottom: 36px;
}

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

.steps article {
  padding: 24px;
  min-height: 255px;
}

.safety {
  background: #eef8fe;
}

.preparation {
  background: #f9fcff;
  border-block: 1px solid rgba(126, 184, 222, 0.18);
}

.prep-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.prep-copy {
  position: sticky;
  top: 104px;
}

.prep-copy p {
  max-width: 540px;
  color: var(--muted);
  font-size: 18px;
}

.prep-disclaimer {
  padding: 16px 18px;
  border: 1px solid rgba(126, 184, 222, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.prep-app {
  min-height: 640px;
  padding: clamp(20px, 4vw, 34px);
}

.prep-empty {
  color: var(--muted);
}

.prep-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.prep-progress-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.prep-reset {
  padding: 0;
  color: #376b84;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 680;
  cursor: pointer;
}

.prep-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(126, 184, 222, 0.18);
}

.prep-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #8bc7ea;
  transition: width 180ms ease;
}

.prep-day-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 28px;
}

.prep-day-tab {
  min-height: 46px;
  color: #41606e;
  border: 1px solid rgba(62, 91, 105, 0.16);
  border-radius: var(--radius);
  background: #fffefa;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.prep-day-tab.is-active {
  color: #153548;
  border-color: rgba(63, 130, 162, 0.32);
  background: #dff1fb;
}

.prep-day-tab.is-complete::after {
  content: "✓";
  margin-left: 4px;
  color: #236047;
}

.prep-day-header {
  margin-bottom: 24px;
}

.prep-day-header h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 520;
}

.prep-day-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.prep-questions {
  display: grid;
  gap: 18px;
}

.prep-question {
  padding: 18px;
  border: 1px solid rgba(62, 91, 105, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.7);
}

.prep-question legend,
.prep-question > label:first-child {
  margin-bottom: 12px;
  color: #304d5b;
  font-size: 15px;
  font-weight: 720;
}

.prep-optional-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  color: #5b7480;
  border: 1px solid rgba(91, 159, 194, 0.22);
  border-radius: 999px;
  background: #f1f8fb;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.prep-question-helper {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.privacy-notice {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  color: #355768;
  border: 1px solid rgba(63, 130, 162, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.92), rgba(255, 253, 249, 0.86));
}

.privacy-notice strong {
  color: #24495a;
  font-size: 14px;
}

.privacy-notice p {
  margin: 0;
  color: #57707b;
  font-size: 14px;
  line-height: 1.55;
}

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

.prep-options {
  display: grid;
  gap: 8px;
}

.prep-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(62, 91, 105, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 450;
  cursor: pointer;
}

.prep-option input {
  width: auto;
  min-height: auto;
  margin-top: 5px;
  accent-color: #5b9fc2;
}

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

.prep-scale .prep-option {
  display: grid;
  align-content: start;
  justify-content: center;
  gap: 4px;
  min-height: 76px;
  padding: 11px 8px;
  text-align: center;
}

.prep-scale .prep-option input {
  margin: 0 auto 2px;
}

.prep-scale-value {
  color: #1f4658;
  font-size: 18px;
  font-weight: 720;
  line-height: 1;
}

.prep-scale-label {
  color: #506875;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.prep-topic-matrix {
  display: grid;
  gap: 8px;
}

.prep-topic-head,
.prep-topic-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(170px, 0.8fr) minmax(210px, 1fr);
  gap: 10px;
  align-items: center;
}

.prep-topic-head {
  padding: 0 12px 2px;
  color: #6a7d86;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.prep-topic-row {
  padding: 12px;
  border: 1px solid rgba(62, 91, 105, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.prep-topic-row strong {
  color: #24495a;
  font-size: 15px;
  line-height: 1.25;
}

.prep-topic-control,
.prep-topic-critical {
  display: grid;
  gap: 6px;
  margin: 0;
}

.prep-topic-control-title {
  display: none;
  color: #6a7d86;
  font-size: 12px;
  font-weight: 650;
}

.prep-topic-control input[type="range"] {
  width: 100%;
  min-height: auto;
  accent-color: #5b9fc2;
}

.prep-topic-value {
  justify-self: end;
  min-width: 26px;
  padding: 2px 7px;
  color: #1f4658;
  border-radius: 999px;
  background: #eef7fb;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.prep-topic-critical select {
  width: 100%;
  min-height: 38px;
  padding: 8px 9px;
  color: #24495a;
  border: 1px solid rgba(62, 91, 105, 0.18);
  border-radius: 10px;
  background: #fffefa;
  font: inherit;
}

.matching-pause-fields[hidden] {
  display: none;
}

.prep-question textarea {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  padding: 12px 13px;
  color: var(--ink);
  border: 1px solid rgba(62, 91, 105, 0.2);
  border-radius: var(--radius);
  background: #fffefa;
  font: inherit;
}

.prep-question textarea:focus {
  outline: 3px solid rgba(126, 184, 222, 0.32);
  border-color: rgba(63, 130, 162, 0.45);
}

.prep-insight {
  margin-top: 22px;
  padding: 18px;
  color: #385563;
  border: 1px solid rgba(126, 184, 222, 0.24);
  border-radius: var(--radius);
  background: #edf8fe;
}

.prep-insight strong {
  display: block;
  margin-bottom: 6px;
  color: #243f4d;
}

.prep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.prep-actions .button {
  cursor: pointer;
  font: inherit;
}

.prep-summary {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.prep-summary h3 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 520;
}

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

.prep-summary-card {
  padding: 16px;
  border: 1px solid rgba(62, 91, 105, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.prep-summary-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.prep-summary-card strong {
  color: #1d3c4d;
  font-size: 18px;
}

.prep-summary-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.prep-submit {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(126, 184, 222, 0.24);
  border-radius: var(--radius);
  background: #f6fbff;
}

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

.prep-signed-in {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(63, 130, 162, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.prep-signed-in span {
  color: #24495a;
  font-weight: 720;
}

.prep-signed-in p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.prep-submit-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.prep-submit-note.success {
  color: #236047;
}

.relationship-report {
  background: #fffdf9;
}

.section-heading p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.report-app {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 40px rgba(52, 81, 96, 0.07);
}

.report-placeholder,
.relationship-mirror {
  padding: clamp(22px, 4vw, 40px);
}

.report-placeholder {
  display: grid;
  gap: 14px;
  max-width: 680px;
}

.report-placeholder h3,
.report-hero h3 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 520;
}

.report-placeholder p,
.report-hero p,
.report-block p {
  color: var(--muted);
}

.report-status {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  color: #2d6077;
  border: 1px solid rgba(126, 184, 222, 0.32);
  border-radius: 999px;
  background: #edf8fe;
  font-size: 13px;
  font-weight: 760;
}

.report-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.report-hero p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 18px;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.report-meta span {
  padding: 8px 11px;
  color: #3a5b6a;
  border: 1px solid rgba(62, 91, 105, 0.14);
  border-radius: 999px;
  background: rgba(247, 251, 254, 0.88);
  font-size: 14px;
  font-weight: 650;
}

.relationship-mirror {
  display: grid;
  gap: 16px;
}

.report-block {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(62, 91, 105, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.72);
}

.report-block h4 {
  margin: 0 0 10px;
  color: #243f4d;
  font-size: 18px;
}

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

.report-block strong {
  color: #1f3d4c;
}

.report-human-note {
  background: linear-gradient(180deg, #fffdfa, #f5fbff);
}

.report-human-note ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 19px;
  color: #3d5966;
}

.report-next {
  background: #edf8fe;
  border-color: rgba(126, 184, 222, 0.24);
}

.account-section {
  background: #f8fbff;
  border-block: 1px solid rgba(126, 184, 222, 0.18);
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.account-copy {
  position: sticky;
  top: 104px;
}

.account-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

.account-app {
  min-height: 420px;
}

.account-auth,
.account-dashboard {
  display: grid;
  gap: 14px;
}

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

.account-tabs button {
  min-height: 46px;
  color: #41606e;
  border: 1px solid rgba(62, 91, 105, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.account-tabs button.is-active {
  color: #153548;
  border-color: rgba(63, 130, 162, 0.32);
  background: #dff1fb;
}

.account-page-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.account-page-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  color: #41606e;
  border: 1px solid rgba(62, 91, 105, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 760;
  text-align: center;
}

.account-page-nav a.is-active {
  color: #153548;
  border-color: rgba(63, 130, 162, 0.32);
  background: #dff1fb;
}

.account-panel,
.account-status-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 40px rgba(52, 81, 96, 0.07);
}

.account-panel {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 30px);
}

.account-panel h3 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 520;
}

.account-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.account-status {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  color: #2d6077;
  border: 1px solid rgba(126, 184, 222, 0.32);
  border-radius: 999px;
  background: #edf8fe;
  font-size: 13px;
  font-weight: 760;
}

.auth-form {
  gap: 16px;
}

.account-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.account-note a {
  color: #2f7898;
}

.account-note.is-error {
  color: #9b2f2f;
}

.admin-panel .account-actions {
  align-items: stretch;
}

.admin-panel .button {
  min-height: 44px;
}

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

.admin-runs,
.admin-match-list {
  display: grid;
  gap: 12px;
}

.admin-run {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(62, 91, 105, 0.14);
  border-radius: var(--radius);
  background: rgba(248, 252, 254, 0.86);
}

.admin-run summary {
  color: #2f7898;
  font-weight: 760;
  cursor: pointer;
}

.admin-run ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.admin-candidate-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-candidate-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(62, 91, 105, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.admin-candidate-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.account-welcome {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.account-link-button {
  padding: 0;
  color: #376b84;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
}

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

.account-status-card {
  padding: 16px;
}

.account-status-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.account-status-card strong {
  color: #516570;
  font-size: 18px;
}

.account-status-card.is-done strong {
  color: #236047;
}

.account-status-card.is-pending strong {
  color: #9a6a1f;
}

.account-status-card.is-neutral strong {
  color: #54707d;
}

.account-home {
  display: grid;
  gap: 16px;
}

.account-home-hero {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.35fr);
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 248, 254, 0.86));
}

.account-home-hero.tone-ready {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(217, 231, 223, 0.78));
}

.account-home-hero.tone-pending {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(234, 216, 168, 0.28));
}

.account-home-hero.tone-neutral {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 241, 232, 0.82));
}

.account-home-summary {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(62, 91, 105, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
}

.account-home-summary strong {
  color: #1f3d4c;
  font-size: 22px;
  line-height: 1.15;
}

.account-home-summary span {
  color: var(--muted);
  font-size: 14px;
}

.journey-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.journey-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  min-height: 118px;
  padding: 15px;
  border: 1px solid rgba(62, 91, 105, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 32px rgba(52, 81, 96, 0.05);
}

.journey-step.is-active {
  border-color: rgba(63, 130, 162, 0.34);
  background: #edf8fe;
}

.journey-step.is-done {
  background: rgba(245, 252, 248, 0.86);
}

.journey-dot {
  width: 11px;
  height: 11px;
  margin-top: 6px;
  border: 2px solid rgba(65, 96, 110, 0.28);
  border-radius: 50%;
  background: #fff;
}

.journey-step.is-active .journey-dot {
  border-color: #4c849e;
  background: #7eb8de;
}

.journey-step.is-done .journey-dot {
  border-color: #5d9a75;
  background: #d9e7df;
}

.journey-step strong,
.journey-step small,
.journey-step em {
  display: block;
}

.journey-step strong {
  color: #1f3d4c;
  font-size: 16px;
}

.journey-step small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.journey-step em {
  margin-top: 10px;
  color: #4d6b78;
  font-size: 12px;
  font-style: normal;
}

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

.privacy-zone {
  padding: 16px;
  border: 1px solid rgba(62, 91, 105, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.privacy-zone span {
  display: block;
  margin-bottom: 7px;
  color: #4c849e;
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.privacy-zone strong {
  display: block;
  margin-bottom: 6px;
  color: #1f3d4c;
}

.privacy-zone p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.account-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 12px;
}

.compact-panel {
  align-content: start;
}

.compact-panel h3 {
  font-size: 24px;
}

.matches-panel,
.matches-list,
.match-card,
.match-analysis,
.match-public-profile,
.matching-settings-panel,
.matching-consent-panel,
.profile-photo-form,
.profile-public-preview,
.tests-panel,
.tests-grid,
.test-card {
  display: grid;
  gap: 14px;
}

.matches-list {
  gap: 16px;
}

.match-card {
  padding: 18px;
  border: 1px solid rgba(62, 91, 105, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(255, 255, 255, 0.9));
}

.match-card.is-locked {
  border-style: dashed;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.84), rgba(255, 253, 249, 0.9));
}

.match-card.is-revealed {
  border-color: rgba(63, 130, 162, 0.24);
}

.match-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 520;
}

.match-card p,
.match-card li {
  color: var(--muted);
}

.match-meta {
  color: #315d70;
  font-weight: 700;
}

.match-public-profile,
.match-analysis {
  padding: 14px;
  border: 1px solid rgba(63, 130, 162, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.match-reveal-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(63, 130, 162, 0.16);
  border-radius: var(--radius);
  background: rgba(238, 248, 253, 0.58);
}

.match-reveal-panel .button {
  width: fit-content;
}

.matching-refresh-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px;
  border: 1px solid rgba(63, 130, 162, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.matching-refresh-panel .account-note {
  margin: 0;
  flex: 1 1 260px;
}

.matching-pause-fields {
  display: grid;
  gap: 12px;
}

.profile-photo-preview,
.profile-preview-photo {
  width: min(100%, 320px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(62, 91, 105, 0.14);
  border-radius: var(--radius);
  background: #edf8fe;
}

.profile-preview-card {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.profile-preview-photo.is-empty {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 18px;
  color: #54707d;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.profile-preview-body {
  display: grid;
  gap: 8px;
}

.profile-preview-body h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 520;
}

.match-teaser-layout {
  display: grid;
  grid-template-columns: minmax(136px, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.match-teaser-copy {
  display: grid;
  gap: 8px;
}

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

.match-analysis h4 {
  margin: 0;
  color: #25485a;
  font-size: 16px;
}

.match-analysis ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

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

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

.profile-form textarea,
.profile-photo-form input[type="file"],
.profile-form select,
.profile-photo-form select,
.matching-settings-panel textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  border: 1px solid rgba(62, 91, 105, 0.2);
  border-radius: var(--radius);
  background: #fffefa;
  font: inherit;
}

.profile-form textarea,
.matching-settings-panel textarea {
  min-height: 112px;
  resize: vertical;
}

.profile-form textarea[name="freeform"] {
  min-height: 170px;
}

.profile-form textarea:focus,
.profile-photo-form input[type="file"]:focus,
.profile-form select:focus,
.profile-photo-form select:focus,
.matching-settings-panel textarea:focus {
  outline: 3px solid rgba(126, 184, 222, 0.32);
  border-color: rgba(63, 130, 162, 0.45);
}

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

.test-card {
  padding: 16px;
  border: 1px solid rgba(62, 91, 105, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.test-card span {
  width: fit-content;
  padding: 4px 9px;
  color: #315d70;
  border-radius: 999px;
  background: #edf8fe;
  font-size: 12px;
  font-weight: 750;
}

.test-card h4 {
  margin: 0;
  color: #24495a;
  font-size: 18px;
}

.diary-panel {
  background:
    linear-gradient(180deg, rgba(238, 248, 253, 0.68), rgba(255, 255, 255, 0.88)),
    rgba(255, 255, 255, 0.86);
}

.diary-form {
  display: grid;
  gap: 14px;
}

.diary-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 4px;
}

.diary-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(62, 91, 105, 0.14);
  border-radius: 999px;
  color: #315d70;
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.diary-tabs a.is-active {
  border-color: rgba(63, 130, 162, 0.36);
  color: #1f4658;
  background: #edf8fe;
}

.diary-reflection-request {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(62, 91, 105, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.diary-reflection-request h4,
.diary-reflection h4,
.diary-reflection-empty h4 {
  margin: 0;
  color: #24495a;
  font-size: 19px;
}

.diary-reflection-request .button {
  width: fit-content;
}

.diary-reflection-period {
  max-width: 280px;
}

.diary-reflection-period select {
  width: 100%;
}

.diary-reflection,
.diary-reflection-empty {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(63, 130, 162, 0.18);
  border-radius: var(--radius);
  background: #f8fcff;
}

.diary-reflection-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diary-reflection-meta span,
.diary-entry-badges a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(63, 130, 162, 0.18);
  border-radius: 999px;
  background: rgba(238, 248, 253, 0.84);
  color: #315d70;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
}

.diary-entry-badges a:hover {
  border-color: rgba(63, 130, 162, 0.34);
  color: #24495a;
}

.diary-reflection-group,
.diary-reflection-note,
.diary-reflection-sources {
  display: grid;
  gap: 8px;
}

.diary-reflection-group h5,
.diary-reflection-note h5,
.diary-reflection-sources h5 {
  margin: 0;
  color: #25485a;
  font-size: 15px;
}

.diary-reflection-sources div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diary-reflection-sources a,
.diary-reflection-history-list a {
  color: #315d70;
  text-decoration: none;
}

.diary-reflection-sources a {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(63, 130, 162, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.diary-reflection-sources a:hover,
.diary-reflection-history-list a:hover {
  color: #24495a;
  text-decoration: underline;
}

.diary-reflection-group ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.diary-theme-stats {
  display: grid;
  gap: 10px;
}

.diary-theme-stats h5 {
  margin: 0;
  color: #25485a;
  font-size: 15px;
}

.diary-theme-stat {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(63, 130, 162, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.diary-theme-stat div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.diary-theme-stat strong {
  color: #24495a;
}

.diary-theme-stat span {
  color: #527183;
  font-size: 13px;
}

.diary-theme-stat p {
  margin: 0;
  color: var(--muted);
}

.diary-reflection-history {
  display: grid;
  gap: 10px;
}

.diary-reflection-history h4 {
  margin: 0;
  color: #24495a;
  font-size: 17px;
}

.diary-reflection-history-list {
  display: grid;
  gap: 8px;
}

.diary-reflection-history-list article {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(62, 91, 105, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.diary-reflection-history-list article.is-current {
  border-color: rgba(63, 130, 162, 0.24);
  background: rgba(238, 248, 253, 0.78);
}

.diary-reflection-history-list span,
.diary-reflection-history-list small {
  color: var(--muted);
  font-size: 13px;
}

.diary-form textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 12px 13px;
  color: var(--ink);
  border: 1px solid rgba(62, 91, 105, 0.2);
  border-radius: var(--radius);
  background: #fffefa;
  font: inherit;
}

.diary-form textarea:focus {
  outline: 3px solid rgba(126, 184, 222, 0.32);
  border-color: rgba(63, 130, 162, 0.45);
}

.diary-checkbox {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  font-weight: 520;
}

.diary-checkbox input {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.diary-history {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.diary-history h4 {
  margin: 0;
  color: #24495a;
  font-size: 17px;
}

.diary-entry {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(62, 91, 105, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.diary-entry.is-analyzed {
  border-color: rgba(63, 130, 162, 0.24);
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.94), rgba(255, 255, 255, 0.92));
}

.diary-entry-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #607987;
  font-size: 13px;
  font-weight: 720;
}

.diary-entry-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.diary-entry p {
  margin: 0;
  overflow-wrap: anywhere;
}

.diary-entry strong {
  color: #25485a;
}

.diary-entry-flag {
  color: #2f6c53;
  font-size: 14px;
}

.safety-grid > div:first-child p,
.join-grid > div:first-child p {
  max-width: 560px;
  font-size: 18px;
}

.safety-points div {
  padding: 22px 24px;
}

.join {
  background: var(--paper);
}

.signup-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

label {
  display: grid;
  gap: 8px;
  color: #3f5966;
  font-size: 14px;
  font-weight: 650;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  border: 1px solid rgba(62, 91, 105, 0.2);
  border-radius: var(--radius);
  background: #fffefa;
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(126, 184, 222, 0.32);
  border-color: rgba(63, 130, 162, 0.45);
}

.form-button {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
  font: inherit;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-note.success {
  color: #236047;
}

.footer {
  padding: 28px clamp(20px, 5vw, 72px);
  color: #647783;
  border-top: 1px solid var(--line);
  background: #f9fbfb;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

.footer-inner a {
  color: #315d70;
  text-decoration: none;
}

.footer-inner a:hover {
  color: #203e4d;
  text-decoration: underline;
}

/* Visual v0.2: aesthetic polish without changing product flow */
body {
  background:
    linear-gradient(180deg, #fffdf9 0%, #f7fbfb 36%, #fffaf3 100%);
  text-rendering: optimizeLegibility;
}

body::before {
  opacity: 0.1;
}

.site-header {
  top: 12px;
  left: clamp(14px, 3vw, 36px);
  right: clamp(14px, 3vw, 36px);
  min-height: 64px;
  padding: 12px clamp(14px, 2vw, 24px);
  border: 1px solid rgba(55, 78, 92, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.88);
  box-shadow: var(--shadow-soft);
}

.site-header.is-scrolled {
  border-color: rgba(55, 78, 92, 0.16);
  box-shadow: 0 16px 42px rgba(42, 66, 78, 0.11);
}

.brand {
  color: #1d3440;
}

.brand-mark {
  color: #183846;
  background:
    linear-gradient(145deg, rgba(216, 236, 251, 0.95), rgba(219, 233, 223, 0.82));
  box-shadow: inset 0 0 0 1px rgba(55, 78, 92, 0.08);
}

.nav {
  gap: 8px;
}

.nav a {
  padding: 8px 10px;
  border-radius: var(--radius);
}

.nav a:hover {
  background: rgba(216, 236, 251, 0.4);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(63, 130, 162, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.hero {
  min-height: 84svh;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.96) 0%, rgba(255, 253, 249, 0.88) 38%, rgba(255, 253, 249, 0.16) 100%),
    linear-gradient(0deg, rgba(255, 253, 249, 0.94) 0%, rgba(255, 253, 249, 0.18) 36%, rgba(255, 253, 249, 0) 100%);
}

.hero-content {
  padding: 8px 0 14px;
}

.eyebrow {
  color: #4a7c70;
}

.hero-copy,
.lead,
.section-heading p,
.account-copy p,
.prep-copy p {
  color: #405a64;
}

.account-copy h1,
.prep-copy h1 {
  max-width: 620px;
  font-size: 52px;
  line-height: 1.06;
}

.button {
  min-height: 47px;
  box-shadow: none;
}

.button.primary {
  color: #122f3c;
  background: linear-gradient(180deg, #cfe8f5, #b8dcec);
  border-color: rgba(47, 120, 152, 0.22);
}

.button.primary:hover {
  background: linear-gradient(180deg, #c4e2f2, #a9d2e7);
}

.button.secondary {
  color: #294956;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(55, 78, 92, 0.14);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(63, 130, 162, 0.22);
}

.trust-row span,
.pill-grid span,
.report-meta span,
.diary-tabs a,
.test-card span,
.diary-reflection-meta span,
.diary-entry-badges a {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.split,
.preparation,
.account-section,
.legal-page {
  background:
    linear-gradient(180deg, rgba(246, 251, 255, 0.82), rgba(250, 253, 252, 0.92));
}

.value-band {
  background:
    linear-gradient(180deg, #fff8ee, #fbf6ee);
}

.safety {
  background:
    linear-gradient(180deg, #eef8fe, #f3faf5);
}

.contrast-list article,
.steps article,
.safety-points div,
.signup-form,
.prep-app,
.report-app,
.account-panel,
.account-status-card,
.test-card,
.diary-entry,
.diary-reflection,
.diary-reflection-empty,
.diary-reflection-request,
.match-card,
.profile-public-preview,
.profile-photo-form,
.matching-consent-panel,
.matching-settings-panel,
.legal-content {
  border-color: rgba(55, 78, 92, 0.12);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.contrast-list article,
.steps article,
.safety-points div,
.account-panel,
.diary-entry,
.match-card {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.contrast-list article:hover,
.steps article:hover,
.safety-points div:hover,
.diary-entry:hover,
.match-card:hover {
  border-color: rgba(63, 130, 162, 0.2);
  box-shadow: 0 16px 42px rgba(42, 66, 78, 0.09);
}

.number,
.step-index,
.account-status,
.report-status {
  color: #255c51;
  background: rgba(219, 233, 223, 0.78);
  border: 1px solid rgba(92, 128, 108, 0.16);
}

.prep-disclaimer,
.privacy-notice,
.prep-signed-in {
  border-color: rgba(92, 128, 108, 0.16);
  background: linear-gradient(180deg, rgba(251, 254, 251, 0.92), rgba(244, 249, 246, 0.88));
}

.prep-progress {
  background: rgba(92, 128, 108, 0.14);
}

.prep-progress span {
  background: linear-gradient(90deg, #9cc5ad, #83bddb);
}

.prep-day-tab,
.account-tabs button,
.account-page-nav a,
.prep-option,
.prep-question,
.prep-topic-row,
.prep-summary-card,
.prep-submit,
.match-analysis,
.match-public-profile,
.match-reveal-panel,
.diary-theme-stat,
.diary-reflection-history-list article,
.privacy-zone,
.journey-step,
.account-home-summary {
  border-color: rgba(55, 78, 92, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.prep-day-tab.is-active,
.account-tabs button.is-active,
.account-page-nav a.is-active,
.diary-tabs a.is-active,
.journey-step.is-active {
  color: #173846;
  border-color: rgba(63, 130, 162, 0.26);
  background: rgba(224, 242, 250, 0.78);
}

.journey-step.is-done,
.account-home-hero.tone-ready {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(219, 233, 223, 0.64));
}

.account-home-hero,
.diary-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 248, 253, 0.66));
}

.account-home-hero.tone-pending {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(234, 216, 168, 0.32));
}

.account-home-hero.tone-neutral {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 241, 232, 0.86));
}

.privacy-zone span {
  color: #5c806c;
}

.account-home-summary strong,
.account-panel h3,
.report-placeholder h3,
.report-hero h3,
.match-card h3,
.profile-preview-body h4 {
  color: #213a45;
}

.report-block,
.report-human-note,
.report-next {
  background: rgba(255, 255, 255, 0.72);
}

.report-next {
  border-color: rgba(92, 128, 108, 0.16);
  background: linear-gradient(180deg, rgba(245, 250, 247, 0.92), rgba(237, 248, 254, 0.76));
}

.match-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 252, 255, 0.78));
}

.match-card.is-locked {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(247, 241, 232, 0.72));
}

.match-card.is-revealed {
  border-color: rgba(92, 128, 108, 0.2);
  background: linear-gradient(180deg, rgba(250, 254, 251, 0.96), rgba(255, 255, 255, 0.86));
}

input,
select,
.prep-question textarea,
.profile-form textarea,
.profile-photo-form input[type="file"],
.profile-form select,
.profile-photo-form select,
.matching-settings-panel textarea,
.diary-form textarea,
.prep-topic-critical select {
  border-color: rgba(55, 78, 92, 0.16);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

input:focus,
select:focus,
.prep-question textarea:focus,
.profile-form textarea:focus,
.profile-photo-form input[type="file"]:focus,
.profile-form select:focus,
.profile-photo-form select:focus,
.matching-settings-panel textarea:focus,
.diary-form textarea:focus {
  outline: 3px solid rgba(126, 184, 222, 0.24);
  border-color: rgba(63, 130, 162, 0.42);
}

.footer {
  background:
    linear-gradient(180deg, #f8fbfb, #f4f7f4);
}

.legal-page {
  background: #f8fbff;
}

.legal-page h1 {
  max-width: 820px;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  font-weight: 520;
  line-height: 1.05;
}

.legal-updated {
  color: var(--muted);
}

.legal-content {
  display: grid;
  gap: 18px;
  max-width: 860px;
  margin-top: 30px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(62, 91, 105, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
}

.legal-content h2 {
  margin: 0;
  color: #243f4d;
  font-size: 21px;
}

.legal-content p,
.legal-content li {
  color: #4d6570;
  line-height: 1.7;
}

.legal-content ul {
  margin: 0;
  padding-left: 20px;
}

.legal-content a {
  color: #2f7898;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .split-grid,
  .safety-grid,
  .join-grid,
  .account-layout,
  .prep-layout {
    grid-template-columns: 1fr;
  }

  .prep-copy,
  .account-copy {
    position: static;
  }

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

@media (max-width: 620px) {
  .site-header {
    min-height: 66px;
    padding-inline: 16px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 96px 18px 24px;
  }

  .account-copy h1,
  .prep-copy h1,
  .legal-page h1 {
    font-size: 38px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(255, 253, 249, 0.96) 0%, rgba(255, 253, 249, 0.68) 60%, rgba(255, 253, 249, 0.2) 100%),
      linear-gradient(90deg, rgba(255, 253, 249, 0.88) 0%, rgba(255, 253, 249, 0.36) 100%);
  }

  .hero-media img {
    object-position: 72% 50%;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .diary-reflection-request .button {
    width: 100%;
  }

  .section {
    padding-inline: 18px;
  }

  .lead {
    text-align: left;
  }

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

  .prep-day-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .prep-scale,
  .prep-summary-grid,
  .prep-submit-row,
  .account-page-nav,
  .account-status-grid,
  .account-form-grid,
  .account-welcome,
  .profile-preview-card,
  .match-teaser-layout,
  .tests-grid,
  .admin-seed-grid,
  .admin-candidate-pair {
    grid-template-columns: 1fr;
  }

  .prep-topic-head {
    display: none;
  }

  .prep-topic-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .prep-topic-control-title {
    display: block;
  }

  .account-home-hero,
  .journey-map,
  .privacy-zone-grid,
  .account-home-grid {
    grid-template-columns: 1fr;
  }

  .steps article {
    min-height: auto;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* Visual v0.3: final-design direction, cinematic sea/sky atmosphere */
:root {
  --ink: #162b34;
  --muted: #4f6671;
  --paper: #fffdf8;
  --sky: #dceff7;
  --sky-deep: #82b9cc;
  --sage: #dce8dd;
  --sage-deep: #517765;
  --gold: #ead9aa;
  --clay: #e9c8bb;
  --mist: #f6fbfb;
  --surface: rgba(255, 255, 255, 0.78);
  --line: rgba(33, 63, 75, 0.13);
  --shadow: 0 30px 80px rgba(26, 65, 78, 0.13);
  --shadow-soft: 0 18px 48px rgba(26, 65, 78, 0.09);
}

body {
  color: var(--ink);
  background:
    linear-gradient(180deg, #eef8fb 0%, #fffdf8 34%, #f8fbf7 62%, #edf7f8 100%);
}

body::before {
  opacity: 0.07;
  mix-blend-mode: multiply;
}

.site-header {
  top: 18px;
  left: 32px;
  right: 32px;
  min-height: 68px;
  padding: 12px 18px;
  border: 1px solid rgba(33, 63, 75, 0.11);
  background: rgba(255, 253, 248, 0.72);
  backdrop-filter: blur(24px) saturate(1.18);
  box-shadow: 0 20px 60px rgba(21, 54, 66, 0.1);
}

.site-header.is-scrolled {
  border-color: rgba(33, 63, 75, 0.16);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 20px 58px rgba(21, 54, 66, 0.13);
}

.brand {
  gap: 12px;
  color: #17323d;
  font-size: 17px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  color: #14313d;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.7), rgba(133, 189, 204, 0.32)),
    #dceff7;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 10px 24px rgba(33, 91, 111, 0.12);
}

.nav {
  gap: 6px;
}

.nav a {
  min-height: 38px;
  padding: 8px 12px;
  color: #405b67;
  border: 1px solid transparent;
}

.nav a:hover {
  color: #172f39;
  border-color: rgba(41, 93, 111, 0.12);
  background: rgba(255, 255, 255, 0.42);
}

.header-cta {
  min-height: 42px;
  padding: 9px 16px;
  color: #173744;
  border-color: rgba(41, 93, 111, 0.18);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

h1,
h2 {
  color: #172a33;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 520;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: 76px;
  line-height: 0.98;
}

h2 {
  font-size: 54px;
  line-height: 1.03;
}

.hero {
  min-height: 88svh;
  align-items: center;
  padding: 118px 72px 76px;
  background: #eff9fb;
}

.hero-media img {
  object-position: 50% 50%;
  filter: saturate(1.03) contrast(1.01);
  transform: scale(1.02);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0), rgba(255, 253, 248, 0.98) 78%, #fffdf8 100%);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.9) 34%, rgba(255, 253, 248, 0.52) 58%, rgba(255, 253, 248, 0.12) 100%),
    linear-gradient(180deg, rgba(232, 247, 252, 0.16) 0%, rgba(255, 253, 248, 0.14) 48%, rgba(255, 253, 248, 0.84) 100%);
}

.hero-content {
  width: min(900px, 100%);
  padding-top: 42px;
}

.hero .eyebrow {
  margin-bottom: 18px;
  color: #416f65;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero-copy {
  max-width: 670px;
  margin-bottom: 34px;
  color: #314f5a;
  font-size: 23px;
  line-height: 1.48;
}

.hero-actions {
  gap: 10px;
  margin-bottom: 24px;
}

.button {
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 760;
  letter-spacing: 0;
  box-shadow: none;
}

.button.primary {
  color: #112e39;
  border-color: rgba(52, 112, 133, 0.22);
  background:
    linear-gradient(180deg, rgba(210, 238, 248, 0.96), rgba(159, 211, 225, 0.92));
  box-shadow:
    0 18px 42px rgba(65, 134, 156, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.button.primary:hover {
  background:
    linear-gradient(180deg, rgba(221, 244, 251, 0.98), rgba(145, 203, 219, 0.94));
}

.button.secondary {
  color: #253f49;
  border-color: rgba(31, 75, 90, 0.13);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px);
}

.button.secondary:hover {
  border-color: rgba(31, 75, 90, 0.22);
  background: rgba(255, 255, 255, 0.82);
}

.trust-row {
  gap: 8px;
}

.trust-row span {
  padding: 8px 12px;
  color: #305663;
  border-color: rgba(38, 89, 105, 0.12);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(12px);
}

.section {
  padding-top: 112px;
  padding-bottom: 112px;
}

.intro {
  padding-top: 72px;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f7fbf8 100%);
}

.lead {
  color: #203d48;
  font-size: 46px;
  line-height: 1.16;
  text-wrap: balance;
}

.split,
.preparation,
.account-section,
.legal-page {
  border-block: 1px solid rgba(35, 78, 94, 0.1);
  background:
    linear-gradient(180deg, rgba(238, 249, 252, 0.78), rgba(255, 253, 248, 0.96));
}

.value-band {
  background:
    linear-gradient(180deg, #fff8eb 0%, #fbf8ef 48%, #f2f9f8 100%);
}

.safety {
  background:
    linear-gradient(180deg, #edf8fb 0%, #f5fbf5 100%);
}

.join {
  background:
    linear-gradient(180deg, #fffdf8 0%, #eef8fa 100%);
}

.center-copy,
.section-heading {
  margin-bottom: 44px;
}

.section-heading p,
.safety-grid > div:first-child p,
.join-grid > div:first-child p,
.prep-copy p,
.account-copy p {
  color: #465f69;
  font-size: 18px;
  line-height: 1.68;
}

.contrast-list,
.safety-points {
  gap: 14px;
}

.contrast-list article,
.steps article,
.safety-points div,
.signup-form,
.prep-app,
.report-app,
.account-panel,
.account-status-card,
.test-card,
.diary-entry,
.diary-reflection,
.diary-reflection-empty,
.diary-reflection-request,
.match-card,
.profile-public-preview,
.profile-photo-form,
.matching-consent-panel,
.matching-settings-panel,
.legal-content {
  border-color: rgba(31, 75, 90, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.66));
  box-shadow:
    0 24px 70px rgba(28, 73, 88, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.contrast-list article,
.steps article,
.safety-points div {
  padding: 26px;
}

.contrast-list article:hover,
.steps article:hover,
.safety-points div:hover,
.diary-entry:hover,
.match-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 112, 132, 0.2);
  box-shadow:
    0 30px 84px rgba(28, 73, 88, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.number,
.step-index,
.account-status,
.report-status {
  color: #254f46;
  background:
    linear-gradient(180deg, rgba(225, 238, 224, 0.9), rgba(205, 225, 213, 0.82));
  border-color: rgba(81, 119, 101, 0.14);
}

.steps {
  gap: 18px;
}

.steps article {
  min-height: 275px;
}

.pill-grid {
  gap: 12px;
}

.pill-grid span,
.report-meta span,
.diary-tabs a,
.test-card span,
.diary-reflection-meta span,
.diary-entry-badges a {
  color: #284b57;
  border-color: rgba(38, 89, 105, 0.12);
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 22px rgba(28, 73, 88, 0.06);
}

.preparation.standalone-page,
.account-section.standalone-page,
.legal-page {
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.78)),
    linear-gradient(180deg, rgba(223, 241, 247, 0.84), rgba(255, 253, 248, 0.96));
}

.prep-disclaimer,
.privacy-notice,
.prep-signed-in,
.report-next {
  border-color: rgba(81, 119, 101, 0.15);
  background:
    linear-gradient(180deg, rgba(251, 254, 250, 0.88), rgba(238, 248, 242, 0.78));
}

.prep-progress {
  background: rgba(55, 104, 92, 0.12);
}

.prep-progress span {
  background:
    linear-gradient(90deg, #8fbfa6, #78b7ce);
}

.prep-day-tab,
.account-tabs button,
.account-page-nav a,
.prep-option,
.prep-question,
.prep-topic-row,
.prep-summary-card,
.prep-submit,
.match-analysis,
.match-public-profile,
.match-reveal-panel,
.diary-theme-stat,
.diary-reflection-history-list article,
.privacy-zone,
.journey-step,
.account-home-summary {
  border-color: rgba(31, 75, 90, 0.11);
  background: rgba(255, 255, 255, 0.62);
}

.prep-day-tab.is-active,
.account-tabs button.is-active,
.account-page-nav a.is-active,
.diary-tabs a.is-active,
.journey-step.is-active {
  color: #15323e;
  border-color: rgba(63, 130, 154, 0.24);
  background:
    linear-gradient(180deg, rgba(224, 243, 249, 0.88), rgba(207, 232, 238, 0.66));
}

input,
select,
.prep-question textarea,
.profile-form textarea,
.profile-photo-form input[type="file"],
.profile-form select,
.profile-photo-form select,
.matching-settings-panel textarea,
.diary-form textarea,
.prep-topic-critical select {
  color: #1f3944;
  border-color: rgba(31, 75, 90, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 6px 18px rgba(28, 73, 88, 0.04);
}

input:focus,
select:focus,
.prep-question textarea:focus,
.profile-form textarea:focus,
.profile-photo-form input[type="file"]:focus,
.profile-form select:focus,
.profile-photo-form select:focus,
.matching-settings-panel textarea:focus,
.diary-form textarea:focus {
  outline: 3px solid rgba(120, 183, 206, 0.24);
  border-color: rgba(52, 112, 133, 0.42);
}

.account-copy h1,
.prep-copy h1,
.legal-page h1 {
  font-size: 54px;
}

.account-home-hero,
.diary-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(226, 243, 248, 0.58));
}

.match-card,
.match-card.is-revealed {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(240, 249, 250, 0.72));
}

.match-card.is-locked {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.84), rgba(248, 242, 231, 0.72));
}

.footer {
  border-top-color: rgba(31, 75, 90, 0.1);
  background:
    linear-gradient(180deg, #eef8fa, #f8fbf8);
}

@media (max-width: 900px) {
  .site-header {
    left: 18px;
    right: 18px;
  }

  h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 46px;
  }

  .hero {
    min-height: 86svh;
    padding: 112px 28px 58px;
  }

  .hero-copy {
    font-size: 21px;
  }

  .lead {
    font-size: 38px;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 14px;
    left: 14px;
    right: 14px;
    min-height: 64px;
    padding: 12px 14px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: auto;
    padding: 104px 18px 26px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.84) 0%, rgba(255, 253, 248, 0.76) 45%, rgba(255, 253, 248, 0.94) 100%),
      linear-gradient(90deg, rgba(255, 253, 248, 0.9), rgba(255, 253, 248, 0.38));
  }

  .hero-media img {
    object-position: 61% 50%;
  }

  h1,
  .hero h1 {
    font-size: 40px;
    line-height: 1.02;
  }

  h2,
  .account-copy h1,
  .prep-copy h1,
  .legal-page h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  .hero-copy {
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.56;
  }

  .lead {
    font-size: 31px;
    line-height: 1.18;
  }

  .section {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
  }

  .button {
    min-height: 46px;
    padding: 11px 7px;
    font-size: 13px;
  }

  .trust-row span {
    padding: 7px 10px;
  }

  .contrast-list article,
  .steps article,
  .safety-points div {
    padding: 20px;
  }
}

/* Landing art direction v0.4 */
.landing-page {
  color: #18272d;
  background:
    radial-gradient(circle at 50% -12%, rgba(232, 243, 248, 0.96), rgba(246, 249, 252, 0) 42%),
    linear-gradient(180deg, #f6f9fc 0%, #fcfcfb 42%, #f7fbfa 100%);
  overflow-x: hidden;
}

.landing-page::before {
  opacity: 0.13;
  mix-blend-mode: multiply;
}

.landing-page .site-header {
  top: 0;
  left: 0;
  right: 0;
  min-height: 72px;
  padding: 26px clamp(28px, 6vw, 96px) 16px;
  color: #1c2c31;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.landing-page .site-header.is-scrolled {
  background: rgba(246, 249, 252, 0.76);
  border-bottom: 1px solid rgba(26, 50, 55, 0.08);
  box-shadow: 0 18px 48px rgba(35, 68, 75, 0.06);
  backdrop-filter: blur(18px);
}

.landing-page .brand {
  font-size: 15px;
  font-weight: 560;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.landing-page .nav {
  gap: 30px;
  color: rgba(26, 50, 55, 0.58);
  font-size: 12px;
  font-weight: 640;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-page .header-cta {
  color: #1d3438;
  font-size: 12px;
  font-weight: 640;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-page .hero {
  min-height: 85svh;
  align-items: center;
  padding: 132px clamp(28px, 7vw, 112px) 70px;
  background: #f6f9fc;
}

.landing-page .hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 82px;
  width: min(34vw, 520px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 69, 71, 0.24), transparent);
  transform: translateX(-50%);
  z-index: 1;
}

.landing-page .hero::after {
  background:
    linear-gradient(180deg, rgba(246, 249, 252, 0.48) 0%, rgba(246, 249, 252, 0.12) 46%, rgba(252, 252, 251, 0.94) 100%),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.42), transparent 48%);
  z-index: -1;
}

.landing-page .hero-media img {
  filter: saturate(0.68) contrast(0.9) brightness(1.13);
  object-position: 50% 44%;
}

.landing-page .hero-content {
  width: min(900px, 100%);
  margin: 0 auto;
  padding-top: 32px;
  text-align: center;
}

.landing-page .eyebrow {
  margin-bottom: 28px;
  color: rgba(29, 52, 56, 0.62);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.landing-page h1,
.landing-page h2 {
  color: #19272d;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.landing-page h1 {
  max-width: 1040px;
  margin: 0 auto 28px;
  font-size: clamp(52px, 6.35vw, 92px);
  line-height: 1.05;
}

.landing-page h2 {
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 0.98;
}

.landing-page h3 {
  color: #1e3338;
  font-size: 21px;
  font-weight: 640;
}

.landing-page .hero-copy {
  max-width: 760px;
  margin: 0 auto 40px;
  color: #3b484f;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.55;
}

.landing-page .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

.landing-page .button {
  min-height: 52px;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: none;
}

.landing-page .button.primary {
  color: #f8fbf9;
  background: #1d4547;
  border-color: rgba(29, 69, 71, 0.18);
}

.landing-page .button.primary:hover {
  background: #16383a;
}

.landing-page .button.secondary {
  color: #22363b;
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(29, 69, 71, 0.16);
  backdrop-filter: blur(16px);
}

.landing-page .section {
  padding: clamp(78px, 10vw, 148px) clamp(28px, 7vw, 112px);
}

.landing-page .intro {
  padding-top: clamp(46px, 7vw, 90px);
  background: #fcfcfb;
}

.landing-page .lead {
  color: #1d3438;
  font-size: clamp(34px, 5.4vw, 72px);
  line-height: 1.02;
  text-align: left;
}

.landing-page .split,
.landing-page .preparation,
.landing-page .value-band {
  background: #fcfcfb;
  border: 0;
}

.landing-page .split-grid,
.landing-page .safety-grid,
.landing-page .join-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(44px, 8vw, 116px);
}

.landing-page .contrast-list,
.landing-page .safety-points {
  gap: 0;
  border-top: 1px solid rgba(29, 69, 71, 0.12);
}

.landing-page .contrast-list article,
.landing-page .steps article,
.landing-page .safety-points div {
  padding: 30px 0;
  border: 0;
  border-bottom: 1px solid rgba(29, 69, 71, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-page .contrast-list p,
.landing-page .steps p,
.landing-page .safety p,
.landing-page .join p,
.landing-page .center-copy p,
.landing-page .prep-copy p {
  color: rgba(28, 47, 52, 0.68);
  font-size: 17px;
  line-height: 1.72;
}

.landing-page .number,
.landing-page .step-index {
  width: auto;
  height: auto;
  margin-bottom: 18px;
  color: rgba(29, 69, 71, 0.58);
  border-radius: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.landing-page .center-copy {
  width: min(900px, 100%);
  margin: 0 0 42px;
  text-align: left;
}

.landing-page .pill-grid {
  justify-content: flex-start;
  gap: 12px;
}

.landing-page .pill-grid span {
  padding: 12px 16px;
  color: #24474b;
  border-color: rgba(29, 69, 71, 0.13);
  background: rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  font-weight: 560;
}

.landing-page .section-heading {
  width: min(860px, 100%);
  margin-bottom: 54px;
}

.landing-page .steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(29, 69, 71, 0.12);
}

.landing-page .steps article {
  min-height: 0;
  padding-right: 30px;
}

.landing-page .preparation {
  background:
    linear-gradient(180deg, rgba(246, 249, 252, 0.74), rgba(252, 252, 251, 0.98)),
    radial-gradient(circle at 85% 10%, rgba(169, 207, 211, 0.18), transparent 34%);
}

.landing-page .prep-copy {
  position: static;
}

.landing-page .prep-disclaimer {
  margin-top: 24px;
  padding: 20px 22px;
  color: #325258;
  border: 1px solid rgba(29, 69, 71, 0.13);
  background: rgba(255, 255, 255, 0.52);
  border-radius: 8px;
}

.landing-page .preparation .button.primary {
  width: fit-content;
  margin-top: 28px;
}

.landing-page .safety {
  color: #f2faf8;
  background:
    linear-gradient(135deg, rgba(18, 50, 55, 0.98), rgba(29, 69, 71, 0.94)),
    radial-gradient(circle at 78% 18%, rgba(120, 183, 190, 0.22), transparent 36%);
}

.landing-page .safety h2,
.landing-page .safety h3,
.landing-page .safety .eyebrow {
  color: #f4fbf9;
}

.landing-page .safety p,
.landing-page .safety .safety-points p {
  color: rgba(244, 251, 249, 0.82);
}

.landing-page .safety-points {
  border-top-color: rgba(244, 251, 249, 0.18);
}

.landing-page .safety-points div {
  border-bottom-color: rgba(244, 251, 249, 0.16);
}

.landing-page .join {
  background:
    linear-gradient(180deg, #fcfcfb, #f0f7f7);
}

.landing-page .signup-form {
  padding: clamp(24px, 4vw, 38px);
  border-color: rgba(29, 69, 71, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 24px 70px rgba(31, 69, 73, 0.08);
}

.landing-page .footer {
  color: rgba(28, 47, 52, 0.68);
  background: #f0f7f7;
}

@media (max-width: 900px) {
  .landing-page .nav {
    display: none;
  }

  .landing-page .hero {
    min-height: 82svh;
    padding: 120px 28px 58px;
  }

  .landing-page h1 {
    font-size: clamp(50px, 12vw, 84px);
  }

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

  .landing-page .split-grid,
  .landing-page .safety-grid,
  .landing-page .join-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .landing-page .site-header {
    top: 0;
    left: 0;
    right: 0;
    min-height: 62px;
    padding: 18px 18px 12px;
  }

  .landing-page .brand {
    font-size: 13px;
    letter-spacing: 0.3em;
  }

  .landing-page .hero {
    min-height: 82svh;
    padding: 100px 18px 46px;
  }

  .landing-page .hero-media img {
    object-position: 50% 44%;
  }

  .landing-page h1,
  .landing-page .hero h1 {
    font-size: clamp(44px, 14vw, 62px);
    line-height: 0.98;
  }

  .landing-page h2,
  .landing-page .account-copy h1,
  .landing-page .prep-copy h1,
  .landing-page .legal-page h1 {
    font-size: clamp(37px, 12vw, 50px);
    line-height: 1.02;
  }

  .landing-page .hero-copy {
    font-size: 16px;
  }

  .landing-page .hero-actions {
    grid-template-columns: 1fr;
  }

  .landing-page .button {
    width: 100%;
    min-height: 50px;
    font-size: 11px;
  }

  .landing-page .split-grid,
  .landing-page .safety-grid,
  .landing-page .join-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .landing-page .steps {
    grid-template-columns: 1fr;
  }
}

/* Landing art direction v0.42: Figma Make transfer + final sea CTA */
.landing-page .matching-explain {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #1d4547;
  background:
    radial-gradient(circle at 78% 58%, rgba(219, 238, 239, 0.72), rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 20% 10%, rgba(218, 239, 246, 0.9), rgba(255, 255, 255, 0) 38%),
    linear-gradient(115deg, #f4fbfd 0%, #fbfcfb 50%, #eef8fa 100%);
}

.landing-page .matching-explain::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.2)),
    repeating-linear-gradient(90deg, rgba(29, 69, 71, 0.018) 0, rgba(29, 69, 71, 0.018) 1px, transparent 1px, transparent 92px);
  pointer-events: none;
  z-index: -1;
}

.landing-page .matching-explain h2,
.landing-page .matching-explain h3,
.landing-page .matching-explain .eyebrow {
  color: #1d4547;
}

.landing-page .matching-explain .eyebrow {
  color: rgba(29, 69, 71, 0.58);
}

.landing-page .matching-copy > p {
  max-width: 720px;
  color: rgba(29, 69, 71, 0.66);
  font-size: clamp(20px, 2.1vw, 31px);
  line-height: 1.62;
}

.landing-page .explain-timeline {
  position: relative;
  display: grid;
  gap: clamp(34px, 5vw, 58px);
  margin-top: clamp(54px, 7vw, 86px);
  padding-left: 42px;
}

.landing-page .explain-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 9px;
  width: 1px;
  background: linear-gradient(180deg, rgba(29, 69, 71, 0.04), rgba(29, 69, 71, 0.2), rgba(29, 69, 71, 0.04));
}

.landing-page .explain-timeline article {
  position: relative;
  padding: 0 0 0 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.landing-page .explain-timeline article::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -42px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #1d4547;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.7);
}

.landing-page .explain-timeline h3 {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.2vw, 34px);
}

.landing-page .explain-timeline p {
  max-width: 650px;
  color: rgba(29, 69, 71, 0.62);
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.55;
}

.landing-page .matching-orbits {
  position: relative;
  min-height: clamp(420px, 48vw, 690px);
}

.landing-page .orbit {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(29, 69, 71, 0.12);
  border-radius: 999px;
  color: rgba(29, 69, 71, 0.28);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.16) 58%, rgba(202, 226, 228, 0.18));
  box-shadow: inset 0 0 52px rgba(255, 255, 255, 0.72);
}

.landing-page .orbit span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 56px);
  opacity: 0.58;
}

.landing-page .orbit-you {
  right: clamp(110px, 18vw, 270px);
  bottom: clamp(18px, 4vw, 80px);
  width: clamp(250px, 25vw, 420px);
  height: clamp(250px, 25vw, 420px);
}

.landing-page .orbit-partner {
  right: 0;
  top: clamp(10px, 4vw, 70px);
  width: clamp(260px, 27vw, 450px);
  height: clamp(260px, 27vw, 450px);
}

.landing-page .orbit-copy {
  position: absolute;
  right: clamp(135px, 17vw, 290px);
  top: 48%;
  width: min(245px, 35vw);
  color: #1d4547;
  text-align: center;
  transform: translateY(-30%);
}

.landing-page .orbit-copy span {
  display: block;
  margin-bottom: 18px;
  color: rgba(29, 69, 71, 0.58);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.landing-page .orbit-copy p {
  color: #1d4547;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.2vw, 34px);
  line-height: 1.28;
}

.landing-page .join {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(860px, 96svh);
  display: grid;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(252, 252, 251, 0.82), rgba(238, 248, 250, 0.72)),
    url("assets/final-sea-sunrise.png") center / cover no-repeat;
}

.landing-page .join::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.1) 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.12) 44%, rgba(240, 248, 249, 0.78) 100%);
  pointer-events: none;
  z-index: -1;
}

.landing-page .join-cta {
  display: grid;
  justify-items: center;
  text-align: center;
}

.landing-page .join-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-page .join-cta h2 {
  max-width: 1200px;
  margin: 0 auto clamp(34px, 5vw, 66px);
  color: #1d4547;
  font-size: clamp(45px, 6.1vw, 88px);
  line-height: 1.22;
}

.landing-page .join-anchor {
  width: min(460px, 100%);
  color: #1d4547;
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(29, 69, 71, 0.16);
  box-shadow: 0 20px 70px rgba(31, 69, 73, 0.09);
}

.landing-page .join-form-panel {
  width: min(760px, 100%);
  margin-top: clamp(78px, 12vw, 150px);
  color: rgba(29, 69, 71, 0.72);
}

.landing-page .join-form-panel > p {
  max-width: 660px;
  margin: 0 auto 24px;
  color: rgba(29, 69, 71, 0.68);
  font-size: 18px;
  line-height: 1.65;
}

.landing-page .join .signup-form {
  width: min(560px, 100%);
  margin: 0 auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
}

.landing-page .footer {
  background: #edf7f8;
}

@media (max-width: 900px) {
  .landing-page .matching-orbits {
    min-height: 420px;
  }

  .landing-page .orbit-you {
    left: 10%;
    right: auto;
    bottom: 10px;
  }

  .landing-page .orbit-partner {
    right: 6%;
    top: 0;
  }

  .landing-page .orbit-copy {
    left: 50%;
    right: auto;
    top: 50%;
    width: min(270px, 72vw);
    transform: translate(-50%, -42%);
  }

  .landing-page .join {
    min-height: 820px;
  }
}

@media (max-width: 620px) {
  .landing-page .matching-copy > p {
    font-size: 18px;
  }

  .landing-page .explain-timeline {
    margin-top: 42px;
    padding-left: 30px;
  }

  .landing-page .explain-timeline article {
    padding-left: 8px;
  }

  .landing-page .explain-timeline article::before {
    left: -29px;
  }

  .landing-page .matching-orbits {
    min-height: 340px;
  }

  .landing-page .orbit {
    opacity: 0.82;
  }

  .landing-page .orbit-you {
    width: 220px;
    height: 220px;
    left: 0;
    bottom: 0;
  }

  .landing-page .orbit-partner {
    width: 230px;
    height: 230px;
    right: 0;
    top: 0;
  }

  .landing-page .orbit-copy p {
    font-size: 23px;
  }

  .landing-page .join {
    min-height: 760px;
    background-position: 50% 50%;
  }

  .landing-page .join-cta h2 {
    font-size: clamp(38px, 11vw, 54px);
    line-height: 1.12;
  }

  .landing-page .join-anchor {
    width: min(300px, 100%);
  }

  .landing-page .join-form-panel {
    margin-top: 74px;
  }
}

/* Landing art direction v0.43: pixel tune against current Figma Make CTA */
.landing-page h1,
.landing-page h2 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.landing-page .join {
  min-height: auto;
  padding: 0 clamp(28px, 7vw, 112px) clamp(108px, 10vw, 150px);
}

.landing-page .join-cta {
  width: min(1420px, 100%);
  max-width: none;
  min-height: 100svh;
  padding-top: clamp(68px, 6.6svh, 86px);
  align-content: center;
}

.landing-page .join-cta > .eyebrow {
  display: none;
}

.landing-page .join-cta h2 {
  width: min(1420px, 100%);
  max-width: none;
  margin-bottom: clamp(68px, 5.8vw, 86px);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 4.22vw, 86px);
  font-weight: 500;
  line-height: 1.28;
}

.landing-page .join-anchor {
  width: min(472px, 100%);
  min-height: 54px;
  font-size: 12px;
  letter-spacing: 0.28em;
}

.landing-page .join-form-panel {
  display: none;
  margin-top: 0;
}

.landing-page .join-form-panel:target {
  display: block;
  margin-top: clamp(64px, 8vw, 112px);
}

@media (max-width: 900px) {
  .landing-page .join {
    padding-right: 28px;
    padding-left: 28px;
  }

  .landing-page .join-cta {
    min-height: 92svh;
    padding-top: 64px;
  }

  .landing-page .join-cta h2 {
    width: min(680px, 100%);
    font-size: clamp(48px, 8.2vw, 74px);
    line-height: 1.14;
  }
}

@media (max-width: 620px) {
  .landing-page .join {
    padding-right: 18px;
    padding-left: 18px;
  }

  .landing-page .join-cta {
    min-height: 82svh;
    padding-top: 44px;
  }

  .landing-page .join-cta h2 {
    width: min(360px, 100%);
    margin-bottom: 48px;
    font-size: clamp(39px, 12vw, 52px);
    line-height: 1.08;
  }

  .landing-page .join-anchor {
    width: min(300px, 100%);
    min-height: 50px;
  }

  .landing-page .join-actions {
    width: min(100%, 340px);
  }
}

/* Landing art direction v0.5: Figma Design transfer */
.landing-page {
  --landing-ink: #1d4547;
  --landing-text: #253238;
  --landing-muted: rgba(35, 50, 56, 0.66);
  --landing-faint: rgba(29, 69, 71, 0.17);
  --landing-bg: #f4f8fb;
  color: var(--landing-text);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.88), rgba(244, 248, 251, 0) 34%),
    linear-gradient(180deg, #f4f8fb 0%, #f5f9fb 48%, #eef6f7 100%);
  overflow-x: hidden;
}

.landing-page::before {
  opacity: 0.08;
  mix-blend-mode: multiply;
}

.landing-page .site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  padding: 0 clamp(28px, 8.72vw, 178px);
  color: var(--landing-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.landing-page .site-header.is-scrolled {
  background: rgba(245, 249, 251, 0.86);
  border-bottom: 1px solid rgba(29, 69, 71, 0.06);
  box-shadow: 0 18px 55px rgba(44, 76, 83, 0.08);
}

.landing-page .brand {
  color: var(--landing-ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3.5px;
  line-height: 20px;
  text-transform: uppercase;
}

.landing-page .nav {
  display: none;
}

.landing-page .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0;
  color: var(--landing-ink);
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.8px;
  line-height: 16px;
  text-transform: uppercase;
}

.landing-page .section-inner {
  width: calc(100% - clamp(56px, 17.44vw, 356px));
  max-width: none;
  margin-inline: auto;
}

.landing-page h1,
.landing-page h2 {
  color: var(--landing-ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.landing-page h3 {
  color: var(--landing-text);
  font-size: clamp(21px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.28;
}

.landing-page p {
  color: var(--landing-muted);
}

.landing-page .eyebrow {
  margin: 0 0 24px;
  color: rgba(29, 69, 71, 0.54);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1.25;
  text-transform: uppercase;
}

.landing-page .button {
  min-height: 48px;
  padding: 0 38px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.landing-page .button.primary {
  color: #f7fbf9;
  background: #194b4c;
  border-color: rgba(25, 75, 76, 0.18);
  box-shadow: 0 16px 38px rgba(25, 75, 76, 0.16);
}

.landing-page .button.primary:hover {
  background: #153d3e;
}

.landing-page .button.secondary {
  color: var(--landing-ink);
  background: rgba(255, 255, 255, 0.36);
  border-color: rgba(29, 69, 71, 0.18);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.landing-page .figma-hero {
  position: relative;
  min-height: clamp(640px, 63.94vw, 900px);
  display: block;
  padding: clamp(140px, 14.53vw, 220px) clamp(28px, 8.72vw, 178px) 0;
  overflow: hidden;
  background: #f3f8fb;
  isolation: isolate;
}

.landing-page .hero::before {
  display: none;
}

.landing-page .figma-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(244, 248, 251, 0.56) 0%, rgba(244, 248, 251, 0.16) 43%, rgba(244, 248, 251, 0.7) 100%),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 43%);
}

.landing-page .hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.landing-page .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
  filter: saturate(0.76) contrast(0.9) brightness(1.18);
  opacity: 0.82;
}

.landing-page .hero-content {
  width: min(82.56vw, 909px);
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.landing-page .hero .eyebrow {
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2.1px;
  line-height: 20px;
}

.landing-page .hero h1 {
  max-width: 909px;
  margin: 0 0 40px;
  color: #182226;
  font-size: clamp(58px, 7.99vw, 88px);
  letter-spacing: -2.2px;
  line-height: 1.05;
}

.landing-page .hero-copy {
  width: min(100%, 672px);
  margin: 0 0 56px;
  color: rgba(35, 50, 56, 0.78);
  font-size: 20px;
  line-height: 1.625;
}

.landing-page .hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  margin: 0;
}

.landing-page .hero-actions .button {
  width: auto;
}

.landing-page .hero-actions .button.primary {
  min-width: 216px;
}

.landing-page .hero-actions .button.secondary {
  min-width: 218px;
}

.landing-page .figma-section {
  position: relative;
  scroll-margin-top: 104px;
  padding: 0;
  overflow: hidden;
}

.landing-page .why-section {
  min-height: 786px;
  padding-top: 128px;
  background: #f4f8fb;
}

.landing-page .why-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 96px;
  background: rgba(29, 69, 71, 0.11);
}

.landing-page .why-section .split-grid {
  display: grid;
  grid-template-columns: 271px minmax(0, 542px);
  gap: 96px;
  align-items: start;
  padding-top: 48px;
}

.landing-page .why-section h2 {
  width: 271px;
  margin: 0;
  color: #182226;
  font-size: 52px;
  line-height: 1.16;
  text-align: center;
}

.landing-page .contrast-list {
  display: grid;
  grid-template-columns: repeat(2, 239px);
  column-gap: 64px;
  row-gap: 80px;
  border: 0;
}

.landing-page .contrast-list article {
  position: relative;
  min-height: 201px;
  padding: 24px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.landing-page .contrast-list article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 1px;
  background: rgba(29, 69, 71, 0.17);
}

.landing-page .contrast-list h3 {
  margin: 0 0 17px;
}

.landing-page .contrast-list p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.landing-page .understand-section {
  min-height: 823px;
  padding-top: 128px;
  background: #f4f8fb;
}

.landing-page .understand-grid {
  display: grid;
  grid-template-columns: 337px minmax(0, 476px);
  gap: 96px;
  align-items: start;
}

.landing-page .soft-image {
  position: relative;
  width: 337px;
  height: 449px;
  margin-top: 59px;
  background:
    linear-gradient(105deg, rgba(212, 214, 206, 0.58), rgba(246, 247, 242, 0.88) 46%, rgba(211, 213, 205, 0.48)),
    repeating-linear-gradient(105deg, rgba(89, 107, 96, 0.06) 0, rgba(89, 107, 96, 0.06) 11px, rgba(255, 255, 255, 0.2) 11px, rgba(255, 255, 255, 0.2) 24px),
    url("assets/paper-grain.png");
  background-blend-mode: normal, normal, multiply;
  box-shadow: inset 0 0 70px rgba(255, 255, 255, 0.38);
}

.landing-page .soft-image::after {
  content: "";
  position: absolute;
  left: -32px;
  bottom: -32px;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(29, 69, 71, 0.11);
  border-radius: 50%;
}

.landing-page .understand-copy {
  padding-left: 48px;
}

.landing-page .understand-copy h2 {
  width: max-content;
  margin: 0 0 28px;
  font-size: 54px;
  line-height: 1;
  white-space: nowrap;
}

.landing-page .understand-copy > p:not(.eyebrow) {
  width: 429px;
  margin: 0 0 72px;
  font-size: 20px;
  line-height: 1.62;
}

.landing-page .topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 198px));
  gap: 16px 32px;
}

.landing-page .topic-grid span {
  position: relative;
  min-height: 48px;
  padding-left: 48px;
  color: rgba(35, 50, 56, 0.78);
  font-size: 18px;
  line-height: 1.34;
}

.landing-page .topic-grid span::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 0;
  width: 32px;
  height: 1px;
  background: rgba(29, 69, 71, 0.12);
}

.landing-page .mirror-section {
  min-height: 928px;
  padding-top: 128px;
  background: #f4f8fb;
}

.landing-page .center-copy {
  width: min(768px, 100%);
  margin: 0 auto;
  text-align: center;
}

.landing-page .center-copy h2 {
  margin: 0 0 22px;
  font-size: 60px;
  line-height: 1;
}

.landing-page .center-copy p:not(.eyebrow) {
  max-width: 672px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.62;
}

.landing-page .mirror-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 406px));
  gap: 96px;
  margin-top: 80px;
}

.landing-page .mirror-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(29, 69, 71, 0.1);
  transform: translateX(-48px);
}

.landing-page .mirror-grid article {
  min-height: 117px;
}

.landing-page .mirror-grid article:nth-child(even) {
  text-align: right;
}

.landing-page .mirror-grid article:nth-child(n + 3) {
  margin-top: 96px;
}

.landing-page .feature-marker {
  position: relative;
  display: block;
  width: 48px;
  height: 1px;
  margin: 0 0 22px;
  background: rgba(29, 69, 71, 0.18);
}

.landing-page .feature-marker::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(29, 69, 71, 0.36);
}

.landing-page .number {
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0 0 16px;
  color: rgba(29, 69, 71, 0.42);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.landing-page .mirror-grid h3 {
  width: 320px;
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
}

.landing-page .mirror-grid article:nth-child(even) h3 {
  margin-left: auto;
}

.landing-page .mirror-grid article:nth-child(even) .feature-marker {
  margin-left: auto;
}

.landing-page .diary-preview-section {
  min-height: 724px;
  padding-top: 128px;
  background:
    radial-gradient(circle at 78% 18%, rgba(219, 239, 245, 0.54), rgba(219, 239, 245, 0) 38%),
    linear-gradient(180deg, #f4f8fb, #f8faf8);
}

.landing-page .diary-preview-grid {
  display: grid;
  grid-template-columns: 337px minmax(0, 476px);
  gap: 96px;
  align-items: center;
}

.landing-page .diary-paper {
  position: relative;
  width: 337px;
  height: 408px;
  padding: 98px 52px 0;
  overflow: hidden;
  border: 1px solid rgba(29, 69, 71, 0.08);
  border-radius: 2px 46px 2px 2px;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.84), rgba(246, 245, 239, 0.68)),
    url("assets/paper-grain.png");
  box-shadow: 0 28px 70px rgba(28, 65, 74, 0.08);
  transform: rotate(-1.5deg);
}

.landing-page .diary-paper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38px;
  width: 1px;
  background: rgba(194, 126, 118, 0.16);
}

.landing-page .diary-paper::after {
  content: "";
  position: absolute;
  right: -56px;
  bottom: -56px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(29, 69, 71, 0.08);
  border-radius: 50%;
}

.landing-page .diary-paper span {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 52px;
  background: rgba(29, 69, 71, 0.12);
}

.landing-page .diary-paper span:nth-child(2) {
  width: 82%;
}

.landing-page .diary-paper span:nth-child(3) {
  width: 64%;
}

.landing-page .diary-preview-copy h2 {
  margin: 0 0 28px;
  font-size: 58px;
  line-height: 1;
}

.landing-page .diary-preview-copy > p:not(.eyebrow) {
  max-width: 448px;
  margin: 0;
  color: rgba(29, 69, 71, 0.68);
  font-size: 19px;
  line-height: 1.64;
}

.landing-page .diary-preview-copy .diary-privacy-note {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(29, 69, 71, 0.12);
  color: rgba(29, 69, 71, 0.48);
  font-size: 15px;
}

.landing-page .matching-explain {
  min-height: 1086px;
  padding-top: 128px;
  color: var(--landing-ink);
  background:
    radial-gradient(circle at 72% 44%, rgba(190, 191, 188, 0.48), rgba(232, 240, 242, 0) 34%),
    linear-gradient(90deg, #e8f3f7 0%, #f7fbfc 51%, #d4dbdc 100%);
}

.landing-page .matching-explain::before {
  display: none;
}

.landing-page .safety-grid {
  display: grid;
  grid-template-columns: 406px minmax(0, 406px);
  gap: 96px;
  align-items: start;
}

.landing-page .matching-explain h2,
.landing-page .matching-explain h3,
.landing-page .matching-explain .eyebrow {
  color: var(--landing-ink);
}

.landing-page .matching-explain h2 {
  width: 260px;
  margin: 0 0 28px;
  font-size: 60px;
  line-height: 1;
}

.landing-page .matching-copy > p {
  max-width: 407px;
  margin: 0 0 56px;
  color: rgba(29, 69, 71, 0.68);
  font-size: 20px;
  line-height: 1.55;
}

.landing-page .explain-timeline {
  position: relative;
  display: grid;
  gap: 32px;
  margin: 0 0 56px;
  padding-left: 32px;
}

.landing-page .explain-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 1px;
  width: 1px;
  background: rgba(29, 69, 71, 0.22);
}

.landing-page .explain-timeline article {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.landing-page .explain-timeline article::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -34px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--landing-ink);
  box-shadow: none;
}

.landing-page .explain-timeline h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.landing-page .explain-timeline p {
  max-width: 375px;
  margin: 0;
  color: rgba(29, 69, 71, 0.58);
  font-size: 17px;
  line-height: 1.55;
}

.landing-page .mutual-note {
  position: relative;
  width: 407px;
  margin: 0;
  padding-top: 35px;
  color: rgba(29, 69, 71, 0.38);
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
}

.landing-page .mutual-note::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 407px;
  height: 1px;
  background: rgba(29, 69, 71, 0.12);
}

.landing-page .matching-orbits {
  position: relative;
  width: 406px;
  height: 425px;
  margin-top: 202px;
}

.landing-page .orbit {
  position: absolute;
  display: grid;
  place-items: center;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(29, 69, 71, 0.08);
  border-radius: 50%;
  color: rgba(29, 69, 71, 0.42);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.24);
}

.landing-page .orbit span {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-style: italic;
}

.landing-page .orbit-you {
  top: 29px;
  left: 19px;
}

.landing-page .orbit-you span {
  align-self: start;
  justify-self: start;
  margin: 33px 0 0 33px;
}

.landing-page .orbit-partner {
  top: 29px;
  left: 134px;
}

.landing-page .orbit-partner span {
  align-self: end;
  justify-self: end;
  margin: 0 34px 38px 0;
}

.landing-page .orbit-center {
  position: absolute;
  top: 67px;
  left: 115px;
  width: 154px;
  height: 154px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 209, 198, 0.24), rgba(255, 255, 255, 0));
}

.landing-page .orbit-copy {
  position: absolute;
  right: 32px;
  bottom: 0;
  width: 320px;
  color: var(--landing-ink);
  text-align: center;
  transform: none;
}

.landing-page .orbit-copy span {
  display: block;
  margin-bottom: 18px;
  color: rgba(29, 69, 71, 0.45);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.33em;
  text-transform: uppercase;
}

.landing-page .orbit-copy p {
  margin: 0;
  color: var(--landing-ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.45;
}

.landing-page .privacy-section {
  min-height: 730px;
  padding-top: 129px;
  background: #f4f8fb;
}

.landing-page .privacy-section .center-copy h2 {
  margin-bottom: 24px;
}

.landing-page .privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 203px));
  gap: 32px;
  margin-top: 112px;
}

.landing-page .privacy-grid article {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.landing-page .privacy-grid .feature-marker {
  margin-bottom: 24px;
}

.landing-page .privacy-grid h3 {
  margin: 0 0 16px;
  font-size: 21px;
  line-height: 1.34;
}

.landing-page .privacy-grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.landing-page .journey-section {
  min-height: 1060px;
  padding-top: 128px;
  background: #f4f8fb;
}

.landing-page .journey-section .center-copy h2 {
  margin-bottom: 0;
}

.landing-page .journey-list {
  position: relative;
  width: min(896px, 100%);
  margin: 96px auto 0;
}

.landing-page .journey-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(29, 69, 71, 0.11);
}

.landing-page .journey-list article {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 112px;
  align-items: end;
}

.landing-page .journey-list article:first-child {
  min-height: 48px;
}

.landing-page .journey-list article::before {
  content: "";
  position: absolute;
  left: calc(50% - 4px);
  bottom: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(29, 69, 71, 0.18);
}

.landing-page .journey-list h3 {
  margin: 0;
  color: rgba(29, 69, 71, 0.58);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}

.landing-page .journey-list span {
  color: rgba(29, 69, 71, 0.13);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1;
}

.landing-page .journey-list article:nth-child(odd) h3 {
  justify-self: end;
  padding-right: 94px;
}

.landing-page .journey-list article:nth-child(odd) span {
  justify-self: start;
  padding-left: 34px;
}

.landing-page .journey-list article:nth-child(even) span {
  justify-self: end;
  padding-right: 34px;
}

.landing-page .journey-list article:nth-child(even) h3 {
  justify-self: start;
  padding-left: 94px;
}

.landing-page .join {
  min-height: 759px;
  display: grid;
  align-items: center;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(246, 250, 251, 0.66) 0%, rgba(245, 249, 251, 0.36) 44%, rgba(219, 229, 230, 0.58) 100%),
    url("assets/final-sea-sunrise.png") center bottom / cover no-repeat;
}

.landing-page .join::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, rgba(244, 248, 251, 0.28), rgba(238, 245, 246, 0.5));
  pointer-events: none;
}

.landing-page .join-cta {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(768px, calc(100% - 48px));
  min-height: 374px;
  align-content: start;
  padding-top: 40px;
  text-align: center;
}

.landing-page .join-cta h2 {
  width: 768px;
  max-width: 100%;
  margin: 0 0 58px;
  color: var(--landing-ink);
  font-size: clamp(46px, 6.7vw, 74px);
  line-height: 1.22;
}

.landing-page .join-anchor {
  width: 252px;
  min-height: 58px;
  color: var(--landing-ink);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(29, 69, 71, 0.14);
  box-shadow: 0 20px 60px rgba(28, 67, 72, 0.12);
}

.landing-page .join-form-panel {
  display: none;
  width: min(620px, 100%);
  margin-top: 56px;
}

.landing-page .join-form-panel:target {
  display: block;
}

.landing-page .join-form-panel > p {
  margin: 0 auto 24px;
  color: rgba(29, 69, 71, 0.64);
  font-size: 17px;
  line-height: 1.6;
}

.landing-page .join .signup-form {
  width: 100%;
  margin: 0 auto;
  padding: 28px;
  text-align: left;
  border: 1px solid rgba(29, 69, 71, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 24px 70px rgba(31, 69, 73, 0.08);
  backdrop-filter: blur(18px);
}

.landing-page .footer {
  min-height: 113px;
  padding: 0;
  color: rgba(29, 69, 71, 0.46);
  background: #eef6f7;
  border: 0;
}

.landing-page .footer-inner {
  min-height: 113px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
}

.landing-page .footer-inner span:first-child,
.landing-page .footer-inner span:last-child {
  display: none;
}

.landing-page.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}

.landing-page.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 720ms ease, transform 720ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .landing-page.reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .landing-page .site-header {
    min-height: 84px;
    padding-inline: 28px;
  }

  .landing-page .section-inner,
  .landing-page .hero-content {
    width: min(100% - 48px, 720px);
    margin-inline: auto;
  }

  .landing-page .figma-hero {
    min-height: 760px;
    padding: 128px 0 64px;
  }

  .landing-page .hero h1 {
    max-width: 720px;
    font-size: clamp(50px, 11vw, 88px);
  }

  .landing-page .hero-copy {
    width: min(100%, 620px);
    font-size: 19px;
  }

  .landing-page .why-section,
  .landing-page .understand-section,
  .landing-page .mirror-section,
  .landing-page .diary-preview-section,
  .landing-page .matching-explain,
  .landing-page .privacy-section,
  .landing-page .journey-section,
  .landing-page .join {
    min-height: auto;
    padding-block: 96px;
  }

  .landing-page .why-section::before {
    display: none;
  }

  .landing-page .why-section .split-grid,
  .landing-page .understand-grid,
  .landing-page .diary-preview-grid,
  .landing-page .safety-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 0;
  }

  .landing-page .why-section h2,
  .landing-page .understand-copy h2,
  .landing-page .diary-preview-copy h2,
  .landing-page .matching-explain h2,
  .landing-page .center-copy h2 {
    width: auto;
    font-size: clamp(44px, 8vw, 64px);
    text-align: left;
  }

  .landing-page .center-copy {
    width: min(100%, 680px);
    text-align: left;
  }

  .landing-page .contrast-list,
  .landing-page .privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }

  .landing-page .soft-image {
    width: min(100%, 420px);
    height: 520px;
    margin: 0;
  }

  .landing-page .diary-paper {
    width: min(100%, 420px);
    height: 440px;
    transform: rotate(-1deg);
  }

  .landing-page .understand-copy {
    padding-left: 0;
  }

  .landing-page .understand-copy > p:not(.eyebrow) {
    width: min(100%, 560px);
  }

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

  .landing-page .mirror-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .landing-page .mirror-grid::before {
    display: none;
  }

  .landing-page .mirror-grid article,
  .landing-page .mirror-grid article:nth-child(n + 3) {
    margin-top: 0;
  }

  .landing-page .mirror-grid article:nth-child(even) {
    text-align: left;
  }

  .landing-page .mirror-grid article:nth-child(even) h3 {
    margin-left: 0;
  }

  .landing-page .mirror-grid article:nth-child(even) .feature-marker {
    margin-left: 0;
  }

  .landing-page .matching-orbits {
    width: min(100%, 430px);
    height: 430px;
    margin: 0 auto;
  }

  .landing-page .privacy-grid {
    margin-top: 72px;
  }

  .landing-page .journey-list article:nth-child(odd) h3,
  .landing-page .journey-list article:nth-child(even) h3 {
    padding-inline: 48px 0;
  }

  .landing-page .journey-list article:nth-child(odd) span,
  .landing-page .journey-list article:nth-child(even) span {
    padding-inline: 0 48px;
  }
}

@media (max-width: 620px) {
  .landing-page .site-header {
    min-height: 74px;
    padding-inline: 24px;
  }

  .landing-page .brand {
    font-size: 11px;
    letter-spacing: 0.34em;
  }

  .landing-page .header-cta {
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .landing-page .section-inner,
  .landing-page .hero-content {
    width: calc(100% - 40px);
  }

  .landing-page .figma-hero {
    min-height: 720px;
    padding-top: 118px;
  }

  .landing-page .hero-media img {
    object-position: 55% 50%;
  }

  .landing-page .hero h1 {
    font-size: clamp(43px, 12vw, 56px);
    line-height: 1.05;
  }

  .landing-page .hero-copy {
    margin-bottom: 36px;
    font-size: 17px;
  }

  .landing-page .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }

  .landing-page .hero-actions .button,
  .landing-page .button {
    width: 100%;
    min-width: 0;
  }

  .landing-page .why-section,
  .landing-page .understand-section,
  .landing-page .mirror-section,
  .landing-page .diary-preview-section,
  .landing-page .matching-explain,
  .landing-page .privacy-section,
  .landing-page .journey-section,
  .landing-page .join {
    padding-block: 78px;
  }

  .landing-page .why-section h2,
  .landing-page .understand-copy h2,
  .landing-page .diary-preview-copy h2,
  .landing-page .matching-explain h2,
  .landing-page .center-copy h2 {
    font-size: clamp(40px, 12vw, 52px);
  }

  .landing-page .contrast-list,
  .landing-page .privacy-grid,
  .landing-page .topic-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .landing-page .contrast-list article {
    min-height: auto;
  }

  .landing-page .soft-image {
    width: 100%;
    height: 380px;
  }

  .landing-page .diary-paper {
    width: 100%;
    height: 330px;
    padding: 78px 42px 0;
  }

  .landing-page .understand-copy > p:not(.eyebrow),
  .landing-page .matching-copy > p,
  .landing-page .mutual-note,
  .landing-page .mutual-note::before {
    width: 100%;
  }

  .landing-page .understand-copy h2 {
    width: auto;
    white-space: normal;
  }

  .landing-page .mirror-grid h3 {
    width: 100%;
  }

  .landing-page .matching-orbits {
    width: min(100%, 340px);
    height: 320px;
  }

  .landing-page .orbit {
    width: 150px;
    height: 150px;
  }

  .landing-page .orbit-you {
    top: 0;
    left: 8px;
  }

  .landing-page .orbit-partner {
    top: 0;
    left: auto;
    right: 8px;
  }

  .landing-page .orbit-you span,
  .landing-page .orbit-partner span {
    place-self: center;
    margin: 0;
  }

  .landing-page .orbit-center {
    top: 27px;
    left: 50%;
    width: 96px;
    height: 96px;
    transform: translateX(-50%);
  }

  .landing-page .orbit-copy {
    right: auto;
    left: 50%;
    top: 190px;
    bottom: auto;
    width: min(280px, 100%);
    transform: translateX(-50%);
  }

  .landing-page .journey-list {
    margin-top: 64px;
  }

  .landing-page .journey-list::before {
    left: 8px;
  }

  .landing-page .journey-list article {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 84px;
  }

  .landing-page .journey-list article::before {
    left: 4px;
  }

  .landing-page .journey-list article h3,
  .landing-page .journey-list article:nth-child(odd) h3,
  .landing-page .journey-list article:nth-child(even) h3 {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    padding: 0;
  }

  .landing-page .journey-list article span,
  .landing-page .journey-list article:nth-child(odd) span,
  .landing-page .journey-list article:nth-child(even) span {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    padding: 0 0 0 24px;
    font-size: 30px;
  }

  .landing-page .join {
    min-height: 720px;
    background-position: center bottom;
  }

  .landing-page .join-cta {
    width: calc(100% - 40px);
    padding-top: 0;
  }

  .landing-page .join-cta h2 {
    width: 100%;
    font-size: clamp(38px, 11vw, 50px);
    line-height: 1.16;
  }

  .landing-page .join-anchor {
    width: min(300px, 100%);
  }

  .landing-page .join .signup-form {
    padding: 20px;
  }
}

/* ProAltero design system v0.60: shared visual language for product pages */
:root {
  --pa-ink: #18272d;
  --pa-deep: #1d4547;
  --pa-text: #2f424a;
  --pa-muted: rgba(47, 66, 74, 0.68);
  --pa-soft: #f6f9fc;
  --pa-paper: #fffdf8;
  --pa-mist: #eef7f9;
  --pa-sky: #dbeff5;
  --pa-sage: #dfe9df;
  --pa-warm: #f6efe3;
  --pa-line: rgba(29, 69, 71, 0.13);
  --pa-line-strong: rgba(29, 69, 71, 0.22);
  --pa-surface: rgba(255, 255, 255, 0.68);
  --pa-surface-strong: rgba(255, 255, 255, 0.84);
  --pa-shadow: 0 24px 70px rgba(22, 65, 76, 0.1);
  --pa-shadow-soft: 0 14px 42px rgba(22, 65, 76, 0.07);
  --pa-radius: 8px;
}

body:not(.landing-page) {
  min-height: 100svh;
  color: var(--pa-text);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 27%),
    radial-gradient(circle at 84% 0%, rgba(219, 239, 245, 0.72), rgba(219, 239, 245, 0) 32%),
    linear-gradient(180deg, #f4f9fb 0%, #fffdf8 34%, #f2f8f8 100%);
  text-rendering: optimizeLegibility;
}

body:not(.landing-page)::before {
  opacity: 0.07;
  mix-blend-mode: multiply;
}

body:not(.landing-page)::after {
  content: "";
  position: fixed;
  right: -8vw;
  bottom: -14vh;
  z-index: -1;
  width: min(62vw, 860px);
  height: min(62vw, 860px);
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(219, 239, 245, 0.58), rgba(219, 239, 245, 0.18) 42%, rgba(219, 239, 245, 0) 70%);
}

body:not(.landing-page) .site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  min-height: 104px;
  padding: 0 clamp(24px, 6.8vw, 96px);
  color: var(--pa-deep);
  border: 0;
  border-bottom: 1px solid rgba(29, 69, 71, 0.06);
  border-radius: 0;
  background: rgba(246, 249, 252, 0.78);
  box-shadow: 0 20px 60px rgba(28, 65, 74, 0.06);
  backdrop-filter: blur(22px) saturate(1.08);
}

body:not(.landing-page) .site-header.is-scrolled {
  border-bottom-color: rgba(29, 69, 71, 0.11);
  background: rgba(246, 249, 252, 0.92);
  box-shadow: 0 18px 55px rgba(28, 65, 74, 0.09);
}

body:not(.landing-page) .brand {
  color: var(--pa-deep);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3.5px;
  line-height: 20px;
  text-transform: uppercase;
}

body:not(.landing-page) .brand-mark {
  display: none;
}

body:not(.landing-page) .nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  color: rgba(29, 69, 71, 0.68);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 16px;
  text-transform: uppercase;
}

body:not(.landing-page) .nav a {
  padding: 7px 0;
  border: 0;
  border-radius: 0;
}

body:not(.landing-page) .nav a:hover {
  color: var(--pa-deep);
  background: transparent;
}

body:not(.landing-page) .header-cta {
  min-height: 40px;
  padding: 0 22px;
  color: var(--pa-deep);
  border: 1px solid rgba(29, 69, 71, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  line-height: 16px;
  text-transform: uppercase;
}

body:not(.landing-page) main {
  padding-top: 104px;
}

body:not(.landing-page) .section,
body:not(.landing-page) .standalone-page {
  padding: clamp(74px, 8vw, 118px) 0;
}

body:not(.landing-page) .section-inner {
  width: min(calc(100% - 48px), 1260px);
  max-width: none;
  margin-inline: auto;
}

body:not(.landing-page) h1,
body:not(.landing-page) h2,
body:not(.landing-page) .account-copy h1,
body:not(.landing-page) .prep-copy h1,
body:not(.landing-page) .legal-page h1 {
  color: var(--pa-ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}

body:not(.landing-page) h1,
body:not(.landing-page) .account-copy h1,
body:not(.landing-page) .prep-copy h1,
body:not(.landing-page) .legal-page h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(54px, 6.4vw, 88px);
}

body:not(.landing-page) h2 {
  font-size: clamp(42px, 5vw, 70px);
}

body:not(.landing-page) h3,
body:not(.landing-page) h4,
body:not(.landing-page) h5 {
  color: var(--pa-ink);
}

body:not(.landing-page) p,
body:not(.landing-page) li {
  color: var(--pa-muted);
}

body:not(.landing-page) .eyebrow {
  margin: 0 0 22px;
  color: rgba(29, 69, 71, 0.58);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.2px;
  line-height: 20px;
  text-transform: uppercase;
}

body:not(.landing-page) .account-layout,
body:not(.landing-page) .prep-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: start;
}

body:not(.landing-page) .account-copy,
body:not(.landing-page) .prep-copy {
  position: sticky;
  top: 132px;
  padding-top: clamp(12px, 2vw, 24px);
}

body:not(.landing-page) .account-copy p,
body:not(.landing-page) .prep-copy p,
body:not(.landing-page) .section-heading p,
body:not(.landing-page) .legal-updated {
  max-width: 620px;
  color: rgba(47, 66, 74, 0.72);
  font-size: 18px;
  line-height: 1.72;
}

body:not(.landing-page) .account-app,
body:not(.landing-page) .prep-app,
body:not(.landing-page) .report-app,
body:not(.landing-page) .legal-content,
body:not(.landing-page) .signup-form,
body:not(.landing-page) .account-panel,
body:not(.landing-page) .account-status-card,
body:not(.landing-page) .prep-question,
body:not(.landing-page) .prep-submit,
body:not(.landing-page) .prep-summary-card,
body:not(.landing-page) .report-block,
body:not(.landing-page) .diary-entry,
body:not(.landing-page) .diary-reflection,
body:not(.landing-page) .diary-reflection-empty,
body:not(.landing-page) .diary-reflection-request,
body:not(.landing-page) .match-card,
body:not(.landing-page) .match-analysis,
body:not(.landing-page) .match-public-profile,
body:not(.landing-page) .match-reveal-panel,
body:not(.landing-page) .profile-public-preview,
body:not(.landing-page) .profile-photo-form,
body:not(.landing-page) .test-card,
body:not(.landing-page) .privacy-zone,
body:not(.landing-page) .journey-step,
body:not(.landing-page) .account-home-summary,
body:not(.landing-page) .admin-run,
body:not(.landing-page) .admin-candidate-card {
  border: 1px solid var(--pa-line);
  border-radius: var(--pa-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62));
  box-shadow:
    var(--pa-shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

body:not(.landing-page) .account-app,
body:not(.landing-page) .prep-app,
body:not(.landing-page) .report-app,
body:not(.landing-page) .legal-content {
  padding: clamp(22px, 3vw, 34px);
}

body:not(.landing-page) .account-dashboard,
body:not(.landing-page) .account-auth,
body:not(.landing-page) .account-home,
body:not(.landing-page) .matches-panel,
body:not(.landing-page) .matches-list,
body:not(.landing-page) .tests-panel,
body:not(.landing-page) .tests-grid,
body:not(.landing-page) .diary-panel,
body:not(.landing-page) .diary-history,
body:not(.landing-page) .relationship-mirror,
body:not(.landing-page) .prep-questions {
  gap: 18px;
}

body:not(.landing-page) .account-panel {
  padding: clamp(20px, 3vw, 30px);
}

body:not(.landing-page) .account-panel h3,
body:not(.landing-page) .report-placeholder h3,
body:not(.landing-page) .report-hero h3,
body:not(.landing-page) .match-card h3,
body:not(.landing-page) .profile-preview-body h4 {
  color: var(--pa-ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

body:not(.landing-page) .compact-panel h3,
body:not(.landing-page) .diary-reflection-request h4,
body:not(.landing-page) .diary-reflection h4,
body:not(.landing-page) .diary-reflection-empty h4,
body:not(.landing-page) .test-card h4,
body:not(.landing-page) .report-block h4 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.3;
}

body:not(.landing-page) .button {
  min-height: 50px;
  padding: 0 34px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 16px;
  text-transform: uppercase;
}

body:not(.landing-page) .button.primary {
  color: #f8fbf9;
  border-color: rgba(29, 69, 71, 0.18);
  background: #1d4547;
  box-shadow: 0 14px 34px rgba(29, 69, 71, 0.16);
}

body:not(.landing-page) .button.primary:hover {
  background: #16393b;
}

body:not(.landing-page) .button.secondary {
  color: var(--pa-deep);
  border-color: rgba(29, 69, 71, 0.16);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: none;
}

body:not(.landing-page) .button.secondary:hover {
  border-color: rgba(29, 69, 71, 0.26);
  background: rgba(255, 255, 255, 0.72);
}

body:not(.landing-page) input,
body:not(.landing-page) select,
body:not(.landing-page) textarea,
body:not(.landing-page) .profile-photo-form input[type="file"],
body:not(.landing-page) .prep-topic-critical select {
  min-height: 50px;
  color: var(--pa-text);
  border: 1px solid rgba(29, 69, 71, 0.16);
  border-radius: var(--pa-radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font: inherit;
}

body:not(.landing-page) textarea {
  line-height: 1.62;
}

body:not(.landing-page) input:focus,
body:not(.landing-page) select:focus,
body:not(.landing-page) textarea:focus {
  outline: 3px solid rgba(120, 183, 206, 0.22);
  border-color: rgba(29, 69, 71, 0.38);
}

body:not(.landing-page) label {
  color: rgba(29, 69, 71, 0.78);
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.01em;
}

body:not(.landing-page) .account-tabs,
body:not(.landing-page) .account-page-nav,
body:not(.landing-page) .diary-tabs,
body:not(.landing-page) .prep-day-tabs {
  gap: 8px;
}

body:not(.landing-page) .account-tabs button,
body:not(.landing-page) .account-page-nav a,
body:not(.landing-page) .diary-tabs a,
body:not(.landing-page) .prep-day-tab {
  min-height: 42px;
  color: rgba(29, 69, 71, 0.76);
  border: 1px solid rgba(29, 69, 71, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: none;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.02em;
}

body:not(.landing-page) .account-tabs button.is-active,
body:not(.landing-page) .account-page-nav a.is-active,
body:not(.landing-page) .diary-tabs a.is-active,
body:not(.landing-page) .prep-day-tab.is-active {
  color: #f8fbf9;
  border-color: rgba(29, 69, 71, 0.18);
  background: var(--pa-deep);
}

body:not(.landing-page) .prep-day-tab.is-complete:not(.is-active) {
  color: #295d4b;
  border-color: rgba(81, 119, 101, 0.2);
  background: rgba(223, 233, 223, 0.62);
}

body:not(.landing-page) .account-status,
body:not(.landing-page) .report-status,
body:not(.landing-page) .number,
body:not(.landing-page) .step-index,
body:not(.landing-page) .test-card span,
body:not(.landing-page) .report-meta span,
body:not(.landing-page) .diary-reflection-meta span,
body:not(.landing-page) .diary-entry-badges a {
  width: fit-content;
  color: rgba(29, 69, 71, 0.82);
  border: 1px solid rgba(81, 119, 101, 0.16);
  border-radius: 999px;
  background: rgba(223, 233, 223, 0.62);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body:not(.landing-page) .prep-disclaimer,
body:not(.landing-page) .privacy-notice,
body:not(.landing-page) .prep-signed-in,
body:not(.landing-page) .account-note,
body:not(.landing-page) .prep-submit-note,
body:not(.landing-page) .form-note {
  color: rgba(47, 66, 74, 0.68);
}

body:not(.landing-page) .account-note.is-error {
  color: #9d332e;
}

body:not(.landing-page) .email-verification-panel {
  border-color: rgba(171, 121, 41, 0.24);
  background:
    radial-gradient(circle at 90% 10%, rgba(238, 210, 153, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.86), rgba(247, 251, 248, 0.66));
}

body:not(.landing-page) .email-verification-panel.is-verified {
  border-color: rgba(81, 119, 101, 0.22);
  background:
    radial-gradient(circle at 88% 12%, rgba(125, 184, 203, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(251, 254, 250, 0.88), rgba(238, 248, 242, 0.7));
}

body:not(.landing-page) .prep-disclaimer,
body:not(.landing-page) .privacy-notice,
body:not(.landing-page) .prep-signed-in,
body:not(.landing-page) .report-next,
body:not(.landing-page) .matching-refresh-panel {
  border: 1px solid rgba(81, 119, 101, 0.16);
  border-radius: var(--pa-radius);
  background:
    linear-gradient(180deg, rgba(251, 254, 250, 0.82), rgba(238, 248, 242, 0.66));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body:not(.landing-page) .prep-progress {
  height: 7px;
  border-radius: 999px;
  background: rgba(29, 69, 71, 0.1);
}

body:not(.landing-page) .prep-progress span {
  border-radius: inherit;
  background: linear-gradient(90deg, #87bba4, #7db8cb);
}

body:not(.landing-page) .prep-topline {
  align-items: center;
}

body:not(.landing-page) .prep-reset,
body:not(.landing-page) .account-link-button {
  color: var(--pa-deep);
  font-weight: 700;
}

body:not(.landing-page) .prep-day-header {
  padding-top: 10px;
}

body:not(.landing-page) .prep-day-header h2 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4vw, 54px);
}

body:not(.landing-page) .prep-question {
  padding: clamp(18px, 2.4vw, 26px);
}

body:not(.landing-page) .prep-question h3 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.35;
}

body:not(.landing-page) .prep-question-helper {
  color: rgba(47, 66, 74, 0.64);
}

body:not(.landing-page) .prep-option {
  border-color: rgba(29, 69, 71, 0.12);
  border-radius: var(--pa-radius);
  background: rgba(255, 255, 255, 0.56);
}

body:not(.landing-page) .prep-option:has(input:checked) {
  border-color: rgba(29, 69, 71, 0.28);
  background: rgba(219, 239, 245, 0.58);
}

body:not(.landing-page) .prep-topic-row {
  border-radius: var(--pa-radius);
  background: rgba(255, 255, 255, 0.54);
}

body:not(.landing-page) .account-home-hero,
body:not(.landing-page) .diary-panel,
body:not(.landing-page) .matches-panel,
body:not(.landing-page) .tests-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(219, 239, 245, 0.42));
}

body:not(.landing-page) .account-home-hero.tone-ready {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(223, 233, 223, 0.58));
}

body:not(.landing-page) .account-home-summary strong,
body:not(.landing-page) .account-status-card strong {
  color: var(--pa-ink);
}

body:not(.landing-page) .journey-step {
  border-radius: var(--pa-radius);
}

body:not(.landing-page) .journey-step.is-active {
  border-color: rgba(29, 69, 71, 0.24);
  background: rgba(219, 239, 245, 0.58);
}

body:not(.landing-page) .journey-step.is-done {
  background: rgba(223, 233, 223, 0.56);
}

body:not(.landing-page) .privacy-zone span {
  color: rgba(29, 69, 71, 0.62);
}

body:not(.landing-page) .report-hero {
  border-bottom-color: var(--pa-line);
}

body:not(.landing-page) .relationship-mirror {
  padding: 0;
}

body:not(.landing-page) .report-block {
  padding: clamp(18px, 2.4vw, 28px);
}

body:not(.landing-page) .report-human-note {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 239, 227, 0.52));
}

body:not(.landing-page) .match-card {
  gap: 16px;
  padding: clamp(18px, 2.5vw, 28px);
  overflow: hidden;
}

body:not(.landing-page) .match-card.is-revealed {
  border-color: rgba(81, 119, 101, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 249, 244, 0.62));
}

body:not(.landing-page) .match-card.is-locked {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(246, 239, 227, 0.58));
}

body:not(.landing-page) .match-photo,
body:not(.landing-page) .profile-photo-preview,
body:not(.landing-page) .profile-preview-photo {
  border-color: rgba(29, 69, 71, 0.13);
  border-radius: var(--pa-radius);
  background: rgba(219, 239, 245, 0.52);
  box-shadow: var(--pa-shadow-soft);
}

body:not(.landing-page) .match-meta {
  color: rgba(29, 69, 71, 0.76);
}

body:not(.landing-page) .match-public-profile,
body:not(.landing-page) .match-analysis,
body:not(.landing-page) .match-reveal-panel {
  box-shadow: none;
}

body:not(.landing-page) .diary-entry {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 253, 248, 0.58));
}

body:not(.landing-page) .diary-entry.is-analyzed {
  border-color: rgba(81, 119, 101, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(238, 248, 242, 0.58));
}

body:not(.landing-page) .diary-entry-header {
  color: rgba(29, 69, 71, 0.62);
  letter-spacing: 0.02em;
}

body:not(.landing-page) .diary-theme-stat,
body:not(.landing-page) .diary-reflection-history-list article {
  box-shadow: none;
}

body:not(.landing-page) .profile-preview-card,
body:not(.landing-page) .match-teaser-layout {
  gap: 22px;
}

body:not(.landing-page) .tests-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not(.landing-page) .test-card {
  padding: 20px;
}

body:not(.landing-page) .legal-page {
  background: transparent;
}

body:not(.landing-page) .legal-content {
  max-width: 900px;
  margin-top: 34px;
}

body:not(.landing-page) .legal-content h2 {
  color: var(--pa-ink);
  font-size: 22px;
}

body:not(.landing-page) .footer {
  padding: 34px clamp(24px, 6.8vw, 96px);
  color: rgba(47, 66, 74, 0.62);
  border-top: 1px solid rgba(29, 69, 71, 0.08);
  background: rgba(246, 249, 252, 0.74);
}

body:not(.landing-page) .footer-inner {
  width: min(100%, 1260px);
  max-width: none;
  margin-inline: auto;
}

body:not(.landing-page) .footer a {
  color: var(--pa-deep);
}

@media (max-width: 1040px) {
  body:not(.landing-page) .site-header {
    grid-template-columns: auto auto;
  }

  body:not(.landing-page) .nav {
    display: none;
  }

  body:not(.landing-page) .account-layout,
  body:not(.landing-page) .prep-layout {
    grid-template-columns: 1fr;
  }

  body:not(.landing-page) .account-copy,
  body:not(.landing-page) .prep-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  body:not(.landing-page) .site-header {
    min-height: 74px;
    padding-inline: 24px;
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  body:not(.landing-page) main {
    padding-top: 74px;
  }

  body:not(.landing-page) .section,
  body:not(.landing-page) .standalone-page {
    padding-block: 54px;
  }

  body:not(.landing-page) .section-inner {
    width: calc(100% - 36px);
  }

  body:not(.landing-page) h1,
  body:not(.landing-page) .account-copy h1,
  body:not(.landing-page) .prep-copy h1,
  body:not(.landing-page) .legal-page h1 {
    font-size: clamp(40px, 11vw, 54px);
    line-height: 1.05;
  }

  body:not(.landing-page) h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  body:not(.landing-page) .account-copy p,
  body:not(.landing-page) .prep-copy p,
  body:not(.landing-page) .section-heading p,
  body:not(.landing-page) .legal-updated {
    font-size: 16px;
    line-height: 1.66;
  }

  body:not(.landing-page) .account-app,
  body:not(.landing-page) .prep-app,
  body:not(.landing-page) .report-app,
  body:not(.landing-page) .legal-content {
    padding: 18px;
  }

  body:not(.landing-page) .account-page-nav,
  body:not(.landing-page) .account-status-grid,
  body:not(.landing-page) .account-form-grid,
  body:not(.landing-page) .prep-summary-grid,
  body:not(.landing-page) .prep-submit-row,
  body:not(.landing-page) .privacy-zone-grid,
  body:not(.landing-page) .journey-map,
  body:not(.landing-page) .account-home-grid,
  body:not(.landing-page) .tests-grid,
  body:not(.landing-page) .profile-preview-card,
  body:not(.landing-page) .match-teaser-layout,
  body:not(.landing-page) .admin-seed-grid,
  body:not(.landing-page) .admin-candidate-pair {
    grid-template-columns: 1fr;
  }

  body:not(.landing-page) .prep-day-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body:not(.landing-page) .prep-day-tab {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 12px;
  }

  body:not(.landing-page) .button,
  body:not(.landing-page) .diary-reflection-request .button,
  body:not(.landing-page) .match-reveal-panel .button {
    width: 100%;
  }

  body:not(.landing-page) .account-actions,
  body:not(.landing-page) .matching-refresh-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  body:not(.landing-page) .header-cta {
    display: inline-flex;
    min-height: 36px;
    padding-inline: 16px;
  }
}

/* Landing desktop polish v0.90: balanced coastal imagery and cleaner editorial details. */
@media (min-width: 821px) {
  .landing-page .mirror-grid::before {
    left: 50%;
    transform: none;
  }

  .landing-page .mirror-grid article {
    display: flex;
    min-height: 132px;
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-page .mirror-grid article:nth-child(even) {
    align-items: flex-end;
  }

  .landing-page .mirror-grid article::after {
    display: none;
  }

  .landing-page .mirror-grid h3,
  .landing-page .mirror-grid article:nth-child(even) h3 {
    margin: 0;
  }

  .landing-page .understand-section::before {
    top: 187px;
    right: max(3.6vw, 42px);
    width: 337px;
    height: 449px;
    border-radius: 0 56px 0 56px;
    background:
      linear-gradient(255deg, rgba(255, 255, 255, 0.58), rgba(246, 247, 242, 0.78) 44%, rgba(211, 213, 205, 0.24)),
      url("assets/final-sea-sunrise.png") center / cover no-repeat;
    box-shadow:
      0 36px 120px rgba(28, 65, 74, 0.075),
      inset 0 0 80px rgba(255, 255, 255, 0.62);
    opacity: 0.68;
    transform: scaleX(-1);
  }

  .landing-page .privacy-section::before {
    display: none;
  }

  .landing-page .privacy-grid article,
  .landing-page .privacy-grid article:first-child {
    background: transparent;
    box-shadow: none;
  }

  .landing-page .journey-section::before,
  .landing-page .journey-section::after {
    content: "";
    position: absolute;
    top: 130px;
    width: min(24vw, 360px);
    height: min(18vw, 270px);
    pointer-events: none;
    border-radius: 56px 0 56px 0;
    background:
      linear-gradient(105deg, rgba(255, 255, 255, 0.7), rgba(246, 249, 247, 0.72) 48%, rgba(219, 239, 245, 0.28)),
      url("assets/final-sea-sunrise.png") center / cover no-repeat;
    box-shadow: inset 0 0 70px rgba(255, 255, 255, 0.72);
    opacity: 0.42;
  }

  .landing-page .journey-section::before {
    left: max(4vw, 48px);
  }

  .landing-page .journey-section::after {
    right: max(4vw, 48px);
    transform: scaleX(-1);
  }
}

.landing-page .diary-paper {
  padding: 0;
  border-color: rgba(75, 67, 51, 0.07);
  background:
    radial-gradient(ellipse at 28% 18%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 48%),
    linear-gradient(112deg, rgba(252, 250, 243, 0.98), rgba(243, 239, 226, 0.82)),
    url("assets/paper-grain.png");
  background-blend-mode: normal, normal, multiply;
  box-shadow:
    0 30px 76px rgba(56, 48, 35, 0.09),
    inset 0 0 54px rgba(126, 107, 72, 0.045);
}

.landing-page .diary-paper::before {
  inset: 0;
  width: auto;
  background:
    linear-gradient(96deg, rgba(111, 89, 55, 0.035), transparent 16%, transparent 82%, rgba(111, 89, 55, 0.025)),
    radial-gradient(circle at 72% 78%, rgba(185, 159, 111, 0.055), transparent 34%);
}

.landing-page .diary-paper::after {
  right: -72px;
  bottom: -72px;
  width: 150px;
  height: 150px;
  border-color: rgba(112, 92, 58, 0.06);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: -18px -18px 48px rgba(92, 75, 45, 0.025);
}

.landing-page .diary-paper span {
  display: none;
}

@media (max-width: 1300px) and (min-width: 821px) {
  .landing-page .understand-section::before {
    right: 24px;
    width: 260px;
  }

  .landing-page .journey-section::before,
  .landing-page .journey-section::after {
    width: 240px;
    height: 190px;
  }
}

@media (max-width: 820px) {
  .landing-page .journey-section::before,
  .landing-page .journey-section::after {
    display: none;
  }
}

/* Seven stages of love v2 */
body.prepare-page .prep-day-tabs {
  grid-template-columns: repeat(7, minmax(78px, 1fr));
  scrollbar-width: thin;
}

body.prepare-page .prep-day-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 7px 6px;
  line-height: 1;
}

body.prepare-page .prep-day-tab > span {
  font-size: 0.8rem;
}

body.prepare-page .prep-day-tab > small {
  max-width: 100%;
  overflow: hidden;
  font-family: var(--pa-serif);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.prepare-page .prep-day-tab.is-complete::after {
  position: absolute;
  top: 5px;
  right: 6px;
  margin: 0;
  font-size: 0.62rem;
}

body.prepare-page .prep-day-header .eyebrow {
  color: rgba(29, 69, 71, 0.68);
}

body.prepare-page .prep-summary {
  gap: 22px;
  margin-top: 42px;
  padding-top: 38px;
}

body.prepare-page .prep-summary-kicker,
body.app-page .report-stage-name {
  display: block;
  color: rgba(29, 69, 71, 0.65);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.prepare-page .prep-summary-intro {
  max-width: 68ch;
  margin: -10px 0 4px;
  color: var(--pa-text);
  line-height: 1.7;
}

body.prepare-page .prep-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background: var(--pa-line);
}

body.prepare-page .prep-summary-card {
  min-height: 176px;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 253, 248, 0.96);
}

body.prepare-page .prep-summary-card span {
  margin-bottom: 12px;
  color: rgba(29, 69, 71, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.prepare-page .prep-summary-card strong {
  display: block;
  color: var(--pa-ink);
  font-family: var(--pa-serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.15;
}

body.prepare-page .prep-summary-closing {
  padding: 22px 0;
  border-top: 1px solid var(--pa-line);
  border-bottom: 1px solid var(--pa-line);
}

body.prepare-page .prep-summary-closing span {
  color: var(--pa-deep);
  font-weight: 760;
}

body.prepare-page .prep-summary-closing p {
  margin: 6px 0 0;
  color: var(--pa-muted);
}

body.prepare-page .prep-safety-notice {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid rgba(145, 91, 74, 0.24);
  border-radius: 7px;
  background: rgba(252, 242, 236, 0.86);
}

body.prepare-page .prep-safety-notice strong {
  color: #6d4338;
}

body.prepare-page .prep-safety-notice p {
  margin: 8px 0 0;
  color: #6d5149;
  line-height: 1.65;
}

body.app-page .report-stage-name {
  margin-bottom: 12px;
}

@media (max-width: 760px) {
  body.prepare-page .prep-day-tabs {
    grid-template-columns: repeat(7, 76px);
    margin-right: -22px;
    margin-left: -22px;
    padding-right: 22px;
    padding-left: 22px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  body.prepare-page .prep-summary-grid {
    grid-template-columns: 1fr;
  }

  body.prepare-page .prep-summary-card {
    min-height: 0;
    padding: 22px;
  }

  body.prepare-page .prep-actions {
    grid-template-columns: 1fr;
  }

  body.prepare-page .prep-actions .button {
    width: 100%;
  }
}

/* Product UI experiment v0.61: softer personal space, less system dashboard */
body.app-page.is-authenticated,
body.prepare-page.is-authenticated {
  background:
    radial-gradient(circle at 17% 7%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 29%),
    radial-gradient(circle at 82% 9%, rgba(219, 239, 245, 0.72), rgba(219, 239, 245, 0) 34%),
    linear-gradient(180deg, #f6fafb 0%, #fffdf8 44%, #edf7f8 100%);
}

body.app-page.is-authenticated .site-header {
  background: rgba(246, 249, 252, 0.58);
  box-shadow: none;
}

body.app-page.is-authenticated .account-section {
  padding-top: clamp(70px, 7vw, 104px);
}

body.app-page.is-authenticated .account-section .section-inner {
  width: min(calc(100% - 64px), 1480px);
}

body.app-page.is-authenticated .account-layout {
  grid-template-columns: minmax(250px, 0.46fr) minmax(0, 1.54fr);
  gap: clamp(56px, 7.4vw, 118px);
}

body.app-page.is-authenticated .account-copy {
  top: 138px;
  padding-top: clamp(8px, 1vw, 16px);
}

body.app-page.is-authenticated .account-copy h1 {
  max-width: 520px;
  margin-bottom: 28px;
  font-size: clamp(48px, 4.5vw, 72px);
  line-height: 1.02;
}

body.app-page.is-authenticated .account-copy p {
  max-width: 470px;
  font-size: 17px;
  line-height: 1.78;
}

body.app-page.is-authenticated .account-app {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.app-page.is-authenticated .experimental-dashboard {
  display: grid;
  gap: 24px;
}

body.app-page.is-authenticated .experimental-dashboard > * {
  animation: productFadeUp 520ms ease both;
}

body.app-page.is-authenticated .experimental-dashboard > *:nth-child(2) {
  animation-delay: 70ms;
}

body.app-page.is-authenticated .experimental-dashboard > *:nth-child(3) {
  animation-delay: 130ms;
}

@keyframes productFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.app-page.is-authenticated .experimental-dashboard > * {
    animation: none;
  }
}

body.app-page.is-authenticated .account-presence {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 0 0 26px;
  border-bottom: 1px solid rgba(29, 69, 71, 0.12);
}

body.app-page.is-authenticated .presence-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--pa-deep);
  border: 1px solid rgba(29, 69, 71, 0.12);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.96), rgba(223, 233, 223, 0.6));
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  box-shadow: 0 18px 42px rgba(28, 65, 74, 0.08);
}

body.app-page.is-authenticated .presence-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.app-page.is-authenticated .presence-copy .account-status {
  margin-bottom: 2px;
}

body.app-page.is-authenticated .presence-copy strong {
  overflow: hidden;
  color: var(--pa-ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-page.is-authenticated .presence-copy small {
  overflow: hidden;
  color: rgba(47, 66, 74, 0.62);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-page.is-authenticated .account-section-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 8px 0 14px;
  border-top: 0;
  border-bottom: 1px solid rgba(29, 69, 71, 0.1);
}

body.app-page.is-authenticated .account-section-nav a {
  position: relative;
  min-height: 40px;
  padding: 10px 8px;
  color: rgba(29, 69, 71, 0.58);
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

body.app-page.is-authenticated .account-section-nav a::after {
  content: "";
  position: absolute;
  right: 22%;
  bottom: -15px;
  left: 22%;
  height: 1px;
  background: transparent;
}

body.app-page.is-authenticated .account-section-nav a.is-active {
  color: var(--pa-deep);
  background: transparent;
}

body.app-page.is-authenticated .account-section-nav a.is-active::after {
  background: var(--pa-deep);
}

body.app-page.is-authenticated .account-home {
  display: grid;
  gap: 28px;
}

body.app-page.is-authenticated .account-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 280px);
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
  min-height: clamp(320px, 34vw, 460px);
  padding: clamp(34px, 5vw, 62px);
  overflow: hidden;
  border: 1px solid rgba(29, 69, 71, 0.1);
  border-radius: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.86) 0%, rgba(239, 247, 248, 0.72) 50%, rgba(219, 239, 245, 0.58) 100%);
  box-shadow: 0 28px 90px rgba(28, 65, 74, 0.08);
}

body.app-page.is-authenticated .account-home-hero::before,
body.app-page.is-authenticated .account-home-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(29, 69, 71, 0.08);
  border-radius: 999px;
}

body.app-page.is-authenticated .account-home-hero::before {
  right: clamp(-210px, -10vw, -80px);
  bottom: clamp(-230px, -13vw, -110px);
  width: clamp(360px, 35vw, 540px);
  height: clamp(360px, 35vw, 540px);
  background: radial-gradient(circle at 42% 32%, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.06) 62%);
}

body.app-page.is-authenticated .account-home-hero::after {
  right: clamp(62px, 11vw, 160px);
  bottom: clamp(-160px, -9vw, -80px);
  width: clamp(260px, 25vw, 390px);
  height: clamp(260px, 25vw, 390px);
}

body.app-page.is-authenticated .account-home-hero > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

body.app-page.is-authenticated .account-home-hero h3 {
  max-width: 620px;
  margin: 12px 0 14px;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.98;
}

body.app-page.is-authenticated .account-home-hero p {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.68;
}

body.app-page.is-authenticated .account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

body.app-page.is-authenticated .account-home-summary {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 210px;
  padding: 0;
  color: var(--pa-deep);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: right;
}

body.app-page.is-authenticated .account-home-summary strong {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.04;
}

body.app-page.is-authenticated .account-home-summary span {
  justify-self: end;
  max-width: 220px;
  color: rgba(29, 69, 71, 0.64);
}

body.app-page.is-authenticated .journey-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 30px 0 14px;
}

body.app-page.is-authenticated .journey-map::before {
  content: "";
  position: absolute;
  top: 41px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(29, 69, 71, 0.06), rgba(29, 69, 71, 0.2), rgba(29, 69, 71, 0.06));
}

body.app-page.is-authenticated .journey-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 13px;
  min-height: 0;
  padding: 0 18px 0 0;
  color: var(--pa-text);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.app-page.is-authenticated .journey-dot {
  width: 13px;
  height: 13px;
  margin-top: 5px;
  border: 1px solid rgba(29, 69, 71, 0.28);
  border-radius: 999px;
  background: #f6fafb;
  box-shadow: 0 0 0 7px rgba(246, 250, 251, 0.92);
}

body.app-page.is-authenticated .journey-step.is-active .journey-dot {
  background: #7db8cb;
  border-color: rgba(29, 69, 71, 0.36);
}

body.app-page.is-authenticated .journey-step.is-done .journey-dot {
  background: #87bba4;
}

body.app-page.is-authenticated .journey-step strong {
  display: block;
  color: var(--pa-ink);
  font-size: 16px;
  letter-spacing: 0;
}

body.app-page.is-authenticated .journey-step small,
body.app-page.is-authenticated .journey-step em {
  display: block;
  margin-top: 6px;
  color: rgba(47, 66, 74, 0.64);
  font-size: 13px;
  font-style: normal;
  line-height: 1.38;
}

body.app-page.is-authenticated .privacy-zone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(29, 69, 71, 0.1);
  background: rgba(29, 69, 71, 0.1);
}

body.app-page.is-authenticated .privacy-zone {
  min-height: 192px;
  padding: 28px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 253, 251, 0.66));
  box-shadow: none;
}

body.app-page.is-authenticated .privacy-zone span {
  display: block;
  margin-bottom: 20px;
  color: rgba(29, 69, 71, 0.54);
  font-size: 11px;
  letter-spacing: 0.17em;
}

body.app-page.is-authenticated .privacy-zone strong {
  display: block;
  margin-bottom: 12px;
  color: var(--pa-ink);
  font-size: 19px;
}

body.app-page.is-authenticated .privacy-zone p {
  max-width: 270px;
  font-size: 15px;
  line-height: 1.62;
}

body.app-page.is-authenticated .account-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 18px;
}

body.app-page.is-authenticated .account-home-grid .compact-panel,
body.app-page.is-authenticated .tests-grid .test-card,
body.app-page.is-authenticated .diary-entry,
body.app-page.is-authenticated .match-card,
body.app-page.is-authenticated .profile-public-preview,
body.app-page.is-authenticated .profile-photo-form,
body.app-page.is-authenticated .diary-reflection,
body.app-page.is-authenticated .diary-reflection-empty,
body.app-page.is-authenticated .diary-reflection-request {
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 253, 248, 0.62));
  box-shadow: none;
}

body.app-page.is-authenticated .account-home-grid .compact-panel {
  display: grid;
  align-content: start;
  min-height: 230px;
  padding: 30px;
}

body.app-page.is-authenticated .account-home-grid .compact-panel h3 {
  margin: 18px 0 10px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.04;
}

body.app-page.is-authenticated .account-link-button {
  width: fit-content;
  min-height: 0;
  padding: 0;
  color: var(--pa-deep);
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.app-page.is-authenticated .account-home-grid .account-link-button {
  align-self: end;
  margin-top: 18px;
}

body.app-page.is-authenticated .tests-panel,
body.app-page.is-authenticated .diary-panel,
body.app-page.is-authenticated .matches-panel,
body.app-page.is-authenticated .matching-settings-panel,
body.app-page.is-authenticated .matching-consent-panel,
body.app-page.is-authenticated .account-dashboard > .account-panel {
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(239, 247, 248, 0.58));
  box-shadow: 0 24px 74px rgba(28, 65, 74, 0.07);
}

body.app-page.is-authenticated .tests-panel > h3,
body.app-page.is-authenticated .diary-panel > h3,
body.app-page.is-authenticated .matches-panel > h3,
body.app-page.is-authenticated .matching-settings-panel > h3,
body.app-page.is-authenticated .matching-consent-panel > h3 {
  max-width: 680px;
  font-size: clamp(42px, 4.8vw, 70px);
}

body.app-page.is-authenticated .tests-grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(29, 69, 71, 0.1);
  background: rgba(29, 69, 71, 0.1);
}

body.app-page.is-authenticated .tests-grid .test-card {
  min-height: 230px;
  padding: 28px;
  border: 0;
}

body.app-page.is-authenticated .match-card {
  padding: clamp(28px, 4vw, 48px);
}

body.app-page.is-authenticated .match-card h3 {
  font-size: clamp(38px, 4vw, 60px);
}

body.app-page.is-authenticated .match-analysis,
body.app-page.is-authenticated .match-public-profile,
body.app-page.is-authenticated .match-reveal-panel,
body.app-page.is-authenticated .privacy-notice,
body.app-page.is-authenticated .matching-refresh-panel {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

body.app-page.is-authenticated .diary-tabs {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(29, 69, 71, 0.1);
}

body.app-page.is-authenticated .diary-tabs a {
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.app-page.is-authenticated .diary-tabs a.is-active {
  color: var(--pa-deep);
  background: transparent;
  box-shadow: inset 0 -1px 0 var(--pa-deep);
}

body.app-page.is-authenticated .profile-preview-card,
body.app-page.is-authenticated .match-teaser-layout {
  align-items: start;
}

html {
  scroll-padding-top: 104px;
}

[id],
.figma-section,
.account-section,
.prep-section {
  scroll-margin-top: 104px;
}

.profile-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.profile-photo-tile {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(29, 69, 71, 0.14);
  background: rgba(255, 255, 255, 0.58);
}

.profile-photo-tile.is-primary {
  border-color: rgba(25, 75, 76, 0.36);
  box-shadow: 0 18px 46px rgba(25, 75, 76, 0.09);
}

.profile-photo-tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.profile-photo-tile span,
.profile-photo-tile small {
  display: block;
}

.profile-photo-tile span {
  color: var(--pa-deep);
  font-weight: 800;
}

.profile-photo-actions {
  display: grid;
  gap: 8px;
}

.profile-photo-actions .button {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  font-size: 11px;
}

.test-group {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.test-group > h4 {
  margin: 0;
  color: var(--pa-deep);
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.relationship-test-form {
  display: grid;
  gap: 14px;
}

.relationship-test-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.relationship-test-form legend {
  margin-bottom: 10px;
  color: var(--pa-deep);
  font-weight: 800;
}

.test-result {
  display: grid;
  gap: 12px;
  padding-top: 8px;
  scroll-margin-top: 154px;
}

.test-result-kicker {
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(29, 69, 71, 0.1);
  border-radius: 999px;
  color: rgba(29, 69, 71, 0.72);
  background: rgba(232, 242, 236, 0.74);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.test-result strong {
  color: var(--pa-deep);
  font-size: 22px;
}

.test-score-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.test-score-list span {
  padding: 7px 10px;
  border: 1px solid rgba(29, 69, 71, 0.12);
  color: rgba(29, 69, 71, 0.76);
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.landing-page .matching-orbits,
.landing-page .orbit {
  max-width: 100%;
}

@media (max-width: 1160px) {
  body.app-page.is-authenticated .account-layout {
    grid-template-columns: 1fr;
  }

  body.app-page.is-authenticated .account-copy {
    position: static;
  }

  body.app-page.is-authenticated .account-copy h1,
  body.app-page.is-authenticated .account-copy p {
    max-width: 780px;
  }
}

@media (max-width: 820px) {
  body.app-page.is-authenticated .account-section .section-inner {
    width: calc(100% - 36px);
  }

  body.app-page.is-authenticated .account-presence {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.app-page.is-authenticated .account-presence .account-link-button {
    grid-column: 2;
  }

  body.app-page.is-authenticated .account-section-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 8px;
  }

  body.app-page.is-authenticated .account-section-nav a::after {
    right: 30%;
    bottom: 0;
    left: 30%;
  }

  body.app-page.is-authenticated .account-home-hero,
  body.app-page.is-authenticated .journey-map,
  body.app-page.is-authenticated .privacy-zone-grid,
  body.app-page.is-authenticated .account-home-grid,
  body.app-page.is-authenticated .tests-grid {
    grid-template-columns: 1fr;
  }

  body.app-page.is-authenticated .account-home-hero {
    min-height: auto;
    padding: 28px;
  }

  body.app-page.is-authenticated .account-home-summary {
    min-height: 0;
    text-align: left;
  }

  body.app-page.is-authenticated .account-home-summary span {
    justify-self: start;
  }

  body.app-page.is-authenticated .journey-map {
    gap: 20px;
    padding-left: 4px;
  }

  body.app-page.is-authenticated .journey-map::before {
    top: 36px;
    right: auto;
    bottom: 18px;
    left: 10px;
    width: 1px;
    height: auto;
  }

  body.app-page.is-authenticated .journey-step {
    padding-right: 0;
  }

  body.app-page.is-authenticated .privacy-zone,
  body.app-page.is-authenticated .account-home-grid .compact-panel,
  body.app-page.is-authenticated .tests-grid .test-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  body.app-page.is-authenticated .account-copy h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  body.app-page.is-authenticated .presence-mark {
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  body.app-page.is-authenticated .presence-copy strong {
    font-size: 29px;
  }

  body.app-page.is-authenticated .account-section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-page.is-authenticated .account-section-nav a {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  body.app-page.is-authenticated .account-home-hero h3,
  body.app-page.is-authenticated .tests-panel > h3,
  body.app-page.is-authenticated .diary-panel > h3,
  body.app-page.is-authenticated .matches-panel > h3,
  body.app-page.is-authenticated .matching-settings-panel > h3,
  body.app-page.is-authenticated .matching-consent-panel > h3 {
    font-size: clamp(38px, 11vw, 52px);
  }

  body.app-page.is-authenticated .account-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 84px;
  }

  [id],
  .figma-section,
  .account-section,
  .prep-section {
    scroll-margin-top: 84px;
  }

  .landing-page .matching-orbits {
    width: min(100%, 380px);
    height: 370px;
    min-height: 370px;
    margin-top: 28px;
    overflow: visible;
  }

  .landing-page .orbit-you,
  .landing-page .orbit-partner {
    top: 0;
    bottom: auto;
    width: clamp(140px, 38vw, 170px);
    height: clamp(140px, 38vw, 170px);
  }

  .landing-page .orbit-you {
    right: auto;
    left: 8px;
  }

  .landing-page .orbit-partner {
    right: 8px;
    left: auto;
  }

  .landing-page .orbit-you span,
  .landing-page .orbit-partner span {
    place-self: center;
    margin: 0;
  }

  .landing-page .orbit-center {
    top: 34px;
    left: 50%;
    width: 96px;
    height: 96px;
    transform: translateX(-50%);
  }

  .landing-page .orbit-copy {
    top: 204px;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(280px, 100%);
    max-width: none;
    transform: translateX(-50%);
  }

  .landing-page .journey-list {
    display: grid;
    gap: 1px;
  }

  .landing-page .journey-list::before {
    display: none;
  }

  .landing-page .journey-list article,
  .landing-page .journey-list article:first-child {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    min-height: 0;
    padding: 18px 0;
    transform: none;
  }

  .landing-page .journey-list article::before {
    display: none;
  }

  .landing-page .journey-list article h3,
  .landing-page .journey-list article:nth-child(odd) h3,
  .landing-page .journey-list article:nth-child(even) h3 {
    grid-column: 2;
    width: auto;
    margin: 0;
    text-align: left;
  }

  .landing-page .journey-list article span,
  .landing-page .journey-list article:nth-child(odd) span,
  .landing-page .journey-list article:nth-child(even) span {
    position: static;
    grid-column: 1;
    grid-row: 1;
    width: 28px;
    height: 28px;
    margin: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(29, 69, 71, 0.14);
    color: rgba(29, 69, 71, 0.72);
    background: rgba(255, 255, 255, 0.58);
    font-size: 11px;
  }

  .landing-page .mirror-grid,
  .landing-page .privacy-grid,
  .landing-page .tests-grid,
  body.app-page.is-authenticated .tests-grid,
  .profile-photo-gallery {
    grid-template-columns: 1fr;
  }
}

/* Product UI experiment v0.63 final override: airier coastal product screens */
body:not(.landing-page) {
  background:
    linear-gradient(180deg, rgba(247, 251, 252, 0.82), rgba(255, 253, 248, 0.92) 46%, rgba(238, 248, 249, 0.88) 100%),
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 84% 4%, rgba(201, 230, 239, 0.54), rgba(201, 230, 239, 0) 42%),
    linear-gradient(180deg, #f8fcfd 0%, #fffdf8 48%, #eef8f9 100%);
}

body:not(.landing-page)::after {
  right: -14vw;
  bottom: -22vh;
  width: min(78vw, 1100px);
  height: min(78vw, 1100px);
  opacity: 0.92;
  background:
    radial-gradient(circle at 54% 47%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 33%),
    radial-gradient(circle at 50% 50%, rgba(210, 235, 241, 0.56), rgba(210, 235, 241, 0.16) 45%, rgba(210, 235, 241, 0) 72%);
}

body.app-page.is-authenticated .site-header,
body.prepare-page.is-authenticated .site-header {
  background: linear-gradient(180deg, rgba(249, 252, 253, 0.84), rgba(249, 252, 253, 0.62));
  box-shadow: 0 18px 70px rgba(28, 65, 74, 0.035);
}

body.app-page.is-authenticated .account-section,
body.prepare-page.is-authenticated .prep-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(90px, 9vw, 140px);
  padding-bottom: clamp(96px, 10vw, 160px);
}

body.app-page.is-authenticated .account-section::before,
body.prepare-page.is-authenticated .prep-section::before {
  content: "";
  position: absolute;
  top: clamp(24px, 7vw, 92px);
  right: max(-80px, -5vw);
  width: min(38vw, 520px);
  height: min(28vw, 380px);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0)),
    url("assets/hero-sea-gulls.png") center / contain no-repeat;
  opacity: 0.16;
}

body.app-page.is-authenticated .account-section .section-inner,
body.prepare-page.is-authenticated .prep-section .section-inner {
  width: min(calc(100% - 96px), 1540px);
}

body.app-page.is-authenticated .account-layout,
body.prepare-page.is-authenticated .prep-layout {
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(78px, 9vw, 150px);
}

body.app-page.is-authenticated .account-copy,
body.prepare-page.is-authenticated .prep-copy {
  top: 150px;
  padding-top: clamp(16px, 2.2vw, 34px);
}

body.app-page.is-authenticated .account-copy h1,
body.prepare-page.is-authenticated .prep-copy h1 {
  max-width: 460px;
  margin-bottom: 36px;
  font-size: clamp(50px, 4.2vw, 68px);
  line-height: 1.08;
}

body.app-page.is-authenticated .account-copy p,
body.prepare-page.is-authenticated .prep-copy p {
  max-width: 430px;
  font-size: 17px;
  line-height: 1.88;
}

body.app-page.is-authenticated .account-copy p + p,
body.prepare-page.is-authenticated .prep-copy p + p {
  margin-top: 26px;
}

body.app-page.is-authenticated .experimental-dashboard {
  gap: clamp(34px, 4.4vw, 58px);
}

body.app-page.is-authenticated .account-presence {
  min-height: 92px;
  padding-bottom: 34px;
  border-bottom-color: rgba(29, 69, 71, 0.09);
}

body.app-page.is-authenticated .account-section-nav {
  padding: 10px 0 24px;
}

body.app-page.is-authenticated .account-home {
  gap: clamp(42px, 5vw, 72px);
}

body.app-page.is-authenticated .account-home-hero {
  min-height: clamp(420px, 39vw, 570px);
  padding: clamp(50px, 6vw, 86px);
  border-color: rgba(29, 69, 71, 0.085);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.86) 0%, rgba(242, 249, 250, 0.7) 52%, rgba(219, 239, 245, 0.5) 100%),
    radial-gradient(circle at 77% 12%, rgba(238, 214, 179, 0.22), rgba(238, 214, 179, 0) 36%);
  box-shadow: 0 36px 120px rgba(28, 65, 74, 0.065);
}

body.app-page.is-authenticated .account-home-hero h3 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(48px, 5.4vw, 82px);
  line-height: 1.02;
}

body.app-page.is-authenticated .account-home-hero p {
  max-width: 610px;
  font-size: 18px;
  line-height: 1.74;
}

body.app-page.is-authenticated .account-actions {
  gap: 18px;
  margin-top: 36px;
}

body.app-page.is-authenticated .journey-map {
  padding: 42px 0 22px;
}

body.app-page.is-authenticated .journey-map::before {
  top: 53px;
}

body.app-page.is-authenticated .journey-step {
  gap: 16px;
  padding-right: 28px;
}

body.app-page.is-authenticated .privacy-zone-grid,
body.app-page.is-authenticated .tests-grid {
  gap: clamp(18px, 2.2vw, 30px);
  overflow: visible;
  border: 0;
  background: transparent;
}

body.app-page.is-authenticated .privacy-zone {
  min-height: 240px;
  padding: clamp(30px, 3.4vw, 46px);
  border: 1px solid rgba(29, 69, 71, 0.095);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 252, 251, 0.56)),
    radial-gradient(circle at 92% 0%, rgba(219, 239, 245, 0.26), rgba(219, 239, 245, 0) 42%);
}

body.app-page.is-authenticated .privacy-zone:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(242, 249, 250, 0.6)),
    radial-gradient(circle at 88% 7%, rgba(135, 187, 164, 0.18), rgba(135, 187, 164, 0) 42%);
}

body.app-page.is-authenticated .privacy-zone:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 241, 0.6)),
    radial-gradient(circle at 88% 7%, rgba(238, 214, 179, 0.2), rgba(238, 214, 179, 0) 42%);
}

body.app-page.is-authenticated .privacy-zone p {
  max-width: 320px;
  font-size: 16px;
  line-height: 1.72;
}

body.app-page.is-authenticated .account-home-grid {
  gap: clamp(22px, 2.6vw, 34px);
}

body.app-page.is-authenticated .account-home-grid .compact-panel {
  min-height: 288px;
  padding: clamp(34px, 4vw, 52px);
  border-color: rgba(29, 69, 71, 0.095);
}

body.app-page.is-authenticated .account-home-grid .compact-panel:nth-child(1) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(242, 249, 250, 0.58)),
    radial-gradient(circle at 90% 14%, rgba(219, 239, 245, 0.32), rgba(219, 239, 245, 0) 42%);
}

body.app-page.is-authenticated .account-home-grid .compact-panel:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 251, 243, 0.58)),
    radial-gradient(circle at 90% 14%, rgba(238, 214, 179, 0.22), rgba(238, 214, 179, 0) 42%);
}

body.app-page.is-authenticated .account-home-grid .compact-panel:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(240, 248, 244, 0.58)),
    radial-gradient(circle at 90% 14%, rgba(135, 187, 164, 0.22), rgba(135, 187, 164, 0) 42%);
}

body.app-page.is-authenticated .account-home-grid .compact-panel:nth-child(4) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(241, 247, 250, 0.58)),
    radial-gradient(circle at 90% 14%, rgba(107, 169, 188, 0.22), rgba(107, 169, 188, 0) 42%);
}

body.app-page.is-authenticated .account-home-grid .compact-panel h3 {
  margin-top: 28px;
  margin-bottom: 18px;
  font-size: clamp(31px, 2.9vw, 44px);
}

body.app-page.is-authenticated .account-home-grid .compact-panel p {
  font-size: 16px;
  line-height: 1.74;
}

body.app-page.is-authenticated .tests-panel,
body.app-page.is-authenticated .diary-panel,
body.app-page.is-authenticated .matches-panel,
body.app-page.is-authenticated .matching-settings-panel,
body.app-page.is-authenticated .matching-consent-panel,
body.app-page.is-authenticated .account-dashboard > .account-panel {
  padding: clamp(36px, 5vw, 68px);
  border-color: rgba(29, 69, 71, 0.09);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(239, 248, 250, 0.52)),
    radial-gradient(circle at 90% 0%, rgba(219, 239, 245, 0.28), rgba(219, 239, 245, 0) 42%);
  box-shadow: 0 34px 110px rgba(28, 65, 74, 0.06);
}

body.app-page.is-authenticated .tests-panel > h3,
body.app-page.is-authenticated .diary-panel > h3,
body.app-page.is-authenticated .matches-panel > h3,
body.app-page.is-authenticated .matching-settings-panel > h3,
body.app-page.is-authenticated .matching-consent-panel > h3 {
  margin-bottom: 18px;
  font-size: clamp(48px, 5vw, 76px);
}

body.app-page.is-authenticated .tests-grid .test-card {
  min-height: 270px;
  padding: clamp(30px, 3.4vw, 44px);
}

body.app-page.is-authenticated .match-card {
  padding: clamp(36px, 4.8vw, 62px);
}

body.app-page.is-authenticated .match-card h3 {
  font-size: clamp(44px, 4.8vw, 72px);
}

body.app-page.is-authenticated .match-analysis,
body.app-page.is-authenticated .match-public-profile,
body.app-page.is-authenticated .match-reveal-panel,
body.app-page.is-authenticated .privacy-notice,
body.app-page.is-authenticated .matching-refresh-panel {
  padding: clamp(22px, 2.8vw, 34px);
  border-color: rgba(29, 69, 71, 0.085);
  background: rgba(255, 255, 255, 0.48);
}

.landing-page .why-section,
.landing-page .understand-section,
.landing-page .mirror-section,
.landing-page .privacy-section,
.landing-page .journey-section {
  background:
    radial-gradient(circle at 86% 8%, rgba(219, 239, 245, 0.34), rgba(219, 239, 245, 0) 34%),
    linear-gradient(180deg, #f7fbfd 0%, #f5f9fb 52%, #fffdf8 100%);
}

.landing-page .why-section,
.landing-page .mirror-section,
.landing-page .journey-section {
  min-height: calc(var(--section-min-height, 900px) + 80px);
}

.landing-page .why-section {
  --section-min-height: 786px;
}

.landing-page .mirror-section {
  --section-min-height: 928px;
}

.landing-page .journey-section {
  --section-min-height: 1060px;
}

.landing-page .understand-section::before,
.landing-page .privacy-section::before,
.landing-page .journey-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: url("assets/hero-sea-gulls.png") center / contain no-repeat;
  opacity: 0.13;
}

.landing-page .understand-section::before {
  right: 8vw;
  top: 90px;
  width: min(24vw, 360px);
  height: min(18vw, 270px);
}

.landing-page .privacy-section::before {
  left: 6vw;
  bottom: 80px;
  width: min(22vw, 310px);
  height: min(16vw, 230px);
  transform: scaleX(-1);
}

.landing-page .journey-section::after {
  right: 9vw;
  top: 130px;
  width: min(28vw, 420px);
  height: min(20vw, 300px);
}

.landing-page .matching-explain {
  background:
    radial-gradient(circle at 72% 44%, rgba(190, 191, 188, 0.34), rgba(232, 240, 242, 0) 34%),
    radial-gradient(circle at 18% 5%, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0) 32%),
    linear-gradient(90deg, #eaf6f9 0%, #f8fcfd 51%, #dcebed 100%);
}

.landing-page .privacy-grid {
  gap: clamp(34px, 4vw, 58px);
}

.landing-page .journey-list {
  margin-top: 118px;
}

@media (max-width: 1160px) {
  body.app-page.is-authenticated .account-section .section-inner,
  body.prepare-page.is-authenticated .prep-section .section-inner {
    width: min(calc(100% - 56px), 980px);
  }

  body.app-page.is-authenticated .account-layout,
  body.prepare-page.is-authenticated .prep-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  body.app-page.is-authenticated .account-copy,
  body.prepare-page.is-authenticated .prep-copy {
    position: static;
  }
}

@media (max-width: 820px) {
  body.app-page.is-authenticated .account-section .section-inner,
  body.prepare-page.is-authenticated .prep-section .section-inner {
    width: calc(100% - 36px);
  }

  body.app-page.is-authenticated .account-section,
  body.prepare-page.is-authenticated .prep-section {
    padding-top: 64px;
    padding-bottom: 86px;
  }

  body.app-page.is-authenticated .account-layout,
  body.prepare-page.is-authenticated .prep-layout {
    gap: 72px;
  }

  body.app-page.is-authenticated .account-app,
  body.prepare-page.is-authenticated .prep-app {
    margin-top: 10px;
  }

  body.app-page.is-authenticated .account-section::before,
  body.prepare-page.is-authenticated .prep-section::before,
  .landing-page .understand-section::before,
  .landing-page .privacy-section::before,
  .landing-page .journey-section::after {
    display: none;
  }

  body.app-page.is-authenticated .experimental-dashboard {
    gap: 28px;
  }

  body.app-page.is-authenticated .account-home-hero,
  body.app-page.is-authenticated .tests-panel,
  body.app-page.is-authenticated .diary-panel,
  body.app-page.is-authenticated .matches-panel,
  body.app-page.is-authenticated .matching-settings-panel,
  body.app-page.is-authenticated .matching-consent-panel,
  body.app-page.is-authenticated .account-dashboard > .account-panel {
    padding: 28px;
  }

  body.app-page.is-authenticated .privacy-zone-grid,
  body.app-page.is-authenticated .account-home-grid,
  body.app-page.is-authenticated .tests-grid {
    gap: 18px;
  }

  body.app-page.is-authenticated .privacy-zone,
  body.app-page.is-authenticated .account-home-grid .compact-panel,
  body.app-page.is-authenticated .tests-grid .test-card {
    min-height: auto;
    padding: 26px;
  }
}

/* Product UI experiment v0.64: living coastal atmosphere */
body:not(.landing-page) {
  background:
    linear-gradient(180deg, rgba(249, 253, 254, 0.88) 0%, rgba(255, 253, 248, 0.9) 44%, rgba(239, 249, 250, 0.92) 100%),
    radial-gradient(ellipse at 18% 9%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 36%),
    radial-gradient(ellipse at 84% 12%, rgba(226, 241, 246, 0.64), rgba(226, 241, 246, 0) 45%),
    radial-gradient(ellipse at 64% 92%, rgba(236, 214, 178, 0.18), rgba(236, 214, 178, 0) 42%),
    #f7fbfd;
}

body.app-page.is-authenticated .account-section::before,
body.prepare-page.is-authenticated .prep-section::before {
  top: 86px;
  right: -8vw;
  width: min(66vw, 960px);
  height: min(42vw, 600px);
  background:
    linear-gradient(90deg, rgba(248, 252, 253, 0.78) 0%, rgba(248, 252, 253, 0.18) 44%, rgba(248, 252, 253, 0.68) 100%),
    linear-gradient(180deg, rgba(248, 252, 253, 0.92) 0%, rgba(248, 252, 253, 0.2) 38%, rgba(248, 252, 253, 0.88) 100%),
    url("assets/hero-morning-sea.jpg") center 53% / cover no-repeat;
  opacity: 0.28;
  filter: saturate(0.82) contrast(0.96);
  mask-image:
    radial-gradient(ellipse at 58% 42%, #000 0 42%, rgba(0, 0, 0, 0.5) 56%, transparent 78%),
    linear-gradient(90deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    radial-gradient(ellipse at 58% 42%, #000 0 42%, rgba(0, 0, 0, 0.5) 56%, transparent 78%),
    linear-gradient(90deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
}

body.app-page.is-authenticated .account-section::after,
body.prepare-page.is-authenticated .prep-section::after {
  content: "";
  position: absolute;
  right: -12vw;
  bottom: clamp(40px, 8vw, 120px);
  z-index: -1;
  width: min(78vw, 1120px);
  height: min(34vw, 460px);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(255, 253, 248, 0.04) 48%, rgba(255, 253, 248, 0.9)),
    url("assets/final-sea-sunrise.png") center bottom / cover no-repeat;
  opacity: 0.2;
  filter: saturate(0.85);
  mask-image: radial-gradient(ellipse at 54% 50%, #000 0 48%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 54% 50%, #000 0 48%, transparent 76%);
}

body.app-page.is-authenticated .account-layout,
body.prepare-page.is-authenticated .prep-layout {
  position: relative;
}

body.app-page.is-authenticated .account-layout::before,
body.prepare-page.is-authenticated .prep-layout::before {
  content: "";
  position: absolute;
  top: clamp(180px, 22vw, 340px);
  right: min(4vw, 56px);
  width: min(22vw, 310px);
  height: min(16vw, 225px);
  pointer-events: none;
  background: url("assets/hero-sea-gulls.png") center / contain no-repeat;
  opacity: 0.18;
  transform: rotate(-5deg);
}

body.app-page.is-authenticated .account-copy,
body.prepare-page.is-authenticated .prep-copy {
  position: sticky;
}

body.app-page.is-authenticated .account-copy::after,
body.prepare-page.is-authenticated .prep-copy::after {
  content: "";
  display: block;
  width: 96px;
  height: 1px;
  margin-top: 34px;
  background: linear-gradient(90deg, rgba(29, 69, 71, 0.24), rgba(29, 69, 71, 0));
}

body.app-page.is-authenticated .account-home-hero {
  isolation: isolate;
  overflow: hidden;
  border-radius: 0 0 0 64px;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 252, 253, 0.76) 45%, rgba(235, 247, 249, 0.42) 100%),
    radial-gradient(circle at 84% 18%, rgba(239, 216, 181, 0.28), rgba(239, 216, 181, 0) 34%),
    url("assets/final-sea-sunrise.png") right bottom / 58% auto no-repeat;
  box-shadow: 0 42px 130px rgba(28, 65, 74, 0.075);
}

body.app-page.is-authenticated .account-home-hero::before {
  border-color: rgba(29, 69, 71, 0.06);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.76), rgba(232, 246, 248, 0.22) 58%, rgba(232, 246, 248, 0) 72%);
}

body.app-page.is-authenticated .account-home-hero::after {
  border-color: rgba(29, 69, 71, 0.075);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0)),
    url("assets/hero-sea-gulls.png") center / 66% auto no-repeat;
  opacity: 0.42;
}

body.app-page.is-authenticated .account-home-summary {
  align-self: end;
  min-height: 260px;
  padding: 28px 8px 0 0;
}

body.app-page.is-authenticated .account-home-summary strong {
  text-wrap: balance;
}

body.app-page.is-authenticated .journey-map {
  margin-inline: clamp(10px, 1.4vw, 22px);
}

body.app-page.is-authenticated .journey-map::before {
  height: 2px;
  background:
    linear-gradient(90deg, rgba(29, 69, 71, 0.04), rgba(107, 169, 188, 0.42), rgba(238, 214, 179, 0.32), rgba(29, 69, 71, 0.04));
}

body.app-page.is-authenticated .journey-dot {
  box-shadow:
    0 0 0 8px rgba(248, 252, 253, 0.92),
    0 10px 24px rgba(28, 65, 74, 0.1);
}

body.app-page.is-authenticated .account-voyage {
  position: relative;
  min-height: clamp(190px, 18vw, 275px);
  overflow: hidden;
  border: 1px solid rgba(29, 69, 71, 0.08);
  border-radius: 96px 0 96px 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.76) 0%, rgba(255, 253, 248, 0.12) 44%, rgba(255, 253, 248, 0.62) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.16) 45%, rgba(241, 249, 250, 0.82)),
    url("assets/final-sea-sunrise.png") center 58% / cover no-repeat;
  box-shadow:
    0 34px 120px rgba(28, 65, 74, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.app-page.is-authenticated .account-voyage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 28%, rgba(238, 214, 179, 0.26), rgba(238, 214, 179, 0) 24%),
    linear-gradient(180deg, rgba(248, 252, 253, 0.12), rgba(248, 252, 253, 0.7));
}

body.app-page.is-authenticated .account-voyage-sun {
  position: absolute;
  right: 13%;
  bottom: -68px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(238, 214, 179, 0.4);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 221, 0.46), rgba(255, 246, 221, 0.08) 58%, transparent 70%);
}

body.app-page.is-authenticated .account-voyage-gulls {
  position: absolute;
  top: 24px;
  left: 9%;
  width: min(26vw, 340px);
  height: min(16vw, 210px);
  background: url("assets/hero-sea-gulls.png") center / contain no-repeat;
  opacity: 0.24;
  transform: rotate(-7deg);
}

body.app-page.is-authenticated .account-voyage-line {
  position: absolute;
  right: 12%;
  bottom: 46px;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 69, 71, 0.24), rgba(238, 214, 179, 0.28), transparent);
}

body.app-page.is-authenticated .privacy-zone-grid {
  align-items: stretch;
}

body.app-page.is-authenticated .privacy-zone {
  position: relative;
  overflow: hidden;
  border-radius: 0 42px 0 42px;
  box-shadow:
    0 28px 90px rgba(28, 65, 74, 0.048),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

body.app-page.is-authenticated .privacy-zone::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 148px;
  height: 148px;
  border: 1px solid rgba(29, 69, 71, 0.055);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

body.app-page.is-authenticated .account-home-grid .compact-panel {
  position: relative;
  overflow: hidden;
  border-radius: 0 56px 0 0;
  box-shadow:
    0 28px 90px rgba(28, 65, 74, 0.052),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.app-page.is-authenticated .account-home-grid .compact-panel::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -38px;
  width: 170px;
  height: 120px;
  pointer-events: none;
  background: url("assets/hero-sea-gulls.png") center / contain no-repeat;
  opacity: 0.08;
  transform: rotate(-8deg);
}

body.app-page.is-authenticated .account-home-grid .compact-panel:nth-child(1) {
  border-radius: 56px 0 0 0;
}

body.app-page.is-authenticated .account-home-grid .compact-panel:nth-child(2) {
  border-radius: 0 0 56px 0;
}

body.app-page.is-authenticated .account-home-grid .compact-panel:nth-child(3) {
  border-radius: 0 56px 0 0;
}

body.app-page.is-authenticated .account-home-grid .compact-panel:nth-child(4) {
  border-radius: 56px 0 0 0;
}

body.app-page.is-authenticated .tests-panel,
body.app-page.is-authenticated .diary-panel,
body.app-page.is-authenticated .matches-panel,
body.app-page.is-authenticated .matching-settings-panel,
body.app-page.is-authenticated .matching-consent-panel,
body.app-page.is-authenticated .account-dashboard > .account-panel {
  position: relative;
  overflow: hidden;
  border-radius: 0 72px 0 72px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.84), rgba(244, 250, 251, 0.62) 52%, rgba(255, 250, 241, 0.48)),
    radial-gradient(circle at 86% 4%, rgba(219, 239, 245, 0.34), rgba(219, 239, 245, 0) 40%);
}

body.app-page.is-authenticated .tests-panel::after,
body.app-page.is-authenticated .diary-panel::after,
body.app-page.is-authenticated .matches-panel::after,
body.app-page.is-authenticated .matching-settings-panel::after,
body.app-page.is-authenticated .matching-consent-panel::after,
body.app-page.is-authenticated .account-dashboard > .account-panel::after {
  content: "";
  position: absolute;
  right: clamp(20px, 5vw, 88px);
  top: clamp(16px, 4vw, 56px);
  width: min(24vw, 300px);
  height: min(15vw, 190px);
  pointer-events: none;
  background: url("assets/hero-sea-gulls.png") center / contain no-repeat;
  opacity: 0.08;
}

.landing-page .why-section,
.landing-page .understand-section,
.landing-page .mirror-section,
.landing-page .privacy-section,
.landing-page .journey-section {
  background:
    linear-gradient(180deg, rgba(248, 252, 253, 0.84), rgba(255, 253, 248, 0.74)),
    radial-gradient(ellipse at 84% 8%, rgba(219, 239, 245, 0.42), rgba(219, 239, 245, 0) 38%),
    radial-gradient(ellipse at 20% 88%, rgba(238, 214, 179, 0.16), rgba(238, 214, 179, 0) 40%),
    #f7fbfd;
}

.landing-page .why-section::after,
.landing-page .mirror-section::after {
  content: "";
  position: absolute;
  right: -12vw;
  bottom: -10vw;
  width: min(70vw, 980px);
  height: min(32vw, 450px);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(248, 252, 253, 0.88), rgba(248, 252, 253, 0.12), rgba(248, 252, 253, 0.94)),
    url("assets/final-sea-sunrise.png") center / cover no-repeat;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0 48%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0 48%, transparent 76%);
}

.landing-page .understand-section::before,
.landing-page .privacy-section::before,
.landing-page .journey-section::after {
  opacity: 0.2;
}

.landing-page .soft-image {
  overflow: hidden;
  border-radius: 56px 0 56px 0;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.58), rgba(246, 247, 242, 0.78) 44%, rgba(211, 213, 205, 0.24)),
    url("assets/final-sea-sunrise.png") center / cover no-repeat;
  box-shadow:
    0 36px 120px rgba(28, 65, 74, 0.075),
    inset 0 0 80px rgba(255, 255, 255, 0.62);
}

.landing-page .mirror-grid article,
.landing-page .privacy-grid article {
  position: relative;
}

.landing-page .mirror-grid article::after,
.landing-page .privacy-grid article::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -18px;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(29, 69, 71, 0), rgba(29, 69, 71, 0.18));
}

.landing-page .matching-explain {
  background:
    linear-gradient(180deg, rgba(251, 253, 253, 0.55), rgba(251, 253, 253, 0.84)),
    radial-gradient(ellipse at 72% 44%, rgba(190, 191, 188, 0.24), rgba(232, 240, 242, 0) 34%),
    radial-gradient(ellipse at 18% 5%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 32%),
    url("assets/final-sea-sunrise.png") right bottom / 62% auto no-repeat,
    linear-gradient(90deg, #eaf6f9 0%, #f8fcfd 51%, #dcebed 100%);
}

.landing-page .orbit {
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08) 64%),
    rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 60px rgba(255, 255, 255, 0.28),
    0 30px 90px rgba(28, 65, 74, 0.055);
}

.landing-page .join {
  background:
    linear-gradient(180deg, rgba(247, 251, 252, 0.7) 0%, rgba(255, 253, 248, 0.3) 42%, rgba(221, 232, 233, 0.5) 100%),
    url("assets/final-sea-sunrise.png") center bottom / cover no-repeat;
}

@media (max-width: 1160px) {
  body.app-page.is-authenticated .account-layout::before,
  body.prepare-page.is-authenticated .prep-layout::before {
    top: 240px;
    right: 2vw;
    width: 260px;
    height: 180px;
    opacity: 0.12;
  }
}

@media (max-width: 820px) {
  body.app-page.is-authenticated .account-layout,
  body.prepare-page.is-authenticated .prep-layout {
    gap: 72px;
  }

  body.app-page.is-authenticated .account-copy,
  body.prepare-page.is-authenticated .prep-copy {
    position: static;
  }

  body.app-page.is-authenticated .account-app,
  body.prepare-page.is-authenticated .prep-app {
    margin-top: 10px;
  }

  body.app-page.is-authenticated .account-section::after,
  body.prepare-page.is-authenticated .prep-section::after,
  body.app-page.is-authenticated .account-layout::before,
  body.prepare-page.is-authenticated .prep-layout::before {
    display: none;
  }

  body.app-page.is-authenticated .account-home-hero,
  body.app-page.is-authenticated .tests-panel,
  body.app-page.is-authenticated .diary-panel,
  body.app-page.is-authenticated .matches-panel,
  body.app-page.is-authenticated .matching-settings-panel,
  body.app-page.is-authenticated .matching-consent-panel,
  body.app-page.is-authenticated .account-dashboard > .account-panel,
  body.app-page.is-authenticated .privacy-zone,
  body.app-page.is-authenticated .account-home-grid .compact-panel,
  body.app-page.is-authenticated .account-voyage {
    border-radius: 0 42px 0 42px;
  }

  body.app-page.is-authenticated .account-voyage {
    min-height: 178px;
  }

  body.app-page.is-authenticated .account-voyage-gulls {
    width: 210px;
    height: 140px;
  }
}

/* Tests UX v0.65: collapsed modules with value-first summaries */
body.app-page.is-authenticated .relationship-test-card {
  display: block;
  min-height: 0;
  padding: 0;
}

body.app-page.is-authenticated .relationship-tests-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.app-page.is-authenticated .relationship-test-card[open] {
  grid-column: 1 / -1;
}

body.app-page.is-authenticated .relationship-test-summary {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: clamp(30px, 3.4vw, 46px);
  overflow: hidden;
  list-style: none;
  cursor: pointer;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(244, 251, 252, 0.58)),
    radial-gradient(circle at 92% 8%, rgba(219, 239, 245, 0.34), rgba(219, 239, 245, 0) 42%);
}

body.app-page.is-authenticated .relationship-test-summary::-webkit-details-marker {
  display: none;
}

body.app-page.is-authenticated .relationship-test-summary span {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-weight: inherit;
  letter-spacing: 0;
  text-transform: none;
}

body.app-page.is-authenticated .relationship-test-summary::before {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -48px;
  width: 230px;
  height: 150px;
  pointer-events: none;
  background: url("assets/hero-sea-gulls.png") center / contain no-repeat;
  opacity: 0.075;
  transform: rotate(-7deg);
}

body.app-page.is-authenticated .relationship-test-summary::after {
  content: "+";
  position: absolute;
  right: clamp(24px, 3vw, 40px);
  top: clamp(24px, 3vw, 40px);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(29, 69, 71, 0.14);
  border-radius: 50%;
  color: var(--pa-deep);
  background: rgba(255, 255, 255, 0.64);
  font-family: var(--pa-sans);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease;
}

body.app-page.is-authenticated .relationship-test-card[open] .relationship-test-summary::after {
  content: "-";
  transform: rotate(180deg);
}

body.app-page.is-authenticated .relationship-test-card.is-complete .relationship-test-summary {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(241, 248, 244, 0.58)),
    radial-gradient(circle at 92% 8%, rgba(135, 187, 164, 0.24), rgba(135, 187, 164, 0) 42%);
}

body.app-page.is-authenticated .test-card-kicker {
  width: fit-content;
  max-width: calc(100% - 72px);
  padding: 8px 13px;
  border: 1px solid rgba(29, 69, 71, 0.1);
  border-radius: 999px;
  color: rgba(29, 69, 71, 0.72);
  background: rgba(232, 242, 236, 0.74);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.app-page.is-authenticated .relationship-test-title {
  display: block;
  max-width: calc(100% - 76px);
  color: var(--pa-deep);
  font-family: var(--pa-serif);
  font-size: clamp(32px, 2.8vw, 44px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

body.app-page.is-authenticated .relationship-test-description,
body.app-page.is-authenticated .relationship-test-value {
  display: block;
  max-width: 720px;
  color: rgba(34, 55, 61, 0.66);
  font-size: 16px;
  line-height: 1.68;
}

body.app-page.is-authenticated .relationship-test-value {
  color: rgba(29, 69, 71, 0.78);
}

body.app-page.is-authenticated .relationship-test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

body.app-page.is-authenticated .relationship-test-meta span {
  width: auto;
  padding: 8px 12px;
  border: 1px solid rgba(29, 69, 71, 0.1);
  border-radius: 999px;
  color: rgba(29, 69, 71, 0.72);
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.app-page.is-authenticated .relationship-test-meta .relationship-test-toggle {
  color: #fff;
  background: var(--pa-deep);
}

body.app-page.is-authenticated .relationship-test-card[open] .relationship-test-toggle {
  font-size: 0;
}

body.app-page.is-authenticated .relationship-test-card[open] .relationship-test-toggle::after {
  content: "Свернуть";
  font-size: 12px;
}

body.app-page.is-authenticated .relationship-test-card.is-complete[open] .relationship-test-toggle::after {
  content: "Скрыть результат";
}

body.app-page.is-authenticated .relationship-test-body {
  display: grid;
  gap: 22px;
  padding: clamp(28px, 3.2vw, 44px);
  border-top: 1px solid rgba(29, 69, 71, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(247, 252, 251, 0.58)),
    radial-gradient(circle at 100% 0%, rgba(238, 214, 179, 0.14), rgba(238, 214, 179, 0) 40%);
}

body.app-page.is-authenticated .relationship-test-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.app-page.is-authenticated .relationship-test-form > label,
body.app-page.is-authenticated .relationship-test-form > fieldset {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(29, 69, 71, 0.08);
  border-radius: 0 24px 0 24px;
  background: rgba(255, 255, 255, 0.62);
}

body.app-page.is-authenticated .relationship-test-form .button,
body.app-page.is-authenticated .relationship-test-form .account-note {
  grid-column: 1 / -1;
}

@media (max-width: 820px) {
  body.app-page.is-authenticated .relationship-test-summary {
    min-height: 0;
    padding: 26px 22px;
  }

  body.app-page.is-authenticated .relationship-test-title {
    font-size: clamp(34px, 11vw, 46px);
  }

  body.app-page.is-authenticated .relationship-test-description,
  body.app-page.is-authenticated .relationship-test-value {
    font-size: 15px;
  }

  body.app-page.is-authenticated .relationship-test-form {
    grid-template-columns: 1fr;
  }
}

/* Product UI tuning v0.66: softer headings and cleaner hero background */
body.app-page.is-authenticated .account-home-hero {
  min-height: clamp(360px, 34vw, 500px);
  padding: clamp(42px, 5.2vw, 72px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94) 0%, rgba(249, 252, 252, 0.84) 48%, rgba(238, 249, 250, 0.5) 100%),
    radial-gradient(ellipse at 82% 24%, rgba(219, 239, 245, 0.28), rgba(219, 239, 245, 0) 42%),
    radial-gradient(ellipse at 92% 88%, rgba(238, 214, 179, 0.16), rgba(238, 214, 179, 0) 36%);
}

body.app-page.is-authenticated .account-home-hero::before {
  right: clamp(-170px, -8vw, -70px);
  bottom: clamp(-190px, -10vw, -90px);
  width: clamp(300px, 29vw, 460px);
  height: clamp(300px, 29vw, 460px);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.64), rgba(232, 246, 248, 0.14) 58%, rgba(232, 246, 248, 0) 72%);
}

body.app-page.is-authenticated .account-home-hero::after {
  right: clamp(70px, 12vw, 170px);
  bottom: clamp(-130px, -7vw, -70px);
  width: clamp(220px, 21vw, 330px);
  height: clamp(220px, 21vw, 330px);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  opacity: 0.48;
}

body.app-page.is-authenticated .account-home-hero h3 {
  max-width: 600px;
  font-size: clamp(38px, 3.8vw, 58px);
  line-height: 1.08;
}

body.app-page.is-authenticated .account-home-hero p {
  max-width: 570px;
  font-size: 17px;
  line-height: 1.72;
}

body.app-page.is-authenticated .account-home-summary {
  min-height: 220px;
}

body.app-page.is-authenticated .tests-panel > h3,
body.app-page.is-authenticated .diary-panel > h3,
body.app-page.is-authenticated .matches-panel > h3,
body.app-page.is-authenticated .matching-settings-panel > h3,
body.app-page.is-authenticated .matching-consent-panel > h3,
body.app-page.is-authenticated .account-dashboard > .account-panel > h3 {
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.08;
}

body.app-page.is-authenticated .match-card h3 {
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.08;
}

body.app-page.is-authenticated .account-home-grid .compact-panel h3 {
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 1.12;
}

body.app-page.is-authenticated .relationship-test-title {
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.08;
}

body.app-page.is-authenticated .relationship-test-summary {
  min-height: 220px;
}

@media (max-width: 820px) {
  body.app-page.is-authenticated .account-home-hero {
    min-height: 0;
    padding: 30px 22px;
  }

  body.app-page.is-authenticated .account-home-hero h3,
  body.app-page.is-authenticated .tests-panel > h3,
  body.app-page.is-authenticated .diary-panel > h3,
  body.app-page.is-authenticated .matches-panel > h3,
  body.app-page.is-authenticated .matching-settings-panel > h3,
  body.app-page.is-authenticated .matching-consent-panel > h3,
  body.app-page.is-authenticated .account-dashboard > .account-panel > h3,
  body.app-page.is-authenticated .match-card h3 {
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.1;
  }

  body.app-page.is-authenticated .relationship-test-title {
    font-size: clamp(28px, 8vw, 36px);
  }
}

body:not(.landing-page) .account-copy h1,
body:not(.landing-page) .prep-copy h1,
body:not(.landing-page) .legal-page h1 {
  max-width: 680px;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.08;
}

body.app-page.is-authenticated .account-copy h1,
body.prepare-page.is-authenticated .prep-copy h1 {
  max-width: 620px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.1;
}

body.app-page.is-authenticated .account-home-hero h3 {
  font-size: clamp(34px, 3.25vw, 50px);
}

body.app-page.is-authenticated .tests-panel > h3,
body.app-page.is-authenticated .diary-panel > h3,
body.app-page.is-authenticated .matches-panel > h3,
body.app-page.is-authenticated .matching-settings-panel > h3,
body.app-page.is-authenticated .matching-consent-panel > h3,
body.app-page.is-authenticated .account-dashboard > .account-panel > h3 {
  font-size: clamp(31px, 3vw, 46px);
}

/* Tests scroll stability v0.67: keep decorative layers out of long expanded forms */
body.app-page.is-authenticated.app-view-tests .account-section::before,
body.app-page.is-authenticated.app-view-tests .account-section::after,
body.app-page.is-authenticated.app-view-tests .account-layout::before,
body.app-page.is-authenticated.app-view-tests .tests-panel::after,
body.app-page.is-authenticated.app-view-tests .relationship-test-summary::before {
  display: none;
}

body.app-page.is-authenticated.app-view-tests .account-section {
  background:
    linear-gradient(180deg, rgba(249, 253, 254, 0.94), rgba(255, 253, 248, 0.92) 46%, rgba(247, 251, 252, 0.94)),
    radial-gradient(ellipse at 84% 4%, rgba(219, 239, 245, 0.32), rgba(219, 239, 245, 0) 40%),
    radial-gradient(ellipse at 16% 86%, rgba(238, 214, 179, 0.14), rgba(238, 214, 179, 0) 42%),
    #f8fbfd;
}

body.app-page.is-authenticated.app-view-tests .tests-panel,
body.app-page.is-authenticated.app-view-tests .relationship-test-card,
body.app-page.is-authenticated.app-view-tests .relationship-test-body,
body.app-page.is-authenticated.app-view-tests .relationship-test-form > label,
body.app-page.is-authenticated.app-view-tests .relationship-test-form > fieldset {
  background-clip: padding-box;
}

body.app-page.is-authenticated.app-view-tests .relationship-test-title {
  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.12;
}

@media (max-width: 820px) {
  body.app-page.is-authenticated.app-view-tests .relationship-test-title {
    font-size: clamp(25px, 7.2vw, 32px);
  }
}

/* RC stability v0.68: simplify account route visuals and make tests paint-stable */
body.app-page.is-authenticated .account-voyage {
  min-height: clamp(86px, 9vw, 136px);
  margin: clamp(26px, 4vw, 52px) 0;
  overflow: hidden;
  border: 1px solid rgba(29, 69, 71, 0.08);
  border-radius: 0 46px 0 46px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.18) 42%, rgba(255, 255, 255, 0.9)),
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(255, 253, 248, 0.26) 52%, rgba(255, 253, 248, 0.88)),
    url("assets/final-sea-sunrise.png") center 58% / cover no-repeat;
  box-shadow: 0 24px 80px rgba(28, 65, 74, 0.045);
}

body.app-page.is-authenticated .account-voyage::before,
body.app-page.is-authenticated .account-voyage-sun,
body.app-page.is-authenticated .account-voyage-line {
  display: none;
}

body.app-page.is-authenticated .account-voyage-gulls {
  top: 50%;
  left: 50%;
  width: min(16vw, 210px);
  height: min(10vw, 130px);
  opacity: 0.12;
  transform: translate(-50%, -50%);
}

body.app-page.is-authenticated.app-view-tests .account-layout {
  display: block;
  max-width: 1080px;
  margin-inline: auto;
}

body.app-page.is-authenticated.app-view-tests .account-copy {
  position: static;
  max-width: 760px;
  margin-bottom: clamp(34px, 4vw, 54px);
}

body.app-page.is-authenticated.app-view-tests .account-copy h1 {
  max-width: 760px;
  font-size: clamp(34px, 3.3vw, 50px);
}

body.app-page.is-authenticated.app-view-tests .account-app {
  width: 100%;
  margin-top: 0;
}

body.app-page.is-authenticated.app-view-tests .tests-panel {
  overflow: visible;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid rgba(29, 69, 71, 0.09);
  border-radius: 0 48px 0 48px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 252, 252, 0.72)),
    radial-gradient(ellipse at 88% 0%, rgba(219, 239, 245, 0.24), rgba(219, 239, 245, 0) 42%);
  box-shadow: 0 28px 86px rgba(28, 65, 74, 0.045);
  transform: none;
  contain: none;
}

body.app-page.is-authenticated.app-view-tests .tests-panel > h3 {
  max-width: 760px;
  font-size: clamp(32px, 3.2vw, 48px);
}

body.app-page.is-authenticated.app-view-tests .test-group {
  gap: 18px;
  margin-top: clamp(24px, 3.2vw, 40px);
}

body.app-page.is-authenticated.app-view-tests .test-group + .test-group {
  padding-top: clamp(24px, 3.2vw, 40px);
  border-top: 1px solid rgba(29, 69, 71, 0.08);
}

body.app-page.is-authenticated.app-view-tests .tests-grid,
body.app-page.is-authenticated.app-view-tests .relationship-tests-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
  border: 0;
  background: transparent;
}

body.app-page.is-authenticated.app-view-tests .test-card,
body.app-page.is-authenticated.app-view-tests .relationship-test-card {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(29, 69, 71, 0.08);
  border-radius: 0 30px 0 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  break-inside: avoid;
  opacity: 1;
  visibility: visible;
  transform: none;
  contain: none;
}

body.app-page.is-authenticated.app-view-tests .tests-grid > .test-card:not(.relationship-test-card) {
  padding: clamp(24px, 3vw, 36px);
}

body.app-page.is-authenticated.app-view-tests .relationship-test-summary {
  min-height: 0;
  padding: clamp(24px, 3vw, 36px);
  overflow: visible;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 252, 251, 0.7)),
    radial-gradient(circle at 94% 6%, rgba(219, 239, 245, 0.2), rgba(219, 239, 245, 0) 38%);
}

body.app-page.is-authenticated.app-view-tests .relationship-test-card[open] .relationship-test-summary {
  border-radius: 0 30px 0 0;
}

body.app-page.is-authenticated.app-view-tests .relationship-test-body {
  padding: clamp(22px, 3vw, 34px);
  border-top: 1px solid rgba(29, 69, 71, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

body.app-page.is-authenticated.app-view-tests .relationship-test-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.app-page.is-authenticated.app-view-tests .relationship-test-form > label,
body.app-page.is-authenticated.app-view-tests .relationship-test-form > fieldset {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(29, 69, 71, 0.08);
  border-radius: 0 20px 0 20px;
  background: rgba(255, 255, 255, 0.72);
}

body.app-page.is-authenticated.app-view-tests .relationship-test-question,
body.app-page.is-authenticated.app-view-tests .relationship-test-radio-question {
  display: grid;
  gap: 12px;
}

body.app-page.is-authenticated.app-view-tests .relationship-test-question-text,
body.app-page.is-authenticated.app-view-tests .relationship-test-radio-question legend {
  color: var(--pa-deep);
  font-weight: 800;
  line-height: 1.35;
}

body.app-page.is-authenticated.app-view-tests .relationship-test-form .prep-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body.app-page.is-authenticated.app-view-tests .relationship-test-form .prep-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.app-page.is-authenticated.app-view-tests .test-card h4 {
  font-size: clamp(24px, 2.2vw, 34px);
}

@media (max-width: 820px) {
  body.app-page.is-authenticated .account-voyage {
    min-height: 78px;
    border-radius: 0 34px 0 34px;
  }

  body.app-page.is-authenticated.app-view-tests .account-layout {
    max-width: none;
  }

  body.app-page.is-authenticated.app-view-tests .relationship-test-form {
    grid-template-columns: 1fr;
  }
}

/* App polish v0.69: smaller voyage band, clickable action cards, smoother route reveal */
body.app-page:not(.app-ready) .account-section,
body.app-page:not(.app-ready) .relationship-report {
  opacity: 0;
}

body.app-page.app-ready .account-section,
body.app-page.app-ready .relationship-report {
  animation: appRouteReady 260ms ease both;
}

body.app-page.is-navigating main {
  opacity: 0.72;
  transition: opacity 160ms ease;
}

@keyframes appRouteReady {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

body.app-page.is-authenticated .account-voyage {
  min-height: clamp(54px, 5.5vw, 86px);
  margin: clamp(14px, 2.2vw, 30px) 0 clamp(18px, 2.8vw, 36px);
  border-radius: 0 34px 0 34px;
  background-position: center 55%;
  box-shadow: 0 16px 52px rgba(28, 65, 74, 0.035);
}

body.app-page.is-authenticated .account-voyage-gulls {
  width: min(10vw, 138px);
  height: min(6vw, 82px);
  opacity: 0.1;
}

body.app-page.is-authenticated .account-home-grid .compact-panel {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

body.app-page.is-authenticated .account-home-grid .compact-panel:hover,
body.app-page.is-authenticated .account-home-grid .compact-panel:focus-visible {
  border-color: rgba(29, 69, 71, 0.18);
  box-shadow: 0 28px 90px rgba(28, 65, 74, 0.08);
  transform: translateY(-3px);
}

body.app-page.is-authenticated .account-home-grid .compact-panel:focus-visible {
  outline: 3px solid rgba(126, 184, 222, 0.32);
  outline-offset: 4px;
}

body.app-page.is-authenticated .account-home-grid .compact-panel .account-status {
  padding: 0 0 11px;
  border: 0;
  border-bottom: 1px solid rgba(29, 69, 71, 0.18);
  border-radius: 0;
  color: rgba(29, 69, 71, 0.92);
  background: transparent;
  font-size: clamp(16px, 1.1vw, 19px);
  font-weight: 900;
  letter-spacing: 0.18em;
}

body.app-page.is-authenticated .account-home-grid .compact-panel h3 {
  margin-top: clamp(24px, 3vw, 38px);
}

body.app-page.is-authenticated .account-home-grid .account-link-button {
  display: inline-flex;
  color: rgba(29, 69, 71, 0.88);
}

body.app-page.is-authenticated .account-home-grid .compact-panel:hover .account-link-button,
body.app-page.is-authenticated .account-home-grid .compact-panel:focus-visible .account-link-button {
  color: var(--pa-deep);
}

@media (max-width: 820px) {
  body.app-page.is-authenticated .account-voyage {
    min-height: 54px;
    margin: 12px 0 22px;
  }
}

/* App polish v0.72: top sticky account navigation and clearer profile fields */
body.app-page.is-authenticated .account-section-nav {
  position: sticky;
  top: 76px;
  z-index: 12;
  margin: -10px 0 6px;
  padding: 10px 0 16px;
  background:
    linear-gradient(180deg, rgba(248, 252, 253, 0.94), rgba(248, 252, 253, 0.82) 72%, rgba(248, 252, 253, 0));
  backdrop-filter: blur(18px);
}

body.app-page.is-authenticated .experimental-dashboard {
  gap: clamp(24px, 3.2vw, 42px);
}

@media (max-width: 980px) {
  body.app-page.is-authenticated .account-app {
    order: -1;
  }

  body.app-page.is-authenticated .account-copy {
    order: 1;
  }
}

@media (max-width: 820px) {
  body.app-page.is-authenticated .account-section {
    padding-top: 84px;
  }

  body.app-page.is-authenticated .account-layout {
    gap: 34px;
  }

  body.app-page.is-authenticated .account-section-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    margin: -4px -18px 2px;
    padding: 8px 18px 13px;
    scrollbar-width: none;
  }

  body.app-page.is-authenticated .account-section-nav::-webkit-scrollbar {
    display: none;
  }

  body.app-page.is-authenticated .account-section-nav a {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid rgba(29, 69, 71, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.12em;
  }

  body.app-page.is-authenticated .account-section-nav a.is-active {
    color: #fff;
    background: var(--pa-deep);
  }

  body.app-page.is-authenticated .account-section-nav a::after {
    display: none;
  }

  body.app-page.is-authenticated .account-presence {
    padding-top: 10px;
  }
}

/* App polish v0.73: matching criteria map */
body.app-page.is-authenticated .matching-refresh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

body.app-page.is-authenticated .matching-criteria-panel {
  scroll-margin-top: 128px;
}

body.app-page.is-authenticated .matching-criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

body.app-page.is-authenticated .matching-criteria-cluster {
  min-height: 100%;
  padding: clamp(22px, 2.8vw, 34px);
  border: 1px solid rgba(29, 69, 71, 0.11);
  border-radius: 0 34px 0 34px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.86), rgba(243, 250, 250, 0.62)),
    radial-gradient(circle at 88% 8%, rgba(241, 205, 157, 0.16), transparent 34%);
  box-shadow: 0 22px 60px rgba(30, 70, 73, 0.06);
}

body.app-page.is-authenticated .matching-criteria-cluster h4 {
  margin: 0 0 12px;
  color: var(--pa-deep);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
}

body.app-page.is-authenticated .matching-criteria-cluster > p {
  margin: 0 0 18px;
  max-width: 62ch;
}

body.app-page.is-authenticated .matching-criteria-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.app-page.is-authenticated .matching-criteria-list li {
  display: grid;
  gap: 6px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(29, 69, 71, 0.08);
}

body.app-page.is-authenticated .matching-criteria-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body.app-page.is-authenticated .matching-criteria-list strong {
  color: var(--pa-deep);
  font-weight: 700;
}

body.app-page.is-authenticated .matching-criteria-list span {
  color: rgba(29, 45, 48, 0.72);
}

body.app-page.is-authenticated .matching-criteria-list small {
  color: rgba(42, 76, 78, 0.56);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.app-page.is-authenticated .matching-criteria-list a,
body.app-page.is-authenticated .matching-criteria-nudge a {
  width: fit-content;
  color: var(--pa-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 69, 71, 0.28);
}

body.app-page.is-authenticated .matching-criteria-topic-row {
  gap: 12px;
}

body.app-page.is-authenticated .matching-criteria-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.app-page.is-authenticated .matching-criteria-pill {
  display: inline-grid;
  gap: 3px;
  max-width: 100%;
  padding: 10px 13px;
  border: 1px solid rgba(29, 69, 71, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

body.app-page.is-authenticated .matching-criteria-pill.is-critical {
  border-color: rgba(141, 77, 59, 0.28);
  background: rgba(248, 231, 218, 0.58);
}

body.app-page.is-authenticated .matching-criteria-pill.is-important {
  border-color: rgba(30, 96, 103, 0.22);
  background: rgba(225, 242, 243, 0.62);
}

body.app-page.is-authenticated .matching-criteria-pill strong,
body.app-page.is-authenticated .matching-criteria-pill small {
  overflow-wrap: anywhere;
}

body.app-page.is-authenticated .matching-criteria-nudge {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(230, 184, 118, 0.28);
  border-radius: 0 26px 0 26px;
  background:
    linear-gradient(135deg, rgba(255, 250, 239, 0.88), rgba(239, 249, 250, 0.72));
}

body.app-page.is-authenticated .matching-criteria-nudge strong {
  color: var(--pa-deep);
}

body.app-page.is-authenticated .matching-criteria-nudge p {
  margin: 8px 0 12px;
}

@media (max-width: 980px) {
  body.app-page.is-authenticated .matching-criteria-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.app-page.is-authenticated .matching-refresh-actions .button,
  body.app-page.is-authenticated .matching-refresh-actions a.button {
    width: 100%;
  }

  body.app-page.is-authenticated .matching-criteria-cluster {
    border-radius: 0 26px 0 26px;
  }
}

/* RC v0.74: first-user clarity, mobile navigation, matching criteria editor */
html {
  scroll-padding-top: 132px;
}

body.app-page.is-authenticated .account-panel,
body.app-page.is-authenticated .match-card,
body.app-page.is-authenticated .relationship-test-card,
body.app-page.is-authenticated .diary-entry,
body.app-page.is-authenticated .diary-reflection {
  scroll-margin-top: 132px;
}

body.app-page.is-authenticated .matching-criteria-editor {
  margin-top: 18px;
  border: 1px solid rgba(29, 69, 71, 0.12);
  border-radius: 0 32px 0 32px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.84), rgba(239, 248, 249, 0.62)),
    radial-gradient(circle at 92% 8%, rgba(238, 214, 179, 0.18), transparent 34%);
  box-shadow: 0 18px 54px rgba(28, 65, 74, 0.05);
}

body.app-page.is-authenticated .matching-criteria-editor summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: center;
  min-height: 72px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}

body.app-page.is-authenticated .matching-criteria-editor summary::-webkit-details-marker {
  display: none;
}

body.app-page.is-authenticated .matching-criteria-editor summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(29, 69, 71, 0.14);
  border-radius: 999px;
  color: var(--pa-deep);
  background: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  line-height: 1;
}

body.app-page.is-authenticated .matching-criteria-editor[open] summary::after {
  content: "-";
}

body.app-page.is-authenticated .matching-criteria-editor summary span {
  color: var(--pa-deep);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.app-page.is-authenticated .matching-criteria-editor summary small {
  grid-column: 1 / -1;
  color: rgba(47, 66, 74, 0.62);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

body.app-page.is-authenticated .matching-criteria-form {
  display: grid;
  gap: 16px;
  padding: 0 24px 24px;
}

body.app-page.is-authenticated .account-home-grid .compact-panel .account-status {
  justify-self: start;
  color: rgba(29, 69, 71, 0.9);
}

body.app-page.is-authenticated .account-home-grid .compact-panel h3 {
  color: var(--pa-ink);
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 154px;
  }

  body.app-page.is-authenticated .account-section {
    padding-top: 76px;
  }

  body.app-page.is-authenticated .account-presence {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 16px;
  }

  body.app-page.is-authenticated .presence-mark {
    width: 46px;
    height: 46px;
    font-size: 24px;
  }

  body.app-page.is-authenticated .presence-copy strong {
    font-size: clamp(25px, 8vw, 34px);
  }

  body.app-page.is-authenticated .presence-copy small {
    max-width: 22ch;
    color: rgba(47, 66, 74, 0.46);
    font-size: 12px;
  }

  body.app-page.is-authenticated .account-presence .account-link-button {
    grid-column: 2;
    justify-self: start;
  }

  body.app-page.is-authenticated .account-section-nav {
    position: sticky;
    top: 72px;
    z-index: 18;
    display: flex;
    gap: 9px;
    margin: 0 -18px 8px;
    padding: 9px 18px 12px;
    border-bottom: 1px solid rgba(29, 69, 71, 0.08);
    background:
      linear-gradient(180deg, rgba(248, 252, 253, 0.96), rgba(248, 252, 253, 0.88) 74%, rgba(248, 252, 253, 0));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    backdrop-filter: blur(18px);
    scrollbar-width: none;
  }

  body.app-page.is-authenticated .account-section-nav::-webkit-scrollbar {
    display: none;
  }

  body.app-page.is-authenticated .account-section-nav a {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid rgba(29, 69, 71, 0.13);
    border-radius: 999px;
    color: rgba(29, 69, 71, 0.74);
    background: rgba(255, 255, 255, 0.68);
    font-weight: 780;
    letter-spacing: 0.12em;
  }

  body.app-page.is-authenticated .account-section-nav a.is-active {
    color: #fff;
    border-color: rgba(29, 69, 71, 0.22);
    background: var(--pa-deep);
    box-shadow: 0 12px 28px rgba(29, 69, 71, 0.14);
  }

  body.app-page.is-authenticated .account-section-nav a::after {
    display: none;
  }

  body.app-page.is-authenticated .matching-criteria-editor summary {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px;
  }

  body.app-page.is-authenticated .matching-criteria-form {
    padding: 0 18px 20px;
  }
}

/* ProAltero RC v0.77 — one visual language across the product. */
:root {
  --pa-ink: #172b30;
  --pa-deep: #1d5558;
  --pa-sea: #4d8790;
  --pa-sky: #dbeff3;
  --pa-sky-light: #f1f8fa;
  --pa-dawn: #efc9a7;
  --pa-dawn-light: #fbf1e7;
  --pa-sage: #dfece4;
  --pa-paper: #fffdf8;
  --pa-paper-cool: #f8fbfb;
  --pa-text: #334c52;
  --pa-muted: #718287;
  --pa-line: rgba(29, 85, 88, 0.14);
  --pa-line-strong: rgba(29, 85, 88, 0.26);
  --pa-shadow: 0 24px 70px rgba(25, 67, 73, 0.11);
  --pa-shadow-soft: 0 12px 36px rgba(25, 67, 73, 0.075);
  --pa-serif: "Cormorant Garamond", Georgia, serif;
  --pa-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:not(.landing-page) {
  color: var(--pa-text);
  background-color: var(--pa-paper);
  background-image:
    url("assets/paper-grain.png"),
    linear-gradient(180deg, rgba(223, 241, 246, 0.64) 0, rgba(255, 253, 248, 0.92) 34%, #fffdf8 100%);
  background-size: 320px 320px, 100% 100%;
  background-attachment: fixed;
  font-family: var(--pa-sans);
}

body:not(.landing-page)::before {
  display: none;
}

html.app-loading,
html.app-loading body.app-page {
  overflow: hidden;
}

body.app-page:not(.app-ready) > .site-header,
body.app-page:not(.app-ready) > main,
body.app-page:not(.app-ready) > .footer {
  visibility: hidden;
  opacity: 0;
}

.app-boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--pa-deep);
  background-color: var(--pa-paper);
  background-image:
    url("assets/paper-grain.png"),
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, rgba(223, 241, 246, 0.72), rgba(255, 253, 248, 0.96) 54%, #fffdf8);
  background-size: 320px 320px, 100% 100%, 100% 100%;
  opacity: 1;
  transition: opacity 260ms ease, visibility 260ms step-end;
}

.app-boot-brand {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.app-boot-mark {
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 69, 71, 0.58), transparent);
  animation: appBootBreathe 1.2s ease-in-out infinite;
}

.app-boot-copy {
  color: rgba(47, 66, 74, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.app-page.app-ready .app-boot-screen {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body.app-page main {
  opacity: 0;
}

body.app-page.app-ready main {
  opacity: 1;
  transition: opacity 280ms ease;
}

@keyframes appBootBreathe {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleX(0.72);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.account-app .is-view-entering,
.report-app .is-view-entering {
  animation: appViewEnter 180ms ease both;
}

@keyframes appViewEnter {
  from {
    opacity: 0.62;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body:not(.landing-page) .site-header {
  min-height: 76px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--pa-line);
  background: rgba(247, 252, 252, 0.82);
  box-shadow: 0 10px 34px rgba(34, 74, 79, 0.045);
  backdrop-filter: blur(18px) saturate(125%);
}

body:not(.landing-page) .brand {
  color: var(--pa-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

body:not(.landing-page) .nav {
  gap: 25px;
}

body:not(.landing-page) .nav a,
body:not(.landing-page) .header-cta {
  color: var(--pa-text);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body:not(.landing-page) .header-cta {
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid var(--pa-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

body.app-page.is-authenticated .site-header .nav {
  visibility: hidden;
}

body.app-page.is-authenticated .account-section,
body.app-page .relationship-report,
body.prepare-page .preparation {
  position: relative;
  min-height: calc(100vh - 76px);
  padding: 120px 0 100px;
  overflow: clip;
  background: transparent;
}

body.app-page.is-authenticated .account-section::before,
body.app-page .relationship-report::before,
body.prepare-page .preparation::before {
  content: "";
  position: absolute;
  inset: 76px 0 auto;
  height: 420px;
  pointer-events: none;
  background: url("assets/final-sea-sunrise.png") center 48% / cover no-repeat;
  opacity: 0.22;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 48%, transparent 100%);
}

body.app-page.app-view-report .relationship-report::before {
  background-image: url("assets/hero-morning-sea.jpg");
  background-position: center 24%;
  opacity: 0.16;
}

body.app-page.app-view-diary .account-section::before,
body.app-page.app-view-diaryReflections .account-section::before {
  background-image: url("assets/hero-morning-sea.jpg");
  background-position: center 18%;
  opacity: 0.11;
}

body.app-page.is-authenticated .account-section .section-inner,
body.app-page .relationship-report .section-inner,
body.prepare-page .preparation .section-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
}

body.app-page.is-authenticated .account-layout,
body.prepare-page .prep-layout {
  display: block;
}

body.app-page.is-authenticated .account-copy,
body.prepare-page .prep-copy,
body.app-page .relationship-report .section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  column-gap: 9vw;
  align-items: end;
  max-width: none;
  margin: 0 0 54px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.app-page.is-authenticated .account-copy {
  position: static;
  top: auto;
}

body.app-page.is-authenticated .account-copy .eyebrow,
body.prepare-page .prep-copy .eyebrow,
body.app-page .relationship-report .section-heading .eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 18px;
  color: var(--pa-sea);
}

body.app-page.is-authenticated .account-copy h1,
body.prepare-page .prep-copy h1,
body.app-page .relationship-report .section-heading h2 {
  grid-column: 1;
  margin: 0;
  color: var(--pa-ink);
  font-family: var(--pa-serif);
  font-size: 3.7rem;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

body.app-page.is-authenticated .account-copy > p:not(.eyebrow),
body.prepare-page .prep-copy > p:not(.eyebrow),
body.app-page .relationship-report .section-heading > p:not(.eyebrow) {
  grid-column: 2;
  margin: 0;
  color: var(--pa-text);
  font-size: 1.02rem;
  line-height: 1.8;
}

body.app-page.is-authenticated .account-copy > p:not(.eyebrow) + p,
body.prepare-page .prep-copy > p:not(.eyebrow) + p {
  display: none;
}

body.app-page.is-authenticated .account-app,
body.app-page .report-app,
body.prepare-page .prep-app {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.app-page.is-authenticated .experimental-dashboard {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.app-page.is-authenticated .account-section-nav,
body.app-page .relationship-report .account-section-nav {
  position: sticky;
  top: 76px;
  z-index: 14;
  order: -2;
  display: flex;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0 0 34px;
  padding: 10px;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--pa-shadow-soft);
  backdrop-filter: blur(18px) saturate(120%);
}

body.app-page.is-authenticated .account-section-nav a,
body.app-page .relationship-report .account-section-nav a {
  position: relative;
  flex: 1 1 0;
  min-height: 44px;
  padding: 13px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--pa-muted);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}

body.app-page.is-authenticated .account-section-nav a:hover,
body.app-page .relationship-report .account-section-nav a:hover {
  color: var(--pa-deep);
  background: rgba(221, 239, 242, 0.5);
}

body.app-page.is-authenticated .account-section-nav a.is-active,
body.app-page .relationship-report .account-section-nav a.is-active {
  color: #fff;
  background: var(--pa-deep);
  box-shadow: 0 8px 22px rgba(29, 85, 88, 0.18);
}

body.app-page.is-authenticated .account-section-nav a::after,
body.app-page .relationship-report .account-section-nav a::after {
  display: none;
}

body.app-page.is-authenticated .account-presence {
  order: -1;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 15px;
  align-items: center;
  min-height: 76px;
  margin: 0 0 38px;
  padding: 0 3px 18px;
  border: 0;
  border-bottom: 1px solid var(--pa-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.app-page.is-authenticated .presence-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--pa-line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--pa-serif);
  font-size: 1.55rem;
}

body.app-page.is-authenticated .presence-copy {
  gap: 1px;
}

body.app-page.is-authenticated .presence-copy .account-status {
  display: none;
}

body.app-page.is-authenticated .presence-copy strong {
  color: var(--pa-ink);
  font-family: var(--pa-serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
}

body.app-page.is-authenticated .presence-copy small {
  display: none;
}

body.app-page.is-authenticated .account-link-button {
  color: var(--pa-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.app-page.is-authenticated .account-home,
body.app-page.is-authenticated .tests-panel,
body.app-page.is-authenticated .diary-panel,
body.app-page.is-authenticated .matches-panel,
body.app-page.is-authenticated .matching-settings-panel,
body.app-page.is-authenticated .matching-consent-panel,
body.app-page.is-authenticated .matching-criteria-panel,
body.app-page.is-authenticated .profile-form,
body.app-page.is-authenticated .profile-photo-form,
body.app-page.is-authenticated .profile-public-preview,
body.app-page.is-authenticated .account-dashboard > .account-panel {
  scroll-margin-top: 154px;
}

body.app-page.is-authenticated .account-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  min-height: 380px;
  padding: 58px;
  overflow: hidden;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0.84) 48%, rgba(255, 253, 248, 0.12) 100%),
    url("assets/final-sea-sunrise.png") center / cover no-repeat;
  box-shadow: var(--pa-shadow);
}

body.app-page.is-authenticated .account-home-hero::before,
body.app-page.is-authenticated .account-home-hero::after {
  display: none;
}

body.app-page.is-authenticated .account-home-hero > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

body.app-page.is-authenticated .account-home-hero h3,
body.app-page.is-authenticated .tests-panel > h3,
body.app-page.is-authenticated .diary-panel > h3,
body.app-page.is-authenticated .matches-panel > h3,
body.app-page.is-authenticated .matching-settings-panel > h3,
body.app-page.is-authenticated .matching-consent-panel > h3,
body.app-page.is-authenticated .matching-criteria-panel > h3,
body.app-page.is-authenticated .profile-form > h3,
body.app-page.is-authenticated .profile-photo-form > h3,
body.app-page.is-authenticated .profile-public-preview > h3 {
  margin: 12px 0 18px;
  color: var(--pa-ink);
  font-family: var(--pa-serif);
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

body.app-page.is-authenticated .account-home-hero p {
  max-width: 580px;
  color: var(--pa-text);
  font-size: 1rem;
  line-height: 1.75;
}

body.app-page.is-authenticated .account-home-summary {
  align-self: end;
  min-height: 150px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 42px rgba(34, 74, 79, 0.09);
  backdrop-filter: blur(12px);
}

body.app-page.is-authenticated .account-home-summary strong {
  color: var(--pa-deep);
  font-family: var(--pa-serif);
  font-size: 1.8rem;
  font-weight: 500;
}

body.app-page.is-authenticated .account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

body:not(.landing-page) .button {
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body:not(.landing-page) .button.primary {
  color: #fff;
  border-color: var(--pa-deep);
  background: var(--pa-deep);
  box-shadow: 0 12px 30px rgba(29, 85, 88, 0.16);
}

body:not(.landing-page) .button.secondary {
  color: var(--pa-deep);
  border-color: var(--pa-line-strong);
  background: rgba(255, 255, 255, 0.68);
}

body.app-page.is-authenticated .journey-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 52px 0 66px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.app-page.is-authenticated .journey-map::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--pa-line-strong);
}

body.app-page.is-authenticated .journey-step {
  position: relative;
  display: block;
  grid-template-columns: none;
  gap: 0;
  min-height: 126px;
  padding: 43px 20px 0;
  border: 0;
  background: transparent;
}

body.app-page.is-authenticated .journey-step > span:last-child {
  display: block;
  width: 100%;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

body:not(.landing-page) .auth-secondary-action {
  justify-self: start;
  padding: 2px 0;
  color: var(--pa-deep);
  border: 0;
  border-bottom: 1px solid rgba(29, 85, 88, 0.28);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

body:not(.landing-page) .auth-secondary-action:hover,
body:not(.landing-page) .auth-secondary-action:focus-visible {
  border-bottom-color: var(--pa-deep);
}

body.app-page.is-authenticated .journey-dot {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 15px;
  height: 15px;
  margin: 0 0 0 -7px;
  border: 2px solid var(--pa-paper);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--pa-line-strong);
}

body.app-page.is-authenticated .journey-step.is-done .journey-dot {
  background: #84b9a4;
}

body.app-page.is-authenticated .journey-step.is-active .journey-dot {
  background: #70b6ce;
  box-shadow: 0 0 0 6px rgba(112, 182, 206, 0.14);
}

body.app-page.is-authenticated .journey-step strong {
  color: var(--pa-ink);
  font-size: 0.98rem;
}

body.app-page.is-authenticated .journey-step small,
body.app-page.is-authenticated .journey-step em {
  display: block;
  margin-top: 6px;
  color: var(--pa-muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.45;
}

body.app-page.is-authenticated .account-voyage {
  height: 168px;
  margin: 0 0 54px;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.86), rgba(255, 253, 248, 0.16), rgba(255, 253, 248, 0.86)),
    url("assets/hero-morning-sea.jpg") center 64% / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(29, 85, 88, 0.08);
  opacity: 0.82;
}

body.app-page.is-authenticated .account-voyage-gulls {
  display: none;
}

body.app-page.is-authenticated .account-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.app-page.is-authenticated .account-home-grid .compact-panel {
  position: relative;
  min-height: 300px;
  padding: 38px;
  overflow: hidden;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--pa-shadow-soft);
}

body.app-page.is-authenticated .account-home-grid .compact-panel:nth-child(1) {
  background-color: rgba(235, 246, 248, 0.78);
}

body.app-page.is-authenticated .account-home-grid .compact-panel:nth-child(2) {
  background-color: rgba(255, 249, 239, 0.82);
  background-image: url("assets/paper-grain.png");
}

body.app-page.is-authenticated .account-home-grid .compact-panel:nth-child(3) {
  background-color: rgba(241, 248, 243, 0.82);
}

body.app-page.is-authenticated .account-home-grid .compact-panel:nth-child(4) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(231, 244, 246, 0.72)),
    url("assets/hero-sea-gulls.png") 105% 120% / 44% auto no-repeat;
}

body.app-page.is-authenticated .account-home-grid .compact-panel h3 {
  max-width: 420px;
  margin: 22px 0 16px;
  color: var(--pa-ink);
  font-family: var(--pa-serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.05;
}

body.app-page.is-authenticated .account-home-grid .compact-panel p {
  max-width: 470px;
  color: var(--pa-muted);
  line-height: 1.7;
}

body.app-page.is-authenticated .account-home-grid .account-link-button {
  position: absolute;
  left: 38px;
  bottom: 34px;
}

body.app-page.is-authenticated .account-panel,
body.app-page .relationship-mirror,
body.app-page .personality-map {
  border-radius: 8px;
}

body.app-page.is-authenticated .tests-panel,
body.app-page.is-authenticated .diary-panel,
body.app-page.is-authenticated .matches-panel,
body.app-page.is-authenticated .matching-settings-panel,
body.app-page.is-authenticated .matching-consent-panel,
body.app-page.is-authenticated .matching-criteria-panel,
body.app-page.is-authenticated .profile-form,
body.app-page.is-authenticated .profile-photo-form,
body.app-page.is-authenticated .profile-public-preview,
body.app-page.is-authenticated .account-dashboard > .email-verification-panel {
  margin: 0 0 24px;
  padding: 44px;
  border: 1px solid var(--pa-line);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--pa-shadow-soft);
  backdrop-filter: blur(12px);
}

body.app-page.is-authenticated .account-status,
body.app-page .report-status,
body.prepare-page .account-status {
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(29, 85, 88, 0.12);
  border-radius: 999px;
  color: var(--pa-deep);
  background: rgba(226, 239, 232, 0.76);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.app-page.is-authenticated .privacy-notice {
  margin: 22px 0;
  padding: 20px 22px;
  border: 0;
  border-left: 2px solid rgba(77, 135, 144, 0.34);
  border-radius: 0;
  background: rgba(235, 246, 248, 0.58);
  box-shadow: none;
}

body.app-page.is-authenticated .privacy-notice strong {
  color: var(--pa-deep);
}

body.app-page.is-authenticated .test-path-card {
  min-height: 210px;
  margin: 36px 0 54px;
  padding: 38px;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.94), rgba(255, 253, 248, 0.58)),
    url("assets/hero-morning-sea.jpg") center 58% / cover no-repeat;
  box-shadow: var(--pa-shadow-soft);
}

body.app-page.is-authenticated .test-group {
  margin-top: 52px;
}

body.app-page.is-authenticated .test-group > h4 {
  margin: 0 0 18px;
  color: var(--pa-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.app-page.is-authenticated .relationship-tests-grid,
body.app-page.is-authenticated .tests-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.app-page.is-authenticated.app-view-tests .relationship-tests-grid,
body.app-page.is-authenticated.app-view-tests .tests-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.app-page.is-authenticated.app-view-tests .relationship-tests-grid {
  grid-template-columns: 1fr;
}

body.app-page.is-authenticated .relationship-test-card,
body.app-page.is-authenticated .tests-grid .test-card {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--pa-shadow-soft);
}

body.app-page.is-authenticated.app-view-tests .relationship-test-card,
body.app-page.is-authenticated.app-view-tests .tests-grid .test-card {
  overflow: hidden;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--pa-shadow-soft);
}

body.app-page.is-authenticated .relationship-test-card[open] {
  grid-column: 1 / -1;
}

body.app-page.is-authenticated.app-view-tests .relationship-test-card[open] {
  grid-column: 1 / -1;
}

body.app-page.is-authenticated .relationship-test-summary {
  min-height: 290px;
  padding: 36px;
  background: transparent;
}

body.app-page.is-authenticated .relationship-test-title {
  max-width: 520px;
  margin-top: 22px;
  color: var(--pa-ink);
  font-family: var(--pa-serif);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
}

body.app-page.is-authenticated .relationship-test-description,
body.app-page.is-authenticated .relationship-test-value {
  max-width: 720px;
  color: var(--pa-muted);
  line-height: 1.65;
}

body.app-page.is-authenticated .relationship-test-body {
  padding: 0 36px 38px;
  background: rgba(255, 253, 248, 0.58);
}

body.app-page.is-authenticated .relationship-test-instructions,
body.app-page.is-authenticated .relationship-test-update {
  margin: 0 0 24px;
  padding: 20px 22px;
  border-left: 2px solid rgba(77, 135, 144, 0.38);
  color: var(--pa-text);
  background: rgba(235, 246, 248, 0.56);
  line-height: 1.7;
}

body.app-page.is-authenticated .relationship-test-update {
  border-left-color: rgba(239, 185, 126, 0.7);
  background: rgba(251, 241, 231, 0.7);
}

body.app-page.is-authenticated.app-view-tests .relationship-test-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

body.app-page.is-authenticated .relationship-test-form > label,
body.app-page.is-authenticated .relationship-test-form > fieldset {
  margin: 0;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--pa-line);
  border-radius: 0;
  background: transparent;
}

body.app-page.is-authenticated.app-view-tests .relationship-test-form > label,
body.app-page.is-authenticated.app-view-tests .relationship-test-form > fieldset {
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--pa-line);
  border-radius: 0;
  background: transparent;
}

body.app-page.is-authenticated .relationship-test-question {
  grid-template-columns: minmax(0, 1fr) 280px;
}

body.app-page.is-authenticated.app-view-tests .relationship-test-question-text {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--pa-text);
  background: transparent;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

body.app-page.is-authenticated .relationship-test-radio-question .prep-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.app-page.is-authenticated .relationship-test-scale-question {
  display: grid;
  gap: 14px;
}

body.app-page.is-authenticated .relationship-test-scale-question legend {
  color: var(--pa-text);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.5;
}

body.app-page.is-authenticated .relationship-test-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

body.app-page.is-authenticated .relationship-test-scale-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--pa-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

body.app-page.is-authenticated .relationship-test-scale-option:has(input:checked) {
  border-color: rgba(29, 69, 71, 0.3);
  background: rgba(219, 239, 245, 0.68);
}

body.app-page.is-authenticated .relationship-test-scale-option input {
  width: auto;
  min-height: auto;
  margin: 0;
  accent-color: var(--pa-teal);
}

body.app-page.is-authenticated .relationship-test-scale-value {
  color: var(--pa-deep);
  font-weight: 800;
}

body.app-page.is-authenticated .relationship-test-scale-label {
  min-width: 0;
  color: var(--pa-text);
  font-size: 0.78rem;
  line-height: 1.35;
}

body.app-page.is-authenticated .tests-grid .test-card {
  min-height: 240px;
  padding: 32px;
}

body.app-page.is-authenticated .tests-grid .test-card h4 {
  margin: 20px 0 14px;
  color: var(--pa-ink);
  font-family: var(--pa-serif);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.08;
}

body.app-page.is-authenticated .profile-form > label,
body.app-page.is-authenticated .profile-form .account-form-grid > label,
body.app-page.is-authenticated .matching-criteria-form label,
body.app-page.is-authenticated .diary-form label,
body.app-page.is-authenticated .auth-form label,
body.prepare-page .prep-question {
  color: var(--pa-text);
  font-weight: 700;
}

body:not(.landing-page) input,
body:not(.landing-page) select,
body:not(.landing-page) textarea {
  margin-top: 8px;
  border: 1px solid var(--pa-line-strong);
  border-radius: 7px;
  color: var(--pa-ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body:not(.landing-page) input:focus,
body:not(.landing-page) select:focus,
body:not(.landing-page) textarea:focus {
  outline: 3px solid rgba(112, 182, 206, 0.17);
  border-color: rgba(77, 135, 144, 0.62);
}

body.app-page.is-authenticated .profile-form > label {
  display: block;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--pa-line);
}

body.app-page.is-authenticated .profile-form textarea {
  min-height: 138px;
}

body.app-page.is-authenticated .profile-form-section {
  min-inline-size: 0;
  margin: 50px 0 0;
  padding: 42px 0 0;
  border: 0;
  border-top: 1px solid var(--pa-line);
}

body.app-page.is-authenticated .profile-form-section legend {
  width: 100%;
  padding: 0;
  color: var(--pa-ink);
  font-family: var(--pa-serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.08;
}

body.app-page.is-authenticated .profile-form-intro {
  max-width: 720px;
  margin: 12px 0 28px;
  color: var(--pa-muted);
  line-height: 1.65;
}

body.app-page.is-authenticated .profile-form-section .account-form-grid {
  margin: 0;
}

body.app-page.is-authenticated .profile-form-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.app-page.is-authenticated .profile-form-wide {
  grid-column: 1 / -1;
}

body.app-page.is-authenticated .profile-form-prose > label {
  display: block;
  margin-top: 26px;
}

body.app-page.is-authenticated .profile-form-prose > label + label {
  padding-top: 26px;
  border-top: 1px solid rgba(29, 85, 88, 0.08);
}

body.app-page.is-authenticated .profile-form > .button[type="submit"] {
  margin-top: 46px;
}

body.app-page.is-authenticated .profile-photo-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

body.app-page.is-authenticated .profile-preview-card,
body.app-page.is-authenticated .match-teaser-layout {
  border-radius: 8px;
}

body.app-page.app-view-diary .diary-panel,
body.app-page.app-view-diaryReflections .diary-panel {
  background-color: rgba(255, 252, 244, 0.9);
  background-image:
    url("assets/paper-grain.png"),
    repeating-linear-gradient(180deg, transparent 0, transparent 31px, rgba(77, 135, 144, 0.06) 32px);
  background-size: 320px 320px, 100% 32px;
}

body.app-page.is-authenticated .diary-tabs {
  display: flex;
  width: fit-content;
  margin: 20px 0 30px;
  padding: 5px;
  border: 1px solid var(--pa-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

body.app-page.is-authenticated .diary-tabs a {
  padding: 10px 16px;
  border-radius: 999px;
}

body.app-page.is-authenticated .diary-tabs a.is-active {
  color: #fff;
  background: var(--pa-deep);
}

body.app-page.is-authenticated .diary-entry,
body.app-page.is-authenticated .diary-reflection,
body.app-page.is-authenticated .diary-reflection-request,
body.app-page.is-authenticated .diary-reflection-empty {
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--pa-shadow-soft);
}

body.app-page.is-authenticated .match-card {
  padding: 38px;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--pa-shadow-soft);
}

body.app-page.is-authenticated .match-card h3 {
  color: var(--pa-ink);
  font-family: var(--pa-serif);
  font-size: 2.25rem;
  font-weight: 500;
}

body.app-page.is-authenticated .match-analysis,
body.app-page.is-authenticated .match-public-profile,
body.app-page.is-authenticated .match-reveal-panel,
body.app-page.is-authenticated .matching-refresh-panel {
  border: 0;
  border-top: 1px solid var(--pa-line);
  border-radius: 0;
  background: transparent;
}

body.app-page.is-authenticated .matching-criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.app-page.is-authenticated .matching-criteria-cluster {
  padding: 28px;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

body.app-page.is-authenticated .matching-criteria-editor {
  margin: 30px 0;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background: rgba(237, 247, 248, 0.68);
}

body.app-page .personality-map {
  position: relative;
  margin: 0 0 28px;
  padding: 52px;
  overflow: hidden;
  border: 1px solid var(--pa-line);
  background:
    linear-gradient(120deg, rgba(255, 253, 248, 0.96), rgba(232, 245, 247, 0.72)),
    url("assets/hero-sea-gulls.png") 110% 110% / 46% auto no-repeat;
  box-shadow: var(--pa-shadow);
}

body.app-page .personality-map-header h3 {
  margin: 10px 0 18px;
  color: var(--pa-ink);
  font-family: var(--pa-serif);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

body.app-page .personality-map-grid {
  margin: 42px 0 30px;
}

body.app-page .personality-coordinate {
  padding: 26px 22px;
}

body.app-page .relationship-mirror {
  padding: 52px;
  border: 1px solid var(--pa-line);
  background-color: rgba(255, 252, 244, 0.92);
  background-image: url("assets/paper-grain.png");
  box-shadow: var(--pa-shadow-soft);
}

body.app-page .report-hero {
  margin-bottom: 46px;
  padding: 0 0 40px;
  border-bottom: 1px solid var(--pa-line);
  background: transparent;
}

body.app-page .report-hero h3 {
  margin: 14px 0 18px;
  color: var(--pa-ink);
  font-family: var(--pa-serif);
  font-size: 3rem;
  font-weight: 500;
}

body.app-page .report-block {
  position: relative;
  margin: 0;
  padding: 34px 0 34px 190px;
  border: 0;
  border-top: 1px solid var(--pa-line);
  background: transparent;
}

body.app-page .report-block h4 {
  position: absolute;
  top: 36px;
  left: 0;
  width: 160px;
  margin: 0;
  color: var(--pa-deep);
  font-family: var(--pa-serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.1;
}

body.app-page .report-block p,
body.app-page .report-block li {
  color: var(--pa-text);
  line-height: 1.75;
}

body.prepare-page .prep-copy {
  margin-bottom: 48px;
}

body.prepare-page .prep-app {
  padding: 48px;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background-color: rgba(255, 252, 244, 0.92);
  background-image: url("assets/paper-grain.png");
  box-shadow: var(--pa-shadow);
}

body.prepare-page .prep-day-tabs {
  position: sticky;
  top: 88px;
  z-index: 8;
  padding: 10px;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.91);
  box-shadow: var(--pa-shadow-soft);
  backdrop-filter: blur(14px);
}

body.prepare-page .prep-day-tab {
  border-radius: 6px;
}

body.prepare-page .prep-day-header {
  margin: 42px 0 32px;
}

body.prepare-page .prep-day-header h3 {
  color: var(--pa-ink);
  font-family: var(--pa-serif);
  font-size: 2.8rem;
  font-weight: 500;
}

body.prepare-page .prep-question {
  margin: 0;
  padding: 28px 0;
  border: 0;
  border-bottom: 1px solid var(--pa-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.prepare-page .prep-option {
  border-color: var(--pa-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.62);
}

body.prepare-page .prep-insight,
body.prepare-page .prep-day-feedback {
  margin-top: 28px;
  padding: 26px;
  border: 0;
  border-left: 2px solid rgba(239, 201, 167, 0.72);
  border-radius: 0;
  background: rgba(251, 241, 231, 0.68);
}

body.prepare-page .prep-day-feedback {
  border-left-color: rgba(77, 135, 144, 0.5);
  background: rgba(232, 245, 247, 0.7);
}

body.prepare-page .prep-actions {
  margin-top: 34px;
}

body:not(.landing-page) .footer {
  border-top: 1px solid var(--pa-line);
  background: rgba(238, 247, 248, 0.58);
}

body.legal-shell-page .legal-page,
body.admin-page .admin-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 140px;
}

body.legal-shell-page .legal-card,
body.admin-page .admin-card {
  padding: 50px;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background-color: rgba(255, 252, 244, 0.92);
  background-image: url("assets/paper-grain.png");
  box-shadow: var(--pa-shadow-soft);
}

@media (max-width: 1040px) {
  body:not(.landing-page) .nav {
    display: none;
  }

  body.app-page.is-authenticated .account-copy,
  body.prepare-page .prep-copy,
  body.app-page .relationship-report .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.app-page.is-authenticated .account-copy > p:not(.eyebrow),
  body.prepare-page .prep-copy > p:not(.eyebrow),
  body.app-page .relationship-report .section-heading > p:not(.eyebrow) {
    grid-column: 1;
    max-width: 720px;
  }

  body.app-page.is-authenticated .account-home-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.app-page.is-authenticated .account-home-summary {
    max-width: 420px;
  }

  body.app-page.is-authenticated .relationship-tests-grid,
  body.app-page.is-authenticated .tests-grid,
  body.app-page.is-authenticated .matching-criteria-grid {
    grid-template-columns: 1fr;
  }

  body.app-page.is-authenticated.app-view-tests .relationship-tests-grid,
  body.app-page.is-authenticated.app-view-tests .tests-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body:not(.landing-page) .site-header {
    min-height: 68px;
    padding: 0 20px;
  }

  body.app-page.is-authenticated .account-section,
  body.app-page .relationship-report,
  body.prepare-page .preparation {
    min-height: calc(100vh - 68px);
    padding: 94px 0 64px;
  }

  body.app-page.is-authenticated .account-section::before,
  body.app-page .relationship-report::before,
  body.prepare-page .preparation::before {
    inset-block-start: 68px;
    height: 300px;
  }

  body.app-page.is-authenticated .account-section .section-inner,
  body.app-page .relationship-report .section-inner,
  body.prepare-page .preparation .section-inner {
    width: min(100% - 28px, 1180px);
  }

  body.app-page.is-authenticated .account-copy,
  body.prepare-page .prep-copy,
  body.app-page .relationship-report .section-heading {
    margin-bottom: 30px;
  }

  body.app-page.is-authenticated .account-copy h1,
  body.prepare-page .prep-copy h1,
  body.app-page .relationship-report .section-heading h2 {
    font-size: 2.75rem;
  }

  body.app-page.is-authenticated .account-copy > p:not(.eyebrow),
  body.prepare-page .prep-copy > p:not(.eyebrow),
  body.app-page .relationship-report .section-heading > p:not(.eyebrow) {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  body.app-page.is-authenticated .account-section-nav,
  body.app-page .relationship-report .account-section-nav {
    top: 68px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0 -1px 24px;
    padding: 7px;
    overflow: visible;
    scrollbar-width: none;
  }

  body.app-page.is-authenticated .account-section-nav::-webkit-scrollbar,
  body.app-page .relationship-report .account-section-nav::-webkit-scrollbar {
    display: none;
  }

  body.app-page.is-authenticated .account-section-nav a,
  body.app-page .relationship-report .account-section-nav a {
    min-width: 0;
    min-height: 38px;
    padding: 10px 5px;
    font-size: 0.58rem;
    letter-spacing: 0.07em;
  }

  body.app-page.is-authenticated .account-presence {
    min-height: 62px;
    margin-bottom: 26px;
  }

  body.app-page.is-authenticated .presence-copy strong {
    font-size: 1.5rem;
  }

  body.app-page.is-authenticated .account-home-hero,
  body.app-page.is-authenticated .tests-panel,
  body.app-page.is-authenticated .diary-panel,
  body.app-page.is-authenticated .matches-panel,
  body.app-page.is-authenticated .matching-settings-panel,
  body.app-page.is-authenticated .matching-consent-panel,
  body.app-page.is-authenticated .matching-criteria-panel,
  body.app-page.is-authenticated .profile-form,
  body.app-page.is-authenticated .profile-photo-form,
  body.app-page.is-authenticated .profile-public-preview,
  body.app-page .personality-map,
  body.app-page .relationship-mirror,
  body.prepare-page .prep-app {
    padding: 28px 22px;
  }

  body.app-page.is-authenticated .account-home-hero {
    min-height: 460px;
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.95) 0%, rgba(255, 253, 248, 0.72) 62%, rgba(255, 253, 248, 0.28) 100%),
      url("assets/final-sea-sunrise.png") center / cover no-repeat;
  }

  body.app-page.is-authenticated .account-home-hero h3,
  body.app-page.is-authenticated .tests-panel > h3,
  body.app-page.is-authenticated .diary-panel > h3,
  body.app-page.is-authenticated .matches-panel > h3,
  body.app-page.is-authenticated .matching-settings-panel > h3,
  body.app-page.is-authenticated .matching-consent-panel > h3,
  body.app-page.is-authenticated .matching-criteria-panel > h3,
  body.app-page.is-authenticated .profile-form > h3,
  body.app-page.is-authenticated .profile-photo-form > h3,
  body.app-page.is-authenticated .profile-public-preview > h3,
  body.app-page .personality-map-header h3,
  body.app-page .report-hero h3,
  body.prepare-page .prep-day-header h3 {
    font-size: 2.25rem;
  }

  body.app-page.is-authenticated .journey-map {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 34px 0 44px;
  }

  body.app-page.is-authenticated .journey-map::before {
    top: 14px;
    bottom: 14px;
    left: 7px;
    width: 1px;
    height: auto;
  }

  body.app-page.is-authenticated .journey-step {
    min-height: 0;
    padding: 0 0 24px 34px;
  }

  body.app-page.is-authenticated .journey-dot {
    top: 3px;
    left: 0;
    margin: 0;
  }

  body.app-page.is-authenticated .account-voyage {
    height: 116px;
    margin-bottom: 34px;
  }

  body.app-page.is-authenticated .account-home-grid {
    grid-template-columns: 1fr;
  }

  body.app-page.is-authenticated .account-home-grid .compact-panel {
    min-height: 260px;
    padding: 28px;
  }

  body.app-page.is-authenticated .account-home-grid .account-link-button {
    left: 28px;
    bottom: 26px;
  }

  body.app-page.is-authenticated .relationship-test-summary {
    min-height: 260px;
    padding: 28px 22px;
  }

  body.app-page.is-authenticated .relationship-test-body {
    padding: 0 22px 28px;
  }

  body.app-page.is-authenticated .relationship-test-question {
    grid-template-columns: 1fr;
  }

  body.app-page.is-authenticated .relationship-test-scale {
    grid-template-columns: 1fr;
  }

  body.app-page.is-authenticated .relationship-test-scale-option {
    grid-template-columns: auto 24px minmax(0, 1fr);
    min-height: 52px;
  }

  body.app-page.is-authenticated .relationship-test-radio-question .prep-options,
  body.app-page.is-authenticated .account-form-grid,
  body.app-page.is-authenticated .profile-form-grid-three,
  body.app-page.is-authenticated .profile-photo-list {
    grid-template-columns: 1fr;
  }

  body.app-page.is-authenticated .profile-form-section {
    margin-top: 38px;
    padding-top: 32px;
  }

  body.app-page.is-authenticated .profile-form-section legend {
    font-size: 1.7rem;
  }

  body.app-page .personality-map-header,
  body.app-page .personality-map-grid {
    grid-template-columns: 1fr;
  }

  body.app-page .personality-coordinate + .personality-coordinate {
    border-top: 1px solid var(--pa-line);
    border-left: 0;
  }

  body.app-page .report-block {
    padding: 28px 0;
  }

  body.app-page .report-block h4 {
    position: static;
    width: auto;
    margin: 0 0 16px;
  }

  body.prepare-page .prep-day-tabs {
    top: 78px;
    overflow-x: auto;
  }

  body.prepare-page .prep-scale,
  body.prepare-page .prep-options {
    grid-template-columns: 1fr;
  }

  body.prepare-page .prep-topic-head {
    display: none;
  }

  body.prepare-page .prep-topic-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.legal-shell-page .legal-card,
  body.admin-page .admin-card {
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-boot-screen {
    transition: none;
  }

  .app-boot-mark {
    animation: none;
  }

  .account-app .is-view-entering,
  .report-app .is-view-entering {
    animation: none;
  }

  body.app-page.app-ready main {
    transition: none;
  }
}

/* App navigation v0.82: stable navigation above each section introduction */
body.app-page.is-authenticated .account-navigation-shell {
  position: sticky;
  top: 76px;
  z-index: 19;
  display: block;
  margin-top: 76px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(29, 69, 71, 0.08);
  background: rgba(248, 252, 253, 0.92);
  box-shadow: 0 14px 34px rgba(28, 65, 74, 0.045);
  backdrop-filter: blur(20px) saturate(120%);
}

body.app-page.is-authenticated .account-navigation-shell[hidden] {
  display: none;
}

body.app-page.is-authenticated .account-navigation-shell .section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

body.app-page.is-authenticated .account-navigation-shell .account-section-nav {
  position: static;
  top: auto;
  z-index: auto;
  width: 100%;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: none;
  backdrop-filter: none;
}

body.app-page.is-authenticated main {
  padding-top: 0;
}

body.app-page.is-authenticated .account-section,
body.app-page .relationship-report {
  min-height: calc(100vh - 150px);
  padding-top: clamp(42px, 5vw, 68px);
}

body.app-page.is-authenticated .account-copy,
body.app-page .relationship-report .section-heading {
  margin-bottom: clamp(32px, 4vw, 46px);
}

body.app-page.is-authenticated .account-copy h1,
body.app-page .relationship-report .section-heading h2 {
  font-size: clamp(2.8rem, 4vw, 3.45rem);
  line-height: 1.02;
}

@media (max-width: 760px) {
  body.app-page.is-authenticated .account-navigation-shell {
    top: 68px;
    margin-top: 68px;
    padding: 7px 0;
  }

  body.app-page.is-authenticated .account-navigation-shell .section-inner {
    width: 100%;
  }

  body.app-page.is-authenticated .account-navigation-shell .account-section-nav {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 6px 14px 8px;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  body.app-page.is-authenticated .account-navigation-shell .account-section-nav::-webkit-scrollbar {
    display: none;
  }

  body.app-page.is-authenticated .account-navigation-shell .account-section-nav a {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 38px;
    padding: 9px 14px;
    font-size: 0.58rem;
  }

  body.app-page.is-authenticated .account-section,
  body.app-page .relationship-report {
    min-height: calc(100vh - 126px);
    padding-top: 32px;
  }

  body.app-page.is-authenticated .account-copy,
  body.app-page .relationship-report .section-heading {
    gap: 14px;
    margin-bottom: 24px;
  }

  body.app-page.is-authenticated .account-copy .eyebrow,
  body.app-page .relationship-report .section-heading .eyebrow {
    margin-bottom: 4px;
  }

  body.app-page.is-authenticated .account-copy h1,
  body.app-page .relationship-report .section-heading h2 {
    font-size: 2.3rem;
  }
}

/* RC v0.88: feedback digest 2026-07-14 */
body.app-page.is-authenticated .account-home-grid .compact-panel {
  display: flex;
  flex-direction: column;
}

body.app-page.is-authenticated .account-home-grid .account-link-button {
  position: static;
  margin-top: auto;
  padding-top: 24px;
}

body.app-page.is-authenticated .matching-criteria-editor {
  scroll-margin-top: 168px;
}

body.app-page.is-authenticated .matching-criteria-editor summary small {
  max-width: 70ch;
}

body.app-page.is-authenticated .matching-criteria-source-note {
  margin: 22px 0 0;
}

body.app-page.is-authenticated .matching-criteria-source-note a {
  color: var(--pa-deep);
  font-weight: 750;
}

body.app-page.is-authenticated .matching-criteria-panel.is-just-saved {
  animation: criteria-saved 1.8s ease both;
}

@keyframes criteria-saved {
  0%, 100% { box-shadow: var(--pa-shadow-soft); }
  35% { box-shadow: 0 0 0 4px rgba(132, 185, 164, 0.2), var(--pa-shadow-soft); }
}

body.app-page.is-authenticated .relationship-test-scale-hint {
  color: var(--pa-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (max-width: 760px) {
  body.app-page.is-authenticated .account-navigation-shell {
    padding-bottom: 8px;
  }

  body.app-page.is-authenticated .account-navigation-shell .account-section-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 6px 12px;
    overflow: visible;
  }

  body.app-page.is-authenticated .account-navigation-shell .account-section-nav a {
    min-width: 0;
    min-height: 38px;
    padding: 9px 4px;
    overflow-wrap: anywhere;
    text-align: center;
  }

  body.app-page.is-authenticated .account-home-grid .compact-panel {
    min-height: 0;
    padding: 26px 22px;
  }

  body.app-page.is-authenticated .account-home-grid .account-link-button {
    padding-top: 22px;
  }

  body.app-page.is-authenticated .relationship-test-body {
    padding-right: 14px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    padding-left: 14px;
  }

  body.app-page.is-authenticated .relationship-test-form {
    padding-bottom: env(safe-area-inset-bottom);
  }

  body.app-page.is-authenticated .relationship-test-scale-question {
    gap: 9px;
    padding: 16px 0;
  }

  body.app-page.is-authenticated .relationship-test-scale {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }

  body.app-page.is-authenticated .relationship-test-scale-option {
    grid-template-columns: 1fr;
    place-items: center;
    gap: 3px;
    min-height: 54px;
    padding: 6px 3px;
    text-align: center;
  }

  body.app-page.is-authenticated .relationship-test-scale-option input {
    width: 16px;
    height: 16px;
  }

  body.app-page.is-authenticated .relationship-test-scale-value {
    font-size: 12px;
    line-height: 1;
  }

  body.app-page.is-authenticated .relationship-test-scale-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  body.app-page.is-authenticated .matching-criteria-editor {
    scroll-margin-top: 184px;
  }

  body.app-page.is-authenticated .matching-criteria-form {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .landing-page .journey-list {
    margin-top: 42px;
  }

  .landing-page .journey-list article span,
  .landing-page .journey-list article:nth-child(odd) span,
  .landing-page .journey-list article:nth-child(even) span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.62rem;
    line-height: 1;
  }
}

/* RC v0.89 final precedence: matching setup and mobile path markers. */
body.app-page.is-authenticated .matching-consent-details {
  margin: 18px 0 22px;
  border-top: 1px solid var(--pa-line);
  border-bottom: 1px solid var(--pa-line);
}

body.app-page.is-authenticated .matching-consent-details summary {
  padding: 16px 0;
  color: var(--pa-deep);
  cursor: pointer;
  font-weight: 750;
}

body.app-page.is-authenticated .matching-consent-details > div {
  display: grid;
  gap: 10px;
  padding: 0 0 18px;
}

body.app-page.is-authenticated .matching-consent-details p {
  margin: 0;
}

body.app-page.is-authenticated .matching-criteria-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.app-page.is-authenticated .matching-criteria-form select,
body.app-page.is-authenticated .matching-criteria-form input,
body.app-page.is-authenticated .matching-criteria-form textarea {
  scroll-margin-top: 210px;
}

@media (max-width: 760px) {
  body.app-page.is-authenticated .matching-criteria-panel,
  body.app-page.is-authenticated .matching-criteria-editor {
    scroll-margin-top: 214px;
  }

  body.app-page.is-authenticated .matching-criteria-grid {
    grid-template-columns: 1fr;
  }

  body.app-page.is-authenticated .matching-criteria-panel > h3 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
    line-height: 1.05;
  }

  .landing-page .journey-list article,
  .landing-page .journey-list article:first-child {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
  }

  .landing-page .journey-list article h3,
  .landing-page .journey-list article:nth-child(odd) h3,
  .landing-page .journey-list article:nth-child(even) h3 {
    grid-column: 2;
    margin: 0;
    text-align: left;
  }

  .landing-page .journey-list article span,
  .landing-page .journey-list article:nth-child(odd) span,
  .landing-page .journey-list article:nth-child(even) span {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(29, 69, 71, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
    color: var(--figma-deep, #173f42);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
  }
}
