/* =========================================================
   Golfmatch — Landing page
   Aesthetic: editorial, warm, country-club premium.
   Distinct from Bumble's yellow, true to Golfmatch's teal.
   ========================================================= */

:root {
  /* Palette */
  --ink:        #14342B;     /* deep forest — primary text */
  --ink-soft:   #3F5A50;
  --teal:       #0E7C73;     /* primary brand */
  --teal-deep:  #0a5a53;
  --teal-mint:  #D4EDE9;
  --gold:       #F4D35E;     /* sun-flag accent */
  --gold-deep:  #E0B743;
  --cream:      #FAF6EE;     /* page bg */
  --cream-2:    #F2EBD9;
  --paper:      #FFFFFF;
  --line:       #E8E0CB;

  /* Type */
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--gold); color: var(--ink); }

/* Grain overlay — gives the cream texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2.5rem;
  background: rgba(250, 246, 238, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(20, 52, 43, .06);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

.nav__mark {
  width: 34px;
  height: 34px;
  display: inline-block;
  color: var(--teal);
  filter: drop-shadow(0 2px 4px rgba(14,124,115,.25));
}
.nav__mark svg { width: 100%; height: 100%; }
.nav__mark--lg { width: 44px; height: 44px; }

.nav__wordmark { font-style: italic; }

.nav__links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: .96rem;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  padding: .35rem 0;
  color: var(--ink);
  opacity: .82;
  transition: opacity .2s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--teal);
  transition: right .25s var(--ease);
}
.nav__links a:hover::after { right: 0; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--pill {
  background: var(--ink);
  color: var(--cream);
  padding: .7rem 1.15rem;
  font-size: .88rem;
}
.btn--pill:hover { background: var(--teal); }
.btn__arrow {
  display: inline-block;
  transition: transform .2s var(--ease);
}
.btn--pill:hover .btn__arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--teal);
  color: var(--cream);
  box-shadow: 0 6px 24px -8px rgba(14,124,115,.55);
}
.btn--primary:hover { background: var(--teal-deep); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 28px -10px rgba(244,211,94,.7);
}
.btn--gold:hover { background: var(--gold-deep); }

.btn--cream {
  background: var(--cream);
  color: var(--ink);
}
.btn--cream-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn--cream-outline:hover { background: var(--cream); color: var(--ink); }

/* Real store badges */
.badge-link {
  display: inline-block;
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.badge-link img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(20,52,43,.18));
}
.badge-link:hover { transform: translateY(-2px); }
.badge-link:hover img { filter: drop-shadow(0 8px 18px rgba(20,52,43,.28)); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 2.5rem 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}
.hero__halo--a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--teal-mint), transparent 70%);
  top: -120px; left: -120px;
}
.hero__halo--b {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(244,211,94,.65), transparent 70%);
  top: 30%; right: -100px;
}
.hero__dimples {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 3rem;
  align-items: center;
  padding-block: 3rem 5rem;
}

/* Eyebrow / kicker */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem .4rem .65rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  box-shadow: 0 2px 12px rgba(20,52,43,.05);
}
.kicker__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(14,124,115,.18);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(14,124,115,.18); }
  50%      { box-shadow: 0 0 0 9px rgba(14,124,115,.05); }
}

/* Display headline */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 1.4rem 0 1.6rem;
  font-variation-settings: "opsz" 144;
}
.display__line { display: block; }
.display em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-deep) 60%, #2a8f81 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.display em::after {
  content: "";
  display: inline-block;
  width: .14em; height: .14em;
  margin-left: .05em;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-0.6em);
}

.lede {
  max-width: 38ch;
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 1.85rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 1.8rem;
}
.hero__cta--badges { gap: 1rem; }

.proof {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: .9rem;
  color: var(--ink-soft);
}
.proof li::before {
  content: "✦";
  margin-right: .5rem;
  color: var(--gold-deep);
}
.proof strong { color: var(--ink); font-weight: 700; }

/* Device / phone mockup */
.hero__device {
  position: relative;
  justify-self: center;
  perspective: 1200px;
}
.device {
  position: relative;
  width: clamp(280px, 32vw, 380px);
  transform: rotate(4deg);
  transition: transform .6s var(--ease);
  filter: drop-shadow(0 40px 60px rgba(20,52,43,.22));
}
.device:hover { transform: rotate(2deg) translateY(-6px); }

.device__frame {
  position: relative;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(155deg, #1a3d34, #0c1f1a 60%, #1a3d34);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 0 0 2px rgba(0,0,0,.4),
    0 10px 30px rgba(20,52,43,.25);
  overflow: hidden;
}
.device__notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #050a08;
  border-radius: 14px;
  z-index: 2;
}
.device__frame img {
  width: 100%;
  border-radius: 34px;
  display: block;
}

