/* Homepage narrative: promise -> proof -> market expertise -> platform -> action. */

.home-brand-hero .hero-inner {
  row-gap: var(--space-lg);
  padding-bottom: var(--space-20);
}
.home-brand-hero-copy {
  display: grid;
  justify-items: center;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.home-brand-hero-copy > * {
  margin-block: 0;
}
.home-brand-hero-copy h1 {
  max-width: 980px;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.home-brand-hero-copy h1 span {
  display: inline-block;
  margin: 0;
  color: var(--blue);
}
.home-brandline {
  color: var(--blue);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-small);
  text-transform: uppercase;
  margin-top: 0;
}
.hero-copy.home-brand-hero-copy > p.home-brandline{
  margin-top: 0;
}
.home-brand-hero-copy > p[data-personalization="home-hero-lead"] {
  max-width: 900px;
  font-size: var(--font-size-lead);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-lead);
}
.home-hero-actions {
  justify-content: center;
  margin-top: var(--space-2);
}
.home-hero-proof {
  grid-column: 2 / 12;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: var(--border-width) solid var(--border-divider);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-subtle);
}
.home-hero-proof > a {
  min-width: 0;
  padding: var(--space-5) var(--space-6);
  display: grid;
  place-items: center;
  gap: var(--space-2);
  border-left: var(--border-width) solid var(--border-divider);
  text-align: center;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.home-hero-proof > a:first-child {
  border-left: 0;
}
.home-hero-proof strong {
  color: var(--navy);
  font-size: var(--font-size-lead);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-small);
}
.home-hero-proof span {
  color: var(--text-secondary);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
}
@media (hover: hover) {
  .home-hero-proof > a:hover {
    background: var(--dca-alice-blue);
  }
}
.home-platform-tabs .carousel-dots {
  gap: var(--space-2);
  padding: var(--space-1);
  border: var(--border-width) solid var(--border-divider);
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-subtle);
}
.home-platform-tab.carousel-dot,
.home-platform-tab.carousel-dot.is-active {
  width: auto;
  height: auto;
  min-height: 36px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: transparent;
  transform: none;
  color: var(--text-secondary);
  font-size: var(--font-size-meta);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}
.home-platform-tab.carousel-dot.is-active {
  color: var(--white);
  background: var(--blue);
}
.home-platform-tab span {
  display: block;
}
.home-hero-bottom {
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.home-hero-bottom .trusted-label {
  margin: 0;
}

.home-approach {
  background: var(--dca-alice-blue);
}
.home-approach-heading {
  align-items: end;
}
.home-approach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-top: 0;
}
.home-approach-card {
  min-width: 0;
  padding: var(--space-10);
  display: grid;
  align-content: start;
  border: var(--border-width) solid var(--border-divider);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.home-approach-card--understand {
  border-color: var(--border-on-dark-medium);
  color: var(--white);
  background: var(--navy);
}
.home-approach-card--understand h3,
.home-approach-card--understand > p:not(.eyebrow),
.home-approach-card--understand .check-list li {
  color: var(--white);
}
.home-approach-card--understand .eyebrow,
.home-approach-card--understand .text-link {
  color: var(--blue-soft);
}
.home-approach-card h3 {
  max-width: 18ch;
  margin: 0 0 var(--space-4);
  font-size: var(--font-size-card);
  line-height: var(--line-height-card);
}
.home-approach-card > p:not(.eyebrow) {
  margin: 0 0 var(--space-5);
  color: var(--text-secondary);
}
.home-approach-card--understand > p:not(.eyebrow) {
  color: var(--text-on-dark-secondary);
}
.home-approach-card .check-list {
  margin: 0 0 var(--space-7);
}
.home-approach-grid .check-list li {
  min-height: 2.75rem;
}
.home-approach-card .text-link {
  margin-top: auto;
}

.home-delivery-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: var(--border-width) solid var(--border-divider);
}
.home-delivery-rail > span {
  color: var(--text-secondary);
  font-size: var(--font-size-meta);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-small);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.home-delivery-rail a {
  color: var(--navy);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}
.home-delivery-rail a::after {
  content: "\2197";
  margin-left: .35em;
  color: var(--blue);
}
@media (hover: hover) {
  .home-delivery-rail a:hover {
    color: var(--blue);
  }
}

.home-physical-market {
  padding-top: calc(var(--section-space) + var(--space-16));
}
.home-physical-market .section-heading {
  margin-bottom: var(--space-10);
}
.home-physical-market .section-heading h2 {
  max-width: 20ch;
}
.home-physical-market .section-heading p {
  color: var(--white);
}
.home-physical-market .section-heading p.eyebrow {
  color: var(--blue-soft);
}
.home-physical-market .section-heading > div:last-child p {
  margin: 0;
}
.home-physical-market .section-heading > div:last-child p + p {
  margin-top: var(--space-4);
}

