/* ==========================================================================
   Friends With Benefits Polska — Design System
   Polish Urban Romance × Playful Chemistry × Soft Intimacy × Casual Freedom
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --plum: #4B2E46;
  --plum-dark: #3A2238;
  --berry: #8E526F;
  --berry-dark: #7A4460;
  --rose: #C58A9A;
  --cream: #F6F0EA;
  --taupe: #D8CBC0;
  --navy: #202431;
  --charcoal: #2D292C;
  --peach: #DFA58E;

  /* Surfaces & text */
  --card: #FFFAF6;
  --surface: #EDE5DC;
  --muted-fg: #8E6E60;

  /* Derived (rgba) borders / overlays */
  --border-soft: rgba(75, 46, 70, 0.08);
  --border-mid: rgba(75, 46, 70, 0.15);
  --border-strong: rgba(75, 46, 70, 0.22);
  --line-light: rgba(246, 240, 234, 0.1);
  --line-light-mid: rgba(246, 240, 234, 0.16);

  /* Typography */
  --font-sans: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(45, 41, 44, 0.06), 0 2px 8px rgba(45, 41, 44, 0.05);
  --shadow-md: 0 6px 20px rgba(45, 41, 44, 0.10);
  --shadow-lg: 0 14px 40px rgba(45, 41, 44, 0.16);
  --shadow-glow: 0 0 0 1px rgba(197, 138, 154, 0.5), 0 12px 36px rgba(75, 46, 70, 0.22);

  /* Layout */
  --container: 1280px;
  --gutter: 1.25rem;
  --header-h: 4rem;
  --section-y: clamp(3.5rem, 7vw, 6rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

img { height: auto; }

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

button { cursor: pointer; background: none; border: none; }

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

ul[class], ol[class] {
  list-style: none;
  padding: 0;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 500;
  color: inherit;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--rose);
  color: var(--plum);
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--cream { background: var(--cream); }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--plum { background: var(--plum); color: var(--cream); }

.section--tight { padding-block: calc(var(--section-y) * 0.7); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--berry);
}

.section--navy .eyebrow,
.section--plum .eyebrow { color: var(--rose); }

.h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.h2 em {
  font-style: normal;
  color: var(--berry);
}

.section--navy .h2 em,
.section--plum .h2 em { color: var(--rose); }

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(45, 41, 44, 0.72);
  max-width: 62ch;
}

.section--navy .lead,
.section--plum .lead { color: rgba(216, 203, 192, 0.82); }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head .h2 { margin-top: 0.75rem; }
.section-head .lead { margin-top: 1rem; }

.grid {
  display: grid;
  gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   4. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }

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

.btn--berry { background: var(--berry); color: var(--cream); }
.btn--berry:hover { background: var(--berry-dark); }

.btn--plum { background: var(--plum); color: var(--cream); }
.btn--plum:hover { background: var(--plum-dark); }

.btn--cream { background: var(--cream); color: var(--plum); }
.btn--cream:hover { background: var(--surface); }

.btn--outline {
  border: 1px solid var(--border-strong);
  color: var(--plum);
}
.btn--outline:hover { border-color: var(--berry); color: var(--berry); }

.btn--outline-light {
  border: 1px solid rgba(216, 203, 192, 0.4);
  color: var(--taupe);
}
.btn--outline-light:hover { border-color: var(--taupe); color: var(--cream); }

.btn--ghost-peach {
  background: rgba(223, 165, 142, 0.2);
  border: 1px solid rgba(223, 165, 142, 0.35);
  color: var(--peach);
}
.btn--ghost-peach:hover { background: rgba(223, 165, 142, 0.3); }

.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.9rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--berry);
  transition: color 0.2s var(--ease);
}
.text-link svg { width: 1em; height: 1em; transition: transform 0.2s var(--ease); }
.text-link:hover { color: var(--plum); }
.text-link:hover svg { transform: translateX(3px); }
.text-link--underline { text-decoration: underline; text-underline-offset: 4px; }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(246, 240, 234, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(246, 240, 234, 0.96);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--plum);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--plum);
  color: var(--cream);
}
.brand__mark svg { width: 1rem; height: 1rem; }

.brand__name b { color: var(--berry); font-weight: 600; }

.nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  font-size: 0.9rem;
  color: rgba(45, 41, 44, 0.78);
  transition: color 0.2s var(--ease);
}
.nav__link:hover { color: var(--plum); }
.nav__link[aria-current="page"] { color: var(--plum); font-weight: 500; }

