/* Pool · shared stylesheet for landing + legal pages.
   Goal: feel like the app — black, calm, pool-blue accent, no animations
   that distract reviewers, fully responsive, accessible at 200% zoom. */

:root {
  --pool-blue: #5BA0C9;
  --pool-blue-dim: #3B7B9D;
  --bg: #0A0F18;
  --bg-soft: #111824;
  --bg-card: #161E2C;
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.50);
  --border: rgba(255, 255, 255, 0.10);
  --max: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded",
               "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #000 0%, var(--bg) 35%, var(--bg-soft) 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--pool-blue);
  text-decoration: none;
}
a:hover, a:focus-visible { text-decoration: underline; }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 120px;
}

/* ===== Header / nav ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  font-size: 14px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}
.nav__brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.nav__links a {
  margin-left: 18px;
  color: var(--text-2);
}

/* ===== Hero (landing only) ===== */
.hero {
  text-align: center;
  padding: 30px 0 60px;
}
.hero img.hero__icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(91, 160, 201, 0.25),
              0 4px 8px rgba(0, 0, 0, 0.6);
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 24px 0 8px;
}
.hero .tagline {
  font-size: 18px;
  color: var(--text-2);
  margin: 0;
}
.hero .lede {
  font-size: 16px;
  color: var(--text-3);
  margin: 16px auto 0;
  max-width: 540px;
}
.cta-row {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  background: #fff;
  color: #000;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

/* ===== Section / cards ===== */
section { margin-top: 48px; }

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 12px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}
.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}

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

/* ===== Legal page typography ===== */
.legal h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.legal .updated {
  color: var(--text-3);
  font-size: 13px;
  margin: 0 0 28px;
}
.legal h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 8px;
  letter-spacing: -0.01em;
}
.legal h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 18px 0 6px;
  color: var(--text);
}
.legal p, .legal li {
  color: var(--text-2);
  font-size: 15px;
}
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.callout {
  background: rgba(91, 160, 201, 0.10);
  border: 1px solid rgba(91, 160, 201, 0.30);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
  color: var(--text);
  font-size: 14px;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 28px 24px 40px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
footer .links a {
  color: var(--text-2);
  margin: 0 10px;
}

/* ===== FAQ ===== */
.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--text-3);
}
.faq details[open] summary::after { content: "−"; }
.faq details {
  border-top: 1px solid var(--border);
}
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq p {
  margin: 0 0 14px;
  color: var(--text-2);
  font-size: 14px;
}

/* ===== Reduced motion (a11y) ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ===== Small screens ===== */
@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
  .hero img.hero__icon { width: 96px; height: 96px; }
  main { padding: 40px 18px 80px; }
  .nav { padding: 14px 18px; }
  .nav__links a { margin-left: 12px; font-size: 13px; }
}
