:root {
  --ink: #1c2430;
  --muted: #5c6b7a;
  --paper: #f3f5f8;
  --card: #ffffff;
  --line: #d5dbe3;
  --teal: #0e6b62;
  --navy: #152033;
  --bad-bg: #f8e8e6;
  --bad: #8a2e2e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

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

.site-header { background: var(--navy); color: #f4f6fa; }

.topbar {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: white;
  text-decoration: none;
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img { width: 2rem; height: auto; display: block; }

.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.15rem; align-items: center; }
.nav a { color: #d5deea; text-decoration: none; }
.nav a[aria-current="page"] { color: white; font-weight: 650; }
.nav a.enter {
  color: var(--navy);
  background: white;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}

main { flex: 1 1 auto; width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 2.2rem 1.25rem 3rem; }

.hero { padding-top: 2.6rem; padding-bottom: 1.2rem; }
.wordmark { width: min(100%, 22rem); height: auto; display: block; margin: 0 0 1rem; }

h1, h2, h3 {
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { margin: 0.15rem 0 0.7rem; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.15; }
h2 { margin: 0 0 0.7rem; font-size: 1.45rem; }
h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }

.eyebrow {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
}

.lede { margin: 0; max-width: 40rem; color: var(--muted); font-size: 1.08rem; }
.hint, .muted { color: var(--muted); }
.hint { margin: 0.2rem 0 0; font-size: 0.92rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-top: 1.4rem; }

a.button, button {
  font: inherit;
  background: var(--teal);
  color: white;
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  cursor: pointer;
}

a.button.quiet {
  background: transparent;
  color: var(--teal);
  padding-left: 0;
  padding-right: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.05rem 1.15rem 1.15rem;
}

.card p:last-child { margin-bottom: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.steps p { margin: 0; }
.steps span {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 0.85rem;
  font-weight: 650;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; align-items: start; }

form.card { display: grid; gap: 0.25rem; max-width: 36rem; }
label { font-size: 0.92rem; margin-top: 0.55rem; }

input, textarea {
  font: inherit;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #b7c4be;
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

textarea { min-height: 7rem; resize: vertical; }

.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 0.9rem;
}

.check input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; flex: 0 0 auto; }
.check span { font-size: 0.95rem; }

button { margin-top: 0.9rem; width: fit-content; }

.alert {
  background: var(--bad-bg);
  color: var(--bad);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  margin: 0 0 0.9rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  background: var(--navy);
  color: #e6ebf2;
  text-align: center;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 1.4rem;
}

.site-footer p {
  margin: 0.15rem auto;
  max-width: 46rem;
  color: #e6ebf2;
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1.1rem;
  margin-top: 0.75rem;
}

.site-footer a { color: white; text-decoration: none; }
.site-footer a:hover, .nav a:hover, .brand:hover { text-decoration: underline; }
.nav a.enter:hover { text-decoration: none; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: white; }

@media (max-width: 800px) {
  .grid, .split { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
}