.nav__cta { display: none; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: inline-flex;
  padding: 0.4rem;
  color: var(--plum);
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem var(--gutter) 1.5rem;
  border-top: 1px solid var(--border-soft);
  background: var(--cream);
}

.nav__mobile.is-open { display: flex; }

.nav__mobile .nav__link {
  padding: 0.6rem 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.nav__mobile-cta { display: grid; gap: 0.6rem; margin-top: 0.9rem; }

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: flex; }
  .nav-toggle { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero (homepage)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
}

.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.62;
}

@media (max-width: 639px) {
  .hero__media img { object-position: 70% center; }
  .hero__content {
    width: 100%;
    margin-inline: auto;
    text-align: center;
  }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--navy) 4%, rgba(32, 36, 49, 0.45) 55%, rgba(32, 36, 49, 0.05) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 8rem 6rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(142, 82, 111, 0.22);
  border: 1px solid rgba(142, 82, 111, 0.35);
  color: var(--rose);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  margin-bottom: 1.5rem;
}
.hero__badge svg { width: 0.85rem; height: 0.85rem; }

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.hero__title em { font-style: normal; color: var(--rose); }

.hero__lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--taupe);
  max-width: 30rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__note {
  font-size: 0.75rem;
  color: rgba(216, 203, 192, 0.6);
}

.hero__panel {
  display: none;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(216, 203, 192, 0.5);
  text-align: center;
}
.hero__scroll svg { width: 1rem; height: 1rem; animation: bob 2s var(--ease) infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Floating profile panel inside hero */
.hero__panel {
  position: relative;
  background: rgba(246, 240, 234, 0.1);
  border: 1px solid rgba(246, 240, 234, 0.16);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  width: 18rem;
  backdrop-filter: blur(10px);
}
.hero__panel img { filter: blur(4px) saturate(0.82); }
.hero__panel::after { top: 0.7rem; left: 3.65rem; width: 1.45rem; height: 1.45rem; background-size: 0.7rem; }

@media (min-width: 1024px) {
  .hero__inner { padding-block: 10rem 8rem; }
  .hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: end;
  }
  .hero__panel { display: block; justify-self: end; }
}

/* --------------------------------------------------------------------------
   7. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--plum);
  color: var(--cream);
  padding-block: calc(var(--header-h) + clamp(3rem, 6vw, 5rem)) clamp(3rem, 6vw, 5rem);
}

.page-hero--navy { background: var(--navy); }
.page-hero--surface {
  background: var(--surface);
  color: var(--charcoal);
}

.page-hero__orb {
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 82, 111, 0.28), transparent 70%);
  pointer-events: none;
}

.page-hero__content { position: relative; z-index: 2; max-width: 48rem; }

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: 1rem;
}

.page-hero h1 em { font-style: normal; color: var(--rose); }
.page-hero--surface h1 em { color: var(--berry); }

.page-hero .lead { margin-top: 1.25rem; }
.page-hero--navy .lead { color: rgba(255, 250, 245, 0.82); }
.page-hero--surface .lead { color: rgba(45, 41, 44, 0.72); }
.article-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(246, 240, 234, 0.62);
}
.page-hero--surface .article-meta { color: rgba(45, 41, 44, 0.58); }

.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(216, 203, 192, 0.7);
}
.page-hero--surface .breadcrumbs { color: rgba(45, 41, 44, 0.55); }
.breadcrumbs a { transition: color 0.2s var(--ease); }
.breadcrumbs a:hover { color: var(--rose); }
.page-hero--surface .breadcrumbs a:hover { color: var(--berry); }
.breadcrumbs__sep { opacity: 0.5; }
.breadcrumbs__current { color: var(--cream); font-weight: 500; }
.page-hero--surface .breadcrumbs__current { color: var(--plum); }

/* --------------------------------------------------------------------------
   8. Chips / tags / badges
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  line-height: 1;
  padding: 0.42rem 0.8rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.tag--outline {
  border: 1px solid var(--border-mid);
  color: var(--plum);
}
.tag--outline:hover { border-color: var(--berry); color: var(--berry); }

.tag--berry { background: var(--berry); color: var(--cream); }
.tag--berry-soft { background: rgba(142, 82, 111, 0.14); color: var(--berry); }
.tag--rose-soft { background: rgba(197, 138, 154, 0.16); color: var(--berry); }
.tag--surface { background: var(--surface); color: var(--berry); }
.tag--dark { background: rgba(142, 82, 111, 0.28); color: var(--rose); }
.tag--cream-soft { background: rgba(246, 240, 234, 0.1); color: var(--cream); }

.tag-wrap { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.badge-verified {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--berry);
  color: #fff;
}
.badge-verified svg { width: 0.7rem; height: 0.7rem; }

.dot-online {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25);
}

/* --------------------------------------------------------------------------
   9. Cards (generic)
   -------------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}

.card--pad { padding: 1.5rem; }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--berry);
  margin-bottom: 1rem;
}
.feature-card__icon svg { width: 1.35rem; height: 1.35rem; }

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.feature-card p { font-size: 0.9rem; color: rgba(45, 41, 44, 0.62); }

/* --------------------------------------------------------------------------
   10. Profile cards
   -------------------------------------------------------------------------- */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.profile-card {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--taupe);
  display: block;
}

