:root {
  --cream: #f6f1e8;
  --cream-deep: #efe7d8;
  --paper: #fffdf8;
  --green: #1e4a28;
  --green-hover: #163820;
  --terracotta: #c85a4a;
  --terracotta-hover: #b44c3d;
  --gold: #c9a227;
  --red: #c24a42;
  --text: #1c1c1c;
  --muted: #6d6a64;
  --line: #e4ddd0;
  --shadow: 0 18px 50px rgba(40, 28, 18, 0.12);
  --header-h: 78px;
  --tabbar-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
h1, h2, h3 { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: 0.2s ease;
}
.btn-green { background: var(--green); color: #fff; padding: 10px 18px; }
.btn-green:hover { background: var(--green-hover); }
.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1.5px solid #2a2a2a;
  padding: 9px 16px;
}
.btn-ghost:hover { background: #f4f4f4; }
.btn-coral { background: var(--terracotta); color: #fff; padding: 13px 18px; font-size: 15px; }
.btn-coral:hover { background: var(--terracotta-hover); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; min-width: 180px; }
.btn-block { width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark { width: 42px; height: 42px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand { font-size: 22px; letter-spacing: -0.02em; }
.brand b { color: var(--green); font-weight: 700; }
.brand i { color: var(--terracotta); font-style: normal; font-weight: 700; }
.logo-text small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
  margin-top: 3px;
}
.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 28px 36px;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1.2fr) 340px;
  gap: 0 18px;
  align-items: center;
}
.hero-copy h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  max-width: 11ch;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--terracotta);
  display: inline;
}
.lede {
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 36ch;
}
.trust-row {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.trust-row li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #3a3a3a;
}
.badge-icon, .why-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.badge-icon svg, .why-icon svg { width: 16px; height: 16px; fill: #fff; }
.badge-icon.green, .why-icon.green, .dot.green { background: #2f6a38; }
.badge-icon.red, .why-icon.red, .dot.red { background: var(--red); }
.badge-icon.gold, .why-icon.gold, .dot.gold { background: var(--gold); }
.fine {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.fine .check { color: var(--green); font-weight: 700; }

.hero-photo {
  border-radius: 18px;
  overflow: hidden;
  min-height: 520px;
  box-shadow: var(--shadow);
}
.hero-photo img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 20%;
}

.join-card {
  background: #fff;
  border-radius: 16px;
  padding: 26px 24px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-left: -56px;
  z-index: 2;
}
.join-card h2 {
  font-size: 26px;
  font-weight: 700;
}
.join-card > p {
  margin: -4px 0 6px;
  color: var(--muted);
  font-size: 13.5px;
}
.join-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.join-card input, .join-card select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-size: 14px;
  outline: none;
  appearance: none;
}
.join-card input:focus, .join-card select:focus {
  border-color: #c8b89a;
  box-shadow: 0 0 0 3px rgba(200, 184, 154, 0.25);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #888;
  border-bottom: 2px solid #888;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.password-field { position: relative; display: block; }
.password-field input { padding-right: 42px; }
.eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 32px;
  height: 32px;
  color: #888;
}
.eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eye .eye-open { display: none; }
.eye.is-open .eye-closed { display: none; }
.eye.is-open .eye-open { display: block; }
.legal {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  margin: 2px 0 0;
  font-weight: 400;
}
.legal a { text-decoration: underline; }

.why {
  background: var(--paper);
  padding: 56px 28px 64px;
}
.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.diamond {
  width: 8px;
  height: 8px;
  background: var(--terracotta);
  transform: rotate(45deg);
  display: inline-block;
}
.why-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}
.why-icon svg { width: 28px; height: 28px; }
.why-grid h3 { font-size: 18px; margin-bottom: 8px; }
.why-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.members {
  padding: 42px 28px 52px;
  max-width: 1240px;
  margin: 0 auto;
}
.members-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
}
.members-head h2 { font-size: 28px; }
.view-all { color: var(--terracotta); font-weight: 600; font-size: 14px; }
.carousel-wrap { position: relative; }
.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 8px 10px;
}
.carousel::-webkit-scrollbar { display: none; }
.member-card {
  flex: 0 0 210px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(40, 28, 18, 0.08);
  position: relative;
}
.member-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center 20%;
}
.member-body { padding: 12px 14px 16px; }
.member-body h3 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.verified {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2f6a38;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.loc {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.pill.baby { background: #f3d4cf; color: #9a3d34; }
.pill.daddy { background: #d7ead8; color: #1e4a28; }
.heart {
  position: absolute;
  right: 12px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #c9c1b6;
}
.heart.liked { color: var(--terracotta); }
.heart svg { width: 22px; height: 22px; fill: currentColor; }
.carousel-btn {
  position: absolute;
  top: 42%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  z-index: 2;
}
.carousel-btn.prev { left: -8px; }
.carousel-btn.next { right: -8px; }

.trust-bar {
  background: #1b1612;
  color: #ece6dc;
  min-height: 78px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.trust-bar-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.trust-bar-inner div { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.geo-pattern {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 280px;
  opacity: 0.18;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, #c9a227 14px 15px),
    repeating-linear-gradient(45deg, transparent 0 18px, #c85a4a 18px 19px);
}

.site-footer {
  background: #14110e;
  color: #d8d0c4;
  text-align: center;
  padding: 28px 20px 36px;
}
.site-footer nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.site-footer nav a:hover { color: #fff; }
.site-footer nav span { color: #8a8278; font-weight: 400; }
.site-footer p {
  margin: 12px 0 0;
  font-size: 12px;
  color: #8a8278;
}

.icon-btn {
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  z-index: 90;
  box-shadow: var(--shadow);
}

.page {
  max-width: 720px;
  margin: 40px auto 80px;
  background: #fff;
  padding: 36px 32px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.page h1 { font-size: 32px; margin-bottom: 12px; }
.page p { color: var(--muted); line-height: 1.7; }

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 340px;
    grid-template-areas:
      "copy copy"
      "photo card";
  }
  .hero-copy { grid-area: copy; }
  .hero-photo { grid-area: photo; }
  .join-card { grid-area: card; margin-left: 0; }
  .hero-copy h1 { max-width: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 12px;
    gap: 10px;
  }
  .logo-text small { display: none; }
  .brand { font-size: 18px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-ghost,
  .header-actions .btn-green { padding: 8px 12px; font-size: 13px; }
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "photo" "card";
    padding: 12px 16px 24px;
    gap: 18px;
  }
  .join-card { margin-left: 0; }
  .hero-copy h1 {
    font-size: 34px;
    max-width: 12ch;
  }
  .hero-photo, .hero-photo img { min-height: 0; height: 340px; }
  .trust-row { gap: 12px; }
  .trust-row li { font-size: 12px; }
  .why { padding: 36px 16px 42px; }
  .section-title { font-size: 24px; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; max-width: 420px; }
  .members { padding: 28px 16px 40px; }
  .carousel-btn { display: none; }
  .trust-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }
}
