/* =========================================================
   爱悦 AiYue — standalone dating site
   Palette: warm paper, ink, coral, blush
   ========================================================= */

:root {
  --cream: #f8f2e9;
  --cream-deep: #efe5d8;
  --paper: #fffdf9;
  --ink: #181410;
  --ink-soft: #2b241e;
  --coral: #e6544b;
  --coral-dark: #c73f38;
  --coral-soft: #f0a39b;
  --blush: #f3d9d0;
  --sage: #5c6b57;
  --gold: #b7864f;
  --muted: #766c62;
  --line: rgba(24, 20, 16, 0.13);
  --line-light: rgba(255, 250, 242, 0.2);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --cn: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --r-xl: 34px;
  --r-lg: 24px;
  --r-md: 16px;
  --shadow-soft: 0 24px 70px -40px rgba(24, 20, 16, 0.45);
  --shadow-card: 0 18px 50px -30px rgba(24, 20, 16, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 92% -8%, rgba(230, 84, 75, 0.08), transparent 62%),
    radial-gradient(900px 560px at -8% 24%, rgba(183, 134, 79, 0.09), transparent 60%),
    var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

body.is-locked-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
svg { display: block; }
::selection { background: var(--coral); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 30px;
}

.section-anchor { scroll-margin-top: 100px; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 14px; height: 14px; }
.icon-star { fill: currentColor; stroke: none; }
.heart-btn-icon, .brand-heart, .icon-heart-solid { fill: currentColor; stroke: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.eyebrow.light { color: rgba(255, 249, 240, 0.62); }

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #84a878;
  box-shadow: 0 0 0 4px rgba(132, 168, 120, 0.15);
}

.card-label {
  color: rgba(255, 249, 240, 0.68);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.card-label.light { color: rgba(255, 249, 240, 0.54); }

/* Buttons -------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn .icon { width: 15px; height: 15px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 13px; }
.btn-full { width: 100%; }

.btn-dark { background: var(--ink); color: var(--paper); box-shadow: 0 12px 26px -18px rgba(24, 20, 16, 0.8); }
.btn-dark:hover { background: #30271f; box-shadow: 0 18px 32px -18px rgba(24, 20, 16, 0.8); }
.btn-coral { background: var(--coral); color: #fffaf3; box-shadow: 0 14px 28px -16px rgba(199, 63, 56, 0.7); }
.btn-coral:hover { background: var(--coral-dark); box-shadow: 0 18px 34px -16px rgba(199, 63, 56, 0.7); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fffaf2; }
.btn-outline { border-color: var(--line); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-quiet { padding-inline: 12px; color: var(--muted); }
.btn-quiet:hover { color: var(--ink); }
.btn-text { padding-inline: 6px; color: var(--ink); }
.btn-text .icon { color: var(--coral); }

/* Header --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(24, 20, 16, 0.08);
  background: rgba(248, 242, 233, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 12px;
  background: var(--coral);
  color: #fffaf3;
  box-shadow: 0 8px 16px -10px rgba(199, 63, 56, 0.8);
}
.brand-heart { width: 20px; height: 20px; }
.brand-words { display: flex; flex-direction: column; gap: 1px; }
.brand-words strong {
  font-family: var(--cn);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.08em;
}
.brand-words small {
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.26em;
}

.site-nav { display: flex; align-items: center; gap: 29px; margin-left: auto; }
.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: color 0.2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--coral);
  transition: right 0.3s var(--ease);
}
.site-nav a:hover { color: var(--coral); }
.site-nav a:hover::after { right: 0; }
.nav-price {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-left: 4px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(230, 84, 75, 0.09);
  color: var(--coral);
  font-size: 9.5px;
  font-weight: 800;
  vertical-align: 1px;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-member { display: none; }
body.is-member .header-member { display: inline-flex; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}
.menu-toggle .icon { width: 19px; height: 19px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hero ----------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: stretch;
  gap: 42px;
  padding-top: 55px;
}

.hero-copy { padding: 15px 0 8px; align-self: center; }
.hero-copy h1 {
  margin: 18px 0 21px;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 5.35vw, 5.35rem);
  font-weight: 400;
  line-height: 0.91;
  letter-spacing: -0.05em;
}
.hero-copy h1 em {
  color: var(--coral);
  font-style: italic;
  font-weight: 400;
}
.lede {
  max-width: 445px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
  letter-spacing: -0.005em;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 34px;
}
.avatar-stack { display: flex; align-items: center; padding-left: 2px; }
.avatar-stack img, .avatar-stack span {
  width: 38px;
  height: 38px;
  margin-left: -10px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  object-fit: cover;
}
.avatar-stack img:first-child { margin-left: 0; }
.avatar-stack span {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--cream);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.proof-copy .stars { display: flex; align-items: center; gap: 2px; color: var(--gold); }
.proof-copy .icon-star { width: 11px; height: 11px; }
.proof-copy .stars strong { margin-left: 5px; color: var(--ink); font-size: 11px; }
.proof-copy p { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: 0.01em; }

/* Heart match card ---------------------------------------- */
.heart-card {
  position: relative;
  min-height: 492px;
  padding: 27px 29px 26px;
  overflow: hidden;
  border-radius: var(--r-xl);
  color: #fff8ef;
  background:
    radial-gradient(circle at 88% 7%, rgba(255, 239, 225, 0.24), transparent 31%),
    radial-gradient(circle at 7% 104%, rgba(106, 22, 18, 0.56), transparent 48%),
    linear-gradient(132deg, #ed6256 0%, #e25249 47%, #c93f37 100%);
  box-shadow: 0 36px 70px -46px rgba(174, 48, 42, 0.75);
  isolation: isolate;
}
.heart-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 249, 239, 0.9) 0.65px, transparent 0.65px);
  background-size: 13px 13px;
  -webkit-mask-image: linear-gradient(125deg, #000, transparent 72%);
  mask-image: linear-gradient(125deg, #000, transparent 72%);
}
.heart-card-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(255, 248, 238, 0.19);
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.08);
  color: rgba(255, 249, 240, 0.8);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.live-pill .live-dot { width: 5px; height: 5px; background: #d8e8c9; box-shadow: 0 0 0 3px rgba(216, 232, 201, 0.12); }

.heart-idle {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 188px;
  align-items: center;
  gap: 14px;
  margin-top: 47px;
  padding-bottom: 32px;
}
.heart-copy h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.1vw, 3.15rem);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -0.04em;
}
.heart-copy h2 em { color: #ffe5da; font-style: italic; }
.heart-copy > p {
  max-width: 310px;
  margin-top: 17px;
  color: rgba(255, 248, 238, 0.74);
  font-size: 12px;
  line-height: 1.73;
}
.heart-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: rgba(255, 248, 238, 0.68);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.035em;
}
.heart-hint .icon { width: 13px; height: 13px; color: #ffe1d3; }

.heart-orb-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 188px;
  height: 188px;
  justify-self: end;
}
.heart-ring {
  position: absolute;
  border: 1px solid rgba(255, 248, 238, 0.2);
  border-radius: 50%;
  animation: heartPulse 4.6s var(--ease) infinite;
}
.heart-ring-1 { width: 154px; height: 154px; animation-delay: 0s; }
.heart-ring-2 { width: 182px; height: 182px; animation-delay: 0.5s; }
.heart-ring-3 { width: 210px; height: 210px; animation-delay: 1s; opacity: 0.6; }
@keyframes heartPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.35; }
  50% { transform: scale(1.035); opacity: 0.9; }
}
.heart-btn {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 138px;
  height: 138px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff8ee;
  color: var(--coral);
  box-shadow: 0 22px 34px -17px rgba(82, 16, 13, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.heart-btn::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(230, 84, 75, 0.22);
  border-radius: 50%;
}
.heart-btn:hover {
  transform: scale(1.045) rotate(-2deg);
  box-shadow: 0 28px 40px -18px rgba(82, 16, 13, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}
.heart-btn:active { transform: scale(0.98); }
.heart-btn-icon { width: 41px; height: 41px; filter: drop-shadow(0 5px 7px rgba(199, 63, 56, 0.2)); animation: heartBeat 3.2s ease-in-out infinite; }
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.09); }
  24% { transform: scale(1); }
  36% { transform: scale(1.06); }
}
.heart-btn span {
  color: var(--coral-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.heart-card-foot {
  position: absolute;
  z-index: 2;
  left: 29px;
  right: 29px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 248, 238, 0.18);
  color: rgba(255, 248, 238, 0.62);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.heart-card-foot span { display: inline-flex; align-items: center; gap: 5px; }
.heart-card-foot .icon { width: 11px; height: 11px; }

.heart-doodle {
  position: absolute;
  z-index: 1;
  fill: none;
  stroke: rgba(255, 248, 238, 0.16);
  stroke-width: 1.1;
  pointer-events: none;
}
.heart-doodle-a { width: 155px; height: 155px; right: -54px; bottom: 4px; transform: rotate(-15deg); }
.heart-doodle-b { width: 72px; height: 72px; left: -19px; top: 88px; transform: rotate(18deg); opacity: 0.7; }

/* Heart scan */
.heart-scan {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 365px;
  padding: 35px 0 45px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.scan-orb { position: relative; display: grid; place-items: center; width: 112px; height: 112px; margin-bottom: 22px; }
.scan-orb .icon { width: 39px; height: 39px; fill: #fff8ee; stroke: none; animation: heartBeat 1.25s ease-in-out infinite; }
.scan-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 248, 238, 0.55);
  border-radius: 50%;
  animation: scanRing 1.8s var(--ease) infinite;
}
.scan-ring::before, .scan-ring::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 248, 238, 0.2);
  border-radius: 50%;
}
.scan-ring::before { inset: -20px; }
.scan-ring::after { inset: -40px; }
@keyframes scanRing {
  0% { transform: scale(0.65); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
.scan-title { font-family: var(--serif); font-size: 2.15rem; font-weight: 400; letter-spacing: -0.03em; }
.scan-sub { max-width: 310px; margin-top: 8px; color: rgba(255, 248, 238, 0.68); font-size: 11.5px; line-height: 1.7; }
.dots { display: inline-flex; gap: 2px; margin-left: 4px; }
.dots i { width: 3px; height: 3px; border-radius: 50%; background: #fff8ee; animation: dotBounce 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.35; } 30% { transform: translateY(-4px); opacity: 1; } }
.scan-steps {
  display: flex;
  gap: 8px;
  margin-top: 25px;
}
.scan-steps span {
  padding: 5px 11px;
  border: 1px solid rgba(255, 248, 238, 0.16);
  border-radius: 999px;
  color: rgba(255, 248, 238, 0.42);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.3s;
}
.scan-steps span.is-on { border-color: rgba(255, 248, 238, 0.4); background: rgba(255, 248, 238, 0.1); color: #fff8ee; }

/* Heart result */
.heart-result { position: relative; z-index: 3; }
.match-result {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0 48px;
  animation: resultIn 0.65s var(--ease) both;
}
@keyframes resultIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.match-photo {
  position: relative;
  height: 258px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 248, 238, 0.15);
}
.match-photo img { width: 100%; height: 100%; object-fit: cover; }
.match-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(52, 12, 9, 0.35)); }
.match-score {
  position: absolute;
  bottom: 11px;
  left: 11px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.92);
  color: var(--coral-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.match-info { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; }
.match-info .card-label { color: rgba(255, 248, 238, 0.62); }
.match-info h3 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}
.match-meta { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: rgba(255, 248, 238, 0.65); font-size: 10px; }
.match-meta .icon { width: 12px; height: 12px; }
.match-note {
  max-width: 265px;
  margin-top: 16px;
  color: rgba(255, 248, 238, 0.85);
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
}
.match-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
.match-actions .btn { height: 38px; padding: 0 14px; font-size: 10.5px; }
.match-actions .btn-light { background: #fff8ee; color: var(--coral-dark); }
.match-actions .btn-ghost { border-color: rgba(255, 248, 238, 0.3); color: #fff8ee; background: transparent; }
.match-actions .btn-ghost:hover { border-color: rgba(255, 248, 238, 0.65); }
.match-hearts { position: absolute; right: 6px; top: -6px; color: rgba(255, 248, 238, 0.2); }
.match-hearts .icon { width: 50px; height: 50px; transform: rotate(12deg); }

/* Distance card -------------------------------------------- */
.distance-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(260px, 0.9fr) 205px;
  align-items: center;
  gap: 38px;
  margin-top: 26px;
  padding: 33px 38px;
  overflow: hidden;
  border-radius: var(--r-xl);
  color: var(--cream);
  background:
    radial-gradient(circle at 90% 20%, rgba(230, 84, 75, 0.19), transparent 32%),
    radial-gradient(circle at 10% 100%, rgba(183, 134, 79, 0.13), transparent 44%),
    #1a1511;
  box-shadow: 0 30px 70px -48px rgba(24, 20, 16, 0.9);
  isolation: isolate;
}
.distance-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image: linear-gradient(rgba(255, 249, 240, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 249, 240, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at 84% 50%, #000, transparent 58%);
  mask-image: radial-gradient(circle at 84% 50%, #000, transparent 58%);
}
.distance-copy h2 {
  margin-top: 11px;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 3vw, 3.05rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}
.distance-copy h2 em { color: var(--coral-soft); font-style: italic; }
.distance-copy p { max-width: 355px; margin-top: 13px; color: rgba(255, 249, 240, 0.52); font-size: 11.5px; line-height: 1.72; }

.distance-control { min-width: 0; padding-top: 2px; }
.distance-read { display: flex; align-items: baseline; gap: 8px; }
.distance-read #distanceValue {
  font-family: var(--serif);
  font-size: 4.3rem;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.distance-unit { color: rgba(255, 249, 240, 0.46); font-size: 10px; font-weight: 600; letter-spacing: 0.02em; }

input[type="range"] {
  width: 100%;
  height: 24px;
  margin: 8px 0 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--coral) 0%, var(--coral) var(--range-pct, 48%), rgba(255, 249, 240, 0.15) var(--range-pct, 48%), rgba(255, 249, 240, 0.15) 100%);
}
input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 249, 240, 0.15);
}
input[type="range"]::-moz-range-progress { height: 3px; border-radius: 99px; background: var(--coral); }
input[type="range"]::-webkit-slider-thumb {
  width: 21px;
  height: 21px;
  margin-top: -9px;
  appearance: none;
  -webkit-appearance: none;
  border: 5px solid var(--coral);
  border-radius: 50%;
  background: #fff8ee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}
input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 5px solid var(--coral);
  border-radius: 50%;
  background: #fff8ee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.range-scale { display: flex; justify-content: space-between; margin-top: 2px; color: rgba(255, 249, 240, 0.3); font-size: 8px; font-weight: 600; }
.distance-summary { margin-top: 10px; color: rgba(255, 249, 240, 0.55); font-size: 10px; }
.distance-summary strong { color: var(--cream); font-weight: 800; }

.radar {
  position: relative;
  width: 198px;
  height: 198px;
  justify-self: end;
  border: 1px solid rgba(255, 249, 240, 0.14);
  border-radius: 50%;
}
.radar-circle {
  position: absolute;
  border: 1px solid rgba(255, 249, 240, 0.09);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.radar-circle-1 { width: 67%; height: 67%; }
.radar-circle-2 { width: 34%; height: 34%; }
.radar-circle-3 { width: 88%; height: 88%; border-style: dashed; opacity: 0.55; }
.radar-axis { position: absolute; background: rgba(255, 249, 240, 0.06); }
.radar-axis-x { left: 0; right: 0; top: 50%; height: 1px; }
.radar-axis-y { top: 0; bottom: 0; left: 50%; width: 1px; }
.radar-dots { position: absolute; inset: 0; }
.radar-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px;
  border-radius: 50%;
  background: var(--coral-soft);
  box-shadow: 0 0 0 4px rgba(230, 84, 75, 0.1), 0 0 13px rgba(230, 84, 75, 0.55);
  transition: opacity 0.35s, transform 0.35s;
}
.radar-dot.is-out { opacity: 0.12; transform: scale(0.55); }
.radar-dot.is-you { background: #fff8ee; box-shadow: 0 0 0 4px rgba(255, 248, 238, 0.12); }
.radar-you {
  position: absolute;
  top: 50%; left: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -50%);
  color: rgba(255, 249, 240, 0.65);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.radar-you span { width: 5px; height: 5px; border-radius: 50%; background: #fff8ee; box-shadow: 0 0 0 5px rgba(255, 248, 238, 0.08); }
.radar-label {
  position: absolute;
  right: -8px;
  bottom: 24px;
  display: inline-flex;
  height: 24px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 249, 240, 0.12);
  border-radius: 999px;
  background: #241d18;
  color: rgba(255, 249, 240, 0.74);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Profiles ------------------------------------------------- */
.people-section { padding-top: 96px; scroll-margin-top: 90px; }
.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.section-top h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.2vw, 4.15rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.section-aside {
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
  text-align: right;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 23px;
}
.filters {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.55);
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  transition: 0.25s var(--ease);
}
.filter span { color: rgba(24, 20, 16, 0.38); font-size: 8.5px; font-weight: 800; }
.filter:hover { color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--cream); box-shadow: 0 5px 12px -8px rgba(24, 20, 16, 0.7); }
.filter.is-active span { color: rgba(255, 248, 238, 0.5); }
.shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  transition: 0.2s;
}
.shuffle-btn .icon { width: 14px; height: 14px; }
.shuffle-btn:hover { border-color: var(--line); color: var(--ink); background: rgba(255, 253, 249, 0.5); }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 21px;
}
.profile-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  animation: cardIn 0.55s var(--ease) both;
  cursor: pointer;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.profile-card:hover {
  transform: translateY(-6px);
  border-color: rgba(24, 20, 16, 0.24);
  box-shadow: var(--shadow-card);
}
.profile-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-deep);
}
.profile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.4s;
}
.profile-card:hover .profile-media img { transform: scale(1.045); }
.profile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 11, 8, 0.18) 0%, transparent 22%, transparent 67%, rgba(16, 11, 8, 0.35) 100%);
}
.profile-badges {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.9);
  color: var(--ink);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.badge .icon { width: 10px; height: 10px; color: var(--coral); }