.profile-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5px) saturate(0.82);
  transform: scale(1.06);
  transition: transform 0.5s var(--ease), filter 0.3s var(--ease);
}
.profile-card:hover img { transform: scale(1.1); }

.profile-card::after,
.hero__panel::after,
.chemistry__person::after,
.chat__head::after,
.profile-strip::after {
  content: "";
  position: absolute;
  z-index: 5;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(246, 240, 234, 0.28);
  border-radius: 50%;
  background: rgba(32, 36, 49, 0.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6F0EA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
  box-shadow: 0 0.25rem 0.8rem rgba(32, 36, 49, 0.25);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.profile-card::after { top: 0.75rem; left: 0.75rem; }

.profile-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 41, 44, 0.85), rgba(45, 41, 44, 0.05) 55%, transparent);
}

.profile-card__status {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.profile-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.9rem;
  color: var(--cream);
}

.profile-card__name { font-size: 0.9rem; font-weight: 500; }
.profile-card__city {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--rose);
}
.profile-card__city svg { width: 0.7rem; height: 0.7rem; }

.profile-card__intent {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.66rem;
  background: rgba(142, 82, 111, 0.32);
  color: var(--cream);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

@media (min-width: 640px) { .profiles-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .profiles-grid { grid-template-columns: repeat(6, 1fr); } }

/* Horizontal profile strip */
.profile-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   11. Intent selector cards
   -------------------------------------------------------------------------- */
.intent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.intent-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: left;
  color: var(--cream);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  border: 2px solid transparent;
}
.intent-card:hover { transform: translateY(-2px); }

.intent-card--fwb { background: var(--plum); }
.intent-card--casual {
  background: var(--rose);
  color: var(--charcoal);
  border-color: rgba(75, 46, 70, 0.14);
  box-shadow: var(--shadow-sm);
}
.intent-card--hookup { background: var(--navy); }
.intent-card--sugar { background: var(--taupe); color: var(--charcoal); }

.intent-card__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  opacity: 0.85;
}
.intent-card--fwb .intent-card__label { color: var(--rose); }
.intent-card--casual .intent-card__label {
  color: var(--plum-dark);
  opacity: 1;
}
.intent-card--hookup .intent-card__label { color: var(--peach); }
.intent-card--sugar .intent-card__label { color: var(--plum); }

.intent-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.intent-card p { font-size: 0.9rem; line-height: 1.55; opacity: 0.8; }
.intent-card--casual p { opacity: 1; }

.intent-card__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.intent-card__foot svg { width: 1rem; height: 1rem; }

@media (min-width: 640px) { .intent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .intent-grid { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   12. Steps (how it works)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
}

.step { text-align: center; }

.step__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--plum);
  border: 4px solid var(--navy);
  color: var(--rose);
  box-shadow: var(--shadow-md);
}
.step__icon svg { width: 1.6rem; height: 1.6rem; }

.step__num { font-size: 0.75rem; font-weight: 500; color: var(--berry); }

.step h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--cream);
  margin: 0.35rem 0 0.5rem;
}
.step p { font-size: 0.88rem; color: rgba(216, 203, 192, 0.72); max-width: 16rem; margin-inline: auto; }

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .steps::before {
    content: "";
    position: absolute;
    top: 2rem;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--plum);
  }
}

/* --------------------------------------------------------------------------
   13. Chemistry UI
   -------------------------------------------------------------------------- */
.chemistry { display: grid; gap: 3rem; }

.chemistry__panel { position: relative; }

