:root {
  --ink: #083f56;
  --ink-dark: #012f42;
  --muted: #2c3e46;
  --aqua: #dff4f4;
  --aqua-strong: #53b8b0;
  --gold: #eda800;
  --coral: #f25f50;
  --blue: #2e7fb8;
  --green: #6fa65b;
  --purple: #8e67ad;
  --line: #d8e7e7;
  --shadow: 0 18px 45px rgba(9, 55, 70, 0.12);
  --soft-shadow: 0 12px 28px rgba(9, 55, 70, 0.1);
  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 3%, rgba(83, 184, 176, 0.13), transparent 28rem),
    radial-gradient(circle at 95% 24%, rgba(237, 168, 0, 0.09), transparent 20rem),
    #fff;
  color: var(--ink);
  font-family: var(--sans);
}

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

.site-header,
main,
.site-footer {
  width: min(100% - 40px, 1480px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 92px;
  margin-top: 24px;
  padding: 18px 28px;
  border: 1px solid rgba(8, 63, 86, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 1 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.35vw, 2.45rem);
  font-weight: 800;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 2.7rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 38px);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink-dark);
}

.nav-links a {
  position: relative;
  padding: 12px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 4px;
  border-radius: 999px;
  background: #0c7281;
  content: "";
  opacity: 0;
  transform: scaleX(0.65);
  transition: 180ms ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(9, 55, 70, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(9, 55, 70, 0.2);
}

.button-primary {
  background: linear-gradient(180deg, #f66e61, var(--coral));
  color: #fff;
}

.button-secondary {
  background: linear-gradient(180deg, #08718b, #004d67);
  color: #fff;
}

.button-large {
  min-height: 74px;
  padding-inline: 42px;
  font-size: clamp(1.05rem, 1.6vw, 1.5rem);
}

.button-small {
  min-height: 44px;
  padding-inline: 20px;
  font-size: 0.95rem;
  box-shadow: 0 9px 18px rgba(9, 55, 70, 0.13);
}

.section-pad {
  padding: clamp(54px, 7vw, 96px) 0;
}

.landing-page main {
  padding-top: clamp(24px, 4vw, 56px);
}

.landing-video-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  align-items: center;
  gap: clamp(30px, 5vw, 78px);
  min-height: clamp(620px, 56vw, 820px);
}

.landing-video-section-alt {
  grid-template-columns: minmax(360px, 1.18fr) minmax(280px, 0.82fr);
}

.landing-video-section-alt .landing-video-copy {
  order: 2;
}

.landing-video-copy h1,
.landing-video-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 6.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.landing-video-copy p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--ink-dark);
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  line-height: 1.7;
}

.landing-eyebrow {
  margin: 0 0 18px !important;
  color: var(--gold) !important;
  font-size: 0.92rem !important;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.landing-video-frame {
  display: grid;
  min-height: clamp(360px, 38vw, 620px);
  padding: clamp(14px, 1.5vw, 22px);
  border: 1px solid rgba(8, 63, 86, 0.1);
  border-radius: 34px;
  background:
    linear-gradient(150deg, rgba(223, 244, 244, 0.82), rgba(255, 255, 255, 0.96)),
    #fff;
  box-shadow: var(--shadow);
}

.iframe-placeholder {
  display: grid;
  place-items: center;
  min-height: 100%;
  border: 3px dashed rgba(8, 63, 86, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 28% 24%, rgba(83, 184, 176, 0.26), transparent 16rem),
    radial-gradient(circle at 76% 78%, rgba(237, 168, 0, 0.18), transparent 14rem),
    #f8fdfd;
  color: rgba(8, 63, 86, 0.58);
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 900;
  text-align: center;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(620px, 55vw, 840px);
  margin-top: 24px;
  padding: clamp(54px, 8vw, 116px) clamp(28px, 4.2vw, 74px);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(244, 252, 253, 0.92) 0%, rgba(244, 252, 253, 0.72) 33%, rgba(244, 252, 253, 0) 55%),
    url("assets/hero/heroimage-clean.png") center right / cover no-repeat;
  overflow: hidden;
}

