/* ============================================================
   TrueBond — style.css
   Minimal, fresh, trustworthy "serious matchmaking".
   Swiss-clean: white + mint + deep pine, small radii,
   thin 1.5px borders, geometric accents, flat hover shadows.
   ============================================================ */

/* ------------------------------------------------------------
   00. Design tokens
------------------------------------------------------------ */
:root {
  /* palette */
  --color-bg: #ffffff;
  --color-mist: #eef7f4;
  --color-teal: #0d9488;
  --color-teal-deep: #0b7f74;   /* teal hover */
  --color-pine: #0f3d3e;
  --color-mint: #ccf1ea;
  --color-ink: #10322f;
  --color-body: #5c7370;
  --color-line: rgba(15, 61, 62, 0.15);
  --color-line-soft: rgba(15, 61, 62, 0.08);

  /* shape */
  --radius-card: 8px;
  --radius-img: 10px;
  --border-w: 1.5px;

  /* type */
  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  /* depth — flat shadows, hover states + floating elements only */
  --shadow-hover: 0 16px 32px rgba(15, 61, 62, 0.10);
  --shadow-float: 0 10px 22px rgba(15, 61, 62, 0.12);

  /* layout */
  --container: 1180px;
  --gutter: 24px;
  --section-y: clamp(72px, 9vw, 112px);
  --header-h: 72px;
}

/* ------------------------------------------------------------
   01. Base & reset
------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

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

/* kill horizontal overflow without breaking position: sticky */
html,
body { overflow-x: clip; }
@supports not (overflow: clip) {
  html,
  body { overflow-x: hidden; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

p { margin: 0; }

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* no default-blue links anywhere */
a {
  color: var(--color-pine);
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

select { font: inherit; }

figure { margin: 0; }
blockquote { margin: 0; }

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

::selection {
  background: var(--color-mint);
  color: var(--color-pine);
}

section { scroll-margin-top: calc(var(--header-h) + 14px); }

body.u-noscroll { overflow: hidden; }

/* ------------------------------------------------------------
   02. Utilities & shared components
------------------------------------------------------------ */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

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

.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;
}

/* small-caps overline above headings */
.overline {
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); }
.section-head__sub { margin-top: 14px; font-size: 1.05rem; }
.section-head--center { margin-inline: auto; text-align: center; }

/* geometric mint chip (small radius, never a pill) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-card);
  background: var(--color-mint);
  color: var(--color-pine);
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}

.chip--eyebrow { padding: 9px 16px; }
.chip--city { padding: 6px 10px; letter-spacing: 0.1em; white-space: nowrap; }
.chip--tag { letter-spacing: 0.16em; }

/* buttons — 8px radius, never pill */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-card);
  border: var(--border-w) solid transparent;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn:active { transform: translateY(1px); }

.btn--solid {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: #ffffff;
}
.btn--solid:hover {
  background: var(--color-teal-deep);
  border-color: var(--color-teal-deep);
}

.btn--outline {
  background: transparent;
  border-color: rgba(15, 61, 62, 0.35);
  color: var(--color-pine);
}
.btn--outline:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: #ffffff;
}

.btn--mint {
  background: var(--color-mint);
  border-color: var(--color-mint);
  color: var(--color-pine);
}
.btn--mint:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--color-pine);
}

/* underlined text links; arrow shifts on hover */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 0.25s ease;
}
.text-link svg {
  font-size: 0.8em;
  transition: transform 0.25s ease;
}
.text-link:hover { color: var(--color-teal-deep); }
.text-link:hover svg { transform: translateX(4px); }
.text-link--lg { font-size: 1rem; }

