:root {
  --ink: #14253e;
  --muted: #607289;
  --soft-ink: #31445d;
  --mist: #eaf4f7;
  --sand: #f5ede1;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-deep: rgba(255, 255, 255, 0.96);
  --panel: rgba(248, 251, 252, 0.9);
  --line: rgba(20, 37, 62, 0.12);
  --line-strong: rgba(20, 37, 62, 0.2);
  --accent: #ff6f4f;
  --accent-deep: #d45434;
  --sea: #2a677b;
  --sea-deep: #183b52;
  --success: #2f8a62;
  --shadow: 0 24px 70px rgba(16, 36, 60, 0.14);
  --shadow-soft: 0 14px 35px rgba(16, 36, 60, 0.08);
  --radius-xl: 2rem;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.8rem;
  --content-width: min(1320px, calc(100vw - 3rem));
  --hero-width: min(1180px, calc(100vw - 3rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 111, 79, 0.12), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(42, 103, 123, 0.14), transparent 26rem),
    linear-gradient(180deg, #f7fbfd 0%, #f3ede5 52%, #fffaf5 100%);
}

body.modal-open {
  overflow: hidden;
}

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

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

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

button,
select {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  width: var(--hero-width);
  margin: 1.25rem auto 0;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 55px rgba(16, 36, 60, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sea), #90d8de);
  color: white;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 0.14rem;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-nav {
  display: inline-flex;
  gap: 1.35rem;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.header-session {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3rem;
  justify-content: flex-end;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(212, 84, 52, 0.26);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button,
.member-chip,
.mode-pill,
.city-pill,
.auth-tab,
.demo-login-button,
.card-tag,
.save-toggle {
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
}

.button:hover,
.mode-pill:hover,
.city-pill:hover,
.auth-tab:hover,
.demo-login-button:hover,
.save-toggle:hover {
  transform: translateY(-1px);
}

.button:disabled,
.save-toggle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 30px rgba(212, 84, 52, 0.26);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
  color: var(--ink);
}

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

.header-session .button-ghost {
  min-height: auto;
  padding: 0.2rem 0.3rem;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.header-session .nav-cta:hover {
  transform: translateY(-1px);
}

.button-block {
  width: 100%;
}

.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.member-chip strong {
  display: block;
  font-size: 0.95rem;
}

.member-chip span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 8.3rem 0 3rem;
  overflow: clip;
  background:
    linear-gradient(90deg, rgba(15, 28, 49, 0.72) 0%, rgba(15, 28, 49, 0.38) 40%, rgba(15, 28, 49, 0.18) 100%),
    url("https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-wash {
  position: absolute;
  inset: auto auto -12rem -8rem;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(255, 111, 79, 0.42) 0%, rgba(255, 111, 79, 0) 70%);
  filter: blur(22px);
}

.hero-inner,
.search-dock,
.city-strip {
  width: var(--hero-width);
  margin: 0 auto;
}

.workspace-section,
.path-section,
.philosophy-section,
.trust-section,
.faq-section,
.cta-section,
.auth-stack,
.matching,
.proof-band,
.site-footer {
  width: var(--content-width);
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: 2rem;
  align-items: start;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.section-kicker {
  color: var(--sea);
}

.hero h1,
.section-intro h2,
.matching-copy h3,
.cta-card h2,
.auth-dialog-head h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 4.1vw, 3.95rem);
  line-height: 0.96;
  color: white;
}

.hero-body {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-proof,
.detail-list,
.hero-floating-note ul {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-proof li {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-auth-note {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.hero-metrics {
  display: flex;
  gap: 0.95rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.hero-metrics article {
  min-width: 9.2rem;
  padding: 1rem 1.05rem;
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
}

.hero-metrics strong {
  display: block;
  font-size: 1.8rem;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.hero-visual {
  min-height: 32rem;
  margin-top: 0.35rem;
}

.hero-photo {
  position: absolute;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-photo-large {
  inset: 0.9rem 0 5rem 5rem;
  border-radius: 2.8rem;
}

.hero-photo-small {
  width: min(17rem, 45%);
  inset: auto auto 0.4rem 0;
  border-radius: 2rem;
  border: 0.5rem solid rgba(255, 255, 255, 0.9);
}

.hero-photo img,
.matching-photo img,
.result-media img,
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-note {
  position: absolute;
  right: 1.35rem;
  top: 2.15rem;
  width: min(17.5rem, 68%);
  padding: 1.05rem 1.15rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(10, 24, 46, 0.18);
}

.hero-floating-note span {
  display: block;
  color: var(--sea);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  margin-bottom: 0.45rem;
}

.hero-floating-note strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.45;
}

.hero-floating-note ul {
  display: grid;
  gap: 0.5rem;
}

.hero-floating-note li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--soft-ink);
}

.hero-floating-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.search-dock {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: end;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 2rem;
  box-shadow: 0 18px 55px rgba(14, 28, 48, 0.18);
  backdrop-filter: blur(18px);
}

.search-modes {
  display: inline-flex;
  padding: 0.35rem;
  background: rgba(20, 37, 62, 0.06);
  border-radius: 999px;
  flex-wrap: wrap;
}

.mode-pill {
  min-height: 2.7rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.mode-pill.is-active {
  background: white;
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(16, 36, 60, 0.08);
}

.search-field,
.stack-form label,
.auth-form label,
.toolbar-sort {
  display: grid;
  gap: 0.55rem;
}

.search-field span,
.stack-form span,
.auth-form span,
.search-summary,
.toolbar-sort span {
  font-size: 0.83rem;
  color: var(--muted);
}

.search-field input,
.search-field select,
.stack-form input,
.stack-form select,
.stack-form textarea,
.auth-form input,
.auth-form select,
.auth-form textarea,
.toolbar-sort select,
.mini-form input,
.mini-form select,
.mini-form textarea {
  min-height: 3.35rem;
  width: 100%;
  padding: 0 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.stack-form textarea,
.auth-form textarea,
.mini-form textarea {
  min-height: 8rem;
  padding: 0.9rem 1rem;
}

.search-submit {
  min-width: 9.5rem;
}

.search-summary {
  grid-column: 2 / 5;
  margin: 0;
}

.path-section,
.city-strip,
.philosophy-section,
.workspace-section,
.trust-section,
.auth-stack,
.matching,
.faq-section {
  padding-top: 6rem;
}

.section-intro {
  max-width: 56rem;
}

.section-intro-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
}

.section-intro-inline h2 {
  max-width: 36rem;
}

.section-intro h2,
.matching-copy h3,
.cta-card h2,
.auth-dialog-head h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.98;
}

.section-intro p:last-child,
.matching-copy p,
.cta-card p,
.helper-text,
.auth-dialog-head p {
  color: var(--muted);
  line-height: 1.8;
}

section[id] {
  scroll-margin-top: 7.5rem;
}

.path-grid,
.pillar-grid,
.trust-points,
.faq-list {
  margin-top: 2rem;
}

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

.path-card,
.pillar,
.trust-point,
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.path-card,
.pillar,
.trust-point {
  border-radius: 1.8rem;
}

.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-height: 20rem;
  padding: 1.35rem;
  overflow: hidden;
}

.path-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.32rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--sea), #90d8de);
}

.path-card[data-intent="find-room"]::after {
  background: linear-gradient(180deg, #2f8a62, #9dd6ba);
}

.path-card[data-intent="find-roommate"]::after {
  background: linear-gradient(180deg, var(--sea), #8fd7de);
}

.path-card[data-intent="offer-room"]::after {
  background: linear-gradient(180deg, var(--accent), #ffc298);
}

.path-card:hover,
.pillar:hover,
.trust-point:hover,
.faq-item:hover,
.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(16, 36, 60, 0.12);
}

.path-card-top {
  display: flex;
  justify-content: flex-start;
}

.path-card h3,
.pillar h3,
.trust-point h3,
.faq-item summary {
  margin: 0;
}

.path-card h3,
.pillar h3,
.trust-point h3 {
  font-family: "Fraunces", serif;
  font-size: 1.55rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.path-card p,
.pillar p,
.trust-point p {
  margin: 0;
  line-height: 1.75;
  color: var(--soft-ink);
}

.path-card-foot {
  margin-top: auto;
  color: var(--muted);
}

.path-card .button {
  align-self: flex-start;
}

.intent-chip {
  border: 1px solid transparent;
}

.path-card .intent-chip,
.result-kind.intent-chip,
.status-pill.intent-chip {
  background: rgba(255, 255, 255, 0.86);
}

.intent--find-room {
  border-color: rgba(47, 138, 98, 0.22);
  background: rgba(47, 138, 98, 0.14);
  color: #236b4c;
}

.intent--find-roommate {
  border-color: rgba(42, 103, 123, 0.22);
  background: rgba(42, 103, 123, 0.14);
  color: var(--sea-deep);
}

.intent--offer-room {
  border-color: rgba(255, 111, 79, 0.22);
  background: rgba(255, 111, 79, 0.14);
  color: var(--accent-deep);
}

.mode-pill[data-mode="find-room"].is-active {
  background: rgba(47, 138, 98, 0.14);
  color: #236b4c;
}

.mode-pill[data-mode="find-roommate"].is-active {
  background: rgba(42, 103, 123, 0.14);
  color: var(--sea-deep);
}

.mode-pill[data-mode="offer-room"].is-active {
  background: rgba(255, 111, 79, 0.14);
  color: var(--accent-deep);
}

.philosophy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 1.2rem;
  align-items: start;
}

.pillar-grid,
.trust-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.pillar,
.trust-point {
  padding: 1.35rem;
}

.pillar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 252, 0.88)),
    linear-gradient(135deg, rgba(255, 111, 79, 0.05), rgba(42, 103, 123, 0.08));
}

.pillar span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: rgba(42, 103, 123, 0.08);
  color: var(--sea);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pillar h3,
.trust-point h3 {
  margin-top: 0.85rem;
}

.result-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sea);
}

