/* TOPDMS consumer homepage rewrite, 2026-08-27.
   Scoped to the homepage so shared public routes keep their established layout. */

body.consumer-home-v2 {
  --home-ink: #17231f;
  --home-muted: #66716c;
  --home-line: #d8ddd8;
  --home-paper: #f7f5ef;
  --home-surface: #fffdf8;
  --home-accent: #2f63f5;
  background: var(--home-paper);
  color: var(--home-ink);
}

.consumer-home-v2 .public-header {
  min-height: 68px;
}

.consumer-home-v2 .public-header .brand-logo {
  max-height: 28px;
  width: auto;
}

.consumer-home-v2 #siteNav {
  gap: clamp(.8rem, 1.5vw, 1.55rem);
  white-space: nowrap;
}

.consumer-home-v2 #siteNav > a {
  font-size: .84rem;
  letter-spacing: -.01em;
}

.consumer-home-v2 main {
  overflow: clip;
}

.consumer-home-v2 .customer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  width: min(100% - 2rem, 92rem);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.consumer-home-v2 .customer-hero-copy {
  display: grid;
  justify-items: center;
  width: min(100%, 62rem);
  margin: 0 auto;
  text-align: center;
}

.consumer-home-v2 .customer-hero-copy h1 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(2.4rem, 4.4vw, 4.15rem);
  line-height: .98;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.consumer-home-v2 .customer-hero-copy .hero-lead {
  max-width: 48rem;
  margin: 1.25rem auto 0;
  color: var(--home-muted);
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  text-wrap: balance;
}

.consumer-home-v2 .hero-actions {
  justify-content: center;
  margin-top: 1.55rem;
}

.consumer-home-v2 .customer-demo {
  position: relative;
  width: min(100%, 82rem);
  margin: 0 auto;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  overflow: hidden;
  background: #deddd7;
  box-shadow: 0 24px 70px rgba(40, 49, 45, .12);
}

.consumer-home-v2 .customer-demo > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
}

.consumer-home-v2 .customer-demo-caption {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
  gap: 1rem 2rem;
  align-items: start;
  padding: 1rem 1.25rem 1.1rem;
  color: var(--home-ink);
  background: var(--home-surface);
  border-top: 1px solid var(--home-line);
}

.consumer-home-v2 .customer-demo-caption strong,
.consumer-home-v2 .customer-demo-caption span {
  color: inherit;
}

.consumer-home-v2 .customer-demo-caption span {
  color: var(--home-muted);
}

.consumer-home-v2 .customer-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 68rem);
  margin: 0 auto;
  padding: 0;
  border: 0;
}

.consumer-home-v2 .customer-proof-strip span {
  padding: .8rem 1rem;
  color: var(--home-muted);
  text-align: center;
  border-right: 1px solid var(--home-line);
}

.consumer-home-v2 .customer-proof-strip span:last-child {
  border-right: 0;
}

.consumer-home-v2 .workflow-section,
.consumer-home-v2 .metric-stages-section,
.consumer-home-v2 .audience-paths {
  width: min(100% - 2rem, 88rem);
  margin-inline: auto;
}

.consumer-home-v2 .workflow-heading,
.consumer-home-v2 .section-heading,
.consumer-home-v2 .audience-heading {
  max-width: 50rem;
}

.consumer-home-v2 .workflow-heading h2,
.consumer-home-v2 .metric-stages-section h2,
.consumer-home-v2 .audience-heading h2 {
  max-width: 17ch;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.consumer-home-v2 .workflow-photo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, .8fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.consumer-home-v2 .workflow-photo-grid article {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: 16px;
  box-shadow: none;
}

.consumer-home-v2 .workflow-photo-grid .workflow-lead {
  grid-row: 1 / 3;
}

.consumer-home-v2 .workflow-photo-grid figure {
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
  background: #dcdcd5;
}

.consumer-home-v2 .workflow-photo-grid .workflow-lead figure {
  min-height: 31rem;
}

.consumer-home-v2 .workflow-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.consumer-home-v2 .workflow-photo-grid article > div {
  padding: 1.2rem 1.3rem 1.35rem;
}

.consumer-home-v2 .workflow-photo-grid h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -.025em;
}

.consumer-home-v2 .workflow-photo-grid p {
  margin: .45rem 0 0;
  color: var(--home-muted);
}

.consumer-home-v2 .metric-stages-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--home-line);
}

