/* ==========================================================================
   Padel Social — stylesheet
   Palette, type and spacing taken from the iOS app.
   ========================================================================== */

:root {
  --cream: #fbf1ea;
  --cream-deep: #f6e8dd;
  --sand: #efe1d3;
  --clay: #c0563f;
  --clay-deep: #a4462f;
  --ink: #3a2a22;
  --ink-70: #6b564b;
  --ink-50: #8b7568;
  --olive: #7c8b5e;
  --olive-deep: #61704a;
  --gold: #d9a029;
  --night: #2a1e18;

  --line: rgba(58, 42, 34, 0.08);
  --line-strong: rgba(58, 42, 34, 0.12);

  --shadow-soft: 0 2px 4px rgba(58, 42, 34, 0.03), 0 12px 32px -12px rgba(58, 42, 34, 0.12);
  --shadow-lift: 0 4px 8px rgba(58, 42, 34, 0.04), 0 28px 64px -24px rgba(58, 42, 34, 0.28);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ------------------------------- reset / base ----------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--clay);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.99;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: fixed;
  left: 24px;
  top: 24px;
  z-index: 99;
  background: var(--clay);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 999px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow--cream {
  color: rgba(251, 241, 234, 0.7);
}
.eyebrow--olive {
  color: var(--olive-deep);
}
.eyebrow--plain::before {
  display: none;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.19rem);
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 34rem;
}

/* --------------------------------- buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}

.btn--app {
  background: var(--clay);
  color: var(--cream);
  box-shadow: 0 10px 30px -10px rgba(192, 86, 63, 0.7);
}
.btn--app:hover {
  background: var(--clay-deep);
}
.btn--app svg {
  width: 24px;
  height: 24px;
  flex: none;
  fill: currentColor;
}
.btn--app .l1 {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 1;
}
.btn--app .l2 {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 4px;
  line-height: 1;
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}
.btn--light:hover {
  background: #fff;
}
.btn--dark {
  background: var(--ink);
  color: var(--cream);
  box-shadow: none;
}
.btn--dark:hover {
  background: var(--night);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  padding: 15px 28px;
  font-size: 15px;
}
.btn--ghost:hover {
  border-color: rgba(58, 42, 34, 0.25);
  background: rgba(58, 42, 34, 0.03);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.btn--pill {
  background: var(--clay);
  color: var(--cream);
  padding: 10px 20px;
  font-size: 15px;
}
.btn--pill:hover {
  background: var(--clay-deep);
}

/* ---------------------------------- header -------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(251, 241, 234, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(58, 42, 34, 0.07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}
.brand span {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-70);
  transition: background 0.25s, color 0.25s;
}
.nav__links a:hover {
  background: rgba(58, 42, 34, 0.04);
  color: var(--ink);
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__cta {
  display: none;
}
.burger {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
}
.burger:hover {
  background: rgba(58, 42, 34, 0.05);
}
.burger svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}
.burger .close,
.burger[aria-expanded="true"] .open {
  display: none;
}
.burger[aria-expanded="true"] .close {
  display: block;
}

.mobile-menu {
  display: none;
  background: rgba(251, 241, 234, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(58, 42, 34, 0.07);
}
.mobile-menu.is-open {
  display: block;
}
.mobile-menu ul {
  padding: 16px 24px 32px;
}
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.mobile-menu .btn {
  margin-top: 16px;
  justify-content: center;
  width: 100%;
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
  .burger {
    display: none;
  }
}
@media (min-width: 640px) {
  .nav__cta {
    display: inline-flex;
  }
}

/* ----------------------------- ambient texture ---------------------------- */
.court-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(58, 42, 34, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(58, 42, 34, 0.07) 1px, transparent 1px);
  background-size: 96px 96px;
}
.court-lines--light {
  background-image: linear-gradient(to right, rgba(251, 241, 234, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(251, 241, 234, 0.08) 1px, transparent 1px);
}
.blob {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, -3%, 0) scale(1.06);
  }
}
.drift {
  animation: drift 22s var(--ease) infinite;
}
.drift-slow {
  animation: drift 34s var(--ease) infinite reverse;
}

.net-divider {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.net-divider span {
  display: block;
  height: 1px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(58, 42, 34, 0.16) 0 10px,
    transparent 10px 20px
  );
}

