:root {
  color-scheme: light;
  --ink: #17282d;
  --muted: #667579;
  --navy: #17313a;
  --teal: #1f6f68;
  --jade: #74a99d;
  --gold: #b98245;
  --coral: #c75f4b;
  --mist: #edf4f2;
  --paper: #fbfaf6;
  --stone: #eee8df;
  --white: #ffffff;
  --line: rgba(23, 49, 58, 0.14);
  --shadow: 0 24px 70px rgba(23, 49, 58, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(31, 111, 104, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(199, 95, 75, 0.12), transparent 38%),
    var(--paper);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 17px;
}

body.modal-open {
  overflow: hidden;
}

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

button,
select,
label {
  cursor: pointer;
}

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

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  background: rgba(251, 250, 246, 0.84);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1.35rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: grid;
  gap: 8px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 13px 14px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 650;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--mist);
  color: var(--teal);
}

.ghost-action,
.primary-action,
.secondary-action,
.danger-action {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-weight: 750;
}

.ghost-action {
  margin-top: auto;
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--line);
}

.primary-action {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(31, 111, 104, 0.22);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #175c56;
}

.secondary-action {
  background: var(--stone);
  color: var(--ink);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  background: #e3dbcf;
}

.secondary-action.saved {
  background: var(--navy);
  color: var(--white);
}

.danger-action {
  background: #efe1dc;
  color: #9a3828;
}

.danger-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.full {
  width: 100%;
}

main {
  width: min(1180px, calc(100vw - 260px));
  margin: 0 auto;
  padding: 28px;
}

section {
  padding: 42px 0;
}

.app-view {
  display: none;
}

.app-view.active-view {
  display: block;
}

.intro-panel {
  min-height: calc(100vh - 56px);
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: 34px;
  align-items: center;
  padding-top: 0;
}

.intro-panel.active-view {
  display: grid;
}

.intro-copy h1,
.section-heading h2 {
  margin: 0;
  color: var(--navy);
  letter-spacing: 0;
}

.intro-copy h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
}

.intro-copy p:not(.eyebrow),
.section-heading p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.58;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-actions,
.quiz-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.trip-snapshot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 620px;
  box-shadow: var(--shadow);
  background: var(--navy);
}

.trip-snapshot img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.trip-snapshot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 26, 30, 0.78), transparent 56%);
}

.snapshot-copy {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: var(--white);
}

.snapshot-copy span,
.snapshot-copy small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.snapshot-copy strong {
  display: block;
  margin: 6px 0;
  font-size: 1.45rem;
}

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

.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px);
  gap: 22px;
  align-items: start;
  justify-content: center;
}

.quiz-card,
.results-panel,
.request-form {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quiz-card {
  padding: 24px;
}

.quiz-progress {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--teal);
  font-weight: 850;
}

.quiz-progress div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--stone);
}

.quiz-progress i {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 180ms ease;
}

.quiz-step {
  display: none;
}

.quiz-step.active-step {
  display: block;
}

.quiz-step p {
  margin: -4px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}

legend {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 850;
}

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

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

.choice-grid label {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 700;
  transition: border 180ms ease, transform 180ms ease, background 180ms ease;
}

.choice-grid label:has(input:checked) {
  border-color: var(--teal);
  background: var(--mist);
}

.choice-grid label:hover {
  transform: translateY(-1px);
}

input[type="checkbox"] {
  width: 21px;
  height: 21px;
  accent-color: var(--teal);
}

input[type="radio"] {
  width: 21px;
  height: 21px;
  accent-color: var(--teal);
}

.results-panel {
  padding: 22px;
}

.results-panel h3 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.results-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.match-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.match-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.match-list-large {
  gap: 18px;
}

.match-list-large .match-item {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 52px rgba(23, 49, 58, 0.1);
}

.match-item img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--navy);
}

.match-item p {
  color: var(--muted);
  line-height: 1.5;
}

.results-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.5fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.results-hero h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 0.95;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.match-item strong,
.match-item small {
  display: block;
}

.match-item strong {
  margin-top: 10px;
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1.15;
}

.match-item small {
  margin-top: 4px;
  color: var(--muted);
}

