/* Thirteen Sport Padel: landing page.
   Theme B "Black + Forest", matching the iOS app (ios/Sources/Core/Design/Theme.swift):
   black pages with a forest glow, deep-forest cards with a faint chartreuse edge, brand forest
   for hero blocks, chartreuse for the main action, bold italic condensed capitals for headings,
   and the giant slanted forest 13 behind open-space screens. */
:root {
  --forest: #004e29;
  --hero-inset: #003d20;
  --surface: #021a0e;          /* inset areas: chips, inputs, segmented track */
  --surface-raised: #062a19;   /* cards and list rows */
  --spring: #06d16f;
  --chartreuse: #caf301;
  --ink: #000;
  --white: #fff;
  --text-soft: #a9c2b4;        /* secondary text, AA on black and on every green */
  --hairline: rgba(202, 243, 1, .10);
  --hero-line: rgba(255, 255, 255, .12);
  --glow: rgba(0, 78, 41, .45);
  --watermark: rgba(0, 78, 41, .55);

  /* kept for the share pages' inline styles */
  --forest-deep: var(--surface-raised);
  --forest-ink: var(--surface);

  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --max: 1180px;
  --radius: 14px;              /* Theme.cornerRadius */
  --radius-phone: 34px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--ink); }
body {
  margin: 0;
  background:
    radial-gradient(110% 70vh at 100% 0%, var(--glow), transparent 62%) no-repeat,
    var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--chartreuse); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--chartreuse); color: var(--ink); padding: 10px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type: the app's heading style (bold, condensed, slanted, capitals) ---------- */
.display, .h2, .formats dt, .info .big, .doc h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .005em;
}
.display {
  font-size: clamp(3rem, 10.5vw, 6.4rem);
  line-height: .88;
  color: var(--white);
  text-wrap: balance;
}
.display--ink { color: var(--white); }
.h2 {
  font-size: clamp(2.2rem, 6.6vw, 3.7rem);
  line-height: .92;
  max-width: 18ch;
  text-wrap: balance;
}
h3 { font-family: var(--body); font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.lede { font-size: clamp(1.0625rem, 2.4vw, 1.25rem); color: var(--text-soft); max-width: 36em; margin-top: 18px; }

/* The giant slanted 13 (ScreenBackdrop's watermark): decoration only. */
.wm13 { position: relative; isolation: isolate; overflow: hidden; }
.wm13::before {
  content: "13";
  position: absolute; z-index: -1; pointer-events: none;
  font-family: var(--display); font-style: italic; font-weight: 800;
  line-height: .8; letter-spacing: -.06em;
  color: var(--watermark);
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.top__in { display: flex; align-items: center; gap: 16px; height: 64px; }
.top__logo img { width: 112px; height: auto; }
.top__nav { display: none; margin-left: auto; gap: 28px; font-weight: 500; }
.top__nav a { text-decoration: none; color: var(--text-soft); padding: 6px 0; }
.top__nav a:hover { color: var(--white); }
/* the app's segmented control: inset track, forest under the selected segment */
.lang { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--hairline); }
.lang button {
  font: 600 .875rem/1 var(--body); letter-spacing: .02em;
  color: var(--text-soft); background: none; border: 0; cursor: pointer;
  min-width: 44px; min-height: 34px; border-radius: 8px;
}
.lang button[aria-pressed="true"] { background: var(--forest); color: var(--white); }

/* ---------- phone frame ---------- */
.phone {
  position: relative;
  border-radius: var(--radius-phone);
  padding: 7px;
  background: #1d1f1d;
  box-shadow:
    0 0 0 1px #2b2e2b,
    0 30px 70px -20px rgba(0, 0, 0, .8),
    0 0 90px -30px rgba(0, 78, 41, .7);
}
.phone img { border-radius: calc(var(--radius-phone) - 7px); width: 100%; aspect-ratio: 600 / 1305; object-fit: cover; background: var(--ink); }

/* ---------- buttons ---------- */
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 22px 8px 18px;
  border-radius: var(--radius); background: var(--chartreuse); color: var(--ink);
  text-decoration: none;
  transition: transform .15s ease;
}
.store:hover { transform: translateY(-2px); }
.store__apple { width: 24px; height: 30px; }
.store__txt { display: flex; flex-direction: column; line-height: 1.05; }
.store__txt small { font-size: .75rem; font-weight: 500; }
.store__txt b { font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; }
.store--ink { background: var(--chartreuse); color: var(--ink); }