/* check lists (matchmaker + plans) */
.check-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-ink);
  font-weight: 500;
}
.check-list svg {
  flex: none;
  margin-top: 4px;
  color: var(--color-teal);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   03. Header — slim sticky bar + mobile slide-in nav
------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow 0.3s ease;
}
.header.is-scrolled { box-shadow: 0 6px 18px rgba(15, 61, 62, 0.07); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

/* logo: two overlapping circles (teal + pine), CSS-drawn */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo__mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
}
.logo__circle {
  position: absolute;
  top: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.logo__circle--a { left: 0; background: var(--color-teal); }
.logo__circle--b {
  right: 0;
  background: var(--color-pine);
  mix-blend-mode: multiply;
  opacity: 0.92;
}
.logo__word {
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

/* desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__head { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__link {
  position: relative;
  padding: 6px 0;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--color-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__link:hover { color: var(--color-teal); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta { padding: 11px 20px; font-size: 0.9rem; }

.nav-toggle { display: none; }

/* overlay behind the slide-in panel */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(16, 50, 47, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ≤900px: left slide-in white panel (280px) */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 80;
    width: 280px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 24px 32px;
    background: #ffffff;
    border-right: 1px solid var(--color-line);
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .nav.is-open {
    transform: translateX(0);
    box-shadow: 24px 0 48px rgba(15, 61, 62, 0.12);
  }
  .nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-line);
  }
  .nav__brand {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-ink);
  }
  .nav__close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    color: var(--color-pine);
    transition: background-color 0.25s ease, color 0.25s ease;
  }
  .nav__close:hover { background: var(--color-mist); }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__link {
    display: block;
    padding: 14px 2px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-line-soft);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 24px; width: 100%; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
  }
  .nav-toggle__bar {
    width: 18px;
    height: 1.5px;
    background: var(--color-pine);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ------------------------------------------------------------
   04. Hero — mist panel, geometric decor, search bar, trust row
------------------------------------------------------------ */
.hero { padding-bottom: clamp(56px, 8vw, 96px); }

.hero__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 112px) 0 clamp(64px, 8vw, 96px);
  /* the only allowed gradient: barely-there vertical wash on the panel */
  background: linear-gradient(180deg, #f2faf8 0%, var(--color-mist) 100%);
  border-bottom: 1px solid var(--color-line-soft);
}

/* faint vertical grid lines */
.hero__lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--color-line-soft) 1px, transparent 1px);
  background-size: 20% 100%;
  pointer-events: none;
}

/* quarter-circle outlines, top-right */
.hero__deco {
  position: absolute;
  pointer-events: none;
}
.hero__deco--q1 {
  top: -96px;
  right: -72px;
  width: 300px;
  height: 300px;
  border: var(--border-w) solid rgba(15, 61, 62, 0.16);
  border-radius: 0 0 0 100%;
}
.hero__deco--q2 {
  top: -56px;
  right: -28px;
  width: 190px;
  height: 190px;
  border: var(--border-w) solid rgba(15, 61, 62, 0.10);
  border-radius: 0 0 0 100%;
}

/* dotted grid, bottom-left */
.hero__deco--dots {
  left: 42px;
  bottom: 38px;
  width: 220px;
  height: 140px;
  background-image: radial-gradient(rgba(15, 61, 62, 0.20) 1.5px, transparent 1.6px);
  background-size: 20px 20px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.hero__accent { color: var(--color-teal); }

.hero__sub {
  margin-top: 18px;
  max-width: 640px;
  font-size: 1.08rem;
}

/* search-style bar: white card, thin border, three selects + button */
.hero-search {
  display: flex;
  align-items: stretch;
  width: min(100%, 760px);
  margin-top: 36px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 30px rgba(15, 61, 62, 0.06);
}
.hero-search__field {
  flex: 1;
  min-width: 0;
  display: flex;
}
.hero-search__field + .hero-search__field {
  border-left: 1px solid var(--color-line-soft);
}
.hero-search select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 34px 12px 16px;
  border: 0;
  border-radius: 4px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230f3d3e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--color-ink);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}
.hero-search__submit { flex: none; padding: 12px 26px; }

@media (max-width: 640px) {
  .hero-search { flex-direction: column; gap: 4px; }
  .hero-search__field + .hero-search__field {
    border-left: 0;
    border-top: 1px solid var(--color-line-soft);
  }
  .hero-search select { padding: 14px 34px 14px 16px; }
  .hero-search__submit { width: 100%; margin-top: 8px; }
}