.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.filters label,
.request-form label,
.admin-form label,
.admin-gate-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 850;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 14px;
}

textarea {
  resize: vertical;
}

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

.journey-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 48px rgba(23, 49, 58, 0.1);
}

.journey-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.journey-body {
  padding: 16px;
}

.journey-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pill {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
}

.journey-card h3 {
  min-height: 2.6em;
  margin: 0;
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.18;
}

.journey-card p {
  min-height: 4.5em;
  color: var(--muted);
  line-height: 1.46;
}

.journey-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.journey-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.save-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--teal);
  padding: 10px 12px;
  font-weight: 850;
}

.save-button.saved {
  background: var(--teal);
  color: var(--white);
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
}

.detail-modal.open {
  display: block;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 28, 32, 0.48);
  backdrop-filter: blur(8px);
}

.detail-panel {
  position: absolute;
  top: 22px;
  right: 22px;
  bottom: 22px;
  width: min(760px, calc(100vw - 44px));
  overflow: auto;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(7, 18, 22, 0.32);
}

.detail-close {
  position: sticky;
  top: 14px;
  z-index: 2;
  float: right;
  margin: 14px 14px 0 0;
  border: 0;
  border-radius: var(--radius);
  background: rgba(251, 250, 246, 0.9);
  color: var(--navy);
  padding: 9px 12px;
  font-weight: 850;
}

.detail-hero {
  position: relative;
  min-height: 420px;
  background: var(--navy);
}

.detail-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 26, 30, 0.84), rgba(8, 26, 30, 0.08));
}

.detail-hero-copy {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: var(--white);
}

.detail-hero-copy h2 {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.detail-hero-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.detail-content {
  padding: 24px 28px 30px;
}

.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.detail-stat-grid span {
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.detail-stat-grid strong {
  color: var(--teal);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.detail-stat-grid small {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.detail-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.18rem;
}

.detail-section p,
.detail-section li {
  color: var(--muted);
  line-height: 1.55;
}

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

.two-column-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.detail-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 12px;
  padding: 18px 0 0;
  background: linear-gradient(to top, var(--paper) 80%, rgba(251, 250, 246, 0));
}

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

.saved-item,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.saved-item strong,
.saved-item small {
  display: block;
}

.saved-item small,
.empty-state {
  color: var(--muted);
}

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

.feed-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.for-you-feed {
  height: min(760px, calc(100vh - 170px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
  display: grid;
  gap: 18px;
  padding-right: 8px;
}

.feed-card {
  min-height: min(680px, calc(100vh - 190px));
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  scroll-snap-align: start;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.feed-card img {
  width: 100%;
  height: 100%;
  min-height: min(680px, calc(100vh - 190px));
  object-fit: cover;
}

.feed-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 20, 24, 0.88), rgba(7, 20, 24, 0.16) 58%, rgba(7, 20, 24, 0.04));
}

.feed-card-copy {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: var(--white);
}

.feed-card-copy h3 {
  max-width: 680px;
  margin: 12px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 0.95;
}

.feed-card-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.feed-tags span {
  border-radius: 999px;
  background: rgba(237, 244, 242, 0.92);
  color: var(--navy);
  padding: 7px 11px;
  font-size: 0.86rem;
  font-weight: 850;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.feed-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  padding: 7px 10px;
  font-size: 0.86rem;
  font-weight: 850;
}

.feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.feed-link-button {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-radius: var(--radius);
  min-height: 44px;
  padding: 12px 16px;
  font-weight: 850;
}

body.reduced-motion .for-you-feed {
  scroll-snap-type: none;
}

body.compact-mode .journey-card p {
  min-height: auto;
}

body.compact-mode .journey-card img {
  aspect-ratio: 16 / 10;
}

.wide {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--teal);
  font-weight: 850;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-layout.is-locked,
.lead-workspace.is-locked {
  display: none;
}

.admin-gate {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  padding: 22px;
}

.admin-gate[hidden] {
  display: none;
}

.admin-gate strong {
  color: var(--navy);
  font-size: 1.18rem;
}

.admin-gate p {
  color: var(--muted);
  line-height: 1.5;
}

.admin-gate-form {
  display: grid;
  gap: 12px;
}

.admin-list-panel,
.admin-main,
.lead-workspace {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.admin-list-panel {
  position: sticky;
  top: 24px;
  overflow: hidden;
}

.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-panel-heading strong {
  color: var(--navy);
  font-size: 1.04rem;
}

.admin-panel-heading span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-journey-list {
  max-height: 620px;
  overflow: auto;
  display: grid;
}

.admin-journey-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 14px 16px;
  text-align: left;
}

.admin-journey-row:hover,
.admin-journey-row.selected {
  background: var(--mist);
}

.admin-journey-row strong,
.admin-journey-row small {
  display: block;
}

.admin-journey-row strong {
  color: var(--navy);
}

.admin-journey-row small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.25;
}

.admin-journey-row em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--stone);
  color: var(--teal);
  padding: 5px 8px;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 850;
}

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