.note-panel {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1.1rem;
  background: rgba(42, 103, 123, 0.08);
  color: var(--soft-ink);
  line-height: 1.7;
}

.intent-fieldset {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(20, 37, 62, 0.03);
}

.intent-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 700;
  color: var(--ink);
}

.intent-pill-group {
  display: grid;
  gap: 0.75rem;
}

.intent-choice {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 1.05rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.intent-choice input {
  margin-top: 0.25rem;
  accent-color: var(--sea);
}

.intent-choice span {
  display: grid;
  gap: 0.15rem;
}

.intent-choice strong {
  color: var(--ink);
}

.intent-choice small {
  color: var(--muted);
  line-height: 1.5;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  padding: 0 1.15rem;
  border-radius: 1.4rem;
}

.faq-item[open] {
  border-color: rgba(42, 103, 123, 0.18);
  box-shadow: 0 18px 42px rgba(16, 36, 60, 0.1);
}

.faq-item summary {
  position: relative;
  padding: 1.15rem 2rem 1.15rem 0;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 700;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sea);
  font-size: 1.25rem;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  line-height: 1.8;
}

.city-rail {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  overflow: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: none;
}

.city-rail::-webkit-scrollbar,
.listing-grid::-webkit-scrollbar,
.activity-log::-webkit-scrollbar {
  display: none;
}