.chemistry__match {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.chemistry__person {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  width: 12.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.chemistry__person img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border: 2px solid var(--rose);
  filter: blur(4px) saturate(0.82);
}
.chemistry__person::after { top: 0.85rem; left: calc(50% + 1rem); width: 1.45rem; height: 1.45rem; background-size: 0.7rem; }
.chemistry__person .name { font-family: var(--font-serif); font-weight: 500; }
.chemistry__person .city { font-size: 0.78rem; color: var(--berry); margin-bottom: 0.6rem; }
.chemistry__person .tags { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: center; }

.chemistry__meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.chemistry__meter .heart {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--berry);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}
.chemistry__meter .heart svg { width: 1.5rem; height: 1.5rem; }
.chemistry__meter .pct { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--berry); }
.chemistry__meter .lbl { font-size: 0.72rem; color: rgba(45, 41, 44, 0.5); }

.chemistry__shared {
  margin-top: 2rem;
  background: var(--plum);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.chemistry__shared .lbl { color: var(--rose); font-size: 0.85rem; font-weight: 500; margin-bottom: 0.6rem; }
.chemistry__shared .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }

@media (min-width: 1024px) {
  .chemistry { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* --------------------------------------------------------------------------
   14. Comparison table
   -------------------------------------------------------------------------- */
.compare-scroll { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid rgba(142, 82, 111, 0.2); }

.compare-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table thead th {
  background: var(--plum-dark);
  padding: 1rem 1.25rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.compare-table thead th:first-child {
  text-align: left;
  color: rgba(216, 203, 192, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.compare-table .col-fwb { color: var(--rose); }
.compare-table .col-casual { color: var(--peach); }
.compare-table .col-hookup { color: var(--taupe); }

.compare-table tbody tr:nth-child(even) { background: rgba(58, 34, 56, 0.4); }
.compare-table tbody tr:nth-child(odd) { background: var(--plum); }

.compare-table td {
  padding: 0.9rem 1.25rem;
  text-align: center;
  color: rgba(246, 240, 234, 0.72);
}
.compare-table td:first-child { text-align: left; color: rgba(246, 240, 234, 0.82); font-weight: 500; }

.level { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; }
.level__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; }
.level__dot--high { background: var(--rose); }
.level__dot--mid { background: var(--peach); }
.level__dot--low { background: var(--taupe); }

/* --------------------------------------------------------------------------
   15. Chat UI
   -------------------------------------------------------------------------- */
.chat {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 30rem;
  width: 100%;
}

.chat__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--plum);
  color: var(--cream);
}
.chat__head img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rose);
  filter: blur(4px) saturate(0.82);
}
.chat__head::after { top: 0.55rem; left: 2.95rem; width: 1.45rem; height: 1.45rem; background-size: 0.7rem; }
.chat__head .name { font-size: 0.9rem; font-weight: 500; }
.chat__head .status { display: flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: var(--rose); }
.chat__head .meta { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--taupe); }
.chat__head .meta svg { width: 0.9rem; height: 0.9rem; }

.chat__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  min-height: 14rem;
}

.msg { display: flex; }
.msg--them { justify-content: flex-start; }
.msg--me { justify-content: flex-end; }

.msg__bubble {
  max-width: 78%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  line-height: 1.5;
}
.msg--them .msg__bubble { background: var(--surface); color: var(--charcoal); border-bottom-left-radius: 6px; }
.msg--me .msg__bubble { background: var(--berry); color: var(--cream); border-bottom-right-radius: 6px; }

.msg__time { display: block; font-size: 0.68rem; margin-top: 0.3rem; opacity: 0.6; }

.chat__input {
  padding: 1.25rem;
}
.chat__input-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.5rem 0.5rem 1rem;
}
.chat__input-inner input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--charcoal);
}
.chat__send {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--berry);
  color: var(--cream);
  flex-shrink: 0;
}
.chat__send svg { width: 1rem; height: 1rem; }

/* --------------------------------------------------------------------------
   16. Editorial split (image + text)
   -------------------------------------------------------------------------- */
.editorial { display: grid; gap: 2.5rem; align-items: center; }

.editorial__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 20rem;
  background: var(--taupe);
}
.editorial__media img { width: 100%; height: 100%; object-fit: cover; }

/* Shared image rhythm for the three relationship editorial sections. */
.relationship-section__media {
  width: 100%;
  max-width: 35rem;
  justify-self: center;
  min-height: 0;
  height: 22rem;
}