.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.settings-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 850;
}

.settings-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.private-access-card {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(0, 105, 100, 0.2);
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(135deg, rgba(229, 239, 235, 0.95), rgba(247, 239, 228, 0.86));
}

.private-access-card strong {
  color: var(--navy);
}

.private-access-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.toggle-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

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

.lead-inbox {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.lead-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.lead-toolbar label {
  width: min(260px, 100%);
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 850;
}

.lead-total {
  color: var(--muted);
  font-weight: 850;
}

.lead-total strong {
  color: var(--teal);
  font-size: 1.3rem;
}

.lead-list {
  display: grid;
  gap: 12px;
}

.lead-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px;
}

.lead-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

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

.lead-card-top strong {
  color: var(--navy);
  font-size: 1.06rem;
}

.lead-card-top small {
  margin-top: 4px;
  color: var(--muted);
}

.lead-card-top label {
  display: grid;
  gap: 5px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  min-width: 160px;
}

.lead-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.lead-details div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--paper);
}

.lead-details dt {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.lead-details dd {
  margin: 5px 0 0;
  color: var(--ink);
  line-height: 1.35;
}

.lead-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

  .sidebar {
    position: fixed;
    z-index: 5;
    inset: auto 0 0;
    height: auto;
    padding: 10px;
    border-top: 1px solid var(--line);
    border-right: 0;
    flex-direction: row;
    align-items: center;
  }

  .brand small,
  .ghost-action {
    display: none;
  }

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

  .nav-links {
    margin-left: auto;
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .nav-links a {
    white-space: nowrap;
    padding: 9px;
    font-size: 0.88rem;
  }

  main {
    width: min(100%, 760px);
    padding: 18px 16px 92px;
  }

  .intro-panel,
  .intro-panel.active-view,
  .quiz-layout {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    min-height: auto;
    padding-top: 22px;
  }

  .trip-snapshot,
  .trip-snapshot img {
    min-height: 390px;
  }

  .results-panel {
    position: static;
  }

  .choice-grid,
  .choice-grid.compact,
  .filters,
  .journey-grid,
  .match-list-large .match-item,
  .results-hero,
  .saved-list,
  .request-form,
  .settings-form,
  .admin-layout,
  .admin-gate,
  .admin-form,
  .lead-details,
  .detail-stat-grid,
  .two-column-detail {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  .admin-list-panel {
    position: static;
  }

  .lead-toolbar,
  .lead-card-top,
  .private-access-card {
    display: grid;
  }

  .for-you-feed {
    height: calc(100vh - 150px);
  }

  .feed-card,
  .feed-card img {
    min-height: calc(100vh - 170px);
  }

  .detail-panel {
    inset: auto 0 0;
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .detail-hero,
  .detail-hero img {
    min-height: 360px;
    height: 360px;
  }

  .detail-actions {
    display: grid;
  }
}

@media (max-width: 560px) {
  .intro-copy h1 {
    font-size: 3rem;
  }

  .intro-actions,
  .quiz-controls {
    display: grid;
  }

  .sidebar {
    gap: 8px;
  }

  .brand strong {
    display: none;
  }

  .nav-links a {
    font-size: 0.82rem;
  }
}