.badge-new { background: rgba(24, 20, 16, 0.82); color: var(--cream); border-color: rgba(255, 255, 255, 0.14); }
.card-like {
  position: absolute;
  z-index: 3;
  top: 11px;
  right: 11px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 251, 245, 0.86);
  color: var(--ink);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: 0.24s var(--ease);
}
.card-like .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.card-like:hover { background: var(--coral); border-color: var(--coral); color: #fff8ee; transform: scale(1.08); }
.card-like.is-liked { background: var(--coral); border-color: var(--coral); color: #fff8ee; }
.card-like.is-liked .icon { fill: currentColor; stroke: none; }
.profile-open {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(24, 20, 16, 0.28);
  color: #fff8ee;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  transform: translateY(4px);
  transition: 0.3s var(--ease);
}
.profile-open .icon { width: 14px; height: 14px; }
.profile-card:hover .profile-open, .profile-card:focus-visible .profile-open { opacity: 1; transform: translateY(0); }

.profile-body { padding: 14px 15px 15px; }
.profile-name { display: flex; align-items: center; gap: 5px; }
.profile-name h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}
.profile-name h3 span { color: var(--muted); font-size: 1.03rem; letter-spacing: -0.02em; }
.icon-verified { width: 15px; height: 15px; color: var(--coral); fill: rgba(230, 84, 75, 0.08); }
.profile-job { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 9.5px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.profile-tags span {
  display: inline-flex;
  height: 23px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(24, 20, 16, 0.09);
  border-radius: 6px;
  background: rgba(248, 242, 233, 0.65);
  color: #5f554c;
  font-size: 8px;
  font-weight: 600;
}
.profile-last { display: flex; align-items: center; gap: 5px; margin-top: 9px; color: #9a9187; font-size: 8px; font-weight: 600; }
.profile-last .dot { width: 4px; height: 4px; border-radius: 50%; background: #9bb18e; }
.profile-last .dot.off { background: #c3b9ad; }

#heart-match, #distance-match, #membership, #discover { scroll-margin-top: 94px; }

.like-face { padding: 0; }
.like-name {
  position: absolute;
  z-index: 2;
  left: 7px;
  bottom: 7px;
  max-width: calc(100% - 34px);
  overflow: hidden;
  color: #fff8ee;
  font-size: 8px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.likes-faces.is-locked .like-name { display: none; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 20px 56px;
  border: 1px dashed rgba(24, 20, 16, 0.18);
  border-radius: var(--r-lg);
  text-align: center;
}
.empty-heart { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: rgba(230, 84, 75, 0.08); color: var(--coral); }
.empty-heart .icon { width: 27px; height: 27px; }
.empty-state h3 { font-family: var(--serif); font-size: 2rem; font-weight: 400; letter-spacing: -0.03em; }
.empty-state p { max-width: 360px; margin: 7px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }

/* Likes ---------------------------------------------------- */
.likes-section { padding-top: 82px; }
.likes-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr) auto;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  padding: 38px 40px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 82% -10%, rgba(230, 84, 75, 0.22), transparent 42%),
    linear-gradient(120deg, #1c1713, #221a15 68%, #2c1b17);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}
.likes-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 22%;
  bottom: -180px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 248, 238, 0.06);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(255, 248, 238, 0.025), 0 0 0 118px rgba(255, 248, 238, 0.018);
}
.likes-copy h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.1vw, 3.15rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}
.likes-copy h2 span { color: var(--coral-soft); }
.likes-copy > p { max-width: 350px; margin-top: 11px; color: rgba(255, 249, 240, 0.5); font-size: 11px; line-height: 1.68; }
.likes-faces {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 146px;
}
.like-face {
  position: relative;
  width: 92px;
  height: 116px;
  margin-left: -17px;
  overflow: hidden;
  border: 3px solid #231b16;
  border-radius: 15px;
  background: var(--ink-soft);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.65);
  transition: transform 0.4s var(--ease), filter 0.4s;
}
.like-face:first-child { margin-left: 0; transform: rotate(-5deg); }
.like-face:nth-child(2) { z-index: 2; transform: translateY(-6px) rotate(1deg); }
.like-face:nth-child(3) { transform: rotate(5deg); }
.like-face img { width: 100%; height: 100%; object-fit: cover; }
.like-face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16, 10, 8, 0.6)); }
.like-face .like-heart {
  position: absolute;
  z-index: 2;
  right: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff8ee;
}
.like-face .like-heart .icon { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.likes-faces.is-locked .like-face img { filter: blur(9px) saturate(0.7); transform: scale(1.1); }
.likes-faces.is-locked .like-face { cursor: pointer; }
.likes-faces.is-locked .like-face .like-heart { display: none; }
.lock-overlay {
  position: absolute;
  z-index: 4;
  top: 50%; left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transform: translate(-50%, -50%);
  color: var(--cream);
}
.lock-overlay span { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid rgba(255, 248, 238, 0.24); border-radius: 50%; background: rgba(24, 20, 16, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lock-overlay .icon { width: 16px; height: 16px; }
.lock-overlay small { font-size: 7px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.likes-faces.is-unlocked .like-face:hover { transform: translateY(-7px) rotate(0); }
.likes-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; min-width: 235px; }
.likes-cta .btn { min-height: 46px; white-space: normal; text-align: center; line-height: 1.2; }
.likes-cta > span { display: inline-flex; align-items: center; gap: 4px; color: rgba(255, 249, 240, 0.42); font-size: 8.5px; }
.likes-cta > span .icon { width: 11px; height: 11px; }

/* Membership ----------------------------------------------- */
.membership-section { padding-top: 27px; padding-bottom: 92px; }
.membership-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.92fr) 296px;
  align-items: center;
  gap: 36px;
  padding: 42px 40px;
  border: 1px solid rgba(24, 20, 16, 0.1);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 0% 100%, rgba(230, 84, 75, 0.12), transparent 42%),
    radial-gradient(circle at 72% 0%, rgba(255, 253, 249, 0.72), transparent 45%),
    linear-gradient(120deg, #f1d8cf, #f6e8dd 52%, #efdcd0);
  box-shadow: 0 30px 70px -48px rgba(105, 53, 40, 0.45);
}
.membership-copy .eyebrow { color: #8f5447; }
.membership-copy h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 3.5vw, 3.55rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.membership-copy h2 em { color: var(--coral-dark); font-style: italic; }
.membership-copy > p { max-width: 360px; margin-top: 14px; color: #735c51; font-size: 11.5px; line-height: 1.72; }
.membership-proof { display: flex; align-items: center; gap: 10px; margin-top: 21px; }
.avatar-stack-sm img, .avatar-stack-sm span { width: 29px; height: 29px; border-color: #f4ddd3; }
.avatar-stack-sm span { font-size: 8px; }
.membership-proof p { color: #836c61; font-size: 8.5px; line-height: 1.45; }

.perk-list { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; }
.perk-list li { display: flex; align-items: flex-start; gap: 9px; }
.perk-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: none;
  border: 1px solid rgba(24, 20, 16, 0.09);
  border-radius: 9px;
  background: rgba(255, 253, 249, 0.5);
  color: var(--coral-dark);
}
.perk-icon .icon { width: 14px; height: 14px; fill: none; }
.perk-icon .icon[href="#i-heart"] { fill: currentColor; stroke: none; }
.perk-list strong { display: block; font-size: 10.5px; font-weight: 800; line-height: 1.3; }
.perk-list small { display: block; margin-top: 3px; color: #876f63; font-size: 8.5px; line-height: 1.4; }

.price-card {
  padding: 23px;
  border: 1px solid rgba(24, 20, 16, 0.1);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 18px 40px -30px rgba(79, 39, 29, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.price-kicker { color: #8f7467; font-size: 8px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.price-line { display: flex; align-items: baseline; margin-top: 2px; color: var(--ink); }
.price-currency { align-self: flex-start; margin-top: 9px; font-family: var(--serif); font-size: 1.2rem; }
.price-amount { font-family: var(--serif); font-size: 3.5rem; font-weight: 400; line-height: 1; letter-spacing: -0.055em; }
.price-period { margin-left: 5px; color: var(--muted); font-size: 9px; font-weight: 600; }
.price-card > p { margin-top: 4px; color: var(--muted); font-size: 8.5px; }
.price-card .btn { margin-top: 15px; height: 44px; font-size: 11px; }
.price-card > small { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 9px; color: #8d8176; font-size: 7.5px; }
.price-card > small .icon { width: 10px; height: 10px; }

/* Footer --------------------------------------------------- */
.site-footer { padding: 50px 0 25px; background: #1a1511; color: var(--cream); }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.9fr; gap: 60px; padding-bottom: 38px; }
.footer-brand .brand-mark { background: var(--coral); }
.footer-brand .brand-words small { color: rgba(255, 248, 238, 0.42); }
.footer-brand > p { margin-top: 16px; color: rgba(255, 249, 240, 0.45); font-family: var(--serif); font-size: 13px; line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-links span { margin-bottom: 4px; color: rgba(255, 249, 240, 0.3); font-size: 8px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-links a { color: rgba(255, 249, 240, 0.65); font-size: 10.5px; transition: color 0.2s; }
.footer-links a:hover { color: #fff8ee; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 19px; border-top: 1px solid rgba(255, 249, 240, 0.09); }
.footer-bottom p { color: rgba(255, 249, 240, 0.32); font-size: 8.5px; }

/* Mobile nav ----------------------------------------------- */
.mobile-nav {
  position: fixed;
  z-index: 55;
  top: 84px;
  left: 16px;
  right: 16px;
  padding: 18px;
  border: 1px solid rgba(24, 20, 16, 0.1);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 30px 60px -22px rgba(24, 20, 16, 0.35);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: menuIn 0.3s var(--ease) both;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 5px;
  border-bottom: 1px solid rgba(24, 20, 16, 0.07);
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.02em;
}
.mobile-nav a span { color: var(--muted); font-family: var(--sans); font-size: 8px; letter-spacing: 0.01em; }
.mobile-nav .btn { margin-top: 16px; }

/* Modals --------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s var(--ease), visibility 0.28s;
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 12, 0.62);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.modal-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 37px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.45);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.35s var(--ease);
  overscroll-behavior: contain;
}
.modal.is-open .modal-panel { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  z-index: 5;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.8);
  color: var(--ink);
  transition: 0.2s;
}
.modal-close .icon { width: 15px; height: 15px; }
.modal-close:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.modal-close-light { background: rgba(24, 20, 16, 0.4); border-color: rgba(255, 255, 255, 0.3); color: #fff8ee; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.join-panel h2 {
  max-width: 390px;
  margin: 9px 0 8px;
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.join-lede { max-width: 380px; margin-bottom: 22px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { color: #50483f; font-size: 9px; font-weight: 800; letter-spacing: 0.045em; text-transform: uppercase; }
.field input, .field select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(24, 20, 16, 0.16);
  border-radius: 10px;
  background: #fffcf7;
  color: var(--ink);
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder { color: #aea69c; }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(230, 84, 75, 0.1);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c73f38; background: #fff7f5; }
.field-error { min-height: 0; color: #b7352f; font-size: 9px; line-height: 1.3; }
.field-error:not(:empty) { min-height: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.select-wrap { position: relative; }
.select-wrap .icon { position: absolute; right: 11px; top: 50%; width: 13px; height: 13px; transform: translateY(-50%) rotate(90deg); pointer-events: none; color: var(--muted); }
.select-wrap select { padding-right: 31px; }
.join-panel .btn-lg { margin-top: 7px; }
.form-fineprint { margin-top: 11px; color: #9b9288; font-size: 8.5px; line-height: 1.55; text-align: center; }
.join-success { padding: 20px 0 5px; text-align: center; }
.success-seal {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff8ee;
  box-shadow: 0 0 0 10px rgba(230, 84, 75, 0.09);
}
.success-seal .icon { width: 31px; height: 31px; fill: currentColor; stroke: none; }
.join-success .eyebrow { justify-content: center; }
.join-success h2 { margin: 9px 0 8px; font-family: var(--serif); font-size: 2.8rem; font-weight: 400; letter-spacing: -0.04em; }
.join-success > p { max-width: 330px; margin: 0 auto 20px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }

/* Profile modal */
.profile-panel { width: min(100%, 955px); padding: 0; overflow: hidden; }
.profile-modal-grid { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); }
.profile-modal-media { position: relative; min-height: 605px; background: var(--cream-deep); }
.profile-modal-media > img { width: 100%; height: 100%; min-height: 605px; max-height: 78vh; object-fit: cover; }
.profile-modal-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(16, 11, 8, 0.12), transparent 38%, rgba(16, 11, 8, 0.35)); }
.profile-modal-badges { position: absolute; z-index: 2; top: 16px; left: 16px; display: flex; gap: 5px; }
.profile-modal-heart { position: absolute; z-index: 2; left: 18px; bottom: 18px; display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; background: rgba(24, 20, 16, 0.28); color: #fff8ee; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.profile-modal-heart .icon { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.profile-modal-body { max-height: 78vh; overflow: auto; padding: 39px 37px 30px; }
.modal-name-line { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.modal-name-line h2 { font-family: var(--serif); font-size: 2.8rem; font-weight: 400; line-height: 0.98; letter-spacing: -0.045em; }
.modal-name-line .icon-verified { width: 21px; height: 21px; }
.modal-job { margin-top: 5px; color: var(--muted); font-size: 11px; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.modal-meta span { display: inline-flex; align-items: center; gap: 4px; height: 25px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; color: #655c53; font-size: 8.5px; font-weight: 600; }
.modal-meta .icon { width: 10px; height: 10px; color: var(--coral); }
.modal-bio { margin-top: 16px; color: #574e45; font-family: var(--serif); font-size: 15px; line-height: 1.65; }
.prompt-card { margin-top: 16px; padding: 14px 16px; border-left: 2px solid var(--coral); border-radius: 0 10px 10px 0; background: #f8f1e7; }
.prompt-card span { color: #8f7b6c; font-size: 8px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.prompt-card p { margin-top: 4px; font-family: var(--serif); font-size: 15px; font-style: italic; line-height: 1.45; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 15px; }
.modal-tags span { display: inline-flex; height: 27px; align-items: center; padding: 0 9px; border: 1px solid rgba(24, 20, 16, 0.1); border-radius: 6px; background: rgba(248, 242, 233, 0.6); color: #5f554c; font-size: 8.5px; font-weight: 600; }
.modal-actions { display: flex; gap: 8px; margin-top: 22px; }
.modal-actions .btn { flex: 1; height: 46px; }
.modal-note { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 11px; color: #9a9187; font-size: 7.5px; }
.modal-note .icon { width: 10px; height: 10px; }

/* Toast ---------------------------------------------------- */
.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 40px);
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(24, 20, 16, 0.94);
  color: var(--cream);
  box-shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.55);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { width: 14px; height: 14px; color: var(--coral-soft); }

/* Responsive ----------------------------------------------- */
@media (max-width: 1180px) {
  .container { padding-inline: 24px; }
  .hero { gap: 28px; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .hero-copy h1 { font-size: clamp(3.35rem, 5.5vw, 4.75rem); }
  .heart-idle { grid-template-columns: minmax(0, 1fr) 166px; }
  .heart-orb-wrap { width: 166px; height: 166px; }
  .heart-btn { width: 124px; height: 124px; }
  .heart-ring-1 { width: 140px; height: 140px; }
  .heart-ring-2 { width: 166px; height: 166px; }
  .heart-ring-3 { width: 190px; height: 190px; }
  .heart-copy h2 { font-size: 2.55rem; }
  .distance-card { grid-template-columns: minmax(0, 1fr) minmax(235px, 0.9fr) 174px; gap: 28px; padding: 30px 32px; }
  .radar { width: 172px; height: 172px; }
  .profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .likes-panel { grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.8fr) auto; gap: 24px; padding: 34px; }
  .like-face { width: 82px; height: 104px; }
  .likes-cta { min-width: 215px; }
  .membership-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr) 270px; gap: 27px; padding: 35px 32px; }
  .price-card { padding: 20px; }
  .price-amount { font-size: 3.15rem; }
}

@media (max-width: 1000px) {
  .site-nav { display: none; }
  .menu-toggle { display: grid; }
  .header-inner { height: 70px; }
  .mobile-nav { top: 78px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; }
  .hero-copy { display: grid; grid-template-columns: 1fr 0.72fr; column-gap: 30px; align-items: end; padding: 0; }
  .hero-copy .eyebrow, .hero-copy h1, .lede, .hero-actions { grid-column: 1; }
  .social-proof { grid-column: 2; grid-row: 2 / span 3; align-self: end; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 0 6px; padding-left: 18px; border-left: 1px solid var(--line); }
  .hero-copy h1 { font-size: clamp(3.7rem, 8.2vw, 5.5rem); margin-bottom: 16px; }
  .heart-card { min-height: 460px; }
  .heart-idle { grid-template-columns: minmax(0, 1fr) 200px; margin-top: 30px; }
  .heart-copy h2 { font-size: 3rem; }
  .heart-orb-wrap { width: 200px; height: 200px; }
  .heart-btn { width: 144px; height: 144px; }
  .heart-ring-1 { width: 162px; height: 162px; }
  .heart-ring-2 { width: 192px; height: 192px; }
  .heart-ring-3 { width: 218px; height: 218px; }
  .distance-card { grid-template-columns: minmax(0, 1fr) minmax(230px, 0.8fr) 160px; gap: 22px; }
  .distance-copy h2 { font-size: 2.5rem; }
  .radar { width: 158px; height: 158px; }
  .section-top h2 { font-size: 3.5rem; }
  .profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
  .likes-panel { grid-template-columns: minmax(0, 1fr) minmax(190px, 0.8fr); row-gap: 22px; }
  .likes-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; }
  .likes-cta .btn { width: auto; }
  .membership-panel { grid-template-columns: 1fr 1fr; gap: 30px; }
  .membership-copy { grid-column: 1; }
  .perk-list { grid-column: 2; grid-row: 1; }
  .price-card { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 25px; padding: 21px 23px; }
  .price-kicker, .price-line, .price-card > p { grid-column: 1; }
  .price-card .btn { grid-column: 2; grid-row: 1 / span 3; margin: 0; width: 245px; }
  .price-card > small { grid-column: 1 / -1; justify-content: flex-start; margin-top: 8px; }
  .profile-modal-grid { grid-template-columns: 0.8fr 1.2fr; }
  .profile-modal-body { padding: 32px 28px 26px; }
  .profile-modal-media, .profile-modal-media > img { min-height: 560px; }
}

@media (max-width: 780px) {
  .container { padding-inline: 18px; }
  .hero-copy { grid-template-columns: 1fr; }
  .social-proof { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; gap: 13px; margin-top: 24px; padding-left: 0; border-left: 0; }
  .hero-copy h1 { font-size: clamp(3.4rem, 11vw, 4.8rem); }
  .hero-actions { margin-top: 22px; }
  .heart-card { min-height: 485px; padding: 22px 21px; }
  .heart-idle { grid-template-columns: 1fr 158px; margin-top: 30px; gap: 5px; }
  .heart-copy h2 { font-size: 2.55rem; }
  .heart-copy > p { max-width: 290px; font-size: 11px; }
  .heart-hint { display: none; }
  .heart-orb-wrap { width: 158px; height: 158px; }
  .heart-btn { width: 120px; height: 120px; }
  .heart-btn-icon { width: 34px; height: 34px; }
  .heart-ring-1 { width: 136px; height: 136px; }
  .heart-ring-2 { width: 158px; height: 158px; }
  .heart-ring-3 { width: 180px; height: 180px; }
  .heart-card-foot { left: 21px; right: 21px; bottom: 18px; font-size: 7.5px; }
  .match-result { grid-template-columns: 145px minmax(0, 1fr); gap: 17px; padding-top: 22px; }
  .match-photo { height: 226px; }
  .match-info h3 { font-size: 2.3rem; }
  .match-note { font-size: 13.5px; }
  .distance-card { grid-template-columns: 1fr 1fr; gap: 24px; padding: 27px 24px; }
  .distance-copy { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; column-gap: 20px; align-items: end; }
  .distance-copy .card-label { grid-column: 1; }
  .distance-copy h2 { grid-column: 1; font-size: 2.6rem; }
  .distance-copy p { grid-column: 1; max-width: 420px; }
  .distance-control { grid-column: 1; }
  .radar { grid-column: 2; width: 174px; height: 174px; justify-self: center; }
  .section-top { flex-direction: column; align-items: flex-start; gap: 9px; }
  .section-top h2 { font-size: 3.25rem; }
  .section-aside { padding: 0; text-align: left; }
  .people-section { padding-top: 70px; }
  .filter-row { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 20px; }
  .filters { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }
  .shuffle-btn { align-self: flex-end; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .profile-body { padding: 12px 12px 13px; }
  .profile-name h3 { font-size: 1.35rem; }
  .profile-tags span:nth-child(n+3) { display: none; }
  .likes-section { padding-top: 62px; }
  .likes-panel { grid-template-columns: 1fr; padding: 28px 24px; gap: 23px; }
  .likes-faces { min-height: 130px; justify-content: flex-start; padding-left: 13px; }
  .like-face { width: 86px; height: 108px; }
  .likes-cta { grid-column: 1; flex-direction: column; align-items: flex-start; gap: 9px; }
  .likes-cta .btn { width: 100%; }
  .membership-section { padding-bottom: 65px; }
  .membership-panel { grid-template-columns: 1fr; padding: 28px 24px; gap: 25px; }
  .membership-copy h2 { font-size: 3rem; }
  .perk-list { grid-column: 1; grid-row: auto; }
  .price-card { grid-column: 1; grid-template-columns: 1fr auto; padding: 20px; }
  .price-card .btn { width: 200px; padding: 0 13px; font-size: 10px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { gap: 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .modal-panel { padding: 29px 23px; border-radius: 24px; }
  .join-panel h2 { font-size: 2.45rem; }
  .profile-panel { padding: 0; max-height: calc(100vh - 24px); }
  .profile-modal-grid { grid-template-columns: 1fr; }
  .profile-modal-media { min-height: 0; height: 285px; }
  .profile-modal-media > img { min-height: 0; height: 285px; max-height: none; object-position: center 28%; }
  .profile-modal-body { max-height: none; overflow: visible; padding: 24px 22px 25px; }
  .modal-name-line h2 { font-size: 2.4rem; }
  .profile-modal-heart { width: 36px; height: 36px; left: 14px; bottom: 14px; }
  .profile-modal-heart .icon { width: 16px; height: 16px; }
}

@media (max-width: 560px) {
  .header-inner { height: 66px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand-heart { width: 18px; height: 18px; }
  .brand-words strong { font-size: 18px; }
  .brand-words small { font-size: 6.5px; }
  .btn-join { height: 38px; padding: 0 13px; font-size: 11px; }
  .btn-join .icon { display: none; }
  .menu-toggle { width: 38px; height: 38px; }
  .mobile-nav { top: 73px; }
  .hero { padding-top: 31px; gap: 25px; }
  .hero-copy h1 { font-size: clamp(3.05rem, 14vw, 4.15rem); line-height: 0.92; margin-top: 15px; }
  .lede { font-size: 12.5px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 7px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-text { height: 38px; }
  .social-proof { margin-top: 19px; }
  .avatar-stack img, .avatar-stack span { width: 34px; height: 34px; }
  .heart-card { min-height: 542px; padding: 20px 18px; border-radius: 27px; }
  .heart-card-head .live-pill { font-size: 8px; padding: 0 8px; height: 23px; }
  .heart-idle { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 24px; padding-bottom: 36px; }
  .heart-copy h2 { font-size: 2.65rem; }
  .heart-copy > p { max-width: 295px; margin-top: 11px; }
  .heart-orb-wrap { align-self: center; width: 174px; height: 174px; margin-top: 2px; }
  .heart-btn { width: 124px; height: 124px; }
  .heart-ring-1 { width: 143px; height: 143px; }
  .heart-ring-2 { width: 168px; height: 168px; }
  .heart-ring-3 { width: 190px; height: 190px; }
  .heart-card-foot { font-size: 7px; letter-spacing: 0.06em; left: 18px; right: 18px; bottom: 15px; padding-top: 12px; }
  .heart-card-foot span:last-child { display: none; }
  .heart-scan { min-height: 420px; }
  .scan-title { font-size: 1.9rem; }
  .match-result { display: flex; flex-direction: column; gap: 16px; padding: 17px 0 50px; }
  .match-photo { width: 100%; height: 196px; }
  .match-info { width: 100%; }
  .match-info h3 { font-size: 2.25rem; }
  .match-note { margin-top: 9px; max-width: 100%; font-size: 13px; }
  .match-actions { margin-top: 14px; }
  .match-hearts { display: none; }
  .distance-card { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 24px 20px; border-radius: 27px; }
  .distance-copy { display: block; }
  .distance-copy h2 { font-size: 2.55rem; }
  .distance-copy p { margin-top: 9px; }
  .distance-control { width: 100%; }
  .distance-read #distanceValue { font-size: 3.8rem; }
  .radar { display: none; }
  .people-section { padding-top: 60px; }
  .section-top h2 { font-size: 3rem; }
  .section-aside { font-size: 10px; }
  .filter-row { margin-bottom: 18px; }
  .filters { padding: 3px; }
  .filter { height: 32px; padding: 0 10px; font-size: 10px; gap: 4px; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .profile-card { border-radius: 17px; }
  .profile-media { aspect-ratio: 0.82; }
  .profile-badges { top: 8px; left: 8px; gap: 3px; }
  .badge { height: 21px; padding: 0 6px; font-size: 7.5px; }
  .badge .icon { width: 8px; height: 8px; }
  .card-like { top: 8px; right: 8px; width: 30px; height: 30px; }
  .card-like .icon { width: 14px; height: 14px; }
  .profile-open { display: none; }
  .profile-body { padding: 10px 10px 11px; }
  .profile-name h3 { font-size: 1.24rem; }
  .profile-name h3 span { font-size: 0.9rem; }
  .profile-job { font-size: 8.5px; margin-top: 3px; }
  .profile-tags { margin-top: 7px; gap: 3px; }
  .profile-tags span { height: 20px; padding: 0 6px; font-size: 7px; }
  .profile-last { margin-top: 7px; font-size: 7px; }
  .likes-panel { padding: 25px 20px; border-radius: 27px; }
  .likes-copy h2 { font-size: 2.35rem; }
  .likes-faces { min-height: 118px; }
  .like-face { width: 78px; height: 98px; margin-left: -19px; }
  .membership-panel { padding: 25px 20px; border-radius: 27px; }
  .membership-copy h2 { font-size: 2.7rem; }
  .perk-list { grid-template-columns: 1fr; gap: 13px; }
  .price-card { display: block; }
  .price-card .btn { width: 100%; margin-top: 13px; }
  .price-card > small { justify-content: center; }
  .price-amount { font-size: 3.2rem; }
  .footer-links { grid-template-columns: 1fr 1fr; row-gap: 27px; }
  .footer-links > div:last-child { grid-column: 1 / -1; }
  .site-footer { padding-top: 39px; }
  .modal { padding: 10px; }
  .modal-panel { max-height: calc(100vh - 20px); padding: 27px 20px; border-radius: 22px; }
  .join-panel h2 { font-size: 2.25rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .profile-panel { padding: 0; }
  .profile-modal-media, .profile-modal-media > img { height: 240px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { flex: none; }
  .toast { bottom: 16px; font-size: 9.5px; padding: 10px 14px; border-radius: 14px; }
}

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