/* ── Logo ─────────────────────────────────────────────── */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--ink);
}

.logo__arc {
  stroke: currentColor;
}

.logo__line {
  stroke: var(--logo-line);
}

.logo__word {
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1;
}

/* ── Panels ───────────────────────────────────────────── */

/* The card everything else is built from. */
.form,
.founder,
.fact-card,
.plan,
.case,
.person,
.quote-card,
.guide-card,
.report-tile,
.report-card,
.stage,
.service-card,
.commitment,
.value,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.service-card,
.guide-card,
.report-tile {
  transition: border-color 0.15s;
}

.service-card:hover,
.guide-card:hover,
.report-tile:hover {
  border-color: var(--signal-text);
  color: inherit;
}

/* ── Header and navigation ────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 1.9rem);
}

.nav__link {
  position: relative;
  padding-block: 0.4rem;
  color: var(--text);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--ink);
}

/* The current page sits on the logo's line. */
.nav__link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  border-radius: 2px;
  background: var(--logo-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--rule);
  color: var(--ink);
}

/* The label is read by screen readers everywhere and shown in the small-screen menu. */
.theme-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  padding: 0.5rem;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem var(--gutter) 1.5rem;
    background: var(--navy-solid);
    border-bottom: 1px solid var(--rule);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .nav__link::after {
    display: none;
  }

  .theme-toggle {
    padding: 0.9rem 0;
    font-size: 1.05rem;
  }

  .theme-toggle:hover {
    border-color: transparent;
  }

  .theme-toggle__label {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
  }

  .nav__cta {
    margin-top: 0.5rem;
  }
}

/* ── Buttons and links ────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.2s, transform 0.15s;
}

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

/* Green is the one thing to press. */
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn--blue {
  background: var(--signal);
  color: var(--on-signal);
}

.btn--blue:hover {
  background: var(--signal-hover);
  color: var(--on-signal);
}

.btn--ghost {
  border-color: var(--rule);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--signal-text);
  background: var(--signal-soft);
  color: var(--ink);
}

.btn--sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--signal-text);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover {
  color: var(--ink);
}

.link-arrow:hover .icon,
.btn:hover .icon {
  transform: translateX(3px);
}

/* ── Avatar ───────────────────────────────────────────── */

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--signal-soft);
  color: var(--signal-text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  object-fit: cover;
}

/* ── Type helpers ─────────────────────────────────────── */

/* Used on its own and inside a page's main heading, so it sets its own type rather than inheriting it. */
.eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: var(--signal-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.6;
}

.eyebrow a {
  color: var(--ink);
  text-decoration: none;
}

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

.lead {
  max-width: 40rem;
  color: var(--text);
  font-size: clamp(1.125rem, 1.7vw, 1.3rem);
  line-height: 1.5;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--signal-soft);
  color: var(--signal-text);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

a.tag:hover {
  background: var(--signal);
  color: var(--on-signal);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.checklist {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}

.checklist .icon {
  margin-top: 0.25em;
  color: var(--positive);
}

.checklist strong {
  color: var(--ink);
}

.checklist--lg {
  gap: 0;
  font-size: 1.0625rem;
}

.checklist--lg li {
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}

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

/* Under a prose heading the heading's rule already opens the list. */
.prose h2 + .checklist--lg li:first-child {
  border-top: 0;
}

/* ── Prose ────────────────────────────────────────────── */

.prose {
  max-width: 44rem;
}

.prose > * + * {
  margin-top: 1.15rem;
}

.prose h2 {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.prose h2 + * {
  margin-top: 1rem;
}

.prose ul:not(.checklist),
.prose ol {
  padding-left: 1.2rem;
}

.prose ul:not(.checklist) li + li,
.prose ol li + li {
  margin-top: 0.45rem;
}

.prose ul:not(.checklist) li::marker,
.prose ol li::marker {
  color: var(--signal-text);
  font-weight: 650;
}

.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.prose code {
  padding: 0.1em 0.4em;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface);
  color: var(--signal-text);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.prose a:not(.btn, .link-arrow) {
  color: var(--signal-text);
}

.prose__meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.signature {
  color: var(--ink);
  font-weight: 650;
}

/* ── Flash ────────────────────────────────────────────── */

.flash {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--positive);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
}

.flash--alert {
  border-left-color: var(--danger);
}

/* ── Forms ────────────────────────────────────────────── */

.form {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.field__optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sunken);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

/* A drawn chevron, so the select matches the other fields in every browser. */
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right 1.15rem center, right 0.8rem center;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--glow);
}

.field ::placeholder {
  color: var(--muted);
}

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

.field_with_errors {
  display: contents;
}

.field_with_errors input,
.field_with_errors select,
.field_with_errors textarea {
  border-color: var(--danger);
}

.form__errors {
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--danger);
  border-radius: var(--radius);
  background: var(--danger-soft);
  color: var(--ink);
  font-size: 0.95rem;
}

.form__errors ul {
  margin-top: 0.4rem;
  padding-left: 1.2rem;
}

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn {
  justify-self: start;
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  background: var(--navy);
  font-size: 0.925rem;
}

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

.site-footer__brand p {
  max-width: 22rem;
  margin-top: 1.25rem;
}

.site-footer__brand .site-footer__place {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__title {
  margin-bottom: 0.9rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer__links {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  color: var(--text);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--ink);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.site-footer__bottom nav {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}