.hero-copy h1,
.section-heading h2,
.wisdom-copy h2,
.join-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(3.4rem, 6.5vw, 7.4rem);
  line-height: 0.98;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(50%, 760px);
}

.hero-copy p {
  max-width: 630px;
  margin: 30px 0 0;
  color: var(--ink-dark);
  font-size: clamp(1.05rem, 1.4vw, 1.45rem);
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 38px;
}

.script-note {
  color: var(--gold) !important;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2.1rem, 4vw, 4rem) !important;
  line-height: 1.1 !important;
}

.section-heading {
  max-width: 1050px;
  margin: 0 auto clamp(36px, 4vw, 58px);
  text-align: center;
}

.section-heading h2,
.wisdom-copy h2,
.join-copy h2 {
  font-size: clamp(2.5rem, 5vw, 5.9rem);
  line-height: 1.04;
}

.section-heading p {
  margin: 14px 0 0;
  color: #22272b;
  font-size: clamp(1.05rem, 1.6vw, 1.6rem);
  font-weight: 600;
}

.ornament,
.rule-heart {
  color: var(--gold);
  font-size: 3.5rem;
  line-height: 1;
}

.club-grid,
.perks-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
}

.club-card,
.perk-card {
  position: relative;
  min-height: 500px;
  padding: 0 24px 30px;
  border: 1px solid rgba(8, 63, 86, 0.12);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  text-align: center;
  overflow: hidden;
}

.club-card {
  transform-origin: center;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  z-index: 1;
}

.club-card:hover {
  border-color: rgba(8, 63, 86, 0.22);
  transform: translateY(-10px) scale(1.045);
  z-index: 5;
}

.dog-card:hover { box-shadow: 0 26px 58px rgba(8, 63, 86, 0.32); }
.cat-card:hover { box-shadow: 0 26px 58px rgba(142, 103, 173, 0.38); }
.bird-card:hover { box-shadow: 0 26px 58px rgba(111, 166, 91, 0.38); }
.fish-card:hover { box-shadow: 0 26px 58px rgba(46, 127, 184, 0.38); }
.all-card:hover { box-shadow: 0 26px 58px rgba(242, 95, 80, 0.38); }

.club-art {
  display: grid;
  place-items: center;
  height: 330px;
  margin: 0 -24px 22px;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.club-art::after {
  position: absolute;
  right: 0;
  bottom: 108px;
  left: 0;
  height: 92px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 78%);
  content: "";
  pointer-events: none;
}

.dog-card .club-art { background-image: url("pet-dog.png"); }
.cat-card .club-art { background-image: url("pet-cat.png"); }
.bird-card .club-art { background-image: url("pet-bird.png"); }
.fish-card .club-art { background-image: url("pet-fish.png"); }
.all-card .club-art { background-image: url("pet-allpets.png"); }

.club-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 81px;
  height: 81px;
  margin: -50px auto 18px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.club-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  transform: scale(3);
}

.dog-card .club-icon img { transform: translateY(3px) scale(3); }
.cat-card .club-icon img { transform: translateY(5px) scale(3); }
.bird-card .club-icon img { transform: translateY(3px) scale(3); }
.fish-card .club-icon img { transform: translateY(7px) scale(3); }

.all-card .club-icon img {
  object-position: center;
  transform: translateY(7px) scale(3);
}

.club-card h3,
.perk-card h3,
.reward-flow h3,
.how-step h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.1vw, 2.6rem);
  line-height: 1.1;
}

.club-card h3 {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35em;
  margin-top: -20px;
  padding: 12px 18px;
  border-radius: 16px;
  font-size: clamp(1.45rem, 1.62vw, 2.05rem);
  line-height: 1.08;
  text-wrap: balance;
}

.cat-card h3 { color: var(--purple); }
.bird-card h3 { color: var(--green); }
.fish-card h3 { color: var(--blue); }
.all-card h3 { color: var(--coral); }

.club-card p,
.perk-card p,
.how-step p {
  margin: 14px 0 0;
  color: #25282b;
  font-size: 1.1rem;
  line-height: 1.55;
}

.club-card p {
  color: var(--ink);
}

