/* Padel-Up Static Site Styles
   Clean, modern, mobile-friendly design inspired by the app icon and mobile app.
   Keep this file self-contained and easy to copy into Google Sites or host statically.
*/

:root {
  /* Branding matched to the app icon:
     - Pale green background (like the court with white lines)
     - Emerald green for primary actions
     - Bold blue accents (from icon graphics)
  */
  --primary: #059669;
  --primary-light: #10b981;
  --primary-dark: #047857;

  --accent: #f59e0b;
  --accent-light: #fbbf24;

  /* Pale green court-like background */
  --bg: #f0f7f4;
  --bg-alt: #ffffff;

  /* Bold blue from the icon */
  --accent-blue: #1e40af;
  --accent-blue-light: #3b82f6;

  --text: #0f172a;
  --text-muted: #64748b;
  --border: #d1e7e0;

  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Nav */
.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin: 0 0 16px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #f1f5f9;
  text-decoration: none;
}

/* Bold blue variant to match icon graphics */
.btn-blue {
  background: var(--accent-blue);
  color: white;
}

.btn-blue:hover {
  background: #1e3a8a;
  text-decoration: none;
}

/* Sections */
.section {
  padding: 40px 0;
}

.section h2 {
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--text);
}

/* Sections that should feel like the pale green court background */
.section-pale {
  background: #e8f5e9;
  border-top: 1px solid #d1e7e0;
  border-bottom: 1px solid #d1e7e0;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.video-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-card {
  padding: 14px;
}

.video-card h3 {
  font-size: 0.95rem;
  line-height: 1.25;
  margin: 0 0 8px;
}

.video-card video,
.video-card iframe {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 0;
  border-radius: 6px;
  display: block;
  width: 100%;
}

.video-card p {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 6px 0 0;
}

@media (min-width: 1000px) {
  .video-grid:has(.video-card:nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .video-grid:has(.video-card:nth-child(5)) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
}

/* Features / How it works */
.feature {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #ecfdf5;
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
}

/* Visual / Media */
.media-placeholder {
  background: #f1f5f9;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.media-placeholder video,
.media-placeholder img {
  max-width: 100%;
  border-radius: 8px;
}

/* Store badges */
.store-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  height: 44px;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: #cbd5e1;
  padding: 32px 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: #94a3b8;
}

.site-footer a:hover {
  color: white;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-version {
  opacity: 0.5;
  font-size: 0.75rem;
  margin-left: 0.1em;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
  }
}

/* Privacy / Legal pages */
.legal-content {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
  color: var(--text);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

/* Simple table of contents for long pages */
.toc {
  background: #f8fafc;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.toc ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

/* Q&A page */
.qa-page {
  max-width: 900px;
}

.qa-hero {
  margin: 0 auto 28px;
  max-width: 720px;
  text-align: center;
}

.qa-hero h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 0 0 10px;
}

.qa-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.qa-content {
  padding: 28px;
}

.qa-content-header {
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.qa-content-header h2 {
  margin-bottom: 0;
}

.qa-count {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 0.85rem;
  margin: 0;
}

.qa-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.qa-filter {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 8px 12px;
}

.qa-filter:hover,
.qa-filter.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.qa-filter:focus-visible {
  outline: 3px solid rgba(5, 150, 105, 0.28);
  outline-offset: 2px;
}

.qa-list {
  display: grid;
  gap: 10px;
}

.qa-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
}

.qa-item summary {
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  list-style-position: outside;
  padding: 14px 16px;
}

.qa-item summary:hover {
  color: var(--primary-dark);
}

.qa-item p {
  color: var(--text-muted);
  margin: 0;
  padding: 0 16px 16px 34px;
}

.qa-status {
  color: var(--text-muted);
  margin: 0;
}

.qa-status-error {
  color: #b91c1c;
}

@media (max-width: 640px) {
  .qa-content,
  .legal-content {
    padding: 22px;
  }

  .qa-content-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .qa-filter {
    font-size: 0.82rem;
    padding: 7px 10px;
  }

  .qa-item p {
    padding-left: 16px;
  }
}

/* ===== Screenshot zoom + Lightbox (for How it Works) ===== */
.screenshot {
  cursor: zoom-in;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  display: block;
}

.screenshot:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

/* Lightbox modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 94vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
  background: #fff;
}

.lightbox .close {
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 44px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}

.lightbox .close:hover {
  color: #cbd5e1;
}

/* Six-step flowchart */
.simple-flow-section h2 {
  margin-bottom: 6px;
  text-align: center;
}

.flow-intro {
  max-width: 780px;
  margin: 0 auto 22px;
  color: var(--text-muted);
  font-size: 0.98rem;
  text-align: center;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 30px;
  position: relative;
}

.flow-card {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid #8fb9ad;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  min-height: 230px;
  padding: 12px;
  position: relative;
}

.flow-card::after {
  align-items: center;
  background: #e8f5e9;
  border: 2px solid var(--primary-dark);
  border-radius: 9999px;
  color: var(--primary-dark);
  content: "→";
  display: flex;
  font-size: 1.3rem;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: -32px;
  top: 48%;
  width: 32px;
  z-index: 2;
}

.flow-step-3::after {
  content: "↓";
  left: 50%;
  right: auto;
  top: auto;
  bottom: -30px;
  transform: translateX(-50%);
}

.flow-step-6::after {
  display: none;
}

@media (min-width: 981px) {
  .flow-step-1 {
    grid-column: 1;
    grid-row: 1;
  }

  .flow-step-2 {
    grid-column: 2;
    grid-row: 1;
  }

  .flow-step-3 {
    grid-column: 3;
    grid-row: 1;
  }

  .flow-step-4 {
    grid-column: 3;
    grid-row: 2;
  }

  .flow-step-5 {
    grid-column: 2;
    grid-row: 2;
  }

  .flow-step-6 {
    grid-column: 1;
    grid-row: 2;
  }

  .flow-step-4::after,
  .flow-step-5::after {
    content: "←";
    left: -32px;
    right: auto;
  }
}

.flow-step-label {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.flow-card h3 {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.25;
  margin: 0 0 6px;
}

.flow-card p {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.34;
  margin: 0 0 9px;
}

.flow-shots {
  align-items: flex-start;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  width: 100%;
}

.flow-shots .screenshot {
  aspect-ratio: 9 / 16;
  flex: 0 1 42px;
  height: 68px;
  min-width: 0;
  object-fit: contain;
  object-position: top center;
  width: 42px;
}

@media (max-width: 980px) {
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-step-3::after {
    content: "→";
    left: auto;
    right: -32px;
    top: 48%;
    bottom: auto;
    transform: none;
  }

  .flow-step-2::after,
  .flow-step-4::after {
    content: "↓";
    left: 50%;
    right: auto;
    top: auto;
    bottom: -30px;
    transform: translateX(-50%);
  }
}

@media (max-width: 680px) {
  .flow-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .flow-card {
    min-height: auto;
  }

  .flow-shots .screenshot {
    flex-basis: 40px;
    height: 64px;
    width: 40px;
  }

  .flow-card::after,
  .flow-step-2::after,
  .flow-step-3::after,
  .flow-step-4::after {
    content: "↓";
    left: 50%;
    right: auto;
    top: auto;
    bottom: -34px;
    transform: translateX(-50%);
  }

  .flow-step-6::after {
    display: none;
  }
}