/* trust row: teal stars · score · divider · press wordmarks */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin-top: 30px;
}
.hero-trust__stars {
  display: inline-flex;
  gap: 4px;
  color: var(--color-teal);
  font-size: 0.8rem;
}
.hero-trust__score {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-ink);
}
.hero-trust__divider {
  width: 1px;
  height: 22px;
  background: var(--color-line);
}
.hero-trust__press {
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-body);
}

/* wide image strip under the panel */
.hero-strip {
  position: relative;
  margin-top: clamp(40px, 6vw, 56px);
}
.hero-strip img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: var(--border-w) solid var(--color-line);
  border-radius: var(--radius-img);
}
.hero-strip__chip {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-float);
  letter-spacing: 0.1em;
}
@media (max-width: 640px) {
  .hero-strip__chip {
    left: 12px;
    bottom: 12px;
    font-size: 0.66rem;
  }
}

/* ------------------------------------------------------------
   05. Trust stats — static numbers between thin hairlines
------------------------------------------------------------ */
.trust {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 36px 32px;
  border-left: 1px solid var(--color-line);
}
.trust__item:first-child {
  border-left: 0;
  padding-left: 0;
}
.trust__num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-pine);
}
.trust__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-body);
}
@media (max-width: 900px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item { padding: 28px 24px; }
  .trust__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust__item:nth-child(even) { border-left: 1px solid var(--color-line); padding-left: 24px; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--color-line); }
}
@media (max-width: 640px) {
  .trust__item { padding: 22px 16px; }
  .trust__item:nth-child(even) { padding-left: 16px; }
  .trust__num { font-size: 1.8rem; }
  .trust__label { font-size: 0.7rem; letter-spacing: 0.12em; }
}

/* ------------------------------------------------------------
   06. Process — heading + side image, zigzag timeline
------------------------------------------------------------ */
.process__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(48px, 7vw, 72px);
}
.process__side {
  flex: none;
  width: 264px;
}
.process__side img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--border-w) solid var(--color-line);
  border-radius: var(--radius-img);
}
.process__side figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-body);
}
.process__side figcaption::before {
  content: "";
  flex: none;
  width: 18px;
  height: 1.5px;
  background: var(--color-teal);
}

@media (max-width: 1100px) {
  .process__side { width: 232px; }
}
@media (max-width: 900px) {
  .process__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .process__side { width: min(100%, 320px); }
}

/* zigzag: center vertical line, cards alternating left/right */
.timeline {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
  background: var(--color-line);
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 88px 1fr;
  align-items: center;
  padding: 26px 0;
}
.timeline__dot {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: var(--border-w) solid var(--color-pine);
  border-radius: 50%;
  background: #ffffff;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-teal);
}
.timeline__card {
  grid-row: 1;
  width: min(100%, 430px);
  padding: 26px 28px;
  background: #ffffff;
  border: var(--border-w) solid var(--color-line);
  border-radius: var(--radius-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.timeline__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(13, 148, 136, 0.4);
}
.timeline__item:nth-child(odd) .timeline__card {
  grid-column: 1;
  justify-self: end;
}
.timeline__item:nth-child(even) .timeline__card {
  grid-column: 3;
  justify-self: start;
}
.timeline__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: var(--radius-card);
  background: var(--color-mint);
  color: var(--color-teal);
  font-size: 1.05rem;
}
.timeline__card h3 { font-size: 1.15rem; margin-bottom: 8px; }

/* mobile: line moves to the left, cards stack in one column */
@media (max-width: 900px) {
  .timeline::before {
    left: 23px;
    transform: none;
  }
  .timeline__item {
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding: 16px 0;
  }
  .timeline__dot {
    grid-column: 1;
    align-self: center;
    justify-self: start;
    width: 46px;
    height: 46px;
    font-size: 0.78rem;
  }
  .timeline__card,
  .timeline__item:nth-child(odd) .timeline__card,
  .timeline__item:nth-child(even) .timeline__card {
    grid-column: 2;
    justify-self: stretch;
    width: 100%;
    padding: 20px 22px;
  }
}