.editorial__media--cover {
  display: flex;
  align-items: flex-end;
}
.editorial__media--cover img { position: absolute; inset: 0; }
.editorial__caption {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  color: var(--cream);
  background: linear-gradient(to top, rgba(45, 41, 44, 0.72), transparent);
  width: 100%;
}
.editorial__caption .eyebrow { color: var(--peach); }
.editorial__caption h3,
.editorial__caption-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-top: 0.4rem;
  display: block;
}

.editorial__content .h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1.25rem; }
.editorial__content p { color: rgba(45, 41, 44, 0.7); margin-bottom: 1rem; }
.editorial__content p:last-of-type { margin-bottom: 1.5rem; }

/* Sugar Daddy card layout and desktop-only media ordering. */
.sugar-daddy-card__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.sugar-daddy-card__media { min-height: 0; }

@media (max-width: 767px) {
  .sugar-daddy-card__media {
    width: calc(100% + 3rem);
    max-width: calc(100% + 3rem);
    margin-inline: -1.5rem;
  }
}

@media (min-width: 768px) {
  .editorial { grid-template-columns: 1fr 1fr; }
  .editorial--media-left .editorial__media { order: -1; }
  .editorial--wide-media { grid-template-columns: 1.4fr 1fr; }
  .editorial--wide-content { grid-template-columns: 1fr 1.4fr; }

  .sugar-daddy-card__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .sugar-daddy-card__media {
    order: -1;
    min-height: 0;
    height: 22rem;
  }
}

@media (min-width: 1024px) {
  .relationship-section__media { height: 24rem; }
}

/* --------------------------------------------------------------------------
   17. Boundaries / preferences UI
   -------------------------------------------------------------------------- */
.boundaries { display: grid; gap: 3rem; }

.boundaries__panel {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.boundaries__panel h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 0.25rem; }
.boundaries__panel .hint { font-size: 0.85rem; color: rgba(45, 41, 44, 0.5); margin-bottom: 1.25rem; }

.pref-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-mid);
  font-size: 0.88rem;
  color: rgba(45, 41, 44, 0.72);
  transition: all 0.2s var(--ease);
}
.pref-toggle:hover { border-color: var(--berry); color: var(--berry); }
.pref-toggle.is-active {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--cream);
}
.pref-toggle.is-active svg { opacity: 1; }
.pref-toggle svg { width: 0.85rem; height: 0.85rem; opacity: 0; transition: opacity 0.2s var(--ease); }

.boundaries__selected {
  border-top: 1px solid var(--border-soft);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
}
.boundaries__selected .hint { font-size: 0.75rem; margin-bottom: 0.6rem; }

