/* ==========================================================================
   HAVEN — Design System
   Soft, calm, premium. Completely separate from the neon lounge parent.
   ========================================================================== */

:root {
  /* Surfaces */
  --linen: #f6f1ea;
  --linen-deep: #efe7dc;
  --paper: #fffaf5;
  --paper-elevated: #ffffff;
  --mist: #e8e2d8;
  --ink: #1c1917;
  --ink-soft: #3f3a36;
  --ink-muted: #6b635b;
  --ink-faint: #9a9187;

  /* Brand accents — earthy, inviting, not dating-app purple/pink neon */
  --clay: #c46a4a;
  --clay-deep: #a85538;
  --clay-soft: rgba(196, 106, 74, 0.12);
  --sage: #4f6f5e;
  --sage-deep: #3d5849;
  --sage-soft: rgba(79, 111, 94, 0.12);
  --blush: #e9cfc4;
  --gold: #c4a574;
  --gold-soft: rgba(196, 165, 116, 0.18);

  /* Semantic */
  --ok: #3d7a5a;
  --ok-soft: rgba(61, 122, 90, 0.12);
  --warn: #b8860b;
  --danger: #b54a3c;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04), 0 1px 3px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 4px 16px rgba(28, 25, 23, 0.06), 0 1px 4px rgba(28, 25, 23, 0.04);
  --shadow-lg: 0 16px 40px rgba(28, 25, 23, 0.08), 0 4px 12px rgba(28, 25, 23, 0.04);
  --shadow-card: 0 2px 8px rgba(28, 25, 23, 0.04), 0 12px 32px rgba(28, 25, 23, 0.06);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* Layout */
  --nav-h: 64px;
  --dock-h: 72px;
  --max: 1120px;
  --feed-max: 680px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tap: 44px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ==========================================================================
   Top Navigation — obvious within 2 seconds
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(246, 241, 234, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, #f0d5c4 0%, transparent 55%),
    linear-gradient(145deg, var(--clay) 0%, var(--sage) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), var(--shadow-sm);
  position: relative;
}
.logo__mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(-20deg);
}
.logo__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.logo__word em {
  font-style: italic;
  font-weight: 500;
  color: var(--clay);
}

/* Primary desktop nav — labeled, large targets */
.primary-nav {
  display: none;
  align-items: center;
  gap: 4px;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 560;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.primary-nav a:hover {
  background: rgba(28, 25, 23, 0.05);
  color: var(--ink);
}
.primary-nav a.is-active {
  background: var(--paper-elevated);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.primary-nav a svg {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: #2a2522;
  box-shadow: var(--shadow-md);
}
.btn--clay {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 2px 8px rgba(196, 106, 74, 0.28);
}
.btn--clay:hover {
  background: var(--clay-deep);
}
.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid rgba(28, 25, 23, 0.1);
}
.btn--ghost:hover {
  background: rgba(28, 25, 23, 0.04);
  color: var(--ink);
}
.btn--soft {
  background: var(--paper-elevated);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(28, 25, 23, 0.06);
}
.btn--soft:hover {
  box-shadow: var(--shadow-md);
}
.btn--lg {
  min-height: 52px;
  padding: 0 24px;
  font-size: 1rem;
}
.btn--block { width: 100%; }
.btn--icon {
  width: var(--tap);
  min-height: var(--tap);
  padding: 0;
  border-radius: 50%;
}

/* Mobile menu toggle */
.nav-toggle {
  display: inline-flex;
  width: var(--tap);
  height: var(--tap);
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
}
.nav-toggle:hover { background: rgba(28, 25, 23, 0.05); }
.nav-toggle svg { width: 22px; height: 22px; }

.header-signin { display: none; }
@media (min-width: 900px) {
  .primary-nav { display: flex; }
  .nav-toggle { display: none; }
  .header-signin { display: inline-flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}
.drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.35);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 88vw);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.drawer__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--ink-soft);
}
.drawer__nav a.is-active,
.drawer__nav a:hover {
  background: var(--linen);
  color: var(--ink);
}
.drawer__nav a svg { width: 20px; height: 20px; }
.drawer__foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--mist);
}

/* ==========================================================================
   Bottom dock (mobile) — always-visible primary destinations
   ========================================================================== */

.bottom-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 250, 245, 0.94);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid rgba(28, 25, 23, 0.07);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.bottom-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--ink-faint);
  min-height: var(--dock-h);
  transition: color 0.15s var(--ease);
}
.bottom-dock a svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}
.bottom-dock a.is-active {
  color: var(--clay);
}
.bottom-dock a.is-active svg {
  stroke-width: 2.25;
}

@media (min-width: 900px) {
  .bottom-dock { display: none; }
}

/* Page padding for dock */
body.has-dock {
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 12px);
}
@media (min-width: 900px) {
  body.has-dock { padding-bottom: 0; }
}