/* ------------------------------------------------------------
   07. Members — verified profile cards
------------------------------------------------------------ */
.members__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: clamp(40px, 6vw, 60px);
}
@media (max-width: 1100px) {
  .members__grid { gap: 20px; }
}
@media (max-width: 900px) {
  .members__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .members__grid { grid-template-columns: 1fr; }
}

.member-card {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 20px;
  background: #ffffff;
  border: var(--border-w) solid var(--color-line);
  border-radius: var(--radius-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(13, 148, 136, 0.4);
}
.member-card__media {
  display: block;
  width: 100%;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-img);
  overflow: hidden;
}
.member-card__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.member-card:hover .member-card__media img { transform: scale(1.04); }
.member-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 16px 8px 0;
}
.member-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.member-card__name { font-size: 1.12rem; }
.member-card__role { font-size: 0.92rem; color: var(--color-body); }
.member-card .text-link { margin-top: auto; padding-top: 12px; }

/* ------------------------------------------------------------
   08. Lightbox — white-framed minimal overlay
------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 50, 47, 0.55);
  cursor: pointer;
}
.lightbox__frame {
  position: relative;
  z-index: 1;
  width: min(88vw, 640px);
  padding: 12px;
  background: #ffffff;
  border: var(--border-w) solid var(--color-line);
  border-radius: var(--radius-img);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s ease;
}
.lightbox.is-open .lightbox__frame { transform: none; }
.lightbox__img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: calc(var(--radius-img) - 4px);
  background: var(--color-mist);
}
.lightbox__caption {
  padding: 12px 4px 4px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-body);
}
.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  background: #ffffff;
  border: var(--border-w) solid var(--color-line);
  border-radius: var(--radius-card);
  color: var(--color-pine);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: #ffffff;
}
.lightbox__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
}
.lightbox__nav--prev { left: -64px; }
.lightbox__nav--next { right: -64px; }
@media (max-width: 900px) {
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}
@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox__close { top: 10px; right: 10px; }
  .lightbox__nav { width: 40px; height: 40px; }
}

/* ------------------------------------------------------------
   09. Why — icon rows + staggered collage
------------------------------------------------------------ */
.why__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 1100px) {
  .why__grid { gap: clamp(32px, 5vw, 48px); }
}
@media (max-width: 900px) {
  .why__grid { grid-template-columns: 1fr; }
}

.why__list {
  display: grid;
  gap: 26px;
  margin-top: 34px;
}
.why__item {
  display: flex;
  gap: 18px;
}
.why__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-card);
  background: var(--color-mist);
  color: var(--color-teal);
  font-size: 1.1rem;
}
.why__text h3 { font-size: 1.1rem; margin-bottom: 6px; }
.why__text p { font-size: 0.97rem; }

/* staggered collage: main card + offset card below-right */
.why__media {
  position: relative;
  padding-bottom: 56px;
}
/* dotted grid accent behind the collage */
.why__media::before {
  content: "";
  position: absolute;
  top: -22px;
  right: -14px;
  width: 132px;
  height: 132px;
  background-image: radial-gradient(rgba(15, 61, 62, 0.18) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
}
.why__card {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 10px;
  background: #ffffff;
  border: var(--border-w) solid var(--color-line);
  border-radius: var(--radius-img);
}
.why__card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius-img) - 3px);
}
.why__badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--color-mint);
  box-shadow: var(--shadow-float);
}
.why__card--offset {
  width: min(62%, 300px);
  margin: -72px 4% 0 auto;
}
.why__card--offset figcaption {
  padding: 10px 6px 4px;
  font-size: 0.84rem;
  color: var(--color-body);
}
@media (max-width: 900px) {
  .why__media {
    max-width: 560px;
    padding-bottom: 44px;
  }
}

/* ------------------------------------------------------------
   10. Matchmaker — portrait + floating stat + checklist
------------------------------------------------------------ */
.matchmaker__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.matchmaker__media { position: relative; }
.matchmaker__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: var(--border-w) solid var(--color-line);
  border-radius: var(--radius-img);
}
.matchmaker__stat {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
  font-size: 0.85rem;
  color: var(--color-body);
}
.matchmaker__stat strong {
  margin-right: 4px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-teal);
}
@media (max-width: 900px) {
  .matchmaker__grid { grid-template-columns: 1fr; }
  .matchmaker__media { max-width: 520px; }
}

