:root {
  --ocean: #087fa9;
  --navy: #092b42;
  --aqua: #5dd8f1;
  --mist: #f5fafc;
  --ink: #102b3b;
  --orange: #ffb76b;
  --bg: #f5fafc;
  --surface: #ffffff;
  --surface-2: #e4f6fb;
  --text: #102b3b;
  --muted: #4e6676;
  --accent: #087fa9;
  --border: #d6e6ee;
  --radius: 22px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06141f;
    --surface: #0e2232;
    --surface-2: #13394f;
    --text: #eaf6fb;
    --muted: #9db8c7;
    --accent: #45c8e8;
    --border: #1f3b4f;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 28, 46, 0.55) 0%, rgba(8, 127, 169, 0.35) 55%, var(--bg) 100%),
    url("assets/pool.jpg") center 30% / cover no-repeat;
  color: #fff;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 24px;
  padding-top: 72px; padding-bottom: 96px;
}
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
}
.hero h1 {
  margin: 16px 0 12px; font-size: clamp(40px, 7vw, 68px); line-height: 1.02; letter-spacing: -0.02em; font-weight: 800;
}
.hero p.lead { font-size: clamp(18px, 2.4vw, 21px); max-width: 520px; color: rgba(255, 255, 255, 0.92); margin: 0 0 28px; }
.hero .mascot { justify-self: center; width: min(360px, 80%); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35)); animation: float 4s ease-in-out infinite; }

@keyframes float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero .mascot { animation: none; } html { scroll-behavior: auto; } }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 14px; background: #000; color: #fff; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.store-badge:hover { text-decoration: none; opacity: 0.92; }
.store-badge small { display: block; font-size: 11px; font-weight: 600; opacity: 0.8; line-height: 1.1; }
.store-badge span { font-size: 19px; line-height: 1.1; }
.store-badge svg { width: 26px; height: 26px; }
.hero .note { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, 0.8); }

/* Sections */
section { padding: 80px 0; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-title h2 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-title p { color: var(--muted); margin: 0; font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.card .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent); font-size: 22px; margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 22px; left: 26px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 15px;
}

.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.split img { width: min(320px, 90%); margin: 0 auto; }
.split h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.12; margin: 0 0 14px; }
.split ul { padding: 0; margin: 18px 0 0; list-style: none; }
.split li { padding-left: 32px; position: relative; margin: 10px 0; color: var(--muted); }
.split li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.band { background: var(--surface-2); }

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.cta {
  text-align: center; border-radius: 32px; padding: 56px 24px; color: #fff;
  background: linear-gradient(135deg, #041c2e, var(--ocean));
  position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; }
.cta p { margin: 0 0 24px; color: rgba(255, 255, 255, 0.85); }
.cta img { width: 140px; margin: 0 auto 10px; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal .callout {
  background: var(--surface-2); border-radius: 16px; padding: 16px 20px; margin: 20px 0;
}
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; text-align: center; }
  .split li { text-align: left; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 48px; padding-bottom: 64px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .mascot { width: 200px; order: -1; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