/* ==========================================================================
   Homepage
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 20px 48px;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 50% 60% at 20% 40%, rgba(196, 106, 74, 0.16), transparent 70%),
    radial-gradient(ellipse 45% 55% at 80% 20%, rgba(79, 111, 94, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 80%, rgba(196, 165, 116, 0.12), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 36px;
}
@media (min-width: 900px) {
  .hero {
    padding: 56px 24px 72px;
  }
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: var(--paper-elevated);
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-soft);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(2.25rem, 5.5vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 450;
  color: var(--clay);
}
.hero__lead {
  margin-top: 16px;
  font-size: 1.0625rem;
  color: var(--ink-muted);
  max-width: 38ch;
  line-height: 1.6;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--ink-muted);
}
.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero__trust svg {
  width: 15px;
  height: 15px;
  color: var(--sage);
  flex-shrink: 0;
}

/* Hero visual — stacked soft cards, not swipe UI */
.hero-visual {
  position: relative;
  min-height: 340px;
}
.hero-visual__stack {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}
.hero-float {
  position: absolute;
  background: var(--paper-elevated);
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: floaty 6s ease-in-out infinite;
}
.hero-float svg { width: 16px; height: 16px; color: var(--sage); }
.hero-float--1 { top: 8%; left: -4%; }
.hero-float--2 { bottom: 14%; right: -2%; animation-delay: -2.5s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Mini profile cards in hero */
.mini-card {
  background: var(--paper-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(28, 25, 23, 0.05);
}
.mini-card__photo {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(160deg, var(--blush) 0%, var(--linen-deep) 45%, var(--mist) 100%);
  position: relative;
}
.mini-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini-card__photo .photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
}
.mini-card__body {
  padding: 14px 16px 16px;
}
.mini-card__name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.mini-card__meta {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.mini-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--linen);
  color: var(--ink-soft);
}
.tag--verified {
  background: var(--ok-soft);
  color: var(--ok);
}
.tag--sage {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.mini-card--back {
  position: absolute;
  inset: 24px 12px auto;
  transform: rotate(4deg) scale(0.96);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}
.mini-card--front {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin: 0 auto;
}

/* Sections */
.section {
  padding: 56px 20px;
}
.section--paper { background: var(--paper); }
.section--linen { background: var(--linen); }
.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section__head {
  max-width: 560px;
  margin-bottom: 32px;
}
.section__kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 10px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}
.section__title em {
  font-style: italic;
  color: var(--sage);
}
.section__sub {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Pillar grid */
.pillars {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
.pillar {
  background: var(--paper-elevated);
  border: 1px solid rgba(28, 25, 23, 0.05);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.pillar:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pillar__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--clay-soft);
  color: var(--clay-deep);
}
.pillar__icon svg { width: 22px; height: 22px; }
.pillar__icon--sage { background: var(--sage-soft); color: var(--sage-deep); }
.pillar__icon--gold { background: var(--gold-soft); color: #8a6f3f; }
.pillar h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.pillar p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* How it works steps */
.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}
.step {
  position: relative;
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: var(--linen);
  border: 1px solid rgba(28, 25, 23, 0.05);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--clay);
  margin-bottom: 10px;
  line-height: 1;
}
.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.step p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Feed preview strip on homepage */
.feed-preview {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .feed-preview {
    grid-template-columns: 1fr 1fr;
  }
}

/* CTA band */
.cta-band {
  margin: 0 20px 56px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 80% 80% at 10% 20%, rgba(196, 106, 74, 0.2), transparent 55%),
    radial-gradient(ellipse 70% 70% at 90% 80%, rgba(79, 111, 94, 0.18), transparent 55%),
    linear-gradient(145deg, #2a2420 0%, #1c1917 100%);
  color: #f6f1ea;
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 700px) {
  .cta-band {
    max-width: var(--max);
    margin: 0 auto 72px;
    padding: 56px 40px;
  }
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.cta-band h2 em { font-style: italic; color: #e9b8a4; }
.cta-band p {
  margin: 12px auto 0;
  max-width: 42ch;
  color: rgba(246, 241, 234, 0.72);
  font-size: 1.05rem;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.cta-band .btn--primary {
  background: var(--paper);
  color: var(--ink);
}
.cta-band .btn--primary:hover { background: #fff; }
.cta-band .btn--ghost {
  border-color: rgba(246, 241, 234, 0.22);
  color: rgba(246, 241, 234, 0.9);
}
.cta-band .btn--ghost:hover {
  background: rgba(246, 241, 234, 0.08);
  color: #fff;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(28, 25, 23, 0.06);
  padding: 40px 20px 28px;
  background: var(--linen-deep);
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}
@media (min-width: 700px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }
}
.site-footer__brand p {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--ink-muted);
  max-width: 32ch;
  line-height: 1.55;
}
.site-footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.site-footer__links {
  display: grid;
  gap: 8px;
}
.site-footer__links a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.site-footer__links a:hover { color: var(--clay); }
.site-footer__base {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(28, 25, 23, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
.site-footer__base a:hover { color: var(--ink-muted); }

/* ==========================================================================
   Discover feed page
   ========================================================================== */

.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 16px 32px;
}
@media (min-width: 900px) {
  .page-shell {
    padding: 28px 24px 48px;
    display: grid;
    grid-template-columns: 220px minmax(0, var(--feed-max)) 1fr;
    gap: 28px;
    align-items: start;
  }
}

/* Side rail — desktop only */
.side-rail {
  display: none;
}
@media (min-width: 900px) {
  .side-rail {
    display: block;
    position: sticky;
    top: calc(var(--nav-h) + 20px);
  }
}
.side-rail__card {
  background: var(--paper-elevated);
  border: 1px solid rgba(28, 25, 23, 0.05);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.side-rail__card h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.side-rail__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.side-rail__nav a:hover,
.side-rail__nav a.is-active {
  background: var(--linen);
  color: var(--ink);
}
.side-rail__nav a.is-active { color: var(--clay); }
.side-rail__nav svg { width: 18px; height: 18px; }

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--linen);
  color: var(--ink-soft);
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { background: var(--mist); color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  color: var(--paper);
}
.chip--soft-active {
  background: var(--sage-soft);
  color: var(--sage-deep);
  border-color: rgba(79, 111, 94, 0.2);
}

/* Feed column */
.feed-col { min-width: 0; }
.feed-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.feed-toolbar h1 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.65rem;
  letter-spacing: -0.025em;
}
.feed-toolbar p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-top: 2px;
}
.feed-toolbar__actions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.feed-toolbar__actions::-webkit-scrollbar { display: none; }

/* Mobile filter strip */
.mobile-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-filters::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .mobile-filters { display: none; }
}