/* Floating cards */
.card-float {
  position: absolute;
  background: var(--paper);
  padding: .95rem 1.05rem;
  border-radius: 18px;
  box-shadow: 0 24px 50px -18px rgba(20,52,43,.4), 0 2px 0 var(--line);
  font-size: .85rem;
  line-height: 1.4;
  z-index: 3;
  animation: floaty 5.6s ease-in-out infinite;
}
.card-float--match {
  top: 14%;
  left: -18%;
  transform: rotate(-6deg);
  max-width: 220px;
}
.card-float--score {
  bottom: 8%;
  right: -16%;
  transform: rotate(4deg);
  min-width: 180px;
  animation-delay: -2s;
}
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

.card-float__pill {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--teal);
  font-size: .95rem;
  margin-bottom: .5rem;
}
.card-float__avatars {
  display: flex;
  margin-bottom: .5rem;
}
.card-float__avatars .avatar { margin-left: -8px; }
.card-float__avatars .avatar:first-child { margin-left: 0; }
.card-float p { margin: 0; color: var(--ink-soft); }

.card-float__row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .25rem 0;
}
.card-float__row + .card-float__row { border-top: 1px dashed var(--line); }
.card-float__row span { color: var(--ink-soft); }
.card-float__row strong { font-weight: 700; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-weight: 700;
  font-size: .8rem;
  color: var(--cream);
  border: 2px solid var(--paper);
}
.avatar--a { background: var(--teal); }
.avatar--b { background: var(--gold-deep); color: var(--ink); }
.avatar--c { background: var(--ink); }

/* Decorative orbs around device */
.orbit {
  position: absolute;
  z-index: 1;
  animation: bob 6s ease-in-out infinite;
}
.orbit--ball {
  width: 90px; height: 90px;
  top: -40px; right: -40px;
  filter: drop-shadow(0 12px 20px rgba(20,52,43,.2));
}
.orbit--flag {
  width: 110px; height: 110px;
  bottom: -22px; left: -42px;
  animation-delay: -3s;
  filter: drop-shadow(0 12px 20px rgba(20,52,43,.2));
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-12px) rotate(-3deg); }
}

/* Marquee */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding: 1.1rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  animation: scroll 35s linear infinite;
}
.marquee__track .dot { color: var(--gold-deep); font-size: .7em; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   SECTION HELPERS
   ========================================================= */
.section-head {
  max-width: 1320px;
  margin: 0 auto;
  padding: 6rem 2.5rem 2.5rem;
}
.section-head--center { text-align: center; }
.section-head--center .h2 { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--gold); }
.eyebrow--gold { color: var(--gold-deep); }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0;
  max-width: 22ch;
  font-variation-settings: "opsz" 110;
}
.h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--teal);
}
.h2--invert { color: var(--cream); }
.h2--invert em { color: var(--gold); }

.lede--invert { color: rgba(250,246,238,.78); }

/* =========================================================
   FEATURE GRID
   ========================================================= */
.features {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: 2.5rem;
  padding-bottom: 4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature {
  background: var(--paper);
  border-radius: 28px;
  padding: 2rem 1.85rem 2.1rem;
  border: 1px solid var(--line);
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(20,52,43,.25);
}

.feature--hero {
  grid-column: span 1;
  background: linear-gradient(155deg, var(--ink) 0%, #1c4339 100%);
  color: var(--cream);
  border-color: transparent;
}
.feature--hero h3 { color: var(--cream); }
.feature--hero p { color: rgba(250,246,238,.78); }

.feature__icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature__icon--green { background: var(--teal-mint); color: var(--teal-deep); }
.feature__icon--gold  { background: var(--gold); color: var(--ink); }
.feature__icon--mint  { background: var(--cream-2); color: var(--ink); }

.feature h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .6rem;
}
.feature p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.55;
}

.feature__bullets {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: .9rem;
  color: var(--ink-soft);
}
.feature__bullets li {
  padding: .55rem 0;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
}
.feature__bullets li::before {
  content: "→";
  margin-right: .6rem;
  color: var(--teal);
  font-weight: 700;
}
.feature--hero .feature__bullets li { border-top-color: rgba(250,246,238,.12); }

.feature__chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.chip {
  padding: .4rem .75rem;
  background: rgba(250,246,238,.1);
  border: 1px solid rgba(250,246,238,.18);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
}

/* =========================================================
   SKILLS — dark band
   ========================================================= */
