:root {
  color-scheme: light;
  --ink: #132621;
  --muted: #5e6e69;
  --forest: #123f35;
  --green: #2f6f5e;
  --mint: #e5efeb;
  --linen: #f3f1e9;
  --paper: #fdfcf8;
  --brass: #c59a4a;
  --line: rgba(16, 32, 28, 0.14);
  --shadow: 0 24px 70px rgba(13, 58, 46, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #fff;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(16, 32, 28, 0.08);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span {
  font-size: 16px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: block;
}

/* Both images share a grid cell; colour changes never shift the wordmark. */
.brand-symbol {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
}

.brand-symbol .brand-mark {
  grid-area: 1 / 1;
}

.site-header .brand-mark-dark {
  visibility: hidden;
}

.site-header.is-scrolled .brand-mark-dark,
.site-header.menu-open .brand-mark-dark {
  visibility: visible;
}

.site-header.is-scrolled .brand-mark-light,
.site-header.menu-open .brand-mark-light {
  visibility: hidden;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: #fff;
}

.site-header.is-scrolled .nav-links,
.site-header.menu-open .nav-links {
  color: rgba(16, 32, 28, 0.72);
}

.site-header.is-scrolled .nav-links a:hover,
.site-header.menu-open .nav-links a:hover {
  color: var(--green);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.site-header.is-scrolled .menu-toggle,
.site-header.menu-open .menu-toggle {
  border-color: var(--line);
  background: var(--paper);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(197, 154, 74, 0.55);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 112px clamp(20px, 6vw, 84px) 64px;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 25, 21, 0.9) 0%, rgba(10, 25, 21, 0.72) 36%, rgba(10, 25, 21, 0.2) 72%),
    linear-gradient(0deg, rgba(10, 25, 21, 0.44), rgba(10, 25, 21, 0.08));
}

.hero-content {
  width: min(720px, 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brass);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.signup-section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(48px, 8vw, 92px);
}

.hero-copy {
  max-width: 640px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  background: var(--brass);
  color: #fff;
  box-shadow: 0 12px 30px rgba(197, 154, 74, 0.26);
}

.button-primary:hover {
  background: #a87d30;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.button:disabled:hover {
  background: var(--brass);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-band div {
  padding: 30px clamp(20px, 5vw, 64px);
  background: var(--forest);
  color: #fff;
}

.proof-band strong {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.proof-band span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.section,
.signup-section {
  padding: clamp(72px, 10vw, 126px) clamp(20px, 6vw, 84px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) 1fr;
  gap: 34px;
  align-items: start;
  margin-bottom: 42px;
}

.section h2,
.signup-section h2 {
  max-width: 880px;
  font-size: clamp(34px, 5vw, 62px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 32, 28, 0.05);
}

.feature-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.feature-card h3,
.timeline h3 {
  margin: 22px 0 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.feature-card p,
.workflow-copy p,
.timeline p,
.signup-copy p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.workflow {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(36px, 7vw, 96px);
  background: var(--linen);
}

.workflow-copy {
  position: sticky;
  top: 110px;
  align-self: start;
}

.workflow-copy p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 22px;
  font-size: 18px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(16, 32, 28, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.timeline span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  font-weight: 900;
}

.timeline h3 {
  margin-top: 0;
}

.signup-section {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
  background: var(--forest);
  color: #fff;
}

.signup-copy p:not(.eyebrow) {
  max-width: 600px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.signup-form {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.signup-form label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 800;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.signup-form input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: inherit;
  padding: 0 16px;
}

.signup-form input:focus {
  border-color: var(--brass);
  outline: 3px solid rgba(197, 154, 74, 0.28);
}

.form-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.form-note.success {
  color: #b9f2cf;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
}

.site-footer .brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.site-footer p a,
.legal-page main a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(47, 111, 94, 0.35);
  text-underline-offset: 3px;
}

.site-footer p a:hover,
.legal-page main a:hover {
  color: var(--forest);
  text-decoration-color: currentColor;
}

.legal-page main {
  padding-top: 76px;
}

.legal-page .section-heading h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
}

.legal-page .workflow-copy {
  position: static;
  max-width: 760px;
}

.legal-page .workflow-copy h2 {
  margin: 36px 0 0;
  font-size: 22px;
}

.legal-page .workflow-copy h2:first-child {
  margin-top: 0;
}

.legal-page .workflow-copy p {
  margin-top: 10px;
}

/* Standalone not-found page */
.error-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
}

.error-header,
.error-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 6vw, 84px);
  background: rgba(253, 252, 248, 0.94);
}

.error-header {
  border-bottom: 1px solid var(--line);
}

.error-header-link,
.error-text-link,
.error-footer a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(47, 111, 94, 0.35);
  text-underline-offset: 4px;
}

.error-header-link:hover,
.error-text-link:hover,
.error-footer a:hover {
  color: var(--forest);
  text-decoration-color: currentColor;
}

.error-main {
  display: grid;
  align-items: center;
  padding: clamp(56px, 9vw, 112px) clamp(20px, 6vw, 84px);
}

.error-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

.error-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  letter-spacing: 0;
}

.error-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.error-score {
  position: relative;
  min-height: 400px;
  display: grid;
  align-content: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  box-shadow: var(--shadow);
}

.error-score::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  content: "";
}

.error-score-label {
  position: relative;
  color: var(--brass);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.error-score strong {
  position: relative;
  font-size: clamp(100px, 17vw, 190px);
  line-height: 0.88;
  letter-spacing: 0;
}

.error-score-rule {
  position: relative;
  width: 64px;
  height: 4px;
  margin-top: 30px;
  background: var(--brass);
}

.error-score img {
  position: absolute;
  right: 20px;
  bottom: 16px;
  width: 112px;
  height: 112px;
  opacity: 0.22;
}

.error-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.error-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow,
  .signup-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .workflow-copy {
    position: static;
  }

  .error-content {
    grid-template-columns: 1fr;
  }

  .error-score {
    min-height: 280px;
  }

  .error-score strong {
    font-size: clamp(96px, 24vw, 160px);
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    padding-top: 14px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links.is-open {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px 20px 18px;
    background: rgba(255, 253, 248, 0.98);
    color: var(--ink);
    box-shadow: 0 12px 24px rgba(16, 32, 28, 0.1);
  }

  .nav-links.is-open a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 88vh;
    padding-top: 96px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10, 25, 21, 0.92) 0%, rgba(10, 25, 21, 0.76) 100%),
      linear-gradient(0deg, rgba(10, 25, 21, 0.35), rgba(10, 25, 21, 0.06));
  }

  .hero h1 {
    font-size: 46px;
  }

  .proof-band,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .error-page {
    background-size: 48px 48px;
  }

  .error-header,
  .error-footer {
    align-items: flex-start;
  }

  .error-header-link {
    font-size: 14px;
  }

  .error-copy h1 {
    font-size: 48px;
  }

  .error-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .error-actions .button {
    width: 100%;
  }

  .error-text-link {
    align-self: flex-start;
  }

  .error-footer {
    flex-direction: column;
    gap: 8px;
  }
}