/* ------------------------------ scroll reveal ----------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------- hero ---------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 118px 0 80px;
}
.hero__bg .court-lines {
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(70% 60% at 60% 35%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 60% 35%, #000, transparent);
}
.hero__bg .b1 {
  right: -10%;
  top: -18%;
  width: 52rem;
  height: 52rem;
  background: radial-gradient(circle at center, rgba(192, 86, 63, 0.22), transparent 62%);
}
.hero__bg .b2 {
  left: -18%;
  top: 26%;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle at center, rgba(217, 160, 41, 0.18), transparent 62%);
}
.hero__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(251, 241, 234, 0.6);
  border-radius: 999px;
  padding: 5px 16px 5px 6px;
  backdrop-filter: blur(8px);
}
.badge b {
  background: rgba(124, 139, 94, 0.15);
  color: var(--olive-deep);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.badge span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-70);
}
.hero h1 {
  margin-top: 26px;
  font-size: clamp(2.9rem, 7.2vw, 5.6rem);
}
.hero h1 em {
  font-style: normal;
  color: var(--clay);
}
.hero .lead {
  margin-top: 28px;
  font-size: clamp(1.15rem, 2vw, 1.32rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
}
.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-50);
}
.hero__note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--olive);
}
.hero__phone {
  position: relative;
  max-width: 340px;
  margin-inline: auto;
  width: 100%;
}
.hero__phone img {
  position: relative;
  filter: drop-shadow(0 48px 100px rgba(58, 42, 34, 0.34));
}
.hero__phone::before {
  content: "";
  position: absolute;
  inset: 90px 24px 24px;
  background: rgba(192, 86, 63, 0.2);
  filter: blur(70px);
  border-radius: 999px;
}
.float-card {
  position: absolute;
  border: 1px solid rgba(58, 42, 34, 0.06);
  background: rgba(251, 241, 234, 0.88);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 14px 20px;
  box-shadow: var(--shadow-lift);
}
.float-card small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.float-card p {
  font-family: var(--font-display);
  font-weight: 800;
  margin-top: 4px;
}
.hero__code {
  display: none;
  left: -16px;
  bottom: 90px;
}
.hero__code p {
  font-size: 24px;
  letter-spacing: 0.18em;
  color: var(--clay);
}

@media (min-width: 640px) {
  .hero__code {
    display: block;
  }
}
@media (min-width: 1024px) {
  .hero {
    padding: 150px 0 110px;
  }
  .hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: 32px;
  }
  .hero__copy {
    padding-right: 40px;
  }
  .hero__phone {
    max-width: 420px;
  }
  .hero__code {
    left: -40px;
  }
}

/* --------------------------------- sections ------------------------------- */
.section {
  padding: 72px 0;
}
@media (min-width: 640px) {
  .section {
    padding: 104px 0;
  }
}
.section__head {
  max-width: 40rem;
}
.section__head h2 {
  margin-top: 24px;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
}
.section__head .lead {
  margin-top: 24px;
}

/* ------------------------------- card grids ------------------------------- */
.cards {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 640px) {
  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cards--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  height: 100%;
  border: 1px solid rgba(58, 42, 34, 0.06);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  padding: 32px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease),
    border-color 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  background: #fff;
  border-color: rgba(58, 42, 34, 0.1);
  box-shadow: var(--shadow-lift);
}
.card h3 {
  margin-top: 32px;
  font-size: 22px;
}
.card p {
  margin-top: 8px;
  color: var(--ink-70);
  font-size: 16px;
}
.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(192, 86, 63, 0.09);
  color: var(--clay);
  transition: transform 0.5s var(--ease);
}
.card:hover .icon-badge {
  transform: scale(1.06);
}
.icon-badge svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-badge--gold {
  background: rgba(217, 160, 41, 0.14);
  color: var(--gold);
}
.icon-badge--olive {
  background: rgba(124, 139, 94, 0.14);
  color: var(--olive-deep);
}
.icon-badge--sand {
  background: var(--sand);
  color: var(--clay-deep);
}

/* -------------------------------- split rows ------------------------------ */
.split {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: 80px;
  }
  .split--reverse {
    grid-template-columns: 7fr 5fr;
  }
  .split--half {
    grid-template-columns: 1fr 1fr;
  }
}
.split h2 {
  margin-top: 24px;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  max-width: 22ch;
}
.split .lead {
  margin-top: 28px;
}

