:root {
  --rose: #b35553;
  --rose-dark: #9a4543;
  --rose-soft: #c97876;
  --cream: #f7f2ea;
  --cream-deep: #efe6d8;
  --ink: #2a221f;
  --ink-soft: #5c524c;
  --charcoal: #2c2421;
  --charcoal-deep: #221c1a;
  --gold: #c4a574;
  --white: #ffffff;
  --baby-tag: #b35553;
  --daddy-tag: #c4a882;
  --header-h: 76px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --shadow-card: 0 18px 50px rgba(42, 34, 31, 0.18);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}

.btn-primary:hover {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
}

.btn-outline {
  background: transparent;
  color: var(--rose);
  border-color: var(--rose);
}

.btn-outline:hover {
  background: rgba(179, 85, 83, 0.08);
}

.btn-block {
  width: 100%;
  min-height: 50px;
  font-size: 1rem;
  font-weight: 600;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 34, 31, 0.06);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--rose);
}

.logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.logo-text small {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.65rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: max(640px, calc(100vh - var(--header-h)));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    url("/new-v2/images/hero-sa.jpg")
    center 35% / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 20, 18, 0.62) 0%, rgba(28, 20, 18, 0.38) 45%, rgba(28, 20, 18, 0.28) 100%),
    linear-gradient(180deg, rgba(28, 20, 18, 0.18) 0%, rgba(28, 20, 18, 0.12) 50%, rgba(28, 20, 18, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  color: var(--white);
  max-width: 560px;
  animation: fadeUp 0.9s ease both;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.65rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.hero-copy h1 span {
  display: block;
  color: var(--rose-soft);
  font-weight: 700;
}

.hero-sub {
  font-size: 1.08rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  max-width: 420px;
}

.trust-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}

.trust-badges li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold);
}

.trust-icon svg {
  width: 15px;
  height: 15px;
}

.signup-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.65rem 1.5rem;
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.9s ease 0.15s both;
}

.signup-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.signup-head h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.signup-head p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.field {
  display: block;
  margin-bottom: 0.85rem;
}

.field > span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(42, 34, 31, 0.14);
  border-radius: 8px;
  background: #fbfaf8;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c524c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

.field input:focus,
.field select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(179, 85, 83, 0.15);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 2.75rem;
}