.home-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  padding-top: 0;
}
.home-proof-grid article {
  min-height: 220px;
  padding: var(--space-7);
  border: var(--border-width) solid var(--border-on-dark-medium);
  border-radius: var(--radius-lg);
  background: var(--surface-on-dark-subtle);
}
.home-proof-grid h3 {
  margin: 0 0 var(--space-4);
  color: var(--white);
  font-size: var(--font-size-card);
}
.home-proof-grid p {
  margin: 0;
  color: var(--text-on-dark-tertiary);
  font-size: var(--font-size-small);
}
.home-proof-actions {
  margin-top: var(--space-10);
}

.home-markets.coverage {
  padding-top: var(--section-space);
  background: var(--dca-alice-blue);
}
.home-markets [data-personalization="home-coverage-copy"] {
  color: var(--text-secondary);
}
.home-market-kicker--dairy-profile,
html[data-dca-primary-market="dairy"] .home-market-kicker--default {
  display: none;
}
html[data-dca-primary-market="dairy"] .home-market-kicker--dairy-profile {
  display: inline;
}

.home-experts {
  background: var(--white);
}
.home-experts-set {
  display: none;
}
.home-experts-set--default {
  display: block;
}
html[data-dca-primary-market="dairy"] .home-experts-set--default,
html[data-dca-primary-market="potatoes"] .home-experts-set--default,
html[data-dca-primary-market="meat"] .home-experts-set--default,
html[data-dca-primary-market="crops__ingredients"] .home-experts-set--default {
  display: none;
}
html[data-dca-primary-market="dairy"] .home-experts-set--dairy,
html[data-dca-primary-market="potatoes"] .home-experts-set--potatoes,
html[data-dca-primary-market="meat"] .home-experts-set--meat,
html[data-dca-primary-market="crops__ingredients"] .home-experts-set--crops__ingredients {
  display: block;
}
.home-experts .section-heading {
  margin-bottom: var(--space-8);
}
.home-experts-line {
  margin-top: var(--space-4);
  color: var(--navy);
  font-size: var(--font-size-body);
}
.home-experts .team-grid--analysts {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.home-experts .team-card--analyst {
  min-width: 0;
  min-height: 320px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(135px, .95fr);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: inherit;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.home-experts .team-card--analyst .team-photo-wrap {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--white);
}
.home-experts .team-card--analyst .team-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
}
.home-experts .team-card--analyst .team-card-copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: var(--space-7) var(--space-3) var(--space-7) var(--space-6);
  display: grid;
  align-content: center;
  gap: var(--space-2);
}
.home-experts .team-card-market {
  color: var(--blue);
  font-size: var(--font-size-meta);
  font-weight: var(--font-weight-bold);
  letter-spacing: .04em;
}
.home-experts .team-card--analyst h3 {
  margin: 0;
  color: var(--navy);
  font-size: var(--font-size-lead);
  line-height: var(--line-height-small);
}
.home-experts .team-card--analyst p {
  max-width: 18ch;
  margin: var(--space-2) 0 0;
  color: var(--text-secondary);
  font-size: var(--font-size-small);
}
.home-experts .team-profile-link {
  width: 30px;
  height: 30px;
  margin-top: var(--space-4);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
}
.home-experts .team-profile-link .inline-arrow {
  width: 14px;
  height: 14px;
}
@media (hover: hover) {
  .home-experts a.team-card--analyst:hover {
    transform: translateY(var(--hover-lift));
    box-shadow: var(--shadow-card-hover);
  }
  .home-experts a.team-card--analyst:hover .team-photo {
    transform: scale(1.025);
  }
  .home-experts a.team-card--analyst:hover .team-profile-link {
    background: var(--blue);
  }
}
.home-insights {
  background: var(--dca-alice-blue);
}
.home-platform-section {
  background: var(--white);
}
.home-decisions {
  background: var(--dca-rich-blue);
}
.home-decisions .decision-copy h2,
.home-decisions .decision-copy > p:not(.eyebrow) {
  color: var(--white);
}
.home-decisions .decision-copy .eyebrow {
  color: var(--blue-soft);
}
.home-reporting {
  background: var(--white);
}
.home-customer-stories {
  background: var(--dca-alice-blue);
}
.home-insights .insights-heading > div > p:last-child {
  max-width: var(--measure-wide);
  margin-top: var(--space-4);
  color: var(--text-secondary);
}

.home-platform-section .feature-card {
  grid-template-rows: auto auto 1fr auto;
}
.home-platform-section .feature-card .card-kicker {
  color: var(--blue);
  font-size: var(--font-size-meta);
}
.home-platform-section .feature-card h3 {
  margin-top: var(--space-1);
}

