/* Smash — smashpadel.org
   Palette sampled from the app icon: the ball's lime on its near-black plate.
   --bg is the plate colour exactly, so the icon sits flush on the page. */

:root {
  --accent: #d3ee45;
  --accent-hi: #e7fa6d;
  --accent-dim: #7f9b1c;
  --bg: #15191a;
  --surface: #1e2325;
  --surface-hi: #2a3032;
  --border: rgba(255, 255, 255, 0.10);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.62);
  /* 0.48 is the floor that still clears 4.5:1 against --bg. The app can go
     dimmer than this; a web page read in daylight can't. */
  --text-3: rgba(255, 255, 255, 0.48);
  --strain: #fa731f;
  --max: 1080px;
  --measure: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- shell ---------- */

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

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(21, 25, 26, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 680;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}
.brand:hover { text-decoration: none; }
/* The icon art already carries its own rounded plate, so no radius here —
   rounding it again would clip the corners twice. */
.brand img { width: 30px; height: 30px; display: block; }
.nav-links { display: flex; gap: 22px; font-size: 0.94rem; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- hero ---------- */

.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -280px;
  left: 50%;
  width: 900px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(211, 238, 69, 0.16), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-copy .lede { margin-left: auto; margin-right: auto; }
.hero-copy .cta-row { justify-content: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(211, 238, 69, 0.34);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 700;
}
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 1.18rem; color: var(--text-2); margin: 0 0 30px; max-width: 34em; }

.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.95rem;
  color: var(--text-2);
}
.badge-soon strong { color: var(--text); font-weight: 600; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(211, 238, 69, 0.18);
}
.req { font-size: 0.9rem; color: var(--text-3); }

/* ---------- sections ---------- */

section { padding: 68px 0; border-top: 1px solid var(--border); }
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 680;
}
.section-lede { color: var(--text-2); max-width: var(--measure); margin: 0 0 38px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 620; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 0.97rem; }
.card .card-art { display: block; width: 100%; height: auto; margin-top: 18px; }
.k {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.card .k { margin-bottom: 12px; }

/* The device composition.
   One stage, phones absolutely placed and cropped by its bottom edge — the
   screenshots' ragged cut lines sit below the crop, so they never render.
   The centre phone leads; the side phones angle in behind it. */
.stage {
  position: relative;
  height: 560px;
  margin-top: 8px;
  overflow: hidden;
}
.stage::before {
  content: "";
  position: absolute;
  bottom: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 480px;
  background: radial-gradient(closest-side, rgba(211, 238, 69, 0.13), transparent 70%);
  pointer-events: none;
}
.phone {
  position: absolute;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #050607;
  padding: 12px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85);
}
/* The crop starts above the app's content, in empty screen background, so the
   island pill can sit where a real one does without covering anything. The
   greeting's first text row lands at 11% of image width from the top, so the
   pill stops short of that; the side phones have nav text right at the top
   edge, so they go without. */
.phone::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 24%;
  height: 16px;
  border-radius: 999px;
  background: #020303;
}
.phone-side::after { display: none; }
.phone img { width: 100%; display: block; border-radius: 29px; }
.phone-center {
  width: 330px;
  left: 50%;
  transform: translateX(-50%);
  bottom: -80px;
  z-index: 3;
  border-color: rgba(211, 238, 69, 0.22);
}
.phone-side { width: 270px; bottom: -160px; z-index: 2; }
.phone-side img { opacity: 0.88; }
.phone-left  { left: 50%; transform: translateX(-129%) rotate(-7deg); }
.phone-right { left: 50%; transform: translateX(29%) rotate(7deg); }

/* Floating fragments — numbers lifted from the screens beside them. */
.chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-hi);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.75);
}
.chip small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2px;
}
.chip strong { font-size: 0.92rem; font-weight: 620; letter-spacing: -0.01em; }
.chip-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-strain { background: var(--strain); box-shadow: 0 0 0 4px rgba(250, 115, 31, 0.16); }
.dot-lime   { background: var(--accent); box-shadow: 0 0 0 4px rgba(211, 238, 69, 0.16); }
.dot-sky    { background: #59c7f9;       box-shadow: 0 0 0 4px rgba(89, 199, 249, 0.16); }
.chip-smash { left: 6%; top: 17%; transform: rotate(-2deg); }
.chip-best  { right: 5%; top: 36%; transform: rotate(2deg); }
.chip-avg   { left: 11%; bottom: 15%; transform: rotate(-1deg); }

.watch-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 0;
  padding: 40px 44px;
  background:
    radial-gradient(420px 200px at 18% 50%, rgba(211, 238, 69, 0.09), transparent 70%),
    linear-gradient(180deg, var(--surface-hi), var(--surface));
  border: 1px solid var(--border);
  border-radius: 24px;
}
.watch-bezel {
  border-radius: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #050607;
  padding: 12px;
  width: 218px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
}
.watch-bezel img { width: 100%; display: block; border-radius: 38px; }
.watch-row .k { margin-bottom: 10px; }
.watch-row h3 { margin: 0 0 10px; font-size: 1.35rem; font-weight: 650; letter-spacing: -0.015em; }
.watch-row p { margin: 0; color: var(--text-2); max-width: 44em; }

/* Pro */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.tier.pro { border-color: rgba(211, 238, 69, 0.38); background: linear-gradient(180deg, rgba(211, 238, 69, 0.06), var(--surface)); }
.tier h3 { margin: 0 0 4px; font-size: 1.15rem; }
.tier .price { color: var(--text-3); font-size: 0.9rem; margin: 0 0 18px; }
.tier ul { margin: 0; padding: 0; list-style: none; }
.tier li { color: var(--text-2); padding: 7px 0 7px 26px; position: relative; font-size: 0.97rem; }
.tier li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--text-3); font-size: 0.92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--text-2); }

/* ---------- legal / support pages ---------- */

.doc { max-width: var(--measure); margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); margin-bottom: 8px; }
.doc .updated { color: var(--text-3); font-size: 0.92rem; margin: 0 0 34px; }
.doc h2 { font-size: 1.18rem; margin: 38px 0 10px; font-weight: 620; }
.doc h3 { font-size: 1.02rem; margin: 30px 0 8px; font-weight: 620; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin: 7px 0; }
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 26px 0;
}
.callout p { margin: 0; }
.doc-foot { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 0.92rem; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .cta-row { justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .stage { height: 520px; }
  .phone-center { width: 280px; }
  .phone-side { width: 218px; bottom: -140px; }
  .phone-left  { transform: translateX(-140%) rotate(-8deg); }
  .phone-right { transform: translateX(40%) rotate(8deg); }
  .chip-smash { left: 2%; top: 12%; }
  .chip-best  { right: 2%; top: 40%; }
  .watch-row { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; padding: 30px 24px; }
  .watch-row p { margin: 0 auto; }
}

@media (max-width: 560px) {
  .hero { padding: 40px 0 0; }
  .lede { font-size: 1.08rem; }
  section { padding: 52px 0; }
  .nav-links { gap: 16px; font-size: 0.9rem; }
  /* One phone is all a narrow screen has room for, and the chips shrink to
     hug its edges instead of covering its face. */
  .stage { height: 480px; }
  .phone-side { display: none; }
  .phone-center { width: 256px; bottom: -70px; }
  .chip { padding: 8px 12px; gap: 8px; border-radius: 12px; }
  .chip small { font-size: 0.6rem; }
  .chip strong { font-size: 0.8rem; }
  .chip-dot { width: 7px; height: 7px; }
  .chip-smash { left: 0; top: 0; }
  .chip-best  { right: -4px; top: 62%; }
  .chip-avg   { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