.web, .btn--line {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 22px;
  border-radius: var(--radius);
  background: var(--surface-raised); border: 1px solid var(--hairline); color: var(--white);
  font-weight: 600; font-size: 1.05rem; text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.web:hover, .btn--line:hover { border-color: var(--chartreuse); background: var(--surface-raised); color: var(--white); }

.soon { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--text-soft); }
.soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--spring); box-shadow: 0 0 0 4px rgba(6, 209, 111, .18); flex: none; }
.soon--ink { color: var(--text-soft); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 0; }
.hero::before { font-size: 150vw; left: -18vw; bottom: -38vw; }
.hero__in { display: grid; gap: 40px; }
.hero__place { font-weight: 600; color: var(--spring); margin-bottom: 14px; }
.hero__copy .lede { margin-top: 22px; }
.cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.cta .soon { flex-basis: 100%; }

.hero__phones { position: relative; height: 470px; margin: 0 auto; width: min(100%, 360px); }
.hero__phones .phone { position: absolute; width: 215px; }
.phone--front { left: 50%; top: 10px; transform: translateX(-30%) rotate(3deg); z-index: 2; }
.phone--back { left: 50%; top: 70px; transform: translateX(-88%) rotate(-7deg); filter: brightness(.7); }

/* ---------- features: the app's list rows ---------- */
.features { padding: 96px 0 88px; }
.feat {
  margin-top: 44px; display: grid;
  background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius);
  overflow: hidden;
}
.feat li { padding: 22px 22px 24px; display: grid; gap: 6px; border-top: 1px solid var(--hairline); }
.feat li:first-child { border-top: 0; }
.feat h3 { color: var(--white); font-size: 1.2rem; }
.feat h3::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: .18em;
  border-radius: 2px; background: var(--chartreuse); transform: skewX(-12deg);
}
.feat p { color: var(--text-soft); max-width: 34em; }

/* ---------- social play: a hero block ---------- */
.social { padding: 24px 0; }
.social__in {
  display: grid; gap: 48px;
  background: var(--forest); border: 1px solid var(--hero-line); border-radius: calc(var(--radius) + 10px);
  padding: 44px 24px 0;
  position: relative; isolation: isolate; overflow: hidden;
}
/* HeroWatermark: a chartreuse 13 in the block's corner */
.social__in::after {
  content: "13"; position: absolute; z-index: -1; right: -.04em; bottom: -.28em; pointer-events: none;
  font-family: var(--display); font-style: italic; font-weight: 800; letter-spacing: -.05em; line-height: 1;
  font-size: clamp(14rem, 40vw, 26rem); color: rgba(202, 243, 1, .13);
}
.social .lede { color: #b9ccc1; }
.social__copy { order: -1; }
.phone--solo { width: min(72%, 280px); margin: 0 auto -60px; transform: rotate(-3deg); }
.formats { margin-top: 32px; display: grid; gap: 12px; }
.formats div { padding: 18px 18px 20px; border-radius: var(--radius); background: var(--hero-inset); border: 1px solid var(--hero-line); }
.formats dt { font-size: 1.9rem; line-height: 1; color: var(--chartreuse); }
.formats dd { margin-top: 8px; max-width: 32em; color: var(--white); }

/* ---------- ranks & rewards ---------- */
.ranks { padding: 120px 0 96px; }
.trio {
  margin: 48px calc(-1 * var(--gutter)) 0;
  padding: 0 var(--gutter) 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.trio::-webkit-scrollbar { display: none; }
.trio figure { display: grid; gap: 22px; align-content: start; justify-items: start; scroll-snap-align: start; }
.trio .phone { width: 100%; max-width: 260px; }
.trio h3 { color: var(--chartreuse); font-size: 1.25rem; }
.trio figcaption p { color: var(--text-soft); margin-top: 6px; max-width: 26em; }

/* ---------- venue ---------- */
.venue { padding: 96px 0; border-top: 1px solid var(--hairline); }
.venue .h2 { color: var(--white); }
.courts {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.courts li {
  position: relative;
  aspect-ratio: 1 / 2;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--forest);
  color: var(--chartreuse);
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: clamp(2rem, 8vw, 3.4rem);
  /* court markings: outline, service lines and the net */
  background-image:
    linear-gradient(var(--chartreuse), var(--chartreuse)),
    linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)),
    linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)),
    linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4));
  background-size: 100% 3px, 100% 1.5px, 100% 1.5px, 1.5px 46%;
  background-position: 0 50%, 0 27%, 0 73%, 50% 50%;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 6px var(--forest), inset 0 0 0 7.5px rgba(255,255,255,.4);
}
.courts__note { margin-top: 14px; font-size: .95rem; color: var(--text-soft); }