.skills {
  background: linear-gradient(165deg, var(--ink) 0%, #0a2620 100%);
  color: var(--cream);
  margin: 4rem 1.5rem;
  border-radius: 36px;
  position: relative;
  overflow: hidden;
}
.skills::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(244,211,94,.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}
.skills__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 4rem;
  padding: 5rem 4rem;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}
.skills__copy { max-width: 30ch; }

.ladder {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.ladder__step {
  background: rgba(250,246,238,.04);
  border: 1px solid rgba(250,246,238,.1);
  border-radius: 22px;
  padding: 1.5rem 1.6rem;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.ladder__step:hover {
  background: rgba(250,246,238,.07);
  border-color: var(--gold);
}
.ladder__step--mid { background: rgba(244,211,94,.07); border-color: rgba(244,211,94,.18); }
.ladder__step--top {
  background: linear-gradient(160deg, var(--gold), var(--gold-deep));
  border-color: transparent;
  color: var(--ink);
}
.ladder__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  opacity: .55;
  display: block;
  margin-bottom: .35rem;
}
.ladder__step h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 .35rem;
  letter-spacing: -.01em;
}
.ladder__step p {
  margin: 0;
  font-size: .92rem;
  opacity: .8;
}
.ladder__step--top p { opacity: .85; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: 2.5rem;
  padding-bottom: 6rem;
}
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--line) 0 8px,
    transparent 8px 16px
  );
  z-index: 0;
}
.step {
  position: relative;
  text-align: center;
  padding: 0 1rem;
}
.step__num {
  position: relative;
  width: 76px; height: 76px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  z-index: 1;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  color: var(--ink);
}
.step:nth-child(2) .step__num { background: var(--gold); border-color: var(--gold-deep); }
.step:nth-child(3) .step__num { background: var(--teal); border-color: var(--teal-deep); color: var(--cream); }

.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  margin: 0 0 .5rem;
  letter-spacing: -.015em;
}
.step p {
  margin: 0 auto;
  max-width: 30ch;
  color: var(--ink-soft);
  font-size: .96rem;
}

/* =========================================================
   COMMUNITY
   ========================================================= */
.community {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: 2.5rem;
  padding-bottom: 4rem;
}
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.quote {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 2rem 1.85rem;
  position: relative;
}
.quote--a { background: var(--teal-mint); border-color: transparent; }
.quote--b { background: var(--cream-2); border-color: transparent; }
.quote--c { background: var(--paper); }

.quote blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.4;
  letter-spacing: -.005em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.quote blockquote::before {
  content: "“";
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: .8;
  display: block;
  color: var(--teal);
  margin-bottom: .25rem;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .87rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* =========================================================
   PREMIUM
   ========================================================= */
.premium {
  background: var(--ink);
  color: var(--cream);
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.premium::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,211,94,.25), transparent 70%);
  top: -150px;
  right: -100px;
  filter: blur(40px);
}
.premium__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: center;
  padding-inline: 1rem;
}
.premium__media {
  display: grid;
  place-items: center;
}
.premium__media img {
  max-width: 360px;
  filter: drop-shadow(0 30px 60px rgba(244,211,94,.4));
  animation: bob 6s ease-in-out infinite;
}
.premium__copy .h2 { color: var(--cream); }
.premium__copy .h2 em { color: var(--gold); }

.premium__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: .7rem;
  font-size: 1rem;
}
.premium__list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  color: rgba(250,246,238,.88);
}
.premium__list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .85rem;
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  background: var(--teal);
  color: var(--cream);
  padding: 7rem 2.5rem 6rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta::before, .cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.cta::before {
  width: 500px; height: 500px;
  background: rgba(244,211,94,.4);
  top: -100px; left: -100px;
}
.cta::after {
  width: 400px; height: 400px;
  background: rgba(212,237,233,.3);
  bottom: -100px; right: -100px;
}
.cta__inner { position: relative; max-width: 900px; margin: 0 auto; }

.display--cta {
  color: var(--cream);
  margin: 0 auto 1.5rem;
  max-width: 18ch;
  text-wrap: balance;
}
.display--cta .display__line { display: block; }

