/* Landing page only: a full-window ocean scene with the page content laid
   over the sky. The privacy, support and 404 pages use site.css. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #8ec9ec;
  color: #13324a;
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.scene {
  position: fixed;
  inset: 0;
  background: linear-gradient(#8ec9ec 0%, #bfe4f5 60%, #d9f0fa 100%);
  overflow: hidden;
}

/* ---- Art ---------------------------------------------------------------- */

.sun {
  position: absolute;
  top: 12%;
  left: 9%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #FFD93D;
  box-shadow: 0 0 0 10px rgb(255 217 61 / 0.35),
              0 0 0 22px rgb(255 217 61 / 0.15);
}

/* Wave layers are 3 window widths wide (one tile of buffer on each side) and
   slid sideways by ocean.js. */
.layer {
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
  width: 300%;
  will-change: transform;
}

.layer svg { display: block; height: 100%; width: 100%; }

#wave-back { z-index: 2; }
#wave-front { z-index: 4; }

/* Sized and positioned every frame by ocean.js so it rides the back wave and
   tucks behind the front one; these values are only a fallback. */
.boat-wrap {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 320px;
  height: 300px;
  transform-origin: 160px 286px;
  will-change: transform;
}

.boat-wrap svg { display: block; width: 100%; height: 100%; }

/* ---- Content ------------------------------------------------------------ */

a { color: inherit; }

.top {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  text-decoration: none;
}

.brand img { width: 30px; height: 30px; border-radius: 8px; }

.top nav { display: flex; gap: 8px; }

.top nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.45);
}

.top nav a:hover { background: rgb(255 255 255 / 0.75); }

.hero {
  position: absolute;
  z-index: 5;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: min(40rem, 100% - 32px);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #0f2b40;
}

.tagline {
  margin: 12px auto 0;
  max-width: 32rem;
  font-size: 1.1rem;
  color: #24506b;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.badge {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: #0f2b40;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.foot {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgb(255 255 255 / 0.85);
  font-size: 13px;
  pointer-events: none;
}

.hint {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgb(255 255 255 / 0.18);
  padding: 6px 14px;
  border-radius: 999px;
}

.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }

a:focus-visible { outline: 3px solid #0f2b40; outline-offset: 3px; }

@media (max-width: 560px) {
  /* Out from behind the title, into the open sky below the badges. */
  .sun { width: 64px; height: 64px; top: 44%; left: auto; right: 12%; }
  .brand span { display: none; }
  .hero { top: 64px; }
  .tagline { font-size: 1rem; }
  .badge { font-size: 14px; padding: 8px 14px; }
}

/* Short, wide windows (phones in landscape): tighten everything up. */
@media (max-height: 500px) {
  .hero { top: 52px; }
  .hero h1 { font-size: 2rem; }
  .tagline { display: none; }
  .badges { margin-top: 10px; }
  .hint { display: none; }
}