@media (min-width: 1024px) {
  .boundaries { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* --------------------------------------------------------------------------
   18. Guide / blog cards
   -------------------------------------------------------------------------- */
.guide-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(45, 41, 44, 0.6);
  border: 1px solid rgba(75, 46, 70, 0.5);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.guide-card:hover { border-color: rgba(142, 82, 111, 0.55); box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.guide-card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
}
.guide-card__icon svg { width: 1.3rem; height: 1.3rem; }

.guide-card__cat { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.guide-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
  transition: color 0.2s var(--ease);
}
.guide-card:hover h3 { color: var(--rose); }
.guide-card p { font-size: 0.88rem; color: rgba(216, 203, 192, 0.62); }
.guide-card__link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; font-size: 0.88rem; font-weight: 500; color: var(--rose); }
.guide-card__link svg { width: 1rem; height: 1rem; transition: transform 0.2s var(--ease); }
.guide-card:hover .guide-card__link svg { transform: translateX(3px); }

@media (min-width: 640px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   19. Tip cards
   -------------------------------------------------------------------------- */
.tips-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .tips-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tips-grid { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   20. Safety panel
   -------------------------------------------------------------------------- */
.safety-panel {
  position: relative;
  overflow: hidden;
  background: var(--plum);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.safety-panel__orb {
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(142, 82, 111, 0.12);
  pointer-events: none;
}

.safety-panel__grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; }

.safety-panel__title-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.safety-panel__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(142, 82, 111, 0.32);
  color: var(--rose);
}
.safety-panel__icon svg { width: 1.2rem; height: 1.2rem; }

.safety-panel h2 { font-family: var(--font-serif); font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 500; margin-bottom: 1rem; }
.safety-panel .body { color: rgba(216, 203, 192, 0.72); margin-bottom: 1.5rem; }

.safety-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.safety-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(246, 240, 234, 0.1);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  color: rgba(246, 240, 234, 0.82);
}
.safety-point svg { width: 1.1rem; height: 1.1rem; color: var(--rose); flex-shrink: 0; margin-top: 0.1rem; }

@media (min-width: 640px) { .safety-points { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .safety-panel__grid { grid-template-columns: 1fr 1fr; align-items: center; } }

/* --------------------------------------------------------------------------
   21. Checklist & callouts
   -------------------------------------------------------------------------- */
.checklist { display: grid; gap: 0.85rem; }

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.checklist__item svg { width: 1.2rem; height: 1.2rem; color: var(--berry); flex-shrink: 0; margin-top: 0.15rem; }
.checklist__item strong { display: block; font-weight: 600; font-size: 0.95rem; }
.checklist__item span { display: block; font-size: 0.86rem; color: rgba(45, 41, 44, 0.66); }

.callout {
  display: flex;
  gap: 0.9rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(142, 82, 111, 0.08);
  border: 1px solid rgba(142, 82, 111, 0.2);
}
.callout svg { width: 1.4rem; height: 1.4rem; color: var(--berry); flex-shrink: 0; margin-top: 0.1rem; }
.callout p { font-size: 0.95rem; color: rgba(45, 41, 44, 0.78); }
.callout strong { color: var(--plum); }
.callout--peach { background: rgba(223, 165, 142, 0.1); border-color: rgba(223, 165, 142, 0.28); }
.callout--peach svg { color: var(--peach); }

/* Do / Don't */
.dos-donts { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .dos-donts { grid-template-columns: 1fr 1fr; } }

.do-dont {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border-soft);
}
.do-dont h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.do-dont h3 svg { width: 1.1rem; height: 1.1rem; }
.do-dont--do { border-top: 3px solid var(--berry); }
.do-dont--do h3 { color: var(--berry); }
.do-dont--dont { border-top: 3px solid var(--peach); }
.do-dont--dont h3 { color: #c0704f; }
.do-dont ul { display: grid; gap: 0.6rem; }
.do-dont li { display: flex; gap: 0.6rem; font-size: 0.9rem; color: rgba(45, 41, 44, 0.78); }
.do-dont li svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.15rem; }
.do-dont--do li svg { color: var(--berry); }
.do-dont--dont li svg { color: #c0704f; }

/* --------------------------------------------------------------------------
   22. FAQ accordion
   -------------------------------------------------------------------------- */
.faq { max-width: 48rem; margin-inline: auto; }

.faq__item {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq__item + .faq__item { margin-top: 0.5rem; }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color 0.2s var(--ease);
}
.faq__q:hover { color: var(--berry); }
.faq__q svg { width: 1.2rem; height: 1.2rem; color: var(--berry); flex-shrink: 0; transition: transform 0.25s var(--ease); }
.faq__item.is-open .faq__q svg { transform: rotate(180deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a-inner p {
  padding: 0 1.5rem 1.25rem;
  color: rgba(45, 41, 44, 0.7);
  font-size: 0.95rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 1rem;
  margin: 0 1.5rem 1.25rem;
}

/* FAQ groups (faq.html) */
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.faq-group__title svg { width: 1.3rem; height: 1.3rem; color: var(--berry); }

/* --------------------------------------------------------------------------
   23. Final CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--plum);
  color: var(--cream);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.cta--casual-dating .cta__media img { object-position: center 36%; }
.cta--homepage .cta__media img { object-position: 68% 34%; }
@media (max-width: 639px) {
  .cta--homepage .cta__media img {
    object-position: 90% 30%;
    transform: translateY(0.75rem) scale(1.04);
  }
}
.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(75, 46, 70, 0.82), rgba(75, 46, 70, 0.62) 45%, rgba(32, 36, 49, 0.72));
}
.cta__content { position: relative; z-index: 2; max-width: 42rem; margin-inline: auto; }
.cta__eyebrow { color: var(--rose); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.cta h2 em { font-style: normal; color: var(--rose); }
.cta p { color: rgba(216, 203, 192, 0.82); font-size: 1.05rem; margin-bottom: 2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.cta__note { margin-top: 1.75rem; font-size: 0.75rem; color: rgba(216, 203, 192, 0.5); }

/* --------------------------------------------------------------------------
   24. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(216, 203, 192, 0.72);
  padding-block: 4rem 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(75, 46, 70, 0.4);
  align-items: start;
}

.site-footer__brand .brand { color: var(--cream); }
.site-footer__brand p { font-size: 0.88rem; margin-top: 1rem; max-width: 20rem; }
.site-footer__brand .adult { font-size: 0.75rem; color: rgba(216, 203, 192, 0.4); margin-top: 1.25rem; }

.site-footer__col h4 {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(246, 240, 234, 0.85);
  margin-bottom: 1rem;
}
.site-footer__col ul { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.site-footer__col a { font-size: 0.88rem; transition: color 0.2s var(--ease); }
.site-footer__col a:hover { color: var(--rose); }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(216, 203, 192, 0.4);
}
.site-footer__bottom-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer__bottom a:hover { color: var(--rose); }

@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; }
  .site-footer__bottom { flex-direction: row; align-items: center; }
}

/* --------------------------------------------------------------------------
   25. Forms (login / register)
   -------------------------------------------------------------------------- */
.auth {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)) clamp(3rem, 7vw, 5rem);
}
@media (min-width: 1024px) { .auth { grid-template-columns: 1fr 1fr; } }

.auth__intro h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.auth__intro .lead { margin-top: 1rem; }

.auth__perks { display: grid; gap: 0.7rem; margin-top: 1.75rem; }
.auth__perks li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: rgba(45, 41, 44, 0.75); }
.auth__perks svg { width: 1.1rem; height: 1.1rem; color: var(--berry); }

.auth__card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.auth__card h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; margin-bottom: 0.4rem; }
.auth__card .hint { font-size: 0.88rem; color: rgba(45, 41, 44, 0.55); margin-bottom: 1.5rem; }