.phone-wrap {
  position: relative;
  max-width: 320px;
  margin-inline: auto;
  width: 100%;
}
@media (min-width: 1024px) {
  .phone-wrap {
    max-width: 380px;
  }
}
.phone-wrap img {
  filter: drop-shadow(0 40px 80px rgba(58, 42, 34, 0.28));
}
.phone-wrap--halo::before {
  content: "";
  position: absolute;
  inset: 40px 8% auto;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(239, 225, 211, 0.9), transparent 65%);
  z-index: -1;
}
.tilt-left img {
  transform: rotate(-3deg);
}
.tilt-right img {
  transform: rotate(3deg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.chips li {
  border: 1px solid rgba(58, 42, 34, 0.1);
  background: var(--cream);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.25s, border-color 0.25s;
}
.chips li:hover {
  color: var(--clay);
  border-color: rgba(192, 86, 63, 0.4);
}

.perks {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}
@media (min-width: 640px) {
  .perks {
    grid-template-columns: repeat(3, 1fr);
  }
}
.perks svg {
  width: 20px;
  height: 20px;
  stroke: var(--clay);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.perks dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  margin-top: 16px;
}
.perks dd {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-70);
}

/* ------------------------------- live scoring ----------------------------- */
.dark {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--cream);
}
.dark .b1 {
  left: -160px;
  top: 0;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle at center, rgba(192, 86, 63, 0.4), transparent 60%);
}
.dark .b2 {
  right: 0;
  bottom: -160px;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle at center, rgba(124, 139, 94, 0.22), transparent 62%);
}
.dark .split {
  position: relative;
  padding: 88px 0;
}
.dark h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
}
.dark .lead {
  color: rgba(251, 241, 234, 0.65);
}
.dark .phone-wrap img {
  transform: rotate(-2deg);
  filter: drop-shadow(0 50px 90px rgba(0, 0, 0, 0.55));
}
@media (min-width: 1024px) {
  .dark .phone-wrap {
    max-width: 400px;
  }
}
.deflist {
  margin-top: 40px;
  border-block: 1px solid rgba(251, 241, 234, 0.12);
}
.deflist > div {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(251, 241, 234, 0.12);
}
.deflist > div:last-child {
  border-bottom: 0;
}
.deflist dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.deflist dd {
  font-size: 15px;
  color: rgba(251, 241, 234, 0.6);
}
@media (min-width: 640px) {
  .deflist > div {
    grid-template-columns: 2fr 3fr;
    gap: 24px;
  }
}

/* ------------------------------- share results ---------------------------- */
.share {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--cream), var(--cream-deep), var(--cream));
}
.share .b1 {
  left: 50%;
  top: 33%;
  transform: translateX(-50%);
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle at center, rgba(217, 160, 41, 0.2), transparent 62%);
}
.share__grid {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
  margin-top: 56px;
}
@media (min-width: 1024px) {
  .share__grid {
    grid-template-columns: 5fr 7fr;
    margin-top: 24px;
  }
  .share__left {
    padding-top: 96px;
  }
}
.share h2 {
  margin-top: 24px;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
}
.share__hero {
  position: relative;
  max-width: 360px;
  margin-inline: auto;
  width: 100%;
}
@media (min-width: 1024px) {
  .share__hero {
    max-width: 440px;
  }
}
.share__hero::before {
  content: "";
  position: absolute;
  inset: 80px 32px 40px;
  background: rgba(192, 86, 63, 0.25);
  filter: blur(80px);
  border-radius: 999px;
}
.share__hero img {
  position: relative;
  filter: drop-shadow(0 60px 120px rgba(58, 42, 34, 0.36));
}
.share__champ {
  right: -8px;
  top: 64px;
}
.share__champ p {
  font-size: 18px;
}
@media (min-width: 1024px) {
  .share__champ {
    right: -40px;
  }
}
.share__secondary {
  max-width: 300px;
  margin-inline: auto;
}
.share__secondary img {
  transform: rotate(-4deg);
  filter: drop-shadow(0 40px 80px rgba(58, 42, 34, 0.3));
}
.bullets {
  margin-top: 44px;
  display: grid;
  gap: 16px;
}
.bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 17px;
}
.bullets li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--gold);
}