/* ------------------------------------------------------------
   11. Pricing — three plans on thin borders
------------------------------------------------------------ */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: clamp(44px, 6vw, 64px);
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: #ffffff;
  border: var(--border-w) solid var(--color-line);
  border-radius: var(--radius-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.plan:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.plan--featured { border-color: rgba(13, 148, 136, 0.5); }
.plan--featured:hover { border-color: var(--color-teal); }
.chip--tag {
  position: absolute;
  top: -14px;
  left: 24px;
}
.plan__name { font-size: 1.2rem; }
.plan__price {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-pine);
}
.plan__price span {
  margin-left: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-body);
}
.plan__list {
  flex: 1;
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-body);
}
.plan__list svg {
  flex: none;
  margin-top: 4px;
  color: var(--color-teal);
  font-size: 0.9rem;
}
.plan__btn { margin-top: 26px; width: 100%; }
@media (max-width: 900px) {
  .pricing__grid { grid-template-columns: 1fr; }
  .plan { width: 100%; max-width: 460px; margin-inline: auto; }
}

.pricing__note {
  margin-top: 30px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-body);
}

/* ------------------------------------------------------------
   12. Testimonials — quote cards
------------------------------------------------------------ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: clamp(40px, 6vw, 56px);
}
.quote-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: #ffffff;
  border: var(--border-w) solid var(--color-line);
  border-radius: var(--radius-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(13, 148, 136, 0.4);
}
.quote-card__stars {
  display: inline-flex;
  gap: 4px;
  color: var(--color-teal);
  font-size: 0.82rem;
}
.quote-card blockquote {
  flex: 1;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--color-ink);
  font-weight: 500;
}
.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-body);
}
.quote-card figcaption::before {
  content: "";
  flex: none;
  width: 18px;
  height: 1.5px;
  background: var(--color-teal);
}
@media (max-width: 900px) {
  .testimonials__grid { grid-template-columns: 1fr; }
  .quote-card { width: 100%; max-width: 560px; margin-inline: auto; }
}

/* ------------------------------------------------------------
   13. FAQ — minimal accordion
------------------------------------------------------------ */
.faq__wrap { max-width: 840px; }
.accordion {
  margin-top: clamp(32px, 5vw, 48px);
  border-bottom: 1px solid var(--color-line);
}
.accordion__item { border-top: 1px solid var(--color-line); }
.accordion__heading { margin: 0; }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--color-ink);
  transition: color 0.25s ease;
}
.accordion__trigger:hover { color: var(--color-teal); }

/* geometric plus/minus icon */
.accordion__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--color-pine);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background-color 0.25s ease;
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__item.is-open .accordion__icon {
  background: var(--color-teal);
  border-color: var(--color-teal);
}
.accordion__item.is-open .accordion__icon::before {
  background: #ffffff;
  transform: translate(-50%, -50%);
}
/* vertical bar folds away -> minus */
.accordion__item.is-open .accordion__icon::after {
  background: #ffffff;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.accordion__panel p {
  max-width: 68ch;
  padding: 0 4px 24px;
  font-size: 0.97rem;
}

/* ------------------------------------------------------------
   14. Join — deep pine CTA band
------------------------------------------------------------ */
.join {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 110px) 0;
  background: var(--color-pine);
  text-align: center;
}
/* subtle dotted pattern */
.join::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1.5px, transparent 1.6px);
  background-size: 24px 24px;
}
.join__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}
.join__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 760px;
  margin-inline: auto;
}
.join h2 {
  color: #ffffff;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}
.join p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
}
.join .btn--mint { margin-top: 10px; }