.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--charcoal); }
.form-field .input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  background: var(--cream);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field .input:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px rgba(142, 82, 111, 0.12); }
.form-field .input::placeholder { color: rgba(45, 41, 44, 0.4); }

.form-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-note { font-size: 0.75rem; color: rgba(45, 41, 44, 0.5); margin-top: 1rem; text-align: center; }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  width: 100%;
  padding: 0.8rem 2.5rem 0.8rem 1rem;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  background: var(--cream);
  font-size: 0.95rem;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--berry);
  border-bottom: 2px solid var(--berry);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

/* Intent chips inside form */
.intent-pick { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.intent-pick .pref-toggle { background: var(--cream); }

/* --------------------------------------------------------------------------
   26. Tabs
   -------------------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }

.tab {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-mid);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(45, 41, 44, 0.72);
  transition: all 0.2s var(--ease);
}
.tab:hover { border-color: var(--berry); color: var(--berry); }
.tab.is-active { background: var(--plum); border-color: var(--plum); color: var(--cream); }

.tab-panel { display: none; flex-basis: 100%; }
.tab-panel.is-active { display: block; }

/* --------------------------------------------------------------------------
   27. Blog editorial layout
   -------------------------------------------------------------------------- */
.blog-featured {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 1024px) { .blog-featured { grid-template-columns: 1.4fr 1fr; } }

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
  min-height: 20rem;
}
.post-card__media { position: absolute; inset: 0; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.post-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(32, 36, 49, 0.95), rgba(32, 36, 49, 0.2) 70%, transparent);
}
.post-card__body { position: relative; z-index: 2; margin-top: auto; padding: 1.75rem; }
.post-card__cat { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose); }
.post-card h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; margin: 0.5rem 0 0.5rem; }
.post-card p { font-size: 0.9rem; color: rgba(216, 203, 192, 0.72); }

.blog-list { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .blog-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .blog-list { grid-template-columns: 1fr 1fr 1fr; } }

/* --------------------------------------------------------------------------
   28. Table of contents (guide)
   -------------------------------------------------------------------------- */
.toc {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.toc h3 { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 0.9rem; }
.toc ol { display: grid; gap: 0.55rem; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; gap: 0.75rem; font-size: 0.9rem; }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--rose);
  font-weight: 600;
  font-size: 0.8rem;
}
.toc a { color: rgba(45, 41, 44, 0.75); transition: color 0.2s var(--ease); }
.toc a:hover { color: var(--berry); }

/* --------------------------------------------------------------------------
   29. Scenario cards (guide)
   -------------------------------------------------------------------------- */
.scenario {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.scenario h3 { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 0.5rem; }
.scenario p { font-size: 0.9rem; color: rgba(45, 41, 44, 0.7); }

/* --------------------------------------------------------------------------
   30. City strip
   -------------------------------------------------------------------------- */
.city-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--border-soft);
  font-size: 0.88rem;
  color: rgba(45, 41, 44, 0.8);
  transition: all 0.2s var(--ease);
}
.city-chip:hover { border-color: var(--berry); color: var(--berry); }
.city-chip svg { width: 0.85rem; height: 0.85rem; color: var(--berry); }

