/* Homepage sections only; workflow pages use their existing shared styles. */
/* Fill the homepage shell without counting the vertical scrollbar as content. */
.hero-slideshow.hero-pro {
  width: calc(100% + 2rem);
  max-width: none;
  margin-inline: -1rem;
}

.home-sections {
  --home-accent: #43551e;
  --home-border: #dce4d4;
  --home-tint: #edf2e5;
}

.home-section {
  padding: clamp(3.5rem, 6vw, 6rem) clamp(1rem, 3vw, 2.5rem);
  background: #ffffff;
}

.home-section-alt {
  background: #f1f5ec;
  border-block: 1px solid var(--home-border);
}

.home-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.home-section-heading {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.home-sections .home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-green-600);
}

.home-sections h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 1.25rem + 1.25vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.home-sections h3 {
  margin: 0 0 .8rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.02em;
}

.home-sections p {
  line-height: 1.7;
}

.home-sections .home-section-intro {
  margin: 0;
  font-size: 1rem;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.home-feature-card,
.home-testimonial-card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--home-border);
  border-radius: 16px;
  background: #ffffff;
}

.home-feature-card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(36, 49, 26, .035);
}

.home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--home-tint);
  font-size: 1.4rem;
}

#features .home-icon .bi,
#about .home-icon .bi {
  filter: none;
}

.home-feature-card > .home-icon {
  margin-bottom: 1.5rem;
}

.home-feature-card > p {
  margin: 0 0 1.5rem;
}

.home-card-detail {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e7ecdf;
  font-size: .8125rem;
  line-height: 1.6;
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .6rem;
  min-height: 44px;
  margin-top: .65rem;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
}

.home-text-link:hover {
  text-decoration: underline;
}

.home-sections a:focus-visible,
.home-sections button:focus-visible {
  outline: 3px solid var(--home-accent);
  outline-offset: 4px;
}

.home-about-grid,
.home-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.home-sections .home-about-lead {
  max-width: 460px;
  margin: 1.4rem 0 1.15rem;
  font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.02em;
}

.home-about-copy > p:not(.home-eyebrow):not(.home-about-lead),
.home-demo-copy > p:not(.home-eyebrow):not(.home-about-lead) {
  max-width: 520px;
  margin-bottom: 1rem;
}

.home-about-panel {
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--home-border);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(36, 49, 26, .035);
}

.home-about-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.home-about-item + .home-about-item {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e7ecdf;
}

.home-about-item p {
  margin: 0;
}

.home-about-note {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e7ecdf;
  font-size: .8125rem;
}

.home-testimonial-card {
  display: flex;
  flex-direction: column;
  background: #f9fbf6;
}

.home-quote-icon {
  align-self: flex-start;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: .4;
}

.home-testimonial-card blockquote {
  max-width: none;
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 1rem;
}

.home-testimonial-card blockquote p {
  margin: 0;
}

.home-testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--home-border);
}

.home-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #e5edda;
  font-size: .8125rem;
  font-weight: 600;
}

.home-user-name,
.home-user-role {
  display: block;
  font-size: .875rem;
  line-height: 1.6;
}

.home-user-name {
  font-weight: 600;
}

.home-user-role {
  font-size: .8125rem;
}

.home-demo-grid {
  align-items: start;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.home-demo-copy {
  padding-top: .5rem;
}

.home-sections .home-demo-list-title {
  margin: 2rem 0 1rem;
  font-size: .9375rem;
}

.home-demo-list {
  display: grid;
  gap: .85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.home-demo-list li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  font-size: .9375rem;
  line-height: 1.65;
}

.home-demo-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d8e1ce;
}

.home-demo-contact div > span,
.home-demo-contact a {
  display: block;
  font-size: .875rem;
  line-height: 1.7;
}

.home-demo-contact a {
  font-weight: 600;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

#contact .home-demo-form {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--home-border);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(36, 49, 26, .045);
}

.home-form-heading {
  margin-bottom: 1.75rem;
}

.home-form-heading h3 {
  margin-bottom: .5rem;
}

.home-form-heading p,
.home-sections .home-form-note,
.home-sections .home-field-help {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.6;
}

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

.home-form-field {
  min-width: 0;
}

.home-form-field-wide {
  grid-column: 1 / -1;
}

.home-form-field label {
  display: block;
  margin-bottom: .5rem;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
}

.home-optional {
  font-size: .8125rem;
  font-weight: 400;
}

.home-demo-form .form-control {
  min-height: 48px;
  padding: .75rem .875rem;
  border: 1px solid #c9d3be;
  border-radius: 8px;
  background: #fcfdfb;
  font-size: .9375rem;
}

.home-demo-form .form-control:focus {
  border-color: var(--home-accent);
  outline: 2px solid var(--home-accent);
  outline-offset: 2px;
  box-shadow: none;
}

.home-demo-form textarea {
  resize: vertical;
  min-height: 120px;
}

.home-demo-form .home-field-help {
  margin-top: .5rem;
}

.home-demo-form .home-demo-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: 100%;
  min-height: 50px;
  margin: 1.5rem 0 .875rem;
  padding: .85rem 1rem;
  border: 1px solid var(--home-accent);
  border-radius: 8px;
  background: var(--home-accent);
  color: #ffffff;
  font-size: .9375rem;
  font-weight: 600;
}

.home-demo-form .home-demo-submit:hover,
.home-demo-form .home-demo-submit:active {
  background: #354417;
  border-color: #354417;
  color: #ffffff;
}

.home-demo-form .home-form-note {
  text-align: center;
}

.home-form-status {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid #c9d3be;
  border-radius: 8px;
  background: var(--home-tint);
}

.home-form-status p {
  margin: 0;
  font-size: .875rem;
}

.home-form-status[hidden] {
  display: none;
}

@media (max-width: 991.98px) {
  .home-about-grid,
  .home-demo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .home-about-copy > p,
  .home-demo-copy > p {
    max-width: 680px;
  }
}

@media (max-width: 767.98px) {
  .home-card-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .home-section-heading {
    text-align: left;
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .home-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-about-item {
    gap: 1rem;
  }

  .home-about-item .home-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }
}