.cta__lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 36ch;
  text-wrap: pretty;
}
.display--cta em {
  background: linear-gradient(120deg, var(--gold) 0%, #fde890 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.display--cta em::after { background: var(--cream); }

.cta__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.cta__small {
  font-size: .85rem;
  opacity: .75;
  margin: 0;
}

.cta__qr {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: .75rem 1.25rem .75rem .75rem;
  background: rgba(250,246,238,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(250,246,238,.2);
  border-radius: 999px;
  font-size: .85rem;
}
.cta__qr img {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: var(--cream);
  padding: 4px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--cream-2);
  padding: 4rem 2.5rem 1.5rem;
  font-size: .9rem;
}
.footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.footer__brand { display: flex; flex-direction: column; gap: .75rem; }
.footer__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  margin: 0;
  color: var(--ink-soft);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer__cols h5 {
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-weight: 700;
}
.footer__cols a {
  display: block;
  padding: .35rem 0;
  color: var(--ink);
  opacity: .8;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.footer__cols a:hover { opacity: 1; transform: translateX(3px); color: var(--teal); }

.footer__bar {
  max-width: 1320px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(20,52,43,.12);
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--ink-soft);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .nav { padding: 1rem 1.25rem; gap: 1rem; }
  .nav__links { display: none; }

  .hero { padding: 2rem 1.25rem 0; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-block: 2rem 3rem;
    text-align: left;
  }
  .hero__device { order: 2; }

  .feature-grid { grid-template-columns: 1fr; }

  .skills { margin: 3rem 1rem; }
  .skills__inner {
    grid-template-columns: 1fr;
    padding: 3rem 1.75rem;
    gap: 2.5rem;
  }
  .ladder { grid-template-columns: 1fr; }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .steps::before { display: none; }

  .quotes { grid-template-columns: 1fr; }

  .premium__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: left;
  }
  .premium__media img { max-width: 240px; }

  .posts { padding: 4rem 1.25rem; }
  .posts__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Flatten the absolute-positioned deck into a vertical list on mobile.
     Cards stay distinct visually via their unique backgrounds. */
  .posts__stack {
    position: static;
    height: auto;
    perspective: none;
    display: grid;
    gap: 1rem;
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }
  .posts__stack .post-card {
    position: static;
    width: 100%;
    max-width: 100%;
    transform: none !important;
  }
  /* Hover transforms also disabled on touch — they trigger on tap and overlap */
  .posts__stack:hover .post-card--front,
  .posts__stack:hover .post-card--back-a,
  .posts__stack:hover .post-card--back-b {
    transform: none;
  }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .footer__bar { flex-direction: column; gap: .5rem; text-align: center; }

  .card-float--match { left: -4%; max-width: 180px; transform: rotate(-4deg) scale(.9); }
  .card-float--score { right: -4%; min-width: 160px; transform: rotate(3deg) scale(.9); }
}

@media (max-width: 560px) {
  .section-head { padding: 4rem 1.25rem 1.5rem; }
  .features, .how, .community { padding-inline: 1.25rem; }
  .cta { padding: 4rem 1.25rem; }
  .cta__buttons { gap: .75rem; }
  .cta__qr {
    flex-direction: row;
    gap: .75rem;
    padding: .6rem 1rem .6rem .6rem;
    font-size: .8rem;
    max-width: 100%;
  }
  .cta__qr img { width: 48px; height: 48px; }
  .cta__small { padding-inline: .5rem; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .badge-link img { height: 44px; }
}

/* =========================================================
   POSTS — feed spotlight
   ========================================================= */
.posts {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: 6rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.posts::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(14,124,115,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .6;
  pointer-events: none;
}

.posts__inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 4rem;
  align-items: center;
}

.posts__copy { max-width: 38rem; }
.posts__copy .h2 { margin-bottom: 1.25rem; }
.posts__copy .lede { margin-bottom: 2rem; }

.posts__points {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.2rem;
}
.posts__points li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
}
.posts__bullet {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: .95rem;
  color: var(--teal);
}
.posts__points h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin: .25rem 0 .3rem;
  letter-spacing: -.01em;
}
.posts__points p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.5;
}

/* Stack of post cards */
.posts__stack {
  position: relative;
  height: 620px;
  perspective: 1400px;
}