/* --------------------------------- lingo ---------------------------------- */
.lingo-grid {
  display: grid;
  gap: 12px;
  margin-top: 44px;
}
@media (min-width: 640px) {
  .lingo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lingo-grid li:last-child {
    grid-column: span 2;
  }
}
.lingo-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  height: 100%;
  border: 1px solid rgba(58, 42, 34, 0.06);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 24px;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.lingo-card:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.lingo-card .icon-badge {
  width: 44px;
  height: 44px;
  flex: none;
}
.lingo-card h3 {
  font-size: 18px;
}
.lingo-card p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-70);
}

/* -------------------------------- formats --------------------------------- */
.formats {
  border-block: 1px solid rgba(58, 42, 34, 0.07);
  background: rgba(239, 225, 211, 0.4);
}
.formats__head {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .formats__head {
    grid-template-columns: 1.6fr 1fr;
    align-items: end;
  }
}
.formats__grid {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 640px) {
  .formats__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .formats__grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .formats__grid li:nth-child(1),
  .formats__grid li:nth-child(2) {
    grid-column: span 3;
  }
  .formats__grid li:nth-child(n + 3) {
    grid-column: span 2;
  }
}
.format-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border: 1px solid rgba(58, 42, 34, 0.07);
  background: var(--cream);
  border-radius: 28px;
  padding: 32px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.format-card:hover {
  transform: translateY(-6px);
  border-color: rgba(192, 86, 63, 0.25);
  box-shadow: var(--shadow-lift);
}
.format-card__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.format-card h3 {
  font-size: 24px;
}
.format-card__line {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}
.format-card__body {
  margin-top: 32px;
  font-size: 15px;
  color: var(--ink-70);
}
.court-glyph {
  width: 48px;
  height: 30px;
  flex: none;
  stroke: rgba(58, 42, 34, 0.2);
  fill: none;
  transition: stroke 0.5s var(--ease);
}
.format-card:hover .court-glyph {
  stroke: rgba(192, 86, 63, 0.6);
}

/* -------------------------------- pricing --------------------------------- */
.pricing__grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 1024px) {
  .pricing__grid {
    grid-template-columns: 5fr 7fr;
    gap: 80px;
  }
}
.pricing h2 {
  margin-top: 24px;
  font-size: clamp(2.4rem, 5vw, 4rem);
}
.included {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}
@media (min-width: 640px) {
  .included {
    grid-template-columns: 1fr 1fr;
  }
}
.included li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-70);
}
.included svg {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: var(--olive-deep);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plans {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
.plan {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 28px;
  padding: 32px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.5);
}
.plan small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.plan__price span {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-50);
}
.plan p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-70);
}
.plan__foot {
  margin-top: auto;
  padding-top: 32px;
}
.plan--best {
  position: relative;
  overflow: hidden;
  border: 0;
  background: var(--clay);
  color: var(--cream);
  box-shadow: var(--shadow-lift);
}
.plan--best::before {
  content: "";
  position: absolute;
  right: -64px;
  top: -64px;
  width: 224px;
  height: 224px;
  border-radius: 999px;
  background: rgba(217, 160, 41, 0.25);
  filter: blur(32px);
}
.plan--best > * {
  position: relative;
}
.plan--best small {
  color: rgba(251, 241, 234, 0.7);
}
.plan--best p {
  color: rgba(251, 241, 234, 0.75);
}
.plan--best .plan__price span {
  color: rgba(251, 241, 234, 0.6);
}
.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tag-best {
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------------------------------- faq ----------------------------------- */
.faq {
  border-top: 1px solid rgba(58, 42, 34, 0.07);
}
.faq__grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  .faq__grid {
    grid-template-columns: 4fr 8fr;
    gap: 80px;
  }
}
.faq h2 {
  margin-top: 24px;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}
.accordion {
  border-top: 1px solid rgba(58, 42, 34, 0.1);
}
.accordion li {
  border-bottom: 1px solid rgba(58, 42, 34, 0.1);
}
.accordion button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px 0;
  text-align: left;
}
.accordion button span:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  transition: color 0.25s;
}
.accordion button:hover span:first-child {
  color: var(--clay);
}
.plusmark {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-70);
  transition: transform 0.5s var(--ease), background 0.4s, color 0.4s, border-color 0.4s;
}
.plusmark svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}
.accordion li.is-open .plusmark {
  transform: rotate(45deg);
  background: var(--clay);
  border-color: var(--clay);
  color: var(--cream);
}
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.accordion li.is-open .accordion__panel {
  grid-template-rows: 1fr;
}
.accordion__panel > div {
  overflow: hidden;
}
.accordion__panel p {
  max-width: 42rem;
  padding: 0 48px 26px 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-70);
}