.city-pill {
  flex: 0 0 auto;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 37, 62, 0.08);
  background: var(--surface-strong);
  box-shadow: 0 10px 25px rgba(16, 36, 60, 0.05);
}

.workspace-shell {
  display: grid;
  grid-template-columns: minmax(17rem, 21rem) minmax(0, 1fr) minmax(18rem, 23rem);
  gap: 1.25rem;
  margin-top: 2.2rem;
  align-items: start;
}

.workspace-card,
.feature-panel,
.proof-band,
.cta-card,
.auth-dialog {
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.workspace-card,
.feature-panel,
.detail-card,
.cta-card {
  border-radius: 1.8rem;
}

.workspace-card {
  padding: 1.25rem;
}

.workspace-sidebar {
  display: grid;
  gap: 1rem;
}

.workspace-main {
  display: grid;
  gap: 1rem;
}

.workspace-detail {
  position: relative;
}

.detail-card {
  position: sticky;
  top: 6.7rem;
  min-height: 36rem;
  padding: 0;
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-head h3,
.workspace-toolbar h3,
.feature-panel h3 {
  margin: 0;
  font-size: 1.38rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.stack-form {
  display: grid;
  gap: 0.95rem;
}

.stack-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.95rem;
}

.stack-form fieldset:disabled {
  opacity: 0.55;
}

.workspace-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.25rem;
}

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

.result-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.7rem;
  background: var(--surface-strong);
  border: 1px solid rgba(20, 37, 62, 0.08);
  box-shadow: 0 16px 35px rgba(16, 36, 60, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.result-card.is-selected {
  border-color: rgba(255, 111, 79, 0.5);
  box-shadow: 0 18px 40px rgba(212, 84, 52, 0.12);
}

.result-media {
  position: relative;
  height: 14.5rem;
}

.result-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(20, 37, 62, 0.46));
}