.toggle-password {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.toggle-password svg {
  width: 18px;
  height: 18px;
  grid-area: 1 / 1;
}

.toggle-password .eye-visible {
  display: none;
}

.toggle-password.is-visible .eye-hidden {
  display: none;
}

.toggle-password.is-visible .eye-visible {
  display: block;
}

.signup-legal {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.signup-legal a {
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— How It Works —— */
.how-it-works {
  padding: 4.5rem 1.5rem 4rem;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2.5rem;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.step {
  text-align: center;
  padding: 0 0.5rem;
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(179, 85, 83, 0.28);
  transition: transform 0.3s ease;
}

.step:hover .step-icon {
  transform: translateY(-4px) scale(1.04);
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.step h3 span {
  color: var(--rose);
}

.step p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1.6rem;
  color: rgba(179, 85, 83, 0.45);
}

.step-arrow svg {
  width: 40px;
  height: 16px;
}

/* —— Featured Members —— */
.featured {
  padding: 1rem 1.5rem 4.5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.featured-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.featured-head .section-title {
  margin-bottom: 0;
}

.view-more {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--rose);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.view-more:hover {
  opacity: 0.75;
}

.members-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.15rem;
}

.member-card {
  text-align: center;
  transition: transform 0.3s ease;
}

.member-card:hover {
  transform: translateY(-6px);
}

.member-photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream-deep);
  margin-bottom: 0.75rem;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.member-card:hover .member-photo img {
  transform: scale(1.05);
}

.online-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3ecf6e;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.member-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.location {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0.15rem 0 0.55rem;
}

.role {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.role-baby {
  background: rgba(179, 85, 83, 0.12);
  color: var(--baby-tag);
}

.role-daddy {
  background: rgba(196, 168, 130, 0.28);
  color: #8a6d45;
}

.members-dots {
  display: none;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(42, 34, 31, 0.2);
  cursor: pointer;
  padding: 0;
}

.dot.active {
  background: var(--rose);
  width: 18px;
  border-radius: 999px;
}

/* —— Feature bar —— */
.feature-bar {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(196, 165, 116, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(179, 85, 83, 0.1), transparent 45%),
    var(--charcoal);
  color: rgba(255, 255, 255, 0.88);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 3.25rem 2rem;
  position: relative;
  overflow: hidden;
}

.feature-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 8c-1 8-5 14-11 18 5 1.5 10 5.5 12 11 1.5-4 5.5-8 11-10-6-1.5-11-7.5-12-19z' fill='%23c4a574'/%3E%3C/svg%3E");
  pointer-events: none;
}

.feature-item {
  position: relative;
  text-align: center;
  padding: 0.5rem 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.9rem;
  color: var(--gold);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.feature-item p {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  max-width: 240px;
  margin: 0 auto;
}

/* —— Footer —— */
.site-footer {
  background: var(--charcoal-deep);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 1.65rem 1.25rem 1.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.15rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.footer-links a {
  padding: 0.35rem 0.65rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links .sep {
  color: rgba(255, 255, 255, 0.28);
  user-select: none;
}

.copyright {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

/* —— Animations —— */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Tablet —— */
@media (max-width: 1100px) {
  .members-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .step-arrow {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-copy {
    max-width: 640px;
    text-align: center;
    margin: 0 auto;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .trust-badges {
    justify-content: center;
  }

  .signup-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .feature-bar {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }
}

/* —— Mobile —— */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    padding: 0.65rem 1rem;
    gap: 0.65rem;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .header-actions .btn {
    min-height: 36px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .logo-text strong {
    font-size: 1.25rem;
  }

  .logo-text small {
    display: none;
  }

  .hero {
    min-height: 0;
    display: block;
  }

  .hero-media {
    position: relative;
    height: 58vw;
    min-height: 280px;
    max-height: 420px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(28, 20, 18, 0.2) 0%, rgba(28, 20, 18, 0.55) 55%, rgba(28, 20, 18, 0.85) 100%);
  }

  .hero-content {
    position: relative;
    margin-top: -7.5rem;
    padding: 0 1rem 2rem;
    gap: 0;
  }

  .hero-copy {
    margin-bottom: 1.35rem;
    animation: fadeUp 0.8s ease both;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 7vw, 2.35rem);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .trust-badges {
    gap: 0.75rem 1rem;
  }

  .trust-badges li {
    font-size: 0.72rem;
  }

  .signup-card {
    max-width: none;
    margin: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 40px rgba(42, 34, 31, 0.12);
  }

  .how-it-works {
    padding: 3rem 1rem 2.5rem;
  }

  .steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .steps::-webkit-scrollbar {
    display: none;
  }

  .step {
    flex: 0 0 72%;
    scroll-snap-align: center;
    background: var(--white);
    border-radius: 14px;
    padding: 1.5rem 1.15rem;
    box-shadow: 0 8px 28px rgba(42, 34, 31, 0.06);
  }

  .featured {
    padding: 0.5rem 0 3rem;
  }

  .featured-head {
    padding: 0 1rem;
    margin-bottom: 1.25rem;
  }

  .members-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.9rem;
    padding: 0 1rem 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .members-track::-webkit-scrollbar {
    display: none;
  }

  .member-card {
    flex: 0 0 58%;
    max-width: 220px;
    scroll-snap-align: start;
  }

  .members-dots {
    display: flex;
  }

  .feature-bar {
    display: none;
  }

  .site-footer {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }

  /* Mobile sticky trust bar (matches design bottom strip) */
  body::after {
    content: none;
  }

  .mobile-trust {
    display: grid;
  }
}

/* Mobile bottom trust strip */
.mobile-trust {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  grid-template-columns: repeat(4, 1fr);
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 0.35rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
}

.mobile-trust a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.58rem;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 0.25rem;
}

.mobile-trust svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

@media (max-width: 768px) {
  .mobile-trust {
    display: grid;
  }
}

@media (min-width: 769px) {
  .mobile-trust {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .trust-badges {
    gap: 0.65rem 1rem;
    justify-content: center;
  }

  .trust-badges li {
    font-size: 0.68rem;
  }

  .trust-icon {
    width: 24px;
    height: 24px;
  }

  .trust-icon svg {
    width: 13px;
    height: 13px;
  }

  .member-card {
    flex-basis: 68%;
  }

  .footer-links {
    font-size: 0.78rem;
  }
}
