:root {
  --bg: #f4f7f9;
  --fg: #10212b;
  --muted: #557080;
  --card: #ffffff;
  --brand: #0b3d5c;
  --water: #1f8fbf;
  --line: rgb(16 33 43 / 0.12);
  color-scheme: light dark;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1820;
    --fg: #e6eef2;
    --muted: #8fa8b5;
    --card: #12262f;
    --brand: #e6eef2;
    --water: #5fc4e8;
    --line: rgb(230 238 242 / 0.14);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

a {
  color: var(--water);
}

.top,
main,
footer {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brand);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.brand svg {
  width: 2.2rem;
  height: 2.2rem;
}

.sign-in {
  font-weight: 600;
}

section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.hero {
  padding-top: 2rem;
  border-top: 0;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--water);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  max-width: 22ch;
  margin: 0 0 1rem;
  color: var(--brand);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.1;
}

h2 {
  margin: 0 0 1rem;
  color: var(--brand);
  font-size: 1.6rem;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.lead {
  max-width: 40rem;
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
}

.why p,
.name p,
.signup > p {
  max-width: 42rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button,
button {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  border: 2px solid var(--water);
  border-radius: 0.6rem;
  background: var(--water);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--water);
}

.note,
.fine {
  color: var(--muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.grid article {
  padding: 1.1rem 1.2rem;
  border-radius: 0.8rem;
  background: var(--card);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}

.grid p {
  margin: 0;
  color: var(--muted);
}

form {
  display: grid;
  gap: 0.9rem;
  max-width: 40rem;
  padding: 1.3rem;
  border-radius: 0.8rem;
  background: var(--card);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}

.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.3rem;
}

label span {
  font-weight: 600;
}

label em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.short {
  max-width: 8rem;
}

input,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--water);
  outline-offset: 1px;
}

/* For bots only: off-screen, never focused (tabindex -1), hidden from screen readers. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button {
  justify-self: start;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.narrow {
  max-width: 40rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.narrow h1 {
  font-size: 2rem;
}