.cat-card p { color: var(--purple); }
.bird-card p { color: var(--green); }
.fish-card p { color: var(--blue); }
.all-card p { color: var(--coral); }

.wisdom-panel,
.join-panel {
  width: min(100% - 40px, 1540px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 88px);
  border-radius: 54px;
  background: linear-gradient(115deg, #eefafa, #dff4f4);
  box-shadow: var(--soft-shadow);
}

.how-section {
  border-radius: 54px;
  background: linear-gradient(115deg, #eefafa, #dff4f4);
  box-shadow: var(--soft-shadow);
}

.wisdom-panel {
  background: transparent;
  box-shadow: none;
}

.wisdom-title,
.wisdom-quote {
  grid-column: 1 / -1;
  text-align: center;
}

.wisdom-title h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5.9rem);
  font-weight: 800;
  line-height: 1.04;
}

.wisdom-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  margin-top: clamp(26px, 4vw, 54px);
}

.wisdom-image {
  display: block;
  width: 100%;
  max-height: 470px;
  border-radius: 34px;
  box-shadow: var(--soft-shadow);
  object-fit: cover;
  object-position: center 58%;
}

.wisdom-copy h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.975vw, 3.4rem);
  line-height: 1.1;
}

.wisdom-copy p,
.join-copy p {
  max-width: 900px;
  margin: 26px 0 0;
  color: #2b2d30;
  font-size: clamp(1.15rem, 1.9vw, 2rem);
  line-height: 1.7;
}

.wisdom-copy p {
  font-size: clamp(0.9775rem, 1.615vw, 1.7rem);
}

.wisdom-copy .wisdom-belief {
  font-size: clamp(0.85rem, 1.2325vw, 1.3175rem);
}

.wisdom-quote blockquote {
  color: var(--gold);
}

blockquote {
  margin: clamp(28px, 4vw, 54px) 0 0;
  color: var(--ink);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2.1rem, 4vw, 5.1rem);
  line-height: 1.1;
}

.perks-section {
  padding-bottom: clamp(44px, 6vw, 88px);
}

.perks-section .section-heading h2 {
  font-size: clamp(1.65rem, 5vw, 5.2rem);
}

.perks-section .section-heading h2 span {
  display: block;
  white-space: nowrap;
}

.perks-controls {
  display: none;
}

.perks-carousel {
  position: relative;
  display: block;
  height: clamp(430px, 42vw, 560px);
  perspective: 1600px;
  overflow: hidden;
}

.perk-card {
  min-height: 430px;
  padding-top: 54px;
}

.perks-carousel .perk-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(430px, 78vw);
  height: min(430px, 78vw);
  min-height: 0;
  padding: 0;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.35);
  transform-style: preserve-3d;
  transition:
    transform 800ms cubic-bezier(0.65, 0, 0.35, 1),
    opacity 800ms ease,
    filter 800ms ease;
  will-change: transform, opacity, filter;
}

.perk-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.perk-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 54px 34px 40px;
  border-radius: 26px;
  background: #fff;
  backface-visibility: hidden;
}

.perk-card-back {
  transform: rotateY(180deg);
}

.perks-carousel .perk-card.is-active {
  z-index: 5;
  opacity: 1;
  filter: none;
  transform: translate3d(-50%, -50%, 160px) scale(1);
}

.perks-carousel .perk-card.is-left-1 {
  z-index: 4;
  opacity: 0.55;
  filter: saturate(0.72) blur(0.2px);
  transform: translate3d(calc(-50% - 250px), calc(-50% + 58px), 30px) rotateZ(-9deg) scale(0.35);
}

.perks-carousel .perk-card.is-left-2 {
  z-index: 3;
  opacity: 0.28;
  filter: saturate(0.55) blur(0.7px);
  transform: translate3d(calc(-50% - 380px), calc(-50% + 126px), -80px) rotateZ(-15deg) scale(0.35);
}

.perks-carousel .perk-card.is-right-1 {
  z-index: 4;
  opacity: 0.55;
  filter: saturate(0.72) blur(0.2px);
  transform: translate3d(calc(-50% + 250px), calc(-50% + 58px), 30px) rotateZ(9deg) scale(0.35);
}