/* -------------------------------- final cta ------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--clay);
  color: var(--cream);
  text-align: center;
}
.cta .b1 {
  left: 50%;
  bottom: -50%;
  transform: translateX(-50%);
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle at center, rgba(217, 160, 41, 0.35), transparent 60%);
}
.cta__inner {
  position: relative;
  max-width: 56rem;
  margin-inline: auto;
  padding: 104px 24px;
}
.cta h2 {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
}
.cta p {
  margin: 32px auto 0;
  max-width: 32rem;
  font-size: 19px;
  color: rgba(251, 241, 234, 0.75);
}
.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}
.cta__actions small {
  font-size: 14px;
  color: rgba(251, 241, 234, 0.6);
}

/* --------------------------------- footer --------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.footer__top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 56px 0 0;
}
@media (min-width: 768px) {
  .footer__top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.footer h2 {
  font-size: 24px;
}
.footer__top p {
  margin-top: 8px;
  max-width: 24rem;
  font-size: 15px;
  color: var(--ink-70);
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.footer nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-70);
  transition: color 0.25s;
}
.footer nav a:hover {
  color: var(--clay);
}
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 40px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-50);
}
@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ------------------------------ inner pages ------------------------------- */
.page {
  position: relative;
  overflow: hidden;
}
.page .b1 {
  left: 50%;
  top: -160px;
  transform: translateX(-50%);
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle at center, rgba(192, 86, 63, 0.14), transparent 65%);
}
.page__inner {
  position: relative;
  max-width: 48rem;
  margin-inline: auto;
  padding: 160px 24px 112px;
}
.page h1 {
  margin-top: 24px;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
}
.page__intro {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-70);
  max-width: none;
}
.page__body {
  margin-top: 56px;
  display: grid;
  gap: 40px;
}
.page__body h2 {
  font-size: 24px;
}
.page__body p {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-70);
}
.page__body strong {
  color: var(--ink);
  font-weight: 600;
}
.page__body a {
  color: var(--clay);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.tiles {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .tiles {
    grid-template-columns: 1fr 1fr;
  }
}
.tile {
  border: 1px solid rgba(58, 42, 34, 0.07);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 24px;
  transition: background 0.4s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tile:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.tile h3 {
  font-size: 17px;
}
.tile p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-70);
}
.contact-list {
  display: grid;
  gap: 12px;
}
.contact-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid rgba(58, 42, 34, 0.07);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 28px;
  transition: background 0.4s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.contact-row:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.contact-row h3 {
  font-size: 18px;
}
.contact-row p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-70);
}
.contact-row em {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 15px;
  font-weight: 500;
  color: var(--clay);
}
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  padding: 24px;
}
.notfound h1 {
  margin-top: 24px;
  font-size: clamp(2.4rem, 6vw, 4rem);
}
.notfound p {
  margin-top: 24px;
  color: var(--ink-70);
  font-size: 18px;
}
.notfound .btn {
  margin-top: 40px;
}

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

/* --------------------------- parallax transform hook ---------------------- */
[data-parallax] {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}


/* --------------------------- results card (live scoring) ------------------ */
.result-card {
  position: relative;
  max-width: 320px;
  margin-inline: auto;
  width: 100%;
}
.result-card img {
  border-radius: 26px;
  transform: rotate(-2deg);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.6);
}
@media (min-width: 1024px) {
  .result-card {
    max-width: 380px;
  }
}

/* ------------------------- device frame (real screenshot) ----------------- */
.device {
  max-width: 320px;
  margin-inline: auto;
  width: 100%;
}
@media (min-width: 1024px) {
  .device {
    max-width: 380px;
  }
}
.device__frame {
  position: relative;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(160deg, #4b3b33, #241a15 55%, #4b3b33);
  box-shadow: 0 40px 90px -30px rgba(58, 42, 34, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(3deg);
}
.device__frame img {
  border-radius: 36px;
  display: block;
}
