/*
   PadelPro landing page.
   Layers on top of style.css -- palette, header, footer and .container
   all come from there so the page stays part of mikapps.xyz.
*/

:root {
  --pp-court: #16a34a; /* padel court green, used sparingly for accents */
  --pp-surface: #0f0f10;
  --pp-surface-2: #141416;
  --pp-radius: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* style.css centres <main> for the one-screen homepage; this page scrolls. */
main {
  display: block;
  padding: 0;
}

section {
  padding: var(--spacing-xl) 0;
}

section + section {
  border-top: 1px solid var(--border-color);
}

.section-head {
  max-width: 46rem;
  margin: 0 auto var(--spacing-xl);
  text-align: center;
}

.section-head h2 {
  font-size: var(--font-size-h2);
  margin-bottom: var(--spacing-md);
}

.section-head p {
  color: var(--text-secondary);
  font-size: var(--font-size-body);
}

.eyebrow {
  display: block;
  color: var(--accent-color);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
}

/* ---------- Hero ---------- */

.pp-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--spacing-xl);
  align-items: center;
  padding: var(--spacing-xl) 0;
}

.pp-hero h1 {
  font-size: 3.25rem;
  line-height: 1.08;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(to bottom right, #fff 30%, #a5a5a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pp-hero .lede {
  color: var(--text-secondary);
  font-size: 1.1875rem;
  margin-bottom: var(--spacing-lg);
  max-width: 34rem;
}

.hero-app {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.hero-app img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  flex-shrink: 0;
  align-self: flex-start;
}

.hero-app .meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.hero-app .meta strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
}

.stars {
  color: #fbbf24;
  letter-spacing: 0.08em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-md);
}

.cta-note {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Phone + watch composition */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-visual .phone {
  width: min(100%, 19rem);
  height: auto;
  border-radius: 1.75rem;
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.65);
}

/*
  Device-framed PNG with its own alpha. No border, radius or backdrop --
  and the shadow must be a drop-shadow filter, since box-shadow would trace
  the image's bounding box rather than the watch silhouette.
*/
.hero-visual .watch {
  position: absolute;
  left: -1.5rem;
  bottom: 0;
  width: 10rem;
  height: auto;
  filter: drop-shadow(0 18px 38px rgb(0 0 0 / 0.75));
}

/* ---------- Spec strip ---------- */

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--pp-radius);
  overflow: hidden;
}

.spec-strip div {
  background: var(--bg-color);
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
}

.spec-strip dt {
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

.spec-strip dd {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--spacing-lg);
}

.feature {
  background: var(--pp-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--pp-radius);
  padding: var(--spacing-lg);
}

.feature h3 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

.feature .ico {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: var(--pp-surface-2);
  border: 1px solid var(--border-color);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

/* ---------- Screenshot scroller ---------- */

.shots {
  display: flex;
  gap: var(--spacing-lg);
  overflow-x: auto;
  padding-bottom: var(--spacing-md);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.shots figure {
  flex: 0 0 auto;
  width: 15rem;
  scroll-snap-align: center;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: var(--pp-radius);
  border: 1px solid var(--border-color);
  display: block;
}

.shots figcaption {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: center;
  margin-top: var(--spacing-md);
}

/* ---------- Alternating detail rows ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.split + .split {
  margin-top: var(--spacing-xl);
}

.split.reverse .split-media {
  order: -1;
}

.split h2 {
  font-size: var(--font-size-h2);
}

.split p {
  color: var(--text-secondary);
  font-size: var(--font-size-body);
  margin-bottom: var(--spacing-md);
}

.split-media {
  display: flex;
  justify-content: center;
}

.split-media img {
  max-width: 100%;
  /* Images carry intrinsic width/height attrs; without this they render 1920px tall. */
  height: auto;
  border-radius: var(--pp-radius);
  border: 1px solid var(--border-color);
}

.split-media.watch-media img {
  width: 15rem;
  background: #000;
}

.tick-list {
  list-style: none;
  color: var(--text-secondary);
}

.tick-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--spacing-sm);
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--pp-court);
}

.tick-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- Comparison table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--pp-radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 36rem;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.9rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

thead th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--pp-surface);
}

tbody th {
  font-weight: 500;
  color: var(--text-secondary);
}

tbody td {
  color: var(--text-primary);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Prose (scoring explainer) ---------- */

.prose {
  max-width: 46rem;
  margin: 0 auto;
  color: var(--text-secondary);
}

.prose h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
}

.prose p,
.prose ul {
  margin-bottom: var(--spacing-md);
  font-size: 1.0625rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 46rem;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border-color);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--spacing-lg) 2.5rem var(--spacing-lg) 0;
  font-weight: 600;
  font-size: 1.0625rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > div {
  color: var(--text-secondary);
  padding-bottom: var(--spacing-lg);
  font-size: 1.0625rem;
}

.faq details > div p + p {
  margin-top: var(--spacing-md);
}

/* ---------- Closing CTA ---------- */

.final-cta {
  text-align: center;
  background: var(--pp-surface);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.final-cta h2 {
  font-size: var(--font-size-h2);
}

.final-cta p {
  color: var(--text-secondary);
  font-size: var(--font-size-body);
  max-width: 34rem;
  margin: 0 auto var(--spacing-lg);
}

.final-cta .cta-row {
  justify-content: center;
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .pp-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .pp-hero h1 {
    font-size: 2.5rem;
  }

  .pp-hero .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-app,
  .cta-row {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  /*
    Narrow the phone so the watch has somewhere to sit. At full width the
    centred phone leaves only ~43px of clear space and the watch ends up
    covering the stats figures.
  */
  .hero-visual .phone {
    width: min(100%, 15rem);
  }

  .hero-visual .watch {
    left: -0.5rem;
    bottom: -0.5rem;
    width: 6.75rem;
  }

  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .split.reverse .split-media {
    order: 0;
  }

  .split-media {
    order: -1;
  }

  .spec-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*
  Three columns need ~576px. Below that the third column would sit off-screen
  behind a scrollbar nobody sees, so drop it -- it is the editorial aside, not
  the substance -- and let the table fit instead.
*/
@media (max-width: 640px) {
  table {
    min-width: 0;
  }

  thead th:last-child,
  tbody td:last-child {
    display: none;
  }

  th,
  td {
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 480px) {
  .shots figure {
    width: 12.5rem;
  }
}
