/* Out to Lunch Apps – shared styles. Colours are set once here, at the top. */
:root {
  --bg: #0b1a12;
  --bg-2: #10261a;
  --court: #14422a;
  --ball: #d6f233;
  --text: #f2f7f3;
  --muted: #b3c4b9;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.14);
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--ball); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header and footer ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; }

.site-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }

.site-footer {
  margin-top: 72px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

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

.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(6, 16, 11, 0.70) 0%, rgba(6, 16, 11, 0.92) 100%),
    url("/assets/court-hero.jpg") center 62% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 56px 0 84px; text-align: center; }
.hero .app-icon { width: 92px; height: 92px; margin: 0 auto 18px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45)); }
.hero h1 { font-size: clamp(40px, 8vw, 68px); line-height: 1.05; margin: 0 0 14px; font-weight: 900; letter-spacing: -0.02em; }
.hero .tagline { font-size: clamp(19px, 3.2vw, 24px); color: var(--text); margin: 0 auto 10px; max-width: 640px; }
.hero .sub { color: var(--muted); margin: 0 auto 30px; max-width: 600px; }

.hero-simple .hero-inner { padding: 44px 0 56px; }

.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--ball); color: #12210a; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.06); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); }
.btn-soon { background: rgba(255, 255, 255, 0.10); color: var(--text); border-color: var(--line); cursor: default; }

/* ---------- Sections ---------- */

section { padding: 56px 0 0; }
section h2 { font-size: clamp(26px, 4.5vw, 34px); line-height: 1.15; margin: 0 0 8px; font-weight: 900; letter-spacing: -0.01em; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 640px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .emoji { font-size: 28px; line-height: 1; margin-bottom: 12px; display: block; }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step { position: relative; padding-top: 48px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ball);
  color: #12210a;
  font-weight: 900;
  display: grid; place-items: center;
}
.step h3 { margin: 0 0 4px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); }

.band {
  background: linear-gradient(135deg, var(--court), #0e3220);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.band h2 { margin-bottom: 6px; }
.band p { margin: 0; color: #d3e2d8; max-width: 680px; }

.apps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.app-card { display: flex; gap: 18px; align-items: center; text-decoration: none; color: var(--text); }
.app-card:hover { border-color: rgba(255, 255, 255, 0.4); }
.app-card img { width: 64px; height: 64px; flex: none; }
.app-card h3 { margin: 0 0 2px; font-size: 22px; }
.app-card p { color: var(--muted); }

.small { font-size: 14px; color: var(--muted); }

/* ---------- Text pages (support, privacy) ---------- */

.prose { max-width: 720px; padding-top: 40px; }
.prose h2 { font-size: 24px; margin: 38px 0 8px; }
.prose h3 { font-size: 19px; margin: 26px 0 6px; }
.prose p, .prose li { color: #dbe7df; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .updated { color: var(--muted); font-size: 15px; }

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 12px 0;
}
summary { cursor: pointer; font-weight: 800; }
details[open] summary { margin-bottom: 8px; }
details p, details ol, details ul { color: #dbe7df; margin: 8px 0; }

.contact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 18px 0;
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-inner { padding: 40px 0 60px; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- Coming-soon app ---------- */

.hero-plain {
  background:
    radial-gradient(900px 380px at 50% -10%, rgba(59, 130, 246, 0.28), transparent 70%),
    linear-gradient(180deg, #0c1a22 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.tag-soon {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  vertical-align: middle;
}
