:root {
  --bg: #0E1116;
  --bg-elevated: #151A21;
  --primary: #3D4F5F;
  --accent: #007A96;
  --text: #F7F8FA;
  --text-muted: #A8B0BA;
  --border: rgba(247, 248, 250, 0.08);
  --radius: 14px;
  --font: "Barlow", "Inter", system-ui, -apple-system, sans-serif;
  --content: min(760px, calc(100% - 2.5rem));
  --section-gap: 3.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: -15% 15% auto -5%;
  height: 50vh;
  background: radial-gradient(ellipse at center, rgba(0, 122, 150, 0.16), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.page::after {
  content: "";
  position: absolute;
  inset: auto -10% 10% 35%;
  height: 45vh;
  background: radial-gradient(ellipse at center, rgba(61, 79, 95, 0.28), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.9rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 1rem;
}

.inner {
  position: relative;
  z-index: 1;
  width: var(--content);
  margin: 0 auto;
}

/* —— Header —— */
.site-header {
  position: relative;
  z-index: 2;
  padding: 1.5rem 0 0;
}

.brand-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand img {
  width: 56px;
  height: 56px;
  display: block;
  flex-shrink: 0;
}

.wordmark {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.wordmark .spare {
  color: var(--primary);
}

.wordmark .crew {
  color: var(--accent);
}

.tagline {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  padding-top: 0.35rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
}

.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* —— Main —— */
main.inner {
  padding: 2.5rem 0 3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

/* —— Hero —— */
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 4.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--text);
  max-width: 22ch;
}

.hero .lede {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 48ch;
}

.hero .lede strong {
  color: var(--text);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid transparent;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(247, 248, 250, 0.18);
}

/* —— Sections —— */
.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.section > p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 52ch;
}

.section > p strong,
.section > p em {
  color: var(--text);
}

.section-intro {
  margin-bottom: 1.35rem !important;
}

.sub-heading {
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem) !important;
}

/* —— Pain cards —— */
.pain-grid {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.pain-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.pain-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.pain-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

@media (min-width: 640px) {
  .pain-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* —— Pull quotes —— */
.pull-quote {
  margin: 1.5rem 0 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--primary);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  max-width: 36ch;
}

.pull-quote--accent {
  border-left-color: var(--accent);
  margin-top: 1.25rem;
}

/* —— Chips —— */
.chips {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chips li {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(21, 26, 33, 0.7);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

/* —— Steps —— */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}

.steps li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.85rem;
  padding: 0 0 1.35rem;
  position: relative;
}

  padding-bottom: 0;
}

.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.25rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 122, 150, 0.45);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.steps h3 {
  margin: 0.2rem 0 0.3rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 44ch;
}

.steps p strong {
  color: var(--text);
  font-weight: 600;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
  }

  .steps li {
    padding: 1rem 1.1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    align-items: flex-start;
  }

  .steps li:not(:last-child)::before {
    display: none;
  }

}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.small-print {
  margin: 1.35rem 0 0 !important;
  font-size: 0.82rem !important;
  color: #6b7580 !important;
  max-width: 52ch;
}

/* —— Audience —— */
.audience-list,
.not-for-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.audience-list li {
  padding: 0.95rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.98rem;
}

.audience-list strong {
  color: var(--text);
  font-weight: 600;
}

.audience-list em {
  font-style: italic;
  color: #6b7580;
  font-size: 0.9em;
}

.not-for-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.not-for-list li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
}

/* —— Status —— */
.status {
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.status h2 {
  margin-bottom: 0.65rem;
}

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

/* —— Waitlist card —— */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.card .lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 48ch;
}

.card .lede strong {
  color: var(--text);
  font-weight: 600;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

input,
select {
  appearance: none;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

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

input::placeholder {
  color: #6b7580;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 560px) {
  .row {
    grid-template-columns: 1fr;
  }

  .nav {
    width: 100%;
  }
}

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

button[type="submit"] {
  appearance: none;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  transition: filter 0.15s ease, transform 0.15s ease;
}

button[type="submit"]:hover {
  filter: brightness(1.08);
}

button[type="submit"]:active {
  transform: translateY(1px);
}

button[type="submit"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.alt {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.alt a {
  color: var(--accent);
  text-decoration: none;
}

.alt a:hover {
  text-decoration: underline;
}

.alt a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.quiet {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.note {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7580;
}

.form-status {
  display: none;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(0, 122, 150, 0.15);
  border: 1px solid rgba(0, 122, 150, 0.35);
  color: var(--text);
  font-size: 0.9rem;
}

.form-status.is-visible {
  display: block;
}

/* —— Footer —— */
.footer {
  position: relative;
  z-index: 1;
  padding: 0 0 2rem;
  font-size: 0.8rem;
  color: #6b7580;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
}

.footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