.perks-carousel .perk-card.is-right-2 {
  z-index: 3;
  opacity: 0.28;
  filter: saturate(0.55) blur(0.7px);
  transform: translate3d(calc(-50% + 380px), calc(-50% + 126px), -80px) rotateZ(15deg) scale(0.35);
}

.perks-carousel .perk-card.is-spinning .perk-card-inner {
  animation: perk-card-spin 800ms cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes perk-card-spin {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(-360deg);
  }
}

.perk-icon,
.step-icon,
.soft-icon {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin: 0 auto 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 2.6rem;
  font-weight: 900;
}

.teal { background: linear-gradient(150deg, var(--aqua-strong), #0b7e82); }
.blue { background: linear-gradient(150deg, #74a8d6, #386caa); }
.coral { background: linear-gradient(150deg, #ff8275, var(--coral)); }
.purple { background: linear-gradient(150deg, #b08acd, var(--purple)); }
.green { background: linear-gradient(150deg, #86b974, var(--green)); }
.violet { background: linear-gradient(150deg, #ede9ff, #7668c7); color: #fff; }

.perk-card h3::after {
  display: block;
  width: 70%;
  height: 1px;
  margin: 24px auto 0;
  background: #ddd7cf;
  content: "";
}

.perk-card-back h3::after {
  display: none;
}

.reward-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 4vw, 72px);
  margin-top: 28px;
}

.reward-flow article {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 26px;
  min-height: 252px;
  padding: 34px 42px;
  border: 4px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition:
    transform 1500ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 1500ms ease,
    border-color 1500ms ease;
}

.step-number {
  position: absolute;
  top: -32px;
  left: -28px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 900;
  transform-origin: center;
  transition:
    top 1500ms cubic-bezier(0.22, 1, 0.36, 1),
    left 1500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1500ms cubic-bezier(0.22, 1, 0.36, 1),
    width 1500ms cubic-bezier(0.22, 1, 0.36, 1),
    height 1500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.step-icon {
  margin: 0;
  background: linear-gradient(150deg, #0c7890, #003d54);
  transition:
    margin 1500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reward-flow article h3 {
  transition:
    font-size 1500ms cubic-bezier(0.22, 1, 0.36, 1),
    text-align 1500ms ease;
}

.reward-flow article.is-active {
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  border-color: rgba(237, 168, 0, 0.55);
  box-shadow: 0 24px 54px rgba(9, 55, 70, 0.18);
  transform: translateY(-10px);
  transition-duration: 1500ms;
}

.reward-flow article.is-leaving,
.reward-flow article.is-leaving .step-number,
.reward-flow article.is-leaving .step-icon,
.reward-flow article.is-leaving h3 {
  transition-duration: 1000ms;
}

.reward-flow article.is-active .step-number {
  top: -42px;
  left: 50%;
  transform: translateX(-50%) scale(1.2);
}

.reward-flow article.is-active .step-icon {
  margin: 0 auto;
  transform: translateY(-4px);
}

.reward-flow article.is-active h3 {
  max-width: 92%;
  text-align: center;
  font-size: clamp(1.955rem, 2.415vw, 2.99rem);
}

.reward-flow article:nth-child(3) .step-icon {
  color: #fff;
  font-size: 0;
}

.reward-flow article:nth-child(3) .step-icon::before {
  width: 58px;
  height: 58px;
  background: #fff;
  content: "";
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 31c6.1 0 11-4.9 11-11S30.1 9 24 9 13 13.9 13 20s4.9 11 11 11Zm25 3c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8ZM24 37C13.5 37 5 43.2 5 50.8V55h38v-4.2C43 43.2 34.5 37 24 37Zm25 2c-2.9 0-5.6.7-7.9 1.9 3.8 2.7 6.4 6.2 6.4 9.9V55H59v-3.6C59 44.6 54.5 39 49 39Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.reward-flow article:nth-child(3) .step-icon::after {
  content: none;
}

.flow-note,
.closing-line {
  max-width: 980px;
  margin: 42px auto 0;
  color: var(--ink);
  text-align: center;
  font-size: clamp(1.25rem, 2vw, 2.15rem);
  line-height: 1.55;
}

.how-card {
  --how-gap: 28px;
  --how-pad: clamp(32px, 4vw, 54px);
  --how-highlight-x: var(--how-pad);
  --how-highlight-y: var(--how-pad);
  --how-highlight-width: 25%;
  --how-highlight-height: calc(100% - (var(--how-pad) * 2));
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--how-gap);
  padding: var(--how-pad);
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.how-card::before {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  width: var(--how-highlight-width);
  height: var(--how-highlight-height);
  border: 3px solid rgba(83, 184, 176, 0.38);
  border-radius: 26px;
  background:
    linear-gradient(150deg, rgba(83, 184, 176, 0.2), rgba(237, 168, 0, 0.14)),
    #f2fbfb;
  box-shadow: 0 18px 40px rgba(9, 55, 70, 0.12);
  content: "";
  pointer-events: none;
  transform: translate3d(var(--how-highlight-x), var(--how-highlight-y), 0);
  transition: transform 1000ms cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
  z-index: 0;
}

.how-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 100%;
  padding: 86px 20px 28px;
  border-radius: 26px;
}

.how-step .step-number {
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.how-step:nth-child(2) > .soft-icon,
.how-step:nth-child(2) > h3 {
  position: relative;
  left: clamp(12px, 1.5vw, 24px);
}

.soft-icon {
  margin: 0;
  background: #e7f6f7;
  overflow: hidden;
}

.soft-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.soft-icon.teal {
  background: linear-gradient(150deg, #5fd0ca, #07818a);
  box-shadow: 0 14px 28px rgba(8, 129, 138, 0.24);
  color: #fff;
}

.how-step h3 {
  font-size: clamp(1.6rem, 1.9vw, 2.2rem);
}

.join-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: clamp(460px, 42vw, 620px);
  margin-top: 44px;
  margin-bottom: 28px;
  background:
    linear-gradient(90deg, rgba(237, 250, 250, 0) 0%, rgba(237, 250, 250, 0.25) 42%, rgba(237, 250, 250, 0.94) 58%, rgba(237, 250, 250, 0.98) 100%),
    url("assets/hero/join-pets-bg.png") left center / cover no-repeat;
}

.join-copy {
  width: min(48%, 680px);
  text-align: left;
}

.join-copy .button {
  margin-top: 42px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
  margin-bottom: 36px;
  padding: 44px 58px;
  border-radius: 32px;
  background: linear-gradient(145deg, #00455d, #003247);
  color: #fff;
}

.footer-brand {
  color: #fff;
  font-size: clamp(1.5rem, 2vw, 2.45rem);
}

.site-footer p {
  margin: 12px 0 0;
  color: #9ed9d7;
  font-size: 1.05rem;
}

.socials {
  display: flex;
  gap: 22px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 900;
}

.footer-links {
  text-align: right;
}

.footer-links nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  font-weight: 800;
}

.modal-open {
  overflow: hidden;
}

.club-card[role="button"] {
  cursor: pointer;
}

.club-card[role="button"]:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 5px;
}

.division-modal[hidden] {
  display: none;
}

.division-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 54px);
}

.division-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 47, 66, 0.65);
  backdrop-filter: blur(10px);
}

.division-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(100%, 1120px);
  height: min(72vh, 700px);
  min-height: 540px;
  padding: clamp(30px, 4vw, 58px);
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 38px;
  background-color: #fff;
  box-shadow: 0 34px 100px rgba(1, 47, 66, 0.38);
}

.division-modal-message {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(45%, 450px);
  aspect-ratio: 1;
  padding: clamp(30px, 4vw, 54px);
  border: 1px solid color-mix(in srgb, var(--ink) 35%, white);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 18px 46px rgba(9, 55, 70, 0.16);
  text-align: center;
}

.division-modal-message::before,
.division-modal-message::after {
  position: absolute;
  background: #fff;
  content: "";
}

.division-modal-message::before {
  width: 92px;
  height: 76px;
  filter: drop-shadow(0 2px 1px rgba(8, 63, 86, 0.24));
}

.division-modal-message::after {
  display: none;
}

.division-modal-panel[data-division="dog"],
.division-modal-panel[data-division="cat"] {
  justify-content: flex-end;
  background:
    var(--division-art) left -22px bottom -118px / 43% auto no-repeat,
    #fff;
}

.division-modal-panel[data-division="dog"] .division-modal-message,
.division-modal-panel[data-division="cat"] .division-modal-message {
  margin-right: 7%;
}

.division-modal-panel[data-division="dog"] .division-modal-message::before,
.division-modal-panel[data-division="cat"] .division-modal-message::before {
  bottom: 10%;
  left: -70px;
  clip-path: polygon(100% 0, 100% 62%, 0 100%);
}

.division-modal-panel[data-division="bird"],
.division-modal-panel[data-division="fish"] {
  justify-content: flex-start;
  background:
    var(--division-art) right -22px bottom -118px / 46% auto no-repeat,
    #fff;
}

.division-modal-panel[data-division="bird"] .division-modal-message,
.division-modal-panel[data-division="fish"] .division-modal-message {
  margin-left: 7%;
}

.division-modal-panel[data-division="bird"] .division-modal-message::before,
.division-modal-panel[data-division="fish"] .division-modal-message::before {
  right: -70px;
  bottom: 10%;
  clip-path: polygon(0 0, 100% 100%, 0 62%);
}

.division-modal-panel[data-division="all"] {
  align-items: flex-start;
  justify-content: center;
  padding: 44px 40px;
  background:
    var(--division-art) center bottom -24px / 49% auto no-repeat,
    #fff;
}

.division-modal-panel[data-division="all"] .division-modal-message {
  width: min(62%, 650px);
  aspect-ratio: auto;
  padding: 28px 46px 32px;
  border-radius: 54px;
}

.division-modal-panel[data-division="all"] .division-modal-message::before {
  bottom: -62px;
  left: 50%;
  display: block;
  width: 104px;
  height: 68px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
}

.division-modal-panel[data-division="all"] .division-modal-message::after {
  display: none;
}

.division-modal-message h2 {
  margin: 0;
  color: var(--division-accent);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 4rem);
  line-height: 1.05;
}

.division-modal-message p {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  font-weight: 800;
}

.division-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.club-modal[hidden] {
  display: none;
}

.club-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 42px);
}

.club-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 47, 66, 0.58);
  backdrop-filter: blur(10px);
}

.club-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1420px);
  max-height: min(92vh, 980px);
  overflow: auto;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(1, 47, 66, 0.34);
}

.club-modal-panel .club-section {
  padding: clamp(34px, 5vw, 72px) clamp(18px, 3vw, 42px);
}

.club-modal-close {
  position: sticky;
  top: 18px;
  left: calc(100% - 74px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 18px 18px -70px auto;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--soft-shadow);
}

.terms-modal[hidden] { display: none; }

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 42px);
}

