:root {
  color-scheme: dark;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  color: #f6fbff;
  background: #09375e;
  --ice: #bfeaff;
  --ink: #103554;
  --muted: #e0f0fb;
  --rule: rgb(211 239 255 / 32%);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }

.splash {
  position: relative;
  isolation: isolate;
  min-block-size: 100vh;
  min-block-size: 100svh;
  overflow: clip;
}

.ocean, .ocean-tint, .ocean-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ocean img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 59% center;
}

.ocean-tint {
  background:
    linear-gradient(180deg, rgb(7 48 84 / 15%) 0%, transparent 58%, rgb(5 42 75 / 89%) 100%),
    linear-gradient(90deg, rgb(6 43 76 / 93%) 0%, rgb(7 47 81 / 84%) 28%, rgb(11 60 101 / 39%) 72%, rgb(14 66 114 / 26%) 100%),
    rgb(22 80 132 / 25%);
}

.ocean-light {
  background: radial-gradient(ellipse at 82% 18%, rgb(145 218 255 / 21%), transparent 56%);
  opacity: 0;
  animation: wash 4.5s ease-in-out both;
}

@keyframes wash {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ocean-light { animation: none; }
}

.shell {
  width: min(100%, 90rem);
  min-block-size: inherit;
  margin-inline: auto;
  padding-inline: max(clamp(1.25rem, 5.3vw, 5rem), env(safe-area-inset-left), env(safe-area-inset-right));
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  padding-block: clamp(1.5rem, 4vh, 2.25rem) 1rem;
  border-block-end: 1px solid var(--rule);
}

.logo {
  display: block;
  width: clamp(10.5rem, 18vw, 13rem);
  height: auto;
}

.hero {
  align-self: center;
  padding-block: clamp(2.5rem, 6vh, 5.25rem);
  max-width: 56rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #e3f6ff;
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .19em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 5.3vw, 5.15rem);
  line-height: 1.02;
  letter-spacing: -.046em;
  font-weight: 700;
  text-wrap: balance;
}

.headline-accent { display: block; color: var(--ice); }
.headline-phrase { white-space: nowrap; }

.intro {
  max-width: 29rem;
  margin: 1.35rem 0 1.55rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.signup { max-width: 30rem; }
.signup label { display: block; margin-bottom: .4rem; font-size: .9375rem; font-weight: 700; }
.signup-controls { display: flex; gap: .625rem; }

input, button, textarea { font: inherit; }

input, textarea {
  background: #e2f0fb;
  color: var(--ink);
  border: 1px solid rgb(255 255 255 / 64%);
  border-radius: .75rem;
  padding: .7rem .85rem;
  inline-size: 100%;
  min-inline-size: 0;
}

input { min-block-size: 3rem; }
input::placeholder { color: #3e617e; opacity: 1; }

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3rem;
  padding: .65rem 1.3rem;
  border: 1px solid #effaff;
  border-radius: .75rem;
  background: #effaff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.primary:hover { background: #c9edff; border-color: #c9edff; }

#signup-hint, .feedback {
  margin: .65rem 0 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.45;
}

.feedback:empty { display: none; }

.text-action, .site-footer a {
  color: #f0faff;
  text-decoration: underline;
  text-underline-offset: .22em;
  text-decoration-thickness: .06em;
}

.text-action {
  padding: .3rem 0;
  min-block-size: 2rem;
  background: transparent;
  border: 0;
  font-size: .9375rem;
  font-weight: 650;
  text-align: start;
  cursor: pointer;
}

.text-action:hover, .site-footer a:hover { color: var(--ice); }
.manual-copy { margin-block-start: .65rem; }
.manual-copy textarea { resize: vertical; }

:where(input, button, textarea, a):focus-visible {
  outline: 2px solid #ffd36f;
  outline-offset: 4px;
}

.no-script { margin-block: 1rem 0; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .35rem 1.25rem;
  padding-block: .75rem max(.75rem, env(safe-area-inset-bottom));
  border-block-start: 1px solid var(--rule);
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
}

.site-footer small { font-size: inherit; }
.site-footer a { display: inline-flex; gap: .3em; align-items: center; min-block-size: 2rem; }

@media (max-width: 42rem) {
  .ocean img { object-position: 69% center; }
  .ocean-tint {
    background:
      linear-gradient(180deg, rgb(7 47 80 / 20%), rgb(7 47 80 / 24%) 60%, rgb(4 38 68 / 81%)),
      linear-gradient(90deg, rgb(6 44 77 / 91%), rgb(9 53 90 / 64%) 63%, rgb(12 58 97 / 48%)),
      rgb(24 83 137 / 15%);
  }
  .hero { padding-block: 2.4rem 2.5rem; }
  .eyebrow { margin-bottom: .85rem; }
  h1 { font-size: clamp(2.3rem, 11vw, 3.6rem); text-wrap: initial; }
  .headline-accent { display: inline; }
  .intro { margin-block: 1rem 1.3rem; }
  .signup-controls { flex-direction: column; }
  .text-action { min-block-size: 2.75rem; }
  .site-footer { align-items: start; flex-direction: column; }
}

@media (max-width: 23rem) {
  h1 { font-size: clamp(1.8rem, 10.4vw, 2.35rem); }
}