.home-decisions .decision-copy > p:not(.eyebrow) {
  max-width: 540px;
}

.home-reporting-grid {
  align-items: center;
}
.home-reporting-preview {
  grid-column: span 6;
  display: flex;
  justify-content: flex-end;
}
.home-reporting-preview .home-benchmark-preview {
  width: min(100%, 620px);
}

.home-customer-stories .media-card-grid {
  margin-top: 0;
}

@media (max-width: 960px) {
  .home-hero-proof {
    grid-column: 1 / -1;
  }
  .home-approach-grid,
  .home-proof-grid {
    grid-template-columns: 1fr;
  }
  .home-proof-grid article {
    min-height: 0;
  }
  .home-market-grid > .market-card,
  html[data-dca-primary-market="dairy"] .home-market-grid .home-market-card--dairy,
  html[data-dca-primary-market="dairy"] .home-market-grid > .market-card:not(.home-market-card--dairy) {
    grid-column: span 6;
  }
  .home-experts .team-grid--analysts {
    grid-template-columns: 1fr;
  }
  .home-experts .team-card--analyst {
    min-height: 280px;
  }
  .home-reporting-preview {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .home-reporting-preview .home-benchmark-preview {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .split {
      row-gap: var(--space-4);
    
  }
  .home-brand-hero .hero-inner {
    row-gap: var(--space-8);
    padding-bottom: var(--space-16);
  }
  .home-approach > .benefit-strip,
  .home-experts-line {
    display: none;
  }
  .home-brand-hero-copy {
    gap: var(--space-5);
    padding-block: var(--space-4);
  }
  .home-brand-hero-copy h1 {
    font-size: clamp(2.45rem, 12vw, 3.35rem);
  }
  .home-brand-hero-copy > p[data-personalization="home-hero-lead"] {
    font-size: var(--font-size-body);
  }
  .home-hero-actions {
    justify-content: stretch;
  }
  .home-hero-actions .btn {
    width: 100%;
  }
  .home-hero-proof {
    grid-template-columns: 1fr;
  }
  .home-hero-proof > a {
    border-left: 0;
    border-top: var(--border-width) solid var(--border-divider);
  }
  .home-hero-proof > a:first-child {
    border-top: 0;
  }
  .home-platform-tabs {
    overflow: visible;
    justify-content: center;
    padding-bottom: 0;
  }
  .home-platform-tabs .carousel-dots {
    width: auto;
    max-width: 100%;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
  }
  .home-platform-tab.carousel-dot,
  .home-platform-tab.carousel-dot.is-active {
    width: 10px;
    height: 10px;
    min-height: 10px;
    padding: 0;
    border-radius: 50%;
    background: var(--border-strong);
  }
  .home-platform-tab.carousel-dot.is-active {
    width: 24px;
    border-radius: var(--radius-pill);
    background: var(--blue);
  }
  .home-platform-tab span {
    display: none;
  }
  .home-physical-market {
    padding-top: var(--section-space);
  }
  .home-approach-card {
    padding: var(--space-6);
  }
  .home-approach-grid .check-list li {
    min-height: 0;
    font-size: var(--font-size-small);
    line-height: var(--line-height-body);
  }
  .home-approach-card > p:not(.eyebrow) {
    font-size: var(--font-size-small);
    line-height: var(--line-height-body);
  }
  .home-delivery-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3) var(--space-4);
    margin-top: var(--space-6);
  }
  .home-delivery-rail > span {
    grid-column: 1 / -1;
  }
  .home-platform-section .feature-card .card-kicker {
    display: none;
  }
  .home-platform-section .feature-card h3 {
    color: var(--blue);
  }
  .home-market-grid > .market-card,
  html[data-dca-primary-market="dairy"] .home-market-grid .home-market-card--dairy,
  html[data-dca-primary-market="dairy"] .home-market-grid > .market-card:not(.home-market-card--dairy) {
    grid-column: 1 / -1;
  }
  .home-market-grid .market-card {
    min-height: 250px;
  }
  .home-experts .team-card--analyst {
    grid-template-columns: minmax(0, 1fr) 42%;
  }
  .home-experts .team-card--analyst .team-card-copy {
    padding: var(--space-5);
  }
  .home-experts .team-card--analyst h3 {
    font-size: var(--font-size-body);
  }
  .home-decisions .decision-copy,
  .home-reporting .report-copy {
    min-width: 0;
  }
  .home-decisions .decision-copy .btn,
  .home-reporting .report-copy .btn {
    width: 100%;
    padding-inline: var(--space-4);
    white-space: normal;
    line-height: 1.2;
  }
  .home-proof-grid article {
    min-height: 0;
    padding: var(--space-5);
  }
}
