/* TerraCode homepage decision path: understand, audit, operate, decide. */
body[data-public-page="home"] main.ag-home > section.ag-hero {
  min-height: auto !important;
  padding-top: clamp(34px, 3vw, 48px) !important;
  padding-bottom: clamp(48px, 4.5vw, 68px) !important;
}

.ag-hero__grid {
  align-items: center !important;
  gap: clamp(36px, 5vw, 74px) !important;
}

.ag-hero__copy {
  padding-top: 0 !important;
}

.ag-hero h1 {
  font-size: clamp(52px, 5vw, 76px) !important;
  line-height: .96 !important;
}

.ag-hero h1 .ag-hero__promise {
  margin-top: 14px !important;
  font-size: .54em !important;
}

.ag-hero__lead {
  max-width: 38rem !important;
  margin-top: 22px !important;
}

.ag-hero .ag-actions {
  margin-top: 26px !important;
}

.ag-home .ag-button {
  min-width: 176px;
}

.ag-stateboard {
  align-self: center !important;
}

.ag-stateboard__rail li {
  min-height: 82px !important;
  padding-top: 17px !important;
  padding-bottom: 17px !important;
}

.ag-stateboard__foot {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.ag-home-summary {
  background: var(--ag-paper, #f7f4ef);
}

.ag-home-summary__intro {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(38px, 7vw, 112px);
  align-items: start;
}

.ag-home-summary__intro h2,
.ag-home-proof h2,
.ag-home-operate h2,
.ag-home-decision h2 {
  max-width: 13ch !important;
}

.ag-home-summary__intro > p {
  max-width: 42rem;
  margin: 0;
  color: var(--ag-muted, #69727d);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.65;
}

.ag-home-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(42px, 5vw, 72px);
  border-top: 1px solid var(--ag-line, #d9d4cc);
  border-bottom: 1px solid var(--ag-line, #d9d4cc);
}

.ag-home-summary__grid article {
  min-width: 0;
  padding: clamp(26px, 3vw, 42px);
  border-right: 1px solid var(--ag-line, #d9d4cc);
}

.ag-home-summary__grid article:first-child {
  padding-left: 0;
}

.ag-home-summary__grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.ag-home-summary__grid span,
.ag-home-proof__facts span,
.ag-home-operate__steps span {
  display: block;
  margin-bottom: 13px;
  color: var(--ag-orange, #f15b3f);
  font-family: var(--ag-mono, monospace);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ag-home-summary__grid h3,
.ag-home-operate__steps h3 {
  margin: 0 0 12px;
  color: var(--ag-navy-900, #0b1d33);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
}

.ag-home-summary__grid p,
.ag-home-operate__steps p {
  margin: 0;
  color: var(--ag-muted, #69727d);
  line-height: 1.65;
}

body[data-public-page="home"] main.ag-home > section.ag-home-proof {
  background: var(--ag-navy-950, #071523) !important;
  color: #fff;
}

.ag-home-proof__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
}

.ag-home-proof h2 {
  color: #fff !important;
}

.ag-home-proof__copy > p {
  max-width: 39rem;
  color: rgba(231, 238, 246, .72);
  font-size: 1.05rem;
  line-height: 1.7;
}

.ag-home-proof__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
  border-left: 1px solid rgba(255,255,255,.14);
}

.ag-home-proof__facts div {
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.ag-home-proof__facts strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
}

.ag-home-proof .ag-button--secondary {
  background: transparent !important;
  border-color: rgba(255,255,255,.34) !important;
  color: #fff !important;
}

body[data-public-page="home"] main.ag-home > section.ag-home-operate {
  background: var(--ag-paper, #f7f4ef) !important;
  color: var(--ag-navy-900, #0b1d33) !important;
}

.ag-home-operate__head {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(38px, 7vw, 112px);
  align-items: end;
}

.ag-home-operate__head > p {
  max-width: 42rem;
  margin: 0;
  color: var(--ag-muted, #69727d);
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 1 !important;
}

.ag-home-operate__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 70px);
  border-top: 1px solid var(--ag-line, #d9d4cc);
}

.ag-home-operate__steps article {
  min-width: 0;
  padding: 30px 26px 0 0;
}

.ag-home-operate__requirements {
  margin-top: 38px;
  padding: 20px 24px;
  border-left: 3px solid var(--ag-orange, #f15b3f);
  background: rgba(241,91,63,.06);
  color: var(--ag-navy-900, #0b1d33);
  font-size: .98rem;
  line-height: 1.65;
}

.ag-home-operate__steps h3,
.ag-home-operate__requirements,
.ag-home-operate__requirements strong {
  color: var(--ag-navy-900, #0b1d33) !important;
  opacity: 1 !important;
}

.ag-home-operate__steps p {
  color: var(--ag-muted, #69727d) !important;
  opacity: 1 !important;
}

.ag-home-decision {
  background: #fff;
}

.ag-home-decision__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}

.ag-home-decision__copy > p {
  max-width: 40rem;
  color: var(--ag-muted, #69727d);
  font-size: 1.05rem;
  line-height: 1.7;
}

.ag-home-plan {
  padding: clamp(28px, 3.5vw, 46px);
  border: 1px solid var(--ag-line, #d9d4cc);
  border-top: 3px solid var(--ag-orange, #f15b3f);
  background: var(--ag-paper, #f7f4ef);
}

.ag-home-plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 16px;
  color: var(--ag-orange, #f15b3f);
}

.ag-home-plan__price strong {
  font-size: clamp(48px, 5vw, 68px);
  line-height: 1;
}

.ag-home-plan__price span,
.ag-home-plan p {
  color: var(--ag-muted, #69727d);
}

.ag-home-plan .ag-button {
  width: 100%;
  margin-top: 12px;
}

/* Keep the decision buttons inside compact laptop/browser viewports. */
@media (min-width: 761px) and (max-height: 700px) {
  body[data-public-page="home"] main.ag-home > section.ag-hero {
    padding-top: 22px !important;
    padding-bottom: 34px !important;
  }

  .ag-hero h1 {
    font-size: clamp(43px, 4.35vw, 60px) !important;
  }

  .ag-hero__copy {
    transform: translateY(-42px);
  }

  .ag-hero h1 .ag-hero__promise {
    margin-top: 10px !important;
  }

  .ag-hero__lead {
    margin-top: 16px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  .ag-hero .ag-actions {
    margin-top: 18px !important;
  }

  .ag-stateboard__head {
    padding-top: 16px !important;
    padding-bottom: 14px !important;
  }

  .ag-stateboard__rail li {
    min-height: 64px !important;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
  }

  .ag-stateboard__rail p,
  .ag-stateboard__foot {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .ag-stateboard__foot {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

@media (max-width: 980px) {
  .ag-home-summary__intro,
  .ag-home-proof__grid,
  .ag-home-operate__head,
  .ag-home-decision__grid {
    grid-template-columns: 1fr;
  }

  .ag-home-summary__grid {
    grid-template-columns: 1fr;
  }

  .ag-home-summary__grid article,
  .ag-home-summary__grid article:first-child,
  .ag-home-summary__grid article:last-child {
    padding: 25px 0;
    border-right: 0;
    border-bottom: 1px solid var(--ag-line, #d9d4cc);
  }

  .ag-home-summary__grid article:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 760px) {
  body[data-public-page="home"] main.ag-home > section.ag-hero {
    padding-top: 26px !important;
    padding-bottom: 46px !important;
  }

  .ag-hero h1 {
    font-size: clamp(43px, 11.7vw, 56px) !important;
  }

  .ag-hero h1 .ag-hero__promise {
    font-size: .61em !important;
  }

  .ag-hero__lead {
    margin-top: 20px !important;
    font-size: 17px !important;
  }

  .ag-hero .ag-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .ag-hero .ag-button {
    width: 100% !important;
  }

  .ag-stateboard {
    margin-top: 0 !important;
  }

  .ag-stateboard__rail li {
    min-height: 76px !important;
  }

  .ag-home-proof__facts,
  .ag-home-operate__steps {
    grid-template-columns: 1fr;
  }

  .ag-home-operate__steps article {
    padding: 24px 0;
    border-bottom: 1px solid var(--ag-line, #d9d4cc);
  }

  .ag-home-operate__steps article:last-child {
    border-bottom: 0;
  }
}
