/* PoolHelp — liquid glass over water.
   Tokens first; both themes restyle through them only. */

:root {
  --ink: #0b2230;
  --ink-2: #3d5866;
  --ink-3: #6b8492;
  --ground: #f2fafc;
  --ground-2: #e6f4f8;
  --aqua: #0dafc9;
  --aqua-deep: #0890a6;
  --mint: #22c08f;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-stroke: rgba(255, 255, 255, 0.85);
  --card: rgba(255, 255, 255, 0.72);
  --shadow: 0 10px 30px rgba(11, 34, 48, 0.10);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eaf6fa;
    --ink-2: #b9d2dc;
    --ink-3: #86a4b1;
    --ground: #081820;
    --ground-2: #0c2230;
    --aqua: #26c6de;
    --aqua-deep: #58d4e6;
    --mint: #2fd39f;
    --glass: rgba(24, 48, 62, 0.55);
    --glass-stroke: rgba(150, 205, 225, 0.22);
    --card: rgba(19, 42, 55, 0.72);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Slow pools of colour behind the glass — same trick as the app's backdrop. */
.water {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px 560px at 12% -6%, color-mix(in srgb, var(--aqua) 26%, transparent), transparent 70%),
    radial-gradient(480px 480px at 88% 22%, color-mix(in srgb, var(--mint) 18%, transparent), transparent 70%),
    radial-gradient(640px 640px at -8% 78%, color-mix(in srgb, var(--aqua) 16%, transparent), transparent 70%),
    var(--ground);
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
header.site {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: var(--glass);
  border-bottom: 1px solid var(--glass-stroke);
}
header.site .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
nav.top { margin-left: auto; display: flex; gap: 22px; }
nav.top a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 600; }
nav.top a:hover, nav.top a:focus-visible { color: var(--aqua-deep); }
@media (max-width: 640px) { nav.top a.hide-sm { display: none; } }

/* ── Hero ── */
.hero { padding: 72px 0 30px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 48px; } }
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 800;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--aqua-deep); }
.hero .lede { margin-top: 18px; font-size: 1.16rem; color: var(--ink-2); max-width: 34rem; }
.cta-row { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--ground);
  padding: 12px 22px; border-radius: 14px; text-decoration: none;
  font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) { .store-badge { background: #eaf6fa; color: #081820; } }
.store-badge svg { width: 20px; height: 20px; }
.soon { font-size: 0.85rem; color: var(--ink-3); font-weight: 600; }
.phone { justify-self: center; position: relative; padding: 26px 10px; }
/* soft water glow behind the device */
.phone::before {
  content: ""; position: absolute; inset: -8% -14%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--aqua) 34%, transparent), transparent 72%);
  filter: blur(6px); z-index: -1;
}
.phone img {
  width: min(292px, 68vw); height: auto; border-radius: 38px; display: block;
  border: 1px solid var(--glass-stroke);
  box-shadow:
    0 30px 70px rgba(11, 34, 48, 0.28),
    0 4px 14px rgba(11, 34, 48, 0.12);
  transform: rotate(2deg);
  animation: bob 7s ease-in-out infinite alternate;
}
@keyframes bob { from { transform: rotate(2deg) translateY(0); } to { transform: rotate(2deg) translateY(-10px); } }

/* ── Sections ── */
section { padding: 56px 0; }
.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 800; color: var(--aqua-deep); }
h2.sec { font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -0.02em; font-weight: 800; margin-top: 6px; text-wrap: balance; }
.sec-sub { color: var(--ink-2); margin-top: 10px; max-width: 40rem; }

.grid { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.tile {
  background: var(--card);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.tile h3 { font-size: 1.06rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.tile p { font-size: 0.95rem; color: var(--ink-2); }
.tile .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: color-mix(in srgb, var(--aqua) 14%, transparent); color: var(--aqua-deep); font-size: 20px; }

/* screenshots band */
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 30px 4px 14px; scroll-snap-type: x mandatory; }
.shots img {
  width: 226px; height: auto; border-radius: 26px; scroll-snap-align: center; flex: none;
  border: 1px solid var(--glass-stroke); box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.shots img:hover { transform: translateY(-6px); }

/* pricing */
.plans { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--glass-stroke); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.plan.ai { border: 2px solid var(--aqua); position: relative; }
.plan .name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.plan .price { margin: 10px 0 2px; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--aqua-deep); }
.plan .price small { font-size: 0.95rem; color: var(--ink-3); font-weight: 600; }
.plan ul { list-style: none; margin-top: 16px; display: grid; gap: 9px; }
.plan li { padding-left: 26px; position: relative; font-size: 0.97rem; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 800; }
.badge-best { position: absolute; top: -12px; right: 20px; background: var(--aqua); color: #fff; font-size: 0.75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.fineprint { margin-top: 16px; font-size: 0.8rem; color: var(--ink-3); }
.fineprint a { color: inherit; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--glass-stroke); border-radius: 16px; padding: 16px 20px; margin-top: 12px; }
details summary { cursor: pointer; font-weight: 700; font-size: 1rem; }
details p { margin-top: 10px; color: var(--ink-2); font-size: 0.96rem; }
details a { color: var(--aqua-deep); }

/* ── Article pages (legal, support) ── */
article.doc { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
article.doc h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.15; }
article.doc h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 2.2em 0 0.6em; }
article.doc h3 { font-size: 1.08rem; margin: 1.8em 0 0.5em; }
article.doc p { margin: 0.8em 0; color: var(--ink-2); }
article.doc li { margin: 0.45em 0 0.45em 1.4em; color: var(--ink-2); }
article.doc strong { color: var(--ink); }
article.doc a { color: var(--aqua-deep); }
article.doc .updated { color: var(--ink-3); font-size: 0.9rem; margin-top: 8px; }

/* footer */
footer.site { border-top: 1px solid var(--glass-stroke); padding: 36px 0 60px; margin-top: 40px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; color: var(--ink-3); font-size: 0.9rem; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
footer.site a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
footer.site a:hover { color: var(--aqua-deep); }

:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; border-radius: 4px; }