.post-card {
  position: absolute;
  background: var(--paper);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: 0 30px 60px -25px rgba(20,52,43,.4);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.post-card--front {
  width: 80%;
  max-width: 380px;
  top: 8%;
  left: 8%;
  z-index: 3;
  transform: rotate(-3deg);
}
.posts__stack:hover .post-card--front { transform: rotate(-2deg) translateY(-6px); }

.post-card--back-a {
  width: 65%;
  max-width: 300px;
  top: 0;
  right: 0;
  z-index: 2;
  transform: rotate(5deg);
  background: var(--teal-mint);
  border-color: transparent;
}
.posts__stack:hover .post-card--back-a { transform: rotate(4deg) translateY(-4px); }

.post-card--back-b {
  width: 60%;
  max-width: 280px;
  bottom: 0;
  right: 6%;
  z-index: 1;
  transform: rotate(-6deg);
  background: var(--ink);
  color: var(--cream);
  border-color: transparent;
}
.posts__stack:hover .post-card--back-b { transform: rotate(-5deg) translateY(-4px); }
.post-card--back-b .post-card__caption { color: rgba(250,246,238,.85); }
.post-card--back-b .post-card__meta { color: rgba(250,246,238,.6); }

.post-card__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .65rem;
  align-items: center;
  margin-bottom: .9rem;
}
.post-card__head strong {
  display: block;
  font-weight: 700;
  font-size: .92rem;
}
.post-card__meta {
  display: block;
  font-size: .75rem;
  color: var(--ink-soft);
}
.post-card__verified {
  width: 22px; height: 22px;
  background: var(--teal);
  color: var(--cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 800;
}

/* CSS-painted golf course scene */
.post-card__scene {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #e6f3f1 0%, #c9e5df 38%, #97c9a8 42%, #5fa97b 65%, #3f8c5d 100%);
  margin-bottom: .9rem;
}
.post-card__sun {
  position: absolute;
  width: 60px; height: 60px;
  border-radius: 50%;
  top: 14%; right: 14%;
  background: radial-gradient(circle, #ffe9a0 0%, #f4d35e 60%, transparent 75%);
  filter: blur(2px);
}
.post-card__fairway {
  position: absolute;
  inset: 38% 0 0;
  background:
    repeating-linear-gradient(
      95deg,
      rgba(255,255,255,.08) 0 3px,
      transparent 3px 14px
    );
}
.post-card__green {
  position: absolute;
  width: 70%;
  height: 30%;
  bottom: -6%;
  left: 15%;
  background: radial-gradient(ellipse at center top, #6db389 0%, #3f8c5d 75%);
  border-radius: 50%;
}
.post-card__flag {
  position: absolute;
  width: 56px; height: 72px;
  left: 38%;
  bottom: 28%;
  filter: drop-shadow(0 4px 6px rgba(20,52,43,.3));
}
.post-card__ball {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  bottom: 22%;
  left: 58%;
  box-shadow: 0 2px 3px rgba(20,52,43,.4);
}
.post-card__score {
  position: absolute;
  top: 8%; left: 8%;
  padding: .25rem .55rem;
  background: rgba(20,52,43,.78);
  color: var(--cream);
  font-size: .72rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: .04em;
}

.post-card__caption {
  margin: 0 0 .85rem;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--ink);
}
.post-card__caption--lg {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ink);
  margin: .25rem 0 1rem;
}

.post-card__foot {
  display: flex;
  gap: .9rem;
  align-items: center;
  font-size: .8rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.post-card__foot span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.post-card__match-pill {
  margin-left: auto;
  padding: .3rem .65rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.post-card__foot--simple { justify-content: space-between; gap: .5rem; }
.post-card__chip {
  padding: .35rem .7rem;
  background: rgba(20,52,43,.08);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.post-card__chip--gold { background: var(--gold); color: var(--ink); }

.post-card__swing {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .85rem;
  font-size: .72rem;
  color: rgba(250,246,238,.7);
  font-weight: 600;
}
.post-card__bar {
  flex: 1;
  height: 4px;
  background: rgba(250,246,238,.2);
  border-radius: 999px;
  overflow: hidden;
}
.post-card__bar div {
  height: 100%;
  width: 38%;
  background: var(--gold);
  border-radius: inherit;
}

/* =========================================================
   FAQ — doubles as FAQPage schema source
   ========================================================= */
.faq {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem 6rem;
}

.faq__list {
  max-width: 820px;
  margin: 1rem auto 0;
  display: grid;
  gap: .85rem;
}

.faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.faq__item[open] {
  border-color: var(--teal);
  box-shadow: 0 20px 40px -25px rgba(14,124,115,.3);
  background: linear-gradient(180deg, var(--paper) 0%, var(--teal-mint) 250%);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 3.5rem 1.4rem 1.75rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--ink);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream-2);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--teal);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.faq__item[open] summary::after {
  content: "−";
  background: var(--teal);
  color: var(--cream);
  transform: translateY(-50%) rotate(180deg);
}

.faq__answer {
  padding: 0 1.75rem 1.5rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 65ch;
}
.faq__answer p { margin: 0; }

@media (max-width: 560px) {
  .faq { padding: 0 1.25rem 4rem; }
  .faq__item summary { font-size: 1.05rem; padding: 1.15rem 3rem 1.15rem 1.25rem; }
  .faq__item summary::after { right: 1rem; }
  .faq__answer { padding: 0 1.25rem 1.25rem; }
}

/* =========================================================
   REVEAL animations (triggered by JS)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
