/* Pool Predictor Pro — marketing site
   Brand tokens match the app and the Play store assets:
   #0d2b35 deep teal, #facc15 yellow, #f4fafb off-white, #2dd4bf aqua.
   Hand-authored static HTML: no build step, so it deploys with
   hosting_deployStaticWebsite as-is. */

:root {
  --dark: #0d2b35;
  --dark-2: #123f4f;
  --offwhite: #f4fafb;
  --yellow: #facc15;
  --aqua: #2dd4bf;
  --aqua-soft: rgba(45, 212, 191, 0.12);
  --text: #0d2b35;
  --muted: #55707a;
  --line: rgba(13, 43, 53, 0.12);
  --maxw: 1120px;
  --radius: 16px;
  --font-head: Gabarito, "Segoe UI", system-ui, sans-serif;
  --font-body: "Work Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: #0e7f8c; }
a:hover { color: var(--dark); }

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

/* ---------- header ---------- */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--offwhite);
  text-decoration: none;
  white-space: nowrap;
}
/* The global `img` rule rounds every image; the logo is already a shaped
   droplet on transparency, so a radius would clip its corners. */
.brand img { width: 34px; height: 34px; border-radius: 0; flex: none; }
.brand span { color: var(--yellow); }
/* Without this the global `a:hover` applies, and it resolves to --dark — the same
   colour as the header background — so "Pool Predictor" vanished on hover while the
   yellow "Pro" span survived. Any link placed on a dark ground needs its own hover. */
.brand:hover { color: #ffffff; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a {
  color: rgba(244, 250, 251, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--yellow); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--offwhite);
  padding: clamp(56px, 9vw, 104px) 0;
}
.hero h1 { color: var(--offwhite); max-width: 17ch; }
.hero p.lede { font-size: clamp(1.02rem, 2vw, 1.2rem); color: rgba(244, 250, 251, 0.86); max-width: 62ch; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}
.rule { width: 68px; height: 6px; border-radius: 3px; background: var(--yellow); margin-bottom: 18px; }

/* ---------- sections ---------- */
section { padding: clamp(44px, 7vw, 82px) 0; }
section.alt { background: var(--offwhite); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head .eyebrow { color: #0e7f8c; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--aqua-soft); color: #0e7f8c;
  font-family: var(--font-head); font-weight: 700; margin-bottom: 12px;
}

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.5em; }
.updated { color: var(--muted); font-size: 0.88rem; margin-top: 3rem; }

/* ---------- callouts ---------- */
.callout {
  border: 1px solid #f59e0b;
  border-left: 4px solid #d97706;
  background: #fffbeb;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
}
.callout h3 { color: #92400e; margin-bottom: 6px; }
.callout p { color: #78350f; margin-bottom: 0; }

.note {
  background: var(--aqua-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- faq ---------- */
.faq-group { margin-bottom: 2.4em; }
.faq-group > h2 { margin-bottom: 0.6em; }
details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: #0e7f8c; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { margin: 12px 0 2px; color: #2c4a54; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 12px;
}
.btn:hover { background: #eab308; color: var(--dark); }
.btn-ghost {
  background: transparent;
  color: var(--offwhite);
  border: 1px solid rgba(244, 250, 251, 0.35);
}
.btn-ghost:hover { background: rgba(244, 250, 251, 0.1); color: var(--offwhite); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(244, 250, 251, 0.75);
  padding: 52px 0 36px;
  font-size: 0.93rem;
}
.site-footer a { color: rgba(244, 250, 251, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer h3 { color: var(--offwhite); font-size: 1.05rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-col p { margin-bottom: 0.4rem; }
.footer-col .label {
  color: var(--yellow); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px;
}
.footer-bottom {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid rgba(244, 250, 251, 0.14);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(244, 250, 251, 0.55);
}

img { max-width: 100%; height: auto; border-radius: 12px; }

@media (max-width: 640px) {
  .site-header .wrap { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .nav { gap: 16px; }
}
