:root {
  --bg: #f7f8f5;
  --paper: #ffffff;
  --ink: #101514;
  --ink-soft: #25312e;
  --muted: #44514e;
  --line: #d9e1dc;
  --line-strong: #b8c5be;
  --green: #0d3f38;
  --green-2: #12675d;
  --gold: #f0b43c;
  --gold-soft: #ffe1a1;
  --copper: #8f3f32;
  --success: #146c43;
  --danger: #9b3025;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 56px;
  line-height: 1.06;
  margin-bottom: 24px;
}

h2 {
  font-size: 38px;
  line-height: 1.16;
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  line-height: 1.22;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
  margin-bottom: 18px;
}

main {
  min-height: 100vh;
}

.skip-link {
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 30;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 21, 20, 0.06);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 12px max(22px, calc((100% - 1180px) / 2 + 22px));
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 20;
}

.brand,
.footer-brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: fit-content;
}

.brand__mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: var(--paper);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 42px;
}

.brand__name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links a {
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 720;
  padding: 9px 10px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: #edf2ef;
  color: var(--ink);
}

.nav-links .nav-cta {
  background: var(--green);
  color: var(--paper);
  margin-left: 4px;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  background: var(--green-2);
  color: var(--paper);
}

.hero {
  background: var(--ink);
  color: var(--paper);
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

.hero__media,
.hero__overlay {
  inset: 0;
  position: absolute;
}

.hero__media img {
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  width: 100%;
}

.hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(9, 20, 18, 0.98) 0%,
      rgba(9, 20, 18, 0.9) 50%,
      rgba(9, 20, 18, 0.5) 100%
    ),
    linear-gradient(
      180deg,
      rgba(16, 24, 23, 0.18) 0%,
      rgba(16, 24, 23, 0.78) 100%
    );
}

