:root {
  --ink: #0e3e66;
  --sage: #e8f1fa;
  --paper: #f5f8fc;
  --copper: #f3932c;
  --line: #d5deea;
  --muted: #4d6278;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background: #fff;
}

.site-head,
main,
.site-foot {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

.site-head {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.logo img,
.app-logo img {
  display: block;
  height: 42px;
  width: auto;
}

.lockup {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  margin: 0 0 18px;
}

.site-head nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.site-head a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.nav-enter {
  background: var(--ink);
  color: #fff !important;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px !important;
}

.hero {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  min-height: min(78vh, 760px);
  padding: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 24, 42, 0.88) 0%, rgba(8, 24, 42, 0.35) 46%, rgba(8, 24, 42, 0.12) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1080px) / 2));
  padding: 140px 0 52px;
}

.hero .lede { color: rgba(255, 255, 255, 0.9); }

.hero .cta.ghost {
  color: #fff;
  border-color: #fff;
}

.eyebrow,
.kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--copper);
  margin: 0 0 14px;
}

.kicker::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 12px;
  background: var(--copper);
}

h1 {
  font-family: "Fraunces", serif;
  font-weight: 680;
  font-size: clamp(44px, 6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

h2 {
  font-family: "Fraunces", serif;
  font-weight: 560;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.lede,
.section-lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.cta {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--ink);
}

.cta.ghost {
  background: transparent;
  color: var(--ink);
}

.cta:focus-visible,
.site-head a:focus-visible,
.dash-link:focus-visible,
.tos button:focus-visible,
.tos input:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 28px 0 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.figures strong {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 680;
  font-size: clamp(40px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.figures span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
  padding: 28px 0 8px;
}

.gallery figure,
.band {
  margin: 0;
}

.gallery img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.gallery figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.band {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.band img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.band-second img { object-position: center 60%; }

.band figcaption {
  position: absolute;
  left: max(24px, calc((100vw - 1080px) / 2));
  bottom: 18px;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.credits {
  display: block;
  margin-top: 6px;
  max-width: 62ch;
}

.split,
.measure {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.split p,
.measure p,
.govern p,
.embed-copy p {
  color: var(--muted);
  line-height: 1.5;
}

.rules,
.territory ul,
.route ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rules li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.rules li:last-child { border-bottom: 1px solid var(--line); }

.rules h3,
.route h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.rules p,
.route p { margin: 0; }

.territory,
.route { padding: 72px 0; }

.territory ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 28px;
  margin-top: 28px;
}

.territory li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.4;
}

.territory strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.route ol { margin-top: 28px; }

.route li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.route li:last-child { border-bottom: 1px solid var(--line); }

.route li > span {
  font-family: "Fraunces", serif;
  font-size: 20px;
  color: var(--copper);
}

.range {
  color: var(--ink) !important;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px !important;
}

.formula {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-weight: 600;
}

.govern {
  padding: 36px 0 8px;
}

.govern p { max-width: 68ch; }

.embed { padding: 48px 0 64px; }

.embed-copy { max-width: 46ch; margin-bottom: 18px; }

.embed-copy h2, .member h2, .empty-space h2 {
  font-family: "Fraunces", serif;
  font-weight: 560;
  margin: 0 0 8px;
}

.member p, .empty-space p {
  color: var(--muted);
  line-height: 1.45;
}

.embed iframe {
  width: 100%;
  height: 680px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.site-foot, .app-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.app-body {
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 20px 8px;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--ink);
}

.app-bar span, .app-foot {
  color: var(--muted);
  font-size: 13px;
}

.steps {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 4px 16px 8px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.steps li span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 12px;
}

.steps li.current {
  color: var(--ink);
}

.steps li.current span,
.steps li.done span {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.app-foot {
  margin-top: auto;
  padding: 12px 20px 16px;
}

.members {
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--sage);
  border-radius: 16px;
  padding: 14px 16px;
}

.member h2 { font-size: 22px; }
.member p { margin: 0; font-size: 14px; }

.member-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.pill.on { background: var(--ink); color: #fff; }

.loading { color: var(--muted); }

.tos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--paper);
}

.tos h2 {
  font-family: "Fraunces", serif;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
}

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

.tos label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}

.tos input[type="text"], .tos input[type="email"], .tos input:not([type="checkbox"]) {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.tos .check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.tos button {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
}

.tos button:disabled {
  opacity: 0.7;
  cursor: default;
}

.dash-link {
  align-self: flex-start;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
}

.empty-space {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 16px;
}

.tos-error { color: #9a3412; }

.occupied-note {
  margin: 0;
  font-weight: 600;
}

@media (max-width: 800px) {
  .site-head, main, .site-foot { width: min(100% - 32px, 1080px); }
  .site-head { flex-wrap: wrap; gap: 12px; }
  .site-head nav { order: 3; width: 100%; margin-left: 0; gap: 14px; flex-wrap: wrap; }
  .figures, .split, .measure, .territory ul, .gallery { grid-template-columns: 1fr; }
  .gallery img, .band img { height: 220px; }
  .hero { min-height: 560px; }
  .hero-copy { margin-left: 0; padding-top: 96px; }
  .split, .measure, .territory, .route { padding: 40px 0; }
  .member { flex-direction: column; align-items: flex-start; }
}