/* --------------------------------------------------------------------------
   31. Content body (privacy / terms)
   -------------------------------------------------------------------------- */
.prose { max-width: 46rem; }
.prose h2 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 500; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 1.75rem 0 0.6rem; }
.prose p { color: rgba(45, 41, 44, 0.78); margin-bottom: 1rem; }
.prose ul { display: grid; gap: 0.5rem; margin: 0 0 1.25rem; padding-left: 1.25rem; list-style: disc; }
.prose ul li { color: rgba(45, 41, 44, 0.78); }
.prose .updated { font-size: 0.85rem; color: rgba(45, 41, 44, 0.5); }

/* --------------------------------------------------------------------------
   32. Reveal-on-scroll animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   33. Utility
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }

.center { text-align: center; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--plum);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Supplemental components (added for inner pages)
   -------------------------------------------------------------------------- */

/* Tag color variants */
.tag--plum { background: var(--plum); color: var(--cream); }
.tag--peach { background: var(--peach); color: var(--charcoal); }

/* Vertical stacked steps (how-it-works) */
.steps--stacked {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: min(100%, 68rem);
  margin-inline: auto;
}
.steps--stacked::before { display: none; }
.steps--stacked .step { text-align: left; display: flex; gap: 1.25rem; align-items: flex-start; }
.steps--stacked .step__icon { margin: 0; flex-shrink: 0; border-color: var(--surface); }
.steps--stacked .step__num { display: block; margin-bottom: 0.25rem; }
.steps--stacked .step h3 { color: var(--charcoal); margin: 0 0 0.4rem; }
.steps--stacked .step p { color: rgba(45, 41, 44, 0.62); margin: 0; max-width: none; }
.step__body { flex: 1; }
.step__list { list-style: none; display: grid; gap: 0.4rem; margin-top: 0.75rem; }
.step__list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; color: rgba(45, 41, 44, 0.66); }
.step__list svg { width: 1rem; height: 1rem; color: var(--berry); flex-shrink: 0; }
.step__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }

/* Avatar strip */
.profile-strip { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.profile-strip img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--cream); filter: blur(4px) saturate(0.82); }
.profile-strip::after { top: -0.4rem; left: 2.15rem; width: 1.45rem; height: 1.45rem; background-size: 0.7rem; }
.profile-strip__more {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--surface);
  color: var(--berry);
  font-weight: 500;
  border: 2px solid var(--cream);
}

/* Compact inline chat */
.chat--inline { max-width: 24rem; }
.chat--inline .chat__body { padding: 1rem; }

/* Full-width button */
.btn--block { width: 100%; }

/* Form checkbox */
.checkbox { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; color: rgba(45, 41, 44, 0.72); cursor: pointer; }
.checkbox input { margin-top: 0.2rem; accent-color: var(--berry); }
.checkbox a { color: var(--berry); text-decoration: underline; text-underline-offset: 2px; }

/* Form field row */
.form-field--row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Blog cards */
.blog-featured__main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 22rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: var(--cream);
  background: var(--navy);
}
.blog-featured__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.68; }
.blog-featured__main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--navy) 8%, rgba(32, 36, 49, 0.35) 60%, rgba(32, 36, 49, 0.05) 100%); }
.blog-featured__body { position: relative; z-index: 1; margin-top: auto; padding: 1.75rem; }
.blog-featured__body h3 { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 500; margin: 0.75rem 0 0.5rem; }
.blog-featured__body p { color: rgba(246, 240, 234, 0.78); margin-bottom: 1rem; max-width: 30rem; }
.blog-featured__link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; color: var(--rose); font-size: 0.9rem; }
.blog-featured__link svg { width: 1em; height: 1em; transition: transform 0.2s var(--ease); }
.blog-featured__main:hover .blog-featured__link svg { transform: translateX(3px); }

.blog-featured__side { display: grid; gap: 1.25rem; align-content: stretch; }

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.blog-card h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500; color: var(--charcoal); }
.blog-card__link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; font-weight: 500; color: var(--berry); font-size: 0.9rem; }
.blog-card__link svg { width: 1em; height: 1em; transition: transform 0.2s var(--ease); }
.blog-card:hover .blog-card__link svg { transform: translateX(3px); }

.auth__card h1, .auth__card h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; margin-bottom: 0.4rem; }