.hero__content {
  margin: 0 auto;
  max-width: 1180px;
  padding: 92px 22px 74px;
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero__content > * {
  max-width: 760px;
}

.eyebrow {
  color: var(--copper);
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 13px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  color: var(--paper);
}

.hero__lede {
  color: rgba(255, 255, 255, 0.94);
  font-size: 19px;
  line-height: 1.58;
  margin-bottom: 28px;
}

.service-line {
  border-left: 4px solid var(--gold);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 760;
  margin-top: 26px;
  padding-left: 14px;
}

.actions,
.hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.button--primary {
  background: var(--gold);
  color: #171104;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #e1b04c;
}

.button--secondary {
  background: rgba(255, 253, 247, 0.06);
  border-color: rgba(255, 253, 247, 0.58);
  color: var(--paper);
}

.sub-hero .button--secondary,
.audit-section .button--secondary,
.section .button--secondary,
.checkout-page .button--secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button--dark {
  background: var(--ink);
  color: var(--paper);
}

.button--dark:hover,
.button--dark:focus-visible {
  background: var(--green);
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 88px 22px;
}

.section--tight {
  padding-top: 44px;
}

.section__header {
  max-width: 760px;
}

.section__header p,
.sub-hero p,
.feature-band p,
.mini-cta p,
.final-cta p {
  line-height: 1.65;
}

.problem-grid,
.outcome-grid,
.proof-grid {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.problem-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.outcome-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.problem-card,
.outcome-card,
.proof-card,
.detail-panel,
.form-panel,
.checkout-page .package-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(16, 24, 23, 0.03);
}

.problem-card,
.outcome-card,
.proof-card {
  min-height: 232px;
  padding: 24px;
}

.problem-card {
  display: flex;
  flex-direction: column;
}

.problem-card h2,
.problem-card h3,
.outcome-card h2,
.outcome-card h3,
.proof-card span {
  color: var(--ink);
}

.problem-card p,
.outcome-card p,
.proof-card p {
  font-size: 15px;
  line-height: 1.58;
}

.problem-card a,
.outcome-card a {
  color: var(--green-2);
  font-size: 15px;
  font-weight: 850;
  margin-top: auto;
}

.outcome-card span,
.proof-card span {
  color: var(--copper);
  display: block;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.band {
  background: #eaf2ee;
  border-bottom: 1px solid #cedbd5;
  border-top: 1px solid #cedbd5;
}

.band__content,
.feature-band__content {
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 86px 22px;
}

.system-flow {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.system-flow li {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #cbd7ca;
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-size: 14px;
  font-weight: 800;
  min-height: 58px;
  padding: 14px 16px;
  position: relative;
}

.system-flow li::after {
  background: var(--green-2);
  content: "";
  height: 2px;
  position: absolute;
  right: -10px;
  top: 50%;
  width: 10px;
}

.system-flow li:nth-child(3n)::after,
.system-flow li:last-child::after {
  display: none;
}

.system-flow--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-flow--compact li:nth-child(3n)::after {
  display: block;
}

.system-flow--compact li:nth-child(2n)::after,
.system-flow--compact li:last-child::after {
  display: none;
}

.feature-band {
  background: var(--green);
  color: var(--paper);
}

.feature-band h2,
.feature-band p {
  color: var(--paper);
}

.feature-band p {
  opacity: 0.88;
}

.large-copy {
  color: var(--gold-soft) !important;
  font-size: 21px;
  font-weight: 760;
}

.component-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.component-grid span {
  background: rgba(255, 253, 247, 0.1);
  border: 1px solid rgba(255, 253, 247, 0.22);
  border-radius: 8px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 760;
  min-height: 54px;
  padding: 16px;
}

.component-grid--large span {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.audit-layout,
.system-layout,
.detail-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1fr);
}

.audit-list,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.audit-list span,
.tag-row span {
  background: #edf2ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 760;
  padding: 8px 10px;
}

.form-panel,
.detail-panel {
  padding: 28px;
}

.detail-panel--wide {
  grid-column: span 2;
}

.check-list {
  color: var(--ink-soft);
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  border-left: 4px solid var(--gold);
  padding-left: 12px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-wide {
  grid-column: span 2;
}

.audit-form {
  display: grid;
  gap: 16px;
}

.audit-form label {
  color: var(--ink-soft);
  display: grid;
  font-size: 14px;
  font-weight: 760;
  gap: 7px;
}

.audit-form input,
.audit-form textarea {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

.audit-form textarea {
  min-height: 124px;
  resize: vertical;
}

.audit-form input:focus,
.audit-form textarea:focus,
.audit-form button:focus,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(211, 161, 59, 0.45);
  outline-offset: 3px;
}

.form-status {
  color: var(--muted);
  font-size: 14px;
  min-height: 22px;
}

.form-status.is-success {
  color: var(--success);
  font-weight: 760;
}

.form-status.is-error {
  color: var(--danger);
  font-weight: 760;
}

.mini-cta,
.final-cta {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 58px max(22px, calc((100% - 1180px) / 2 + 22px));
}

.mini-cta {
  background: var(--gold);
}

.final-cta {
  background: var(--ink);
  color: var(--paper);
}

.mini-cta h2,
.final-cta h2 {
  margin-bottom: 10px;
}

.mini-cta p,
.final-cta p {
  margin-bottom: 0;
  max-width: 760px;
}

.mini-cta p {
  color: #3f351d;
}

.final-cta h2,
.final-cta p {
  color: var(--paper);
}

.sub-hero {
  background: linear-gradient(180deg, #eef3ef 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.sub-hero__content {
  margin: 0 auto;
  max-width: 1180px;
  padding: 82px 22px 76px;
}

.sub-hero__content > * {
  max-width: 830px;
}

.sub-hero h1 {
  color: var(--ink);
}

.site-footer {
  background: #17201f;
  color: var(--paper);
  padding: 58px max(22px, calc((100% - 1180px) / 2 + 22px));
}

.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

.site-footer .brand__mark {
  background: var(--gold);
  color: var(--ink);
}

.site-footer .brand__name,
.site-footer h2,
.site-footer a {
  color: var(--paper);
}

.site-footer h2 {
  font-size: 15px;
  margin-bottom: 14px;
}

.site-footer p {
  color: rgba(255, 253, 247, 0.72);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 18px;
}

.site-footer a {
  display: block;
  font-size: 14px;
  margin: 0 0 10px;
  opacity: 0.86;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  opacity: 1;
}

.mobile-audit-cta {
  display: none;
}

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

.audit-form .visually-hidden {
  border: 0 !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  width: 1px !important;
}

.small-copy {
  font-size: 14px;
}

.checkout-page {
  min-height: 100vh;
}

.checkout-page .package-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.checkout-page .package-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
  min-height: 260px;
  padding: 24px;
}

.checkout-page .package-card span {
  color: var(--copper);
  display: block;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.checkout-status {
  color: var(--danger);
  font-size: 15px;
  font-weight: 760;
  min-height: 24px;
  padding-top: 22px;
}

@media (max-width: 1040px) {
  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 32px;
  }

  .site-header {
    align-items: center;
    flex-direction: row;
  }

  .nav-links {
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .problem-grid,
  .outcome-grid,
  .proof-grid,
  .checkout-page .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .band__content,
  .feature-band__content,
  .audit-layout,
  .system-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel--wide {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 66px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 29px;
  }

  p {
    font-size: 16px;
  }

  .site-header {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    padding: 10px 14px 9px;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100vw;
  }

  .brand {
    margin-bottom: 0;
  }

  .brand__name {
    font-size: 14px;
  }

  .nav-links {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    margin-left: 0;
    margin-right: 0;
    max-width: calc(100vw - 28px);
    min-width: 0;
    overflow-x: visible;
    padding: 0;
    width: calc(100vw - 28px);
  }

  .nav-links a {
    align-items: center;
    background: #edf2ef;
    border: 1px solid var(--line);
    display: inline-flex;
    flex: none;
    font-size: 13px;
    justify-content: center;
    line-height: 1.12;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 10px 8px;
    text-align: center;
    white-space: normal;
    width: 100%;
  }

  .nav-links a:nth-of-type(4),
  .nav-links a:nth-of-type(5),
  .nav-links a:nth-of-type(6) {
    display: none;
  }

  .nav-links .nav-cta {
    align-items: center;
    background: var(--green);
    color: var(--paper);
    display: inline-flex;
    justify-content: center;
    min-width: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(9, 20, 18, 0.98) 0%,
        rgba(9, 20, 18, 0.93) 62%,
        rgba(9, 20, 18, 0.96) 100%
      );
  }

  .hero__content {
    padding: 38px 16px 42px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero__content > *,
  .sub-hero__content > *,
  .audit-layout > *,
  .system-layout > *,
  .detail-grid > *,
  .mini-cta > *,
  .final-cta > * {
    max-width: 100%;
  }

  .hero h1,
  h2,
  .section__header,
  .section__header h2 {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .service-line {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero__lede {
    font-size: 17px;
  }

  .service-line {
    font-size: 13px;
    margin-top: 20px;
  }

  .actions,
  .hero__actions,
  .mini-cta,
  .final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section,
  .band__content,
  .feature-band__content,
  .sub-hero__content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-bottom: 66px;
    padding-top: 66px;
  }

  .band__content,
  .feature-band__content {
    padding-bottom: 66px;
    padding-top: 66px;
  }

  .sub-hero__content {
    padding-bottom: 58px;
    padding-top: 58px;
  }

  .problem-grid,
  .outcome-grid,
  .proof-grid,
  .component-grid,
  .system-flow,
  .system-flow--compact,
  .checkout-page .package-grid {
    grid-template-columns: 1fr;
  }

  .system-flow li::after,
  .system-flow--compact li::after,
  .system-flow--compact li:nth-child(3n)::after {
    display: none;
  }

  .problem-card,
  .outcome-card,
  .proof-card {
    min-height: 0;
  }

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

  .form-wide {
    grid-column: auto;
  }

  .form-panel,
  .detail-panel {
    padding: 22px;
  }

  .mini-cta,
  .final-cta {
    padding: 42px 16px;
  }

  .site-footer {
    padding: 44px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mobile-audit-cta {
    align-items: center;
    background: var(--gold);
    border-top: 1px solid rgba(16, 24, 23, 0.18);
    bottom: 0;
    color: var(--ink);
    display: flex;
    font-size: 15px;
    font-weight: 900;
    height: 58px;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    z-index: 25;
  }
}