.consumer-home-v2 .metric-stages-list article {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  min-height: 0;
  padding: 1.6rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--home-line);
  border-radius: 0;
  box-shadow: none;
}

.consumer-home-v2 .stage-icon {
  width: 2.8rem;
  height: 2.8rem;
  padding: .55rem;
  object-fit: contain;
  background: #e8eee8;
  border-radius: 10px;
}

.consumer-home-v2 .stage-availability {
  display: inline-block;
  margin: 0 0 .45rem;
  padding: 0;
  color: #4c6258;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.consumer-home-v2 .metric-stages-list h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  letter-spacing: -.03em;
}

.consumer-home-v2 .metric-stages-list p {
  max-width: 52rem;
  margin: .55rem 0 0;
  color: var(--home-muted);
}

.consumer-home-v2 .audience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(18rem, .75fr);
  gap: 1rem;
  align-items: stretch;
}

.consumer-home-v2 .audience-grid article {
  border: 1px solid var(--home-line);
  border-radius: 16px;
  box-shadow: none;
}

.consumer-home-v2 .audience-primary {
  background: #e9eee8;
}

.consumer-home-v2 .audience-secondary {
  background: var(--home-surface);
}

.consumer-home-v2 .account-dialog {
  width: min(92vw, 34rem);
  max-height: min(88vh, 48rem);
  padding: 0;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: var(--home-surface);
  box-shadow: 0 28px 90px rgba(18, 26, 23, .22);
}

.consumer-home-v2 .account-dialog::backdrop {
  background: rgba(20, 28, 25, .58);
  backdrop-filter: blur(6px);
}

.consumer-home-v2 .account-experience {
  display: block;
  min-height: 0;
  padding: clamp(1.6rem, 5vw, 2.7rem);
  background: transparent;
}

.consumer-home-v2 .account-gateway {
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.consumer-home-v2 .account-gateway h2 {
  max-width: 12ch;
  margin: .45rem 0 .8rem;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.consumer-home-v2 .account-intro {
  color: var(--home-muted);
  line-height: 1.55;
}

.consumer-home-v2 .account-tabs {
  margin-top: 1.4rem;
}

.consumer-home-v2 .account-form input {
  min-height: 48px;
  background: #fff;
}

.consumer-home-v2 .account-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  margin-top: 1.4rem;
  color: var(--home-muted);
  font-size: .7rem;
}

.consumer-home-v2 .account-dialog-close {
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
}

@media (max-width: 980px) {
  .consumer-home-v2 .workflow-photo-grid {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, .75fr);
  }

  .consumer-home-v2 .workflow-photo-grid .workflow-lead figure {
    min-height: 26rem;
  }
}

@media (max-width: 760px) {
  .consumer-home-v2 .customer-hero {
    width: min(100% - 1.25rem, 92rem);
    padding-top: 2.5rem;
  }

  .consumer-home-v2 .customer-hero-copy {
    justify-items: start;
    text-align: left;
  }

  .consumer-home-v2 .customer-hero-copy h1 {
    max-width: 18ch;
    font-size: clamp(2.3rem, 10vw, 3rem);
  }

  .consumer-home-v2 .customer-hero-copy .hero-lead {
    margin-inline: 0;
    text-wrap: pretty;
  }

  .consumer-home-v2 .hero-actions {
    justify-content: flex-start;
  }

  .consumer-home-v2 .customer-demo {
    border-radius: 13px;
  }

  .consumer-home-v2 .customer-demo-caption {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .consumer-home-v2 .customer-proof-strip {
    grid-template-columns: 1fr;
  }

  .consumer-home-v2 .customer-proof-strip span {
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .consumer-home-v2 .customer-proof-strip span:last-child {
    border-bottom: 0;
  }

  .consumer-home-v2 .workflow-photo-grid,
  .consumer-home-v2 .audience-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .consumer-home-v2 .workflow-photo-grid .workflow-lead {
    grid-row: auto;
  }

  .consumer-home-v2 .workflow-photo-grid .workflow-lead figure,
  .consumer-home-v2 .workflow-photo-grid figure {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .consumer-home-v2 .metric-stages-list article {
    grid-template-columns: 2.9rem minmax(0, 1fr);
    gap: .9rem;
  }

  .consumer-home-v2 .stage-icon {
    width: 2.55rem;
    height: 2.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consumer-home-v2 *,
  .consumer-home-v2 *::before,
  .consumer-home-v2 *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