/* ------------------------------------------------------------
   15. Footer — deep pine, four columns
------------------------------------------------------------ */
.footer {
  background: var(--color-pine);
  color: rgba(255, 255, 255, 0.72);
  padding-top: clamp(56px, 7vw, 84px);
}
.footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease;
}
.footer a:hover {
  color: var(--color-mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(40px, 6vw, 64px);
}
.logo--footer .logo__word { color: #ffffff; }
.footer__blurb {
  max-width: 330px;
  margin-top: 16px;
  font-size: 0.95rem;
}
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-card);
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.footer__social a:hover {
  background: var(--color-mint);
  border-color: var(--color-mint);
  color: var(--color-pine);
  transform: translateY(-2px);
  text-decoration: none;
}
.footer__col h3 {
  margin-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-mint);
}
.footer__col ul {
  display: grid;
  gap: 12px;
  font-size: 0.95rem;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   16. Back-to-top — floating white square
------------------------------------------------------------ */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #ffffff;
  border: var(--border-w) solid var(--color-line);
  border-radius: var(--radius-card);
  color: var(--color-pine);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease,
    background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: #ffffff;
}

/* ------------------------------------------------------------
   17. Scroll reveals — animation-based so card hover
       transitions (transform) are never conflicted
------------------------------------------------------------ */
.js .reveal { opacity: 1; } /* always visible; animation optional */
.js .reveal.is-visible {
  opacity: 1;
  animation: tb-rise 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}
@keyframes tb-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* gentle stagger for card grids (declared AFTER the shorthand) */
.js .members__grid > :nth-child(2),
.js .pricing__grid > :nth-child(2),
.js .testimonials__grid > :nth-child(2) { animation-delay: 0.08s; }
.js .members__grid > :nth-child(3),
.js .pricing__grid > :nth-child(3),
.js .testimonials__grid > :nth-child(3) { animation-delay: 0.16s; }
.js .members__grid > :nth-child(4) { animation-delay: 0.05s; }
.js .members__grid > :nth-child(5) { animation-delay: 0.13s; }
.js .members__grid > :nth-child(6) { animation-delay: 0.21s; }

/* ------------------------------------------------------------
   18. Reduced motion — everything lands instantly
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Inline SVG icon support (Font Awesome Free 6.5.2, CC BY 4.0) ===== */
svg.fa-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ===== INSIGHTS (content section) ===== */
.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 4px;
}
.insight {
  border-top: 2px solid var(--color-teal);
  padding-top: 20px;
}
.insight__tag {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-teal-deep);
  margin: 0 0 10px;
}
.insight h3 {
  font-family: var(--font-head);
  font-size: 1.18rem;
  color: var(--color-ink);
  line-height: 1.35;
  margin: 0 0 12px;
}
.insight p {
  color: var(--color-body);
  font-size: .97rem;
  line-height: 1.75;
  margin: 0;
}
@media (max-width: 900px) {
  .insights__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


/* force media visible */
.member-card__media img,
.hero-strip img,
.join__bg,
.process__media img,
.why__media img,
.matchmaker__media img {
  opacity: 1 !important;
  visibility: visible !important;
}
.member-card.reveal,
.hero-strip.reveal {
  opacity: 1 !important;
}

/* header fix for longer logo text */
.logo__word {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  white-space: nowrap;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header__inner {
  gap: 12px;
  flex-wrap: nowrap;
}
.nav__list {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 18px;
}
@media (max-width: 1100px) {
  .logo__word { max-width: 36vw; }
}

/* header fix v2 */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo { flex: 0 1 auto; min-width: 0; }
.logo__word {
  font-size: clamp(0.9rem, 1.8vw, 1.12rem) !important;
  white-space: nowrap;
}
.nav { flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
@media (min-width: 901px) {
  .nav__list { display: flex; flex-wrap: wrap; gap: 10px 16px; }
  .nav__cta { display: none !important; }
}

/* matchmaker layout fix */
.matchmaker.section { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.matchmaker__grid {
  display: grid !important;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.matchmaker__media img {
  width: 100%;
  max-height: 480px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
@media (max-width: 900px) {
  .matchmaker__grid { grid-template-columns: 1fr !important; }
  .matchmaker__media { max-width: 360px; margin: 0 auto; }
  .matchmaker__media img { max-height: 420px; }
}
.insights__grid { margin-top: 28px; }
.section-head { margin-bottom: 28px; }