.result-topline {
  position: absolute;
  inset: 1rem 1rem auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.result-badge,
.result-kind,
.result-price,
.card-tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.result-badge,
.result-kind {
  min-height: 2rem;
  padding: 0 0.85rem;
}

.result-badge {
  background: rgba(255, 255, 255, 0.9);
}

.result-kind {
  background: rgba(20, 37, 62, 0.74);
  color: white;
}

.save-toggle {
  position: absolute;
  inset: 1rem 1rem auto auto;
  z-index: 1;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.save-toggle.is-saved {
  background: var(--accent);
  color: white;
}

.result-price {
  position: absolute;
  inset: auto auto 1rem 1rem;
  z-index: 1;
  min-height: 2.25rem;
  padding: 0 0.9rem;
  background: rgba(20, 37, 62, 0.82);
  color: white;
}

.result-body {
  padding: 1.1rem 1.1rem 1.2rem;
}

.result-body h4,
.result-body p,
.detail-body h3,
.detail-body p,
.session-empty h4,
.demo-account h4,
.feature-panel h3,
.match-step h3 {
  margin: 0;
}

.result-body h4 {
  font-size: 1.12rem;
  line-height: 1.35;
}

.result-meta,
.result-author,
.detail-meta,
.detail-author,
.activity-item time,
.session-empty p,
.demo-account p,
.mini-label,
.auth-note {
  color: var(--muted);
}

.result-meta,
.detail-meta {
  margin-top: 0.55rem;
  line-height: 1.55;
}

.result-copy,
.detail-copy {
  margin-top: 0.8rem;
  color: var(--soft-ink);
  line-height: 1.7;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.card-tag,
.status-pill {
  min-height: 2rem;
  padding: 0 0.75rem;
  background: rgba(42, 103, 123, 0.08);
  color: var(--sea);
}

.result-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 1rem;
}

.inline-link {
  color: var(--sea);
  font-weight: 700;
}

.empty-state,
.detail-empty,
.session-empty {
  padding: 1.5rem;
  border-radius: 1.3rem;
  background: rgba(42, 103, 123, 0.05);
  color: var(--soft-ink);
  line-height: 1.8;
}

.detail-empty {
  margin: 1.25rem;
}

.detail-layout {
  display: grid;
}

.detail-media {
  height: 17rem;
}

.detail-body {
  padding: 1.2rem 1.25rem 1.35rem;
}

.detail-body h3 {
  font-size: 1.55rem;
  line-height: 1.16;
}

.detail-stats,
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.detail-stats div,
.member-grid div {
  padding: 0.9rem 1rem;
  border-radius: 1.1rem;
  background: rgba(20, 37, 62, 0.04);
}

.detail-stats span,
.member-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.detail-stats strong,
.member-grid strong {
  display: block;
  margin-top: 0.3rem;
}

.detail-callout {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1.1rem;
  background: rgba(255, 111, 79, 0.08);
  color: var(--soft-ink);
  line-height: 1.7;
}

.member-summary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.member-avatar {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sea), #90d8de);
  color: white;
  font-weight: 700;
}

.member-summary h4 {
  margin: 0;
  font-size: 1.08rem;
}

.member-summary p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.mini-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.mini-form label {
  display: grid;
  gap: 0.5rem;
}

.mini-label {
  font-size: 0.82rem;
}

.demo-accounts {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.demo-account {
  padding: 0.95rem 1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.demo-account h4 {
  font-size: 1rem;
}

.demo-account p {
  margin: 0.35rem 0 0.85rem;
  line-height: 1.7;
}

.demo-login-button {
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 700;
}

.activity-wrap {
  margin-top: 1.2rem;
}

.activity-wrap h4 {
  margin: 0 0 0.8rem;
}

.activity-log {
  display: grid;
  gap: 0.7rem;
  max-height: 14rem;
  overflow: auto;
}

.activity-item {
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.activity-item p {
  margin: 0;
  line-height: 1.65;
}

.activity-item time {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature-panel {
  padding: 1.4rem;
}

.feature-panel span,
.match-step span {
  color: var(--sea);
  font-weight: 700;
}

.feature-panel h3,
.match-step h3 {
  margin-top: 0.8rem;
}

.feature-panel p,
.match-step p {
  margin-top: 0.6rem;
  color: var(--muted);
  line-height: 1.8;
}

.matching-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.match-step {
  padding: 1.35rem;
  border-top: 1px solid rgba(20, 37, 62, 0.12);
}

.matching-scene {
  margin-top: 2.5rem;
  padding: 1.1rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: 1.1rem;
  background: var(--surface);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.matching-copy {
  padding: 1.4rem;
}

.detail-list {
  display: grid;
  gap: 0.85rem;
}

.detail-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink);
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.matching-photo {
  min-height: 28rem;
  overflow: hidden;
  border-radius: 1.6rem;
}

.proof-band {
  margin-top: 6rem;
  padding: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(20, 37, 62, 0.98), rgba(42, 103, 123, 0.92));
  color: white;
  box-shadow: 0 22px 50px rgba(10, 24, 46, 0.2);
}

.proof-quote {
  max-width: 36rem;
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.35;
}

.proof-metrics {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.proof-metrics div {
  min-width: 8rem;
}

.proof-metrics strong {
  display: block;
  font-size: 2rem;
}

.proof-metrics span {
  color: rgba(255, 255, 255, 0.78);
}

.cta-section {
  padding: 6rem 0;
}

.cta-card {
  padding: 3rem;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 245, 0.84)),
    url("https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1600&q=80") center/cover;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 28, 45, 0.55);
  backdrop-filter: blur(8px);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(42rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  padding: 1.4rem;
  overflow: auto;
  border-radius: 2rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.auth-tabs {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.3rem;
  flex-wrap: wrap;
}

.auth-tab {
  min-height: 2.8rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
}

.auth-tab.is-active {
  background: var(--sea);
  color: white;
  border-color: var(--sea);
}

.auth-panels {
  margin-top: 1.2rem;
}

.auth-form {
  display: none;
  gap: 0.95rem;
}

.auth-form.is-active {
  display: grid;
}

.form-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 60;
  min-width: min(32rem, calc(100vw - 1.5rem));
  max-width: min(32rem, calc(100vw - 1.5rem));
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(20, 37, 62, 0.96);
  color: white;
  box-shadow: 0 18px 45px rgba(16, 36, 60, 0.2);
  transform: translate(-50%, 2rem);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .path-grid,
  .trust-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .philosophy-layout {
    grid-template-columns: 1fr;
  }

  .workspace-shell {
    grid-template-columns: minmax(17rem, 20rem) minmax(0, 1fr);
  }

  .workspace-detail {
    grid-column: 1 / -1;
  }

  .detail-card {
    position: static;
  }

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

@media (max-width: 1024px) {
  .site-header,
  .hero-inner,
  .search-dock,
  .matching-grid,
  .matching-scene,
  .proof-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    width: calc(100vw - 1.4rem);
    padding: 0.9rem 1rem;
    border-radius: 1.6rem;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero-inner {
    gap: 3rem;
  }

  .hero-visual {
    min-height: 26rem;
  }

  .hero-photo-large {
    inset: 0 0 4rem 4rem;
  }

  .search-dock {
    grid-template-columns: 1fr;
  }

  .search-summary {
    grid-column: auto;
  }

  .section-intro-inline,
  .workspace-toolbar,
  .proof-band,
  .site-footer {
    align-items: start;
  }

  .workspace-shell,
  .listing-grid,
  .matching-scene,
  .pillar-grid,
  .trust-points {
    grid-template-columns: 1fr;
  }

  .detail-stats,
  .member-grid,
  .form-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --content-width: calc(100vw - 1.25rem);
  }

  .site-header {
    margin-top: 0.6rem;
    width: calc(100vw - 1rem);
    padding: 0.75rem 0.8rem;
    gap: 0.6rem;
  }

  .header-session {
    width: auto;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero h1 {
    max-width: 7.2ch;
    font-size: clamp(2.3rem, 13vw, 3.35rem);
    line-height: 0.95;
  }

  .hero-body,
  .hero-auth-note {
    max-width: none;
    font-size: 0.98rem;
  }

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

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

  .hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .auth-grid {
    display: grid;
  }

  .hero-visual {
    min-height: 21rem;
  }

  .hero-photo-large {
    inset: 0 0 3.4rem 2rem;
  }

  .hero-photo-small {
    width: 40%;
  }

  .hero-floating-note {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 1rem;
    width: auto;
    padding: 0.85rem 0.95rem;
  }

  .hero-floating-note strong {
    font-size: 0.95rem;
  }

  .hero-metrics article {
    min-width: 0;
    padding: 0.8rem 0.75rem;
  }

  .hero-metrics strong {
    font-size: 1.35rem;
  }

  .hero-metrics span {
    font-size: 0.78rem;
  }

  .search-dock {
    margin-top: 1.5rem;
    padding: 0.85rem;
    border-radius: 1.35rem;
  }

  .search-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .mode-pill {
    width: 100%;
    padding: 0 0.55rem;
    justify-content: center;
    font-size: 0.85rem;
  }

  .workspace-card,
  .cta-card {
    padding: 1rem;
  }

  .detail-card {
    min-height: auto;
  }

  .result-body {
    padding: 1rem;
  }

  .result-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 2rem;
  }

  .path-section,
  .city-strip,
  .philosophy-section,
  .workspace-section,
  .auth-stack,
  .trust-section,
  .matching,
  .faq-section,
  .cta-section {
    padding-top: 4rem;
  }

  .cta-card,
  .proof-band,
  .auth-dialog {
    padding: 1.2rem;
  }

  .proof-quote {
    font-size: 1.25rem;
  }

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

@media (max-width: 480px) {
  .brand {
    gap: 0.65rem;
  }

  .brand-mark {
    width: 2.1rem;
    height: 2.1rem;
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .brand-copy span {
    font-size: 0.64rem;
  }

  .header-session .button-ghost[data-auth-open="login"],
  .header-session .button-ghost[data-logout] {
    display: none;
  }

  .header-session .nav-cta,
  .header-session .button-secondary {
    min-height: 2.75rem;
    padding: 0 0.9rem;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 6.6rem;
    min-height: auto;
  }

  .hero-inner {
    gap: 1.8rem;
  }

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

  .hero-proof li {
    padding: 0.62rem 0.85rem;
  }

  .hero-photo-large {
    inset: 0 0 2.75rem 1rem;
  }

  .hero-photo-small {
    width: 46%;
    border-width: 0.35rem;
  }

  .search-field input,
  .search-field select,
  .stack-form input,
  .stack-form select,
  .stack-form textarea,
  .auth-form input,
  .auth-form select,
  .auth-form textarea,
  .toolbar-sort select,
  .mini-form input,
  .mini-form select,
  .mini-form textarea {
    min-height: 3.05rem;
  }

  .proof-metrics {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
}

.intent--roommate-room {
  border-color: rgba(255, 111, 79, 0.22);
  background: rgba(255, 111, 79, 0.14);
  color: var(--accent-deep);
}

.mode-pill[data-mode="roommate-room"].is-active {
  background: rgba(255, 111, 79, 0.14);
  color: var(--accent-deep);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: start;
}

.footer-brand,
.footer-column {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.footer-brand p,
.footer-column p {
  margin: 0;
  line-height: 1.75;
}

.footer-mark {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.28rem;
  line-height: 1.1;
  color: var(--ink);
}

.footer-note {
  font-size: 0.84rem;
}

.footer-column h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.footer-column a {
  color: var(--soft-ink);
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--ink);
}

body.policy-body {
  min-height: 100svh;
}

body.policy-body .site-header {
  width: var(--content-width);
}

.policy-main {
  width: var(--content-width);
  margin: 0 auto;
  padding: 8.8rem 0 4rem;
}

.policy-hero {
  padding: 2rem;
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 238, 0.88)),
    linear-gradient(135deg, rgba(255, 111, 79, 0.06), rgba(42, 103, 123, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.policy-hero h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.35rem, 5.2vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.policy-hero p {
  margin: 1rem 0 0;
  max-width: 52rem;
  color: var(--soft-ink);
  line-height: 1.85;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.policy-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: rgba(20, 37, 62, 0.06);
  color: var(--soft-ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.policy-shell {
  display: grid;
  grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 1.6rem;
  align-items: start;
}

.policy-nav,
.policy-article {
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  border-radius: 1.9rem;
}

.policy-nav {
  position: sticky;
  top: 6.65rem;
  padding: 1.3rem;
  display: grid;
  gap: 0.8rem;
}

.policy-nav a {
  color: var(--soft-ink);
  line-height: 1.5;
}

.policy-nav a:hover,
.policy-nav a:focus-visible {
  color: var(--ink);
}

.policy-links {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.policy-article {
  padding: 1.5rem;
}

.policy-section + .policy-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.policy-section h2 {
  margin: 0 0 0.95rem;
  font-family: "Fraunces", serif;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.policy-section p {
  margin: 0 0 1rem;
  color: var(--soft-ink);
  line-height: 1.9;
}

.policy-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--soft-ink);
}

.policy-list li {
  margin-bottom: 0.85rem;
  line-height: 1.85;
}

.policy-callout {
  margin-top: 1.15rem;
  padding: 1rem 1.05rem;
  border-radius: 1.2rem;
  background: rgba(255, 111, 79, 0.08);
  color: var(--soft-ink);
  line-height: 1.75;
}

.policy-footer {
  margin-top: 0;
  padding-top: 0.5rem;
}

@media (max-width: 1180px) {
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .policy-shell {
    grid-template-columns: 1fr;
  }

  .policy-nav {
    position: static;
  }
}

@media (max-width: 720px) {
  .policy-main {
    padding-top: 7.8rem;
  }

  .policy-hero,
  .policy-article,
  .policy-nav {
    padding: 1.25rem;
  }

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