:root {
  --ink: #1b2a41;
  --sand: #f5e6c4;
  --lagoon: #2fb7c4;
  --puffer: #f7d44c;
  --water: #0b5f86;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Trebuchet MS", system-ui, sans-serif;
}

html { background: var(--water); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
}
/* the reef stays put while the page scrolls (phones ignore background-attachment: fixed) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 95, 134, .55), rgba(11, 95, 134, .2) 45%, rgba(27, 42, 65, .55)),
    url("assets/backgrounds/reef.webp") center bottom / cover;
}
main {
  max-width: 640px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
h1 { margin: 8px 0 0; line-height: 0; }
h1 img { width: min(560px, 90vw); height: auto; filter: drop-shadow(0 6px 0 rgba(27, 42, 65, .35)); }

.tagline {
  margin: 6px 0 22px;
  font-size: 20px; font-weight: 800; line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 0 var(--ink), 0 0 12px rgba(27, 42, 65, .6);
}

/* the one big bubble */
.launch {
  display: inline-block;
  padding: 18px 34px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background:
    radial-gradient(circle at 18% 26%, #fff 0 7%, transparent 8%),
    radial-gradient(ellipse at 50% 40%, #fffbe6, var(--puffer) 70%, #f0b92a);
  box-shadow: 0 5px 0 var(--ink);
  color: var(--ink); text-decoration: none;
  font-size: 22px; font-weight: 900;
  transition: transform .12s;
}
.launch:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.launch:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.how {
  margin-top: 30px; width: 100%; box-sizing: border-box;
  padding: 18px 18px 8px;
  background: var(--sand);
  border: 2.5px solid var(--ink); border-radius: 22px;
  box-shadow: 0 4px 0 var(--ink);
  text-align: left;
}
.how h2 { margin: 0 0 10px; font-size: 22px; font-weight: 900; }
.how ul { list-style: none; margin: 0; padding: 0; }
.how li {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center;
  padding: 10px 0;
  border-top: 2px dashed rgba(27, 42, 65, .18);
}
.how li:first-child { border-top: none; }
.how li > img, .how li > svg { width: 44px; height: 44px; object-fit: contain; }
.how li > svg { fill: var(--ink); }
.how li > svg .ring { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.how .app-icon { border-radius: 10px; border: 2px solid var(--ink); box-sizing: border-box; }
.how p { margin: 0; font-size: 16px; line-height: 1.45; max-width: 60ch; }

footer {
  margin-top: 20px;
  font-size: 14px; line-height: 1.5;
  color: #fff; text-shadow: 0 1px 0 var(--ink);
  display: flex; flex-direction: column; gap: 4px;
}
footer a { color: #fff; font-weight: 800; }

@media (orientation: landscape) and (max-height: 500px) {
  h1 img { width: min(420px, 60vw); }
  .tagline { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .launch { transition: none; } }
