:root {
  --ink: #0f2b3d;
  --muted: #3f5b6d;
  --sky: #dff0f8;
  --sky-light: #eef8fc;
  --sea: #1b5e80;
  --paper: #ffffff;
  --line: #d3e4ee;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--sea); }
a:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 2px; }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(var(--sky), var(--sky-light));
  padding-top: 28px;
  overflow: hidden;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { font-weight: 400; }

@media (max-width: 420px) {
  .wordmark { font-size: 1.1rem; }
  .top nav a { margin-left: 16px; }
}

.top nav a {
  margin-left: 24px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero-copy {
  padding: clamp(56px, 11vw, 130px) 0 clamp(110px, 17vw, 210px);
}

h1 {
  margin: 0 0 24px;
  max-width: 15ch;
  font-size: clamp(2.6rem, 7.2vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.lede {
  margin: 0;
  max-width: 44ch;
  font-size: 1.25rem;
  color: var(--muted);
}

/* The one moving thing on the page: two slow, seamless waves. */
.waves {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(80px, 13vw, 150px);
  pointer-events: none;
}
.wave {
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-size: 1200px 100%;
  animation: drift 46s linear infinite;
}
.wave.back {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 50C150 15 450 15 600 50S1050 85 1200 50V120H0Z' fill='%23a8d3e8'/%3E%3C/svg%3E");
  animation-duration: 70s;
  animation-direction: reverse;
}
.wave.front {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 78C150 48 450 48 600 78S1050 108 1200 78V120H0Z' fill='%23ffffff'/%3E%3C/svg%3E");
}
@keyframes drift { to { background-position-x: -1200px; } }

@media (prefers-reduced-motion: reduce) {
  .wave { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Content ---------- */
section.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 40px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
section.row:first-of-type { border-top: 0; padding-top: 40px; }

@media (min-width: 780px) {
  section.row { grid-template-columns: 220px 1fr; }
}

h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.row p { margin: 0 0 14px; max-width: 60ch; }
.row p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }

.app-name { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }

.email {
  display: inline-block;
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-word;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  font-size: 0.95rem;
  color: var(--muted);
}