.terms-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 47, 66, 0.68);
  backdrop-filter: blur(10px);
}

.terms-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1050px);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid rgba(8, 129, 138, 0.2);
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(237, 250, 250, 0.96), rgba(237, 250, 250, 0.9)),
    url("assets/hero/join-pets-bg.png") left center / cover no-repeat;
  box-shadow: 0 30px 90px rgba(1, 47, 66, 0.42);
}

.terms-modal-close {
  position: sticky;
  top: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 18px 18px -70px auto;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--soft-shadow);
}

.terms-modal-header {
  padding: clamp(38px, 6vw, 68px) clamp(24px, 6vw, 72px) 22px;
  text-align: center;
}

.terms-modal-header h2 { margin: 6px 0; }

.terms-modal-header p {
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.terms-modal-content {
  display: block;
  margin: 0 clamp(16px, 4vw, 54px) clamp(16px, 4vw, 54px);
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(8, 129, 138, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: 500 0.96rem/1.75 Inter, sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 18px 42px rgba(1, 47, 66, 0.12);
}

.terms-modal-content a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    min-height: 680px;
    background-position: 64% center;
  }

  .hero-copy {
    width: min(58%, 680px);
  }

  .landing-video-section,
  .landing-video-section-alt {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .landing-video-section-alt .landing-video-copy {
    order: 0;
  }

  .club-grid,
  .perks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .perks-carousel {
    display: block;
  }

  .perks-carousel .perk-card.is-left-1 {
    transform: translate3d(calc(-50% - 190px), calc(-50% + 58px), 30px) rotateZ(-9deg) scale(0.35);
  }

  .perks-carousel .perk-card.is-left-2 {
    transform: translate3d(calc(-50% - 285px), calc(-50% + 126px), -80px) rotateZ(-15deg) scale(0.35);
  }

  .perks-carousel .perk-card.is-right-1 {
    transform: translate3d(calc(-50% + 190px), calc(-50% + 58px), 30px) rotateZ(9deg) scale(0.35);
  }

  .perks-carousel .perk-card.is-right-2 {
    transform: translate3d(calc(-50% + 285px), calc(-50% + 126px), -80px) rotateZ(15deg) scale(0.35);
  }

  .wisdom-body {
    grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1fr);
  }

  .join-copy {
    width: min(54%, 640px);
  }

  .how-card,
  .reward-flow {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links,
  .footer-links nav {
    justify-content: center;
    text-align: center;
  }

  .socials {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .site-header,
  main,
  .site-footer,
  .wisdom-panel,
  .join-panel {
    width: min(100% - 24px, 1480px);
  }

  .site-header {
    top: 10px;
    min-height: auto;
    padding: 16px;
    border-radius: 16px;
  }

  .brand {
    font-size: 1.35rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 2.1rem;
  }

  .header-cta {
    width: 100%;
  }

  .nav-links {
    gap: 18px;
    font-size: 0.92rem;
  }

  .hero {
    align-items: flex-start;
    min-height: 760px;
    padding: 46px 18px;
    background:
      linear-gradient(180deg, rgba(244, 252, 253, 0.98) 0%, rgba(244, 252, 253, 0.92) 42%, rgba(244, 252, 253, 0.22) 68%),
      url("assets/hero/heroimage-clean.png") 62% bottom / auto 72% no-repeat;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 13vw, 4.8rem);
  }

  .landing-video-section {
    padding-top: 38px;
  }

  .landing-video-copy h1,
  .landing-video-copy h2 {
    font-size: clamp(2.75rem, 12vw, 4.8rem);
  }

  .landing-video-frame {
    min-height: 300px;
    border-radius: 24px;
  }

  .iframe-placeholder {
    border-radius: 18px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .script-note {
    display: inline-block;
    margin-top: 220px !important;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  .club-grid,
  .perks-grid {
    grid-template-columns: 1fr;
  }

  .club-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .club-card {
    min-height: 305px;
    padding: 0 12px 18px;
    border-radius: 18px;
  }

  .club-card:hover {
    transform: translateY(-4px) scale(1.02);
  }

  .club-art {
    height: 170px;
    margin: 0 -12px 14px;
  }

  .club-art::after {
    bottom: 82px;
    height: 58px;
  }

  .club-icon {
    width: 58px;
    height: 58px;
    margin: -34px auto 10px;
    border-width: 4px;
  }

  .club-card h3 {
    min-height: 2.2em;
    margin-top: -6px;
    padding: 6px 4px;
    font-size: clamp(1.05rem, 5vw, 1.35rem);
  }

  .club-card p {
    margin-top: 8px;
    opacity: 1;
    transform: none;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .all-card {
    grid-column: 1 / -1;
    min-height: 152px;
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 0.28fr);
    grid-template-areas:
      "art icon"
      "art title"
      "art text";
    align-items: center;
    column-gap: 12px;
    padding: 0 12px 12px 0;
    text-align: left;
  }

  .all-card .club-art {
    grid-area: art;
    height: 152px;
    margin: 0;
    background-position: center center;
  }

  .all-card .club-art::after {
    display: none;
  }

  .all-card .club-icon {
    grid-area: icon;
    margin: 10px auto 2px;
  }

  .all-card h3 {
    grid-area: title;
    min-height: auto;
    text-align: center;
  }

  .all-card p {
    grid-area: text;
    text-align: center;
  }

  .perks-carousel {
    display: block;
    height: 500px;
  }

  .perks-carousel .perk-card {
    width: min(360px, 84vw);
    height: min(360px, 84vw);
  }

  .perks-carousel .perk-card.is-left-1 {
    transform: translate3d(calc(-50% - 122px), calc(-50% + 72px), 30px) rotateZ(-9deg) scale(0.35);
  }

  .perks-carousel .perk-card.is-left-2 {
    transform: translate3d(calc(-50% - 170px), calc(-50% + 134px), -80px) rotateZ(-15deg) scale(0.35);
  }

  .perks-carousel .perk-card.is-right-1 {
    transform: translate3d(calc(-50% + 122px), calc(-50% + 72px), 30px) rotateZ(9deg) scale(0.35);
  }

  .perks-carousel .perk-card.is-right-2 {
    transform: translate3d(calc(-50% + 170px), calc(-50% + 134px), -80px) rotateZ(15deg) scale(0.35);
  }

  .perks-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
  }

  .perks-control {
    display: grid;
    place-items: center;
    width: 52px;
    min-width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: var(--soft-shadow);
  }

  .perk-card {
    min-height: auto;
  }

  .wisdom-panel,
  .join-panel {
    padding: 32px 20px;
    border-radius: 28px;
  }

  .wisdom-body {
    grid-template-columns: 1fr;
    gap: 26px;
    text-align: center;
  }

  .wisdom-image {
    max-height: 360px;
  }

  .join-panel {
    align-items: flex-start;
    justify-content: center;
    min-height: 760px;
    background:
      linear-gradient(180deg, rgba(237, 250, 250, 0.98) 0%, rgba(237, 250, 250, 0.96) 42%, rgba(237, 250, 250, 0.2) 72%),
      url("assets/hero/join-pets-bg.png") left bottom / 175% auto no-repeat;
  }

  .join-copy {
    width: 100%;
    text-align: center;
  }

  .reward-flow article,
  .how-step {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .step-icon,
  .soft-icon {
    margin: 0 auto;
  }

  .how-step:nth-child(2) > .soft-icon,
  .how-step:nth-child(2) > h3 {
    left: 0;
  }

  .division-modal-panel {
    align-items: flex-start;
    justify-content: center;
    min-height: min(86vh, 720px);
    padding: 72px 20px 260px;
  }

  .division-modal-panel[data-division="dog"],
  .division-modal-panel[data-division="cat"],
  .division-modal-panel[data-division="bird"],
  .division-modal-panel[data-division="fish"] {
    align-items: flex-start;
    justify-content: center;
    padding: 72px 20px 260px;
    background:
      var(--division-art) center bottom -82px / auto 52% no-repeat,
      #fff;
  }

  .division-modal-message {
    width: 100%;
    max-width: 330px;
    padding: 26px 20px;
  }

  .division-modal-panel[data-division="dog"] .division-modal-message::before,
  .division-modal-panel[data-division="cat"] .division-modal-message::before,
  .division-modal-panel[data-division="bird"] .division-modal-message::before,
  .division-modal-panel[data-division="fish"] .division-modal-message::before {
    right: auto;
    bottom: -52px;
    left: 50%;
    width: 76px;
    height: 58px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform: translateX(-50%);
  }

  .division-modal-panel[data-division="dog"] .division-modal-message::after,
  .division-modal-panel[data-division="cat"] .division-modal-message::after,
  .division-modal-panel[data-division="bird"] .division-modal-message::after,
  .division-modal-panel[data-division="fish"] .division-modal-message::after {
    display: none;
  }

  .division-modal-panel[data-division="all"] {
    min-height: min(86vh, 720px);
    padding: 52px 16px 50%;
    background:
      var(--division-art) center bottom -12px / 73% auto no-repeat,
      #fff;
  }

  .division-modal-panel[data-division="all"] .division-modal-message {
    width: min(100%, 340px);
    padding: 24px 22px 28px;
    border-radius: 38px;
  }

  .site-footer {
    padding: 32px 20px;
    border-radius: 24px;
  }

  .footer-links nav {
    flex-wrap: wrap;
  }
}