/* ==========================================================================
   Profile cards — calm social feed, NOT swipe deck
   ========================================================================== */

.feed {
  display: grid;
  gap: 18px;
}

.profile-card {
  background: var(--paper-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(28, 25, 23, 0.05);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  animation: cardIn 0.45s var(--ease) both;
}
.profile-card:hover {
  box-shadow: var(--shadow-lg);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-card__media {
  position: relative;
  aspect-ratio: 5 / 4;
  background: linear-gradient(145deg, var(--blush), var(--linen-deep) 50%, var(--mist));
  overflow: hidden;
}
@media (min-width: 520px) {
  .profile-card__media { aspect-ratio: 16 / 11; }
}
.profile-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-card__media .photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-faint);
  background:
    radial-gradient(circle at 30% 30%, rgba(196, 106, 74, 0.1), transparent 50%),
    linear-gradient(160deg, #e8d5c8, #d9d0c4 60%, #c8cfc6);
}

.profile-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 250, 245, 0.88);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.badge svg { width: 13px; height: 13px; }
.badge--verified {
  background: rgba(61, 122, 90, 0.92);
  color: #fff;
}
.badge--online {
  background: rgba(255, 250, 245, 0.92);
  color: var(--ok);
}
.badge--online::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(61, 122, 90, 0.25);
}

.profile-card__body {
  padding: 18px 18px 16px;
}
.profile-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.profile-card__identity h2 {
  font-size: 1.25rem;
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.profile-card__identity h2 span {
  font-weight: 550;
  color: var(--ink-muted);
}
.profile-card__location {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.profile-card__location svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}
.profile-card__prompt {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--linen);
  border-left: 3px solid var(--clay);
}
.profile-card__prompt dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.profile-card__prompt dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.45;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
}
.profile-card__about {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.profile-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.profile-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(28, 25, 23, 0.06);
}
.profile-card__actions .btn {
  min-height: 46px;
}

/* Intent pill */
.intent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--sage-soft);
  color: var(--sage-deep);
  white-space: nowrap;
  flex-shrink: 0;
}
.intent--dating { background: var(--clay-soft); color: var(--clay-deep); }
.intent--friends { background: var(--gold-soft); color: #8a6f3f; }

/* Feed loading / end states */
.feed-status {
  text-align: center;
  padding: 28px 16px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.feed-status__spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  border: 2.5px solid var(--mist);
  border-top-color: var(--clay);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.feed-end {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px dashed rgba(28, 25, 23, 0.12);
}
.feed-end h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.feed-end p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* Right column (desktop tips) */
.aside-panel {
  display: none;
}
@media (min-width: 1100px) {
  .aside-panel {
    display: block;
    position: sticky;
    top: calc(var(--nav-h) + 20px);
  }
}
.tip-card {
  background: var(--paper-elevated);
  border: 1px solid rgba(28, 25, 23, 0.05);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.tip-card h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.05rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.tip-card p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.55;
}
.tip-card ul {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.tip-card li {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
  line-height: 1.45;
}
.tip-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
}

/* Toast */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 16px);
  transform: translateX(-50%);
  z-index: 300;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
@media (min-width: 900px) {
  .toast-host { bottom: 28px; }
}
.toast {
  pointer-events: auto;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 550;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s var(--ease);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Placeholder pages */
.placeholder-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  text-align: center;
}
.placeholder-page__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: var(--clay-soft);
  color: var(--clay);
  display: grid;
  place-items: center;
}
.placeholder-page__icon svg { width: 28px; height: 28px; }
.placeholder-page h1 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.85rem;
  letter-spacing: -0.025em;
}
.placeholder-page p {
  margin-top: 10px;
  color: var(--ink-muted);
  line-height: 1.6;
}
.placeholder-page .btn { margin-top: 24px; }

/* Age gate banner */
.age-note {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin-top: 14px;
}

/* Utility */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