.info { margin-top: 56px; display: grid; gap: 12px; }
.info > div { padding: 22px; background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius); }
.info h3 { color: var(--text-soft); font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.info p, .info address { color: var(--white); }
.info .big { font-size: 2.6rem; line-height: 1; color: var(--chartreuse); margin-bottom: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; margin-top: 16px;
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.info .btn--line { min-height: 48px; font-size: 1rem; background: var(--surface); }

/* ---------- download ---------- */
.download { padding: 96px 0 0; }
.download::before { font-size: 120vw; right: -20vw; bottom: -30vw; }
.download .lede { color: var(--text-soft); }
.download__in { display: grid; gap: 48px; }
.phone--tilt { width: min(70%, 270px); margin: 0 auto -120px; transform: rotate(6deg); }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--surface-raised); border-top: 1px solid var(--hairline); padding: 56px 0 48px; font-size: .95rem; color: var(--text-soft); }
.foot__in { display: grid; gap: 14px; }
.foot img { width: 48px; height: auto; margin-bottom: 6px; }
.foot__links { margin-top: 10px; line-height: 1.8; }
.foot__links a { color: var(--chartreuse); text-decoration: none; overflow-wrap: anywhere; }
.foot__links a:hover, .foot__links a:focus-visible { text-decoration: underline; }
.foot small { font-size: .85rem; color: var(--text-soft); }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .top__nav { display: flex; }
  .lang { margin-left: 12px; }
  .feat { grid-template-columns: 1fr 1fr; }
  .feat li { border-top: 1px solid var(--hairline); }
  .feat li:nth-child(-n+2) { border-top: 0; }
  .feat li:nth-child(even) { border-left: 1px solid var(--hairline); }
  .feat li:nth-child(odd):last-child { grid-column: 1 / -1; }
  .trio { margin: 48px 0 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 32px; overflow: visible; }
  .courts { grid-template-columns: repeat(8, 1fr); gap: 12px; }
  .info { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .social__in { padding: 56px 48px 0; }
}

@media (min-width: 1000px) {
  .top__logo img { width: 132px; }
  .hero { padding: 72px 0 0; }
  .hero::before { font-size: 64rem; left: -8rem; bottom: -24rem; }
  .hero__in { grid-template-columns: 1.1fr .9fr; align-items: center; min-height: calc(100vh - 64px - 72px); max-height: 760px; }
  .hero__copy { padding-bottom: 72px; }
  .hero__phones { height: 640px; width: 100%; align-self: end; }
  .hero__phones .phone { width: 280px; }
  .phone--front { top: 20px; }
  .phone--back { top: 110px; }
  .features { padding: 128px 0 112px; }
  .social__in { grid-template-columns: .8fr 1.2fr; align-items: center; gap: 72px; padding: 72px 72px 0; }
  .social__copy { order: 0; padding-bottom: 72px; }
  .phone--solo { width: 300px; align-self: end; }
  .ranks { padding: 152px 0 128px; }
  .venue { padding: 128px 0; }
  .download { padding-top: 128px; }
  .download::before { font-size: 52rem; right: -6rem; bottom: -20rem; }
  .download__in { grid-template-columns: 1.3fr .7fr; align-items: end; }
  .download__in > div { padding-bottom: 120px; }
  .phone--tilt { margin: 0 0 -160px auto; width: 290px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store { transition: none; }
  .store:hover { transform: none; }
}

/* ---------- long-form pages (privacy, support) ---------- */
.doc { padding: 56px 0 72px; }
.doc__in { max-width: 760px; display: grid; gap: 16px; }
.doc h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: .95; color: var(--white); }
.doc h2 { font-size: 1.25rem; font-weight: 600; color: var(--chartreuse); margin-top: 20px; }
.doc h3 { font-size: 1.05rem; font-weight: 600; color: var(--white); }
.doc p, .doc li { color: var(--text-soft); }
.doc ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.doc a { color: var(--chartreuse); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc__meta { font-size: .95rem; color: var(--text-soft); }
.doc .contact { list-style: none; padding: 0; gap: 12px; }
.doc .contact strong { display: inline-block; min-width: 8em; color: var(--white); }
.faq { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--hairline); }
.doc__more { margin-top: 12px; }
.doc .btn--wa { background: var(--chartreuse); color: var(--ink); justify-self: start; margin-top: 4px; min-height: 52px; padding: 0 28px; text-decoration: none; }
.doc .btn--wa:hover { background: #d8ff2a; }
