:root {
  --teal: #3a1f9e;
  --teal-2: #7b2fd6;
  --teal-bright: #9d5cf0;
  --teal-deep: #271252;
  --coral: #e81e9b;
  --coral-deep: #c70d82;

  --ink: #241346;
  --body: #4b4358;
  --muted: #8b82a0;

  --bg: #ffffff;
  --bg-soft: #f5f1fd;
  --line: #e7ddf8;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);

  --head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Mulish', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --shadow: 0 22px 60px -28px rgba(58, 31, 158, 0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--body);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 999; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
p { color: var(--body); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .82rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-2);
  margin-bottom: 16px;
}
.eyebrow.light { color: #ffd6f1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  font-family: var(--head);
  font-weight: 700; font-size: .98rem;
  letter-spacing: 0.01em;
  padding: 15px 32px;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-join {
  background: linear-gradient(135deg, var(--coral) 0%, var(--teal-2) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px -6px rgba(123, 47, 214, 0.45);
}
.btn-join:hover { background: linear-gradient(135deg, var(--coral-deep) 0%, var(--teal) 100%); border-color: transparent; transform: translateY(-2px); box-shadow: 0 10px 22px -7px rgba(123, 47, 214, 0.55); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.85); }
.btn-ghost:hover { background: #fff; color: var(--teal); }
.btn-lg { padding: 17px 40px; font-size: 1.05rem; }

.site-header {
  position: relative; z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px -8px rgba(58, 31, 158, 0.2);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand img { width: clamp(180px, 22vw, 260px); height: auto; }
.header-right { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 18px); }
.login-link { font-family: var(--head); font-size: .92rem; font-weight: 600; color: var(--teal); }
.login-link:hover { color: var(--teal-bright); }
.header-right .btn { padding: 11px 24px; font-size: .92rem; }

.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: min(76vh, 660px);
  padding: clamp(48px, 8vw, 96px) 0;
  background:
    linear-gradient(95deg, rgba(39,18,82,0.86) 0%, rgba(39,18,82,0.55) 40%, rgba(39,18,82,0.12) 66%, rgba(39,18,82,0) 88%),
    url('/images/swingingseniorcouples-splash-new-img1.jpg?v=4') right center / cover no-repeat,
    var(--teal-deep);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 620px; }
.hero h1, .hero .hero-heading {
  font-family: var(--head); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em;
  color: #fff;
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.hero h1 .accent, .hero .hero-heading .accent { color: #ff6fc7; }
.hero-sub { color: #fff; font-size: 1.18rem; margin-bottom: 30px; max-width: 46ch; text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.steps { background: var(--bg-soft); padding: clamp(28px, 4vw, 48px) 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px); }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(24px, 3vw, 32px);
  box-shadow: 0 16px 40px -28px rgba(58, 31, 158, 0.35);
}
.step-ico {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(140deg, var(--coral), var(--teal-2));
  color: #fff; margin-bottom: 16px;
}
.step h3 { margin-bottom: 10px; font-size: 1.25rem; }
.step p { font-size: 1rem; color: var(--body); }

.editorial { padding: clamp(56px, 8vw, 110px) 0; }
.editorial .container { max-width: 920px; }
.prose-block { margin-bottom: clamp(40px, 6vw, 64px); }
.prose-block:last-child { margin-bottom: 0; }
.prose-block h2, .prose-block h3 { margin-bottom: 16px; }
.prose-block h2 { color: var(--teal); }
.prose-block h3 { color: var(--teal-2); }
.prose-block p { font-size: 1.12rem; line-height: 1.85; margin-bottom: 16px; }
.prose-block p:last-child { margin-bottom: 0; }
.prose-block ul { margin: 0 0 16px 22px; }
.prose-block li { font-size: 1.12rem; line-height: 1.7; margin-bottom: 10px; }
.prose-block li:last-child { margin-bottom: 0; }
.prose-block.alt { background: var(--bg-soft); border-left: 4px solid var(--coral); border-radius: 0 14px 14px 0; padding: clamp(24px, 3vw, 36px); }
.prose-cta { margin-top: 28px; text-align: center; }

.cta-band {
  text-align: center;
  padding: clamp(56px, 8vw, 104px) 0;
  background: linear-gradient(135deg, var(--coral) 0%, var(--teal-2) 48%, var(--teal-deep) 100%);
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 48ch; margin: 0 auto 28px; font-size: 1.12rem; }
.cta-band .btn-join { background: #fff; color: var(--teal); border-color: #fff; box-shadow: 0 14px 32px -12px rgba(0,0,0,0.3); }
.cta-band .btn-join:hover { background: #fff; color: var(--coral-deep); transform: translateY(-2px); }

.site-footer { background: var(--teal-deep); color: #fff; padding: 52px 0 36px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.footer-logo img { width: 240px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.2); }
.footer-links a { font-size: .95rem; color: rgba(255,255,255,0.9); text-decoration: underline; }
.footer-links a:hover { color: var(--teal-bright); }
.footer-copy { margin-top: 18px; font-size: .9rem; color: rgba(255,255,255,0.75); }

.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--teal-deep); color: #fff;
  padding: 16px var(--gutter);
  transform: translateY(120%); transition: transform .4s ease;
}
.cookie.show { transform: translateY(0); }
.cookie-inner { max-width: var(--maxw); margin: 0 auto; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie p { font-size: .95rem; color: rgba(255,255,255,0.92); margin: 0; flex: 1; min-width: 240px; }
.cookie a { color: var(--teal-bright); text-decoration: underline; }
.cookie .btn { padding: 11px 26px; background: var(--coral); color: #fff; border-color: var(--coral); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero {
    min-height: 78vh;
    align-items: flex-end;
    padding: 0 0 clamp(34px, 8vw, 52px);
    background:
      linear-gradient(180deg, rgba(39,18,82,0.10) 0%, rgba(39,18,82,0.50) 55%, rgba(39,18,82,0.92) 100%),
      url('/images/swingingseniorcouples-splash-new-mob1.jpg?v=4') center top / cover no-repeat,
      var(--teal-deep);
  }
  .hero-inner { max-width: 100%; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { flex: 1; padding: 14px 8px; font-size: .9rem; }
  .header-right { gap: 10px; }
}
@media (max-width: 520px) {
  .steps-grid { grid-template-columns: 1fr; }
  .hero-ctas { width: 100%; }
}
