@import url("public_tokens.css");

/* WINCO_HOME_PRODUCT_V2
   Product-first homepage layer. Loaded after the legacy home and hero-flow styles. */

body.gw-home-product {
  --ghv2-navy: var(--gw-public-color-text);
  --ghv2-blue: var(--gw-public-color-action-primary);
  --ghv2-blue-soft: #edf3fb;
  --ghv2-line: var(--gw-public-color-border);
  --ghv2-muted: #51647b;
  --ghv2-canvas: #f5f7fa;
}

body.gw-home-product .ghv2-hero .gh-hero__copy h1 {
  max-width: 700px;
  font-size: clamp(44px, 4.35vw, 64px);
}

body.gw-home-product .ghv2-hero .gh-hero__lead {
  max-width: 640px;
  font-size: clamp(16px, 1.18vw, 18px);
}

body.gw-home-product .ghv2-signal .gh-signal-strip__intro strong {
  font-size: 15px;
}

body.gw-home-product .ghv2-product-card h3 {
  letter-spacing: -.055em;
}

.ghv2-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.ghv2-module {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--ghv2-line);
  border-radius: 10px;
  background: #fff;
}

.ghv2-module > span {
  display: block;
  margin-bottom: 20px;
  color: var(--ghv2-blue);
  font: 700 10px/1.2 Consolas, monospace;
  letter-spacing: .08em;
}

.ghv2-module strong {
  display: block;
  color: var(--ghv2-navy);
  font-size: 18px;
  letter-spacing: -.02em;
}

.ghv2-module p {
  margin: 9px 0 0;
  color: var(--ghv2-muted);
  font-size: 13px;
  line-height: 1.6;
}

.ghv2-ai {
  background: #f3f6fa !important;
}

.ghv2-ai__layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(42px, 6vw, 82px);
  align-items: center;
}

.ghv2-ai__copy h2 {
  max-width: 13ch;
  margin: 16px 0 20px;
  color: var(--ghv2-navy);
  font-size: clamp(36px, 3.4vw, 50px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.ghv2-ai__copy > p {
  max-width: 650px;
  margin: 0;
  color: var(--ghv2-muted);
  font-size: 15px;
  line-height: 1.72;
}

.ghv2-ai__capabilities {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--ghv2-line);
}

.ghv2-ai__capabilities > div {
  display: grid;
  grid-template-columns: 34px minmax(150px, .8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--ghv2-line);
}

.ghv2-ai__capabilities span {
  color: var(--ghv2-blue);
  font: 700 10px/1 Consolas, monospace;
}

.ghv2-ai__capabilities strong {
  color: var(--ghv2-navy);
  font-size: 13px;
}

.ghv2-ai__capabilities small {
  color: var(--ghv2-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ghv2-ai__demo {
  overflow: hidden;
  border: 1px solid #cbd7e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(11, 24, 48, .08);
}

.ghv2-ai__demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--ghv2-line);
  background: #fafbfd;
}

.ghv2-ai__demo-head span,
.ghv2-ai__demo-head strong {
  font-size: 11px;
}

.ghv2-ai__demo-head span { color: var(--ghv2-muted); }
.ghv2-ai__demo-head strong { color: var(--ghv2-navy); }

.ghv2-ai__demo blockquote {
  margin: 24px 24px 8px;
  padding: 16px 18px;
  border: 1px solid #d6e1ef;
  border-radius: 4px 12px 12px 12px;
  color: var(--ghv2-navy);
  background: #f5f8fc;
  font-size: 16px;
  line-height: 1.5;
}

.ghv2-ai__demo ol {
  list-style: none;
  margin: 0;
  padding: 20px 24px 24px;
}

.ghv2-ai__demo li {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 21px;
}

.ghv2-ai__demo li:last-child { padding-bottom: 0; }

.ghv2-ai__demo li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 2px;
  left: 14px;
  width: 1px;
  background: var(--ghv2-line);
}

.ghv2-ai__demo li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #c8d8ec;
  border-radius: 50%;
  color: var(--ghv2-blue);
  background: #eef4fb;
  font: 700 11px/1 Consolas, monospace;
}

.ghv2-ai__demo li strong,
.ghv2-ai__demo li small { display: block; }
.ghv2-ai__demo li strong { margin-top: 2px; color: var(--ghv2-navy); font-size: 13px; }
.ghv2-ai__demo li small { margin-top: 4px; color: var(--ghv2-muted); font-size: 12px; }

.ghv2-architecture__map {
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #1e3655;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #0a172b, #102d54);
  box-shadow: 0 24px 56px rgba(8, 23, 45, .14);
}

.ghv2-architecture__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.ghv2-architecture__row span,
.ghv2-architecture__runtime article {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

.ghv2-architecture__row span {
  padding: 12px 10px;
  border-radius: 8px;
  color: #dbe9fa;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.ghv2-architecture__connector {
  padding: 13px 0;
  color: #7fb3f4;
  font-size: 19px;
  text-align: center;
}

.ghv2-architecture__core {
  padding: 24px;
  border: 1px solid rgba(137, 187, 249, .34);
  border-radius: 12px;
  background: rgba(36, 89, 168, .23);
  text-align: center;
}

.ghv2-architecture__core small,
.ghv2-architecture__core strong,
.ghv2-architecture__core p { display: block; }
.ghv2-architecture__core small { color: #9ec6f8; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.ghv2-architecture__core strong { margin-top: 7px; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.04em; }
.ghv2-architecture__core p { margin: 8px 0 0; color: #d1deed; font-size: 12px; }

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

.ghv2-architecture__runtime article {
  padding: 18px;
  border-radius: 10px;
}

.ghv2-architecture__runtime small,
.ghv2-architecture__runtime strong,
.ghv2-architecture__runtime span { display: block; }
.ghv2-architecture__runtime small { color: #8fbdf5; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.ghv2-architecture__runtime strong { margin-top: 6px; color: #fff; font-size: 15px; }
.ghv2-architecture__runtime span { margin-top: 5px; color: #b9c9dc; font-size: 11px; line-height: 1.5; }

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

.ghv2-labs__grid .gh-solution {
  min-height: 360px;
}

@media (max-width: 1080px) {
  .ghv2-ai__layout { grid-template-columns: 1fr; }
  .ghv2-ai__copy { max-width: 760px; }
  .ghv2-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ghv2-labs__grid { grid-template-columns: 1fr; }
}

/* D1_1_03: release the demo's 560px minimum only in the cramped tablet band. */
@media (min-width: 961px) and (max-width: 1019.98px) {
  body.gw-home-product .gh-hero__grid {
    grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr);
  }
}

@media (max-width: 760px) {
  body.gw-home-product .ghv2-hero .gh-hero__copy h1 {
    max-width: 100%;
    font-size: clamp(38px, 10vw, 48px);
  }

  .ghv2-module-grid,
  .ghv2-architecture__runtime { grid-template-columns: 1fr; }

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

  .ghv2-ai__capabilities > div {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .ghv2-ai__capabilities small {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .ghv2-module-grid { grid-template-columns: 1fr; }
  .ghv2-architecture__row { grid-template-columns: 1fr; }
  .ghv2-ai__demo blockquote { margin-inline: 16px; }
  .ghv2-ai__demo ol { padding-inline: 16px; }
}
