.products-hero {
  min-height: 540px;
  padding-block: 72px 78px;
  display: grid;
  grid-template-columns: 1fr .92fr;
  align-items: center;
  gap: 72px;
}
.products-intro h1 {
  margin: 0 0 22px;
}
.products-intro h1 em { color: var(--primary-text); font-style: normal; }
.products-lead { max-width: 510px; margin: 0; color: var(--text-secondary); font-size: 19px; line-height: 1.65; }
.products-note { margin: 25px 0 0; color: var(--primary-text); font-size: 13px; font-weight: 600; letter-spacing: .015em; }
.stack-visual {
  min-height: 354px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-cool);
  box-shadow: var(--shadow-sm);
}
.stack-visual::before {
  content: "";
  position: absolute;
  inset: 50px 0;
  opacity: .55;
  background-image: linear-gradient(to right, color-mix(in srgb, var(--border-default) 33%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--border-default) 33%, transparent) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(transparent, black 22%, black 78%, transparent);
}
.stack-topline { position: absolute; z-index: 2; top: 20px; left: 22px; right: 22px; display: flex; justify-content: space-between; gap: 10px; color: var(--text-secondary); font-size: 9px; font-weight: 600; letter-spacing: .11em; }
.stack-center {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 142px;
  height: 142px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--vista-blue-500) 35%, transparent);
  border-radius: 50%;
  color: var(--text-primary);
  background: color-mix(in srgb, var(--surface-raised) 82%, transparent);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}
.stack-center-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--text-inverse); background: var(--surface-inverse); font: 400 22px/.9 var(--font-display); }
.stack-thread { position: absolute; z-index: 1; left: 50%; top: 52%; width: 238px; height: 148px; border: 1px solid color-mix(in srgb, var(--myrtle-600) 52%, transparent); border-radius: 50%; transform: translate(-50%, -50%) rotate(31deg); }
.thread-b { width: 190px; height: 230px; border-color: color-mix(in srgb, var(--tea-rose-700) 40%, transparent); transform: translate(-50%, -50%) rotate(-39deg); }
.stack-label { position: absolute; z-index: 2; min-width: 86px; padding: 10px 13px; border: 1px solid var(--border-subtle); border-radius: 10px; color: var(--text-primary); background: var(--surface-raised); box-shadow: var(--shadow-sm); font-size: 12px; font-weight: 600; text-align: center; }
.stack-crm { top: 26%; left: 12%; }
.stack-conversations { top: 34%; right: 8%; }
.stack-ai { bottom: 19%; left: 18%; }
.stack-caption { position: absolute; bottom: 20px; left: 22px; right: 22px; display: flex; align-items: center; gap: 9px; color: var(--text-secondary); font-size: 11px; }
.catalog { padding-block: 70px 98px; }
.catalog-heading { display: grid; grid-template-columns: 1fr .72fr; align-items: end; gap: 60px; padding-bottom: 28px; border-bottom: 1px solid var(--border-default); }
.catalog-heading .eyebrow { margin-bottom: 11px; }
.catalog-heading h2 { max-width: 550px; margin: 0; font-size: 42px; line-height: 1.08; }
.catalog-heading > p { max-width: 395px; margin: 0 0 3px; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 28px; }
.product-card {
  min-height: 238px;
  padding: 28px 27px 30px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  animation: float-in 650ms both cubic-bezier(.2,.75,.25,1);
}
.product-card:nth-child(2) { animation-delay: 70ms; }
.product-card:nth-child(3) { animation-delay: 140ms; }
.product-card:nth-child(4) { animation-delay: 210ms; }
.product-card:nth-child(5) { animation-delay: 280ms; }
.product-card:nth-child(6) { animation-delay: 350ms; }
.product-card-top { min-height: 54px; display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 17px; }
.product-icon { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--border-subtle); border-radius: 15px; background: var(--product-wash, var(--surface-raised)); }
.product-icon-wide { width: 96px; }
.product-icon img { display: block; width: 44px; height: 44px; object-fit: contain; }
.product-icon img.product-icon-wordmark { width: 80px; height: 30px; max-width: none; }
.product-card:nth-child(1) { --product-wash: #fff3e8; }
.product-card:nth-child(2) { --product-wash: #eaf7fb; }
.product-card:nth-child(3) { --product-wash: #fbf2e9; }
.product-card:nth-child(4) { --product-wash: #f0f5f3; }
.product-card:nth-child(5) { --product-wash: #f0f1fb; }
.product-card:nth-child(6) { --product-wash: #fff0ef; }
.product-category { color: var(--text-secondary); font-size: 11px; line-height: 1.4; font-weight: 600; letter-spacing: .08em; text-align: right; text-transform: uppercase; }
.product-card h3 { margin: 0 0 8px; font-size: 27px; line-height: 1.18; }
.product-card p { max-width: 490px; margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }
.product-card { display: flex; flex-direction: column; align-items: flex-start; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-3px); border-color: var(--border-default); box-shadow: var(--shadow-md); }
.product-card p { flex: 1; }
.product-title-link { color: inherit; text-decoration: none; text-decoration-color: var(--primary-text); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.product-title-link:hover { color: var(--primary-text); text-decoration: underline; }
.product-title-link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.product-explore { min-height: 44px; margin-top: 18px; padding: 0; display: inline-flex; align-items: center; gap: 10px; border: 0; color: var(--primary-text); background: transparent; font: 600 14px/1 var(--font-sans); cursor: pointer; }
.product-explore span { transition: transform .2s ease; }
.product-explore:hover span { transform: translate(2px,-2px); }
.collection-filters { display: flex; gap: 9px; overflow-x: auto; padding: 22px 0 2px; scrollbar-width: thin; }
.collection-filter { min-height: 42px; padding: 0 15px; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); color: var(--text-secondary); text-decoration: none; background: var(--surface-raised); font-size: 13px; font-weight: 600; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.collection-filter span { color: var(--text-disabled); font: 11px/1 var(--font-sans); }
.collection-filter:hover, .collection-filter[aria-current="page"] { color: var(--text-primary); border-color: var(--border-default); background: var(--surface-cool); }
.collection-filter[aria-current="page"] span { color: var(--primary-text); }
.product-card[hidden] { display: none; }
.catalog-status { min-height: 20px; margin: 16px 0 0; color: var(--text-secondary); font-size: 13px; }
.catalog-loading { padding-block: 10px; color: var(--text-secondary); font-size: 13px; }
.catalog-error { margin-block: 12px; padding: 14px 17px; border: 1px solid var(--danger); border-radius: var(--radius-md); color: var(--danger); background: var(--danger-subtle); font-size: 14px; line-height: 1.55; }
.product-explore:disabled { opacity: .55; cursor: wait; }
.cart-nav-link { position: relative; min-height: 42px; margin-left: 19px; padding: 0 13px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-default); border-radius: var(--radius-pill); color: var(--primary-text); text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cart-count { min-width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: var(--on-primary); background: var(--primary); font-size: 11px; }
.service-dialog { width: min(700px, calc(100% - 32px)); max-width: none; max-height: min(88dvh, 820px); padding: 0; overflow: auto; border: 1px solid var(--border-default); border-radius: var(--radius-lg); color: var(--text-primary); background: var(--surface-page); box-shadow: var(--shadow-lg); }
.service-dialog::backdrop { background: var(--surface-overlay); backdrop-filter: blur(3px); }
.dialog-close-form { position: sticky; z-index: 2; top: 0; display: flex; justify-content: flex-end; padding: 14px 18px 0; }
.dialog-close { min-height: 42px; padding: 0 12px; border: 0; color: var(--text-secondary); background: transparent; font: 600 13px var(--font-sans); cursor: pointer; }
.dialog-close span { margin-left: 6px; font-size: 21px; vertical-align: -2px; }
.service-dialog-content { padding: 2px 38px 36px; }
.dialog-product-head { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 18px; margin-bottom: 12px; }
.dialog-product-head .product-icon { width: 58px; height: 58px; }
.dialog-product-head .eyebrow { margin-bottom: 6px; font-size: 10px; }
.dialog-product-head h2 { margin: 0; font-size: 38px; line-height: 1.08; }
.dialog-description { max-width: 560px; margin: 17px 0 28px; color: var(--text-secondary); font-size: 16px; line-height: 1.65; }
.dialog-service-list { display: grid; gap: 10px; }
.dialog-service-option { display: grid; grid-template-columns: 24px 1fr; gap: 13px; padding: 17px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-raised); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.dialog-service-option:has(input:checked) { border-color: var(--primary); background: var(--primary-subtle); }
.dialog-service-option input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); }
.dialog-service-option strong { display: block; margin-bottom: 4px; font-size: 15px; }
.dialog-service-option span { display: block; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.dialog-service-option ul { margin: 9px 0 0; padding-left: 17px; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.dialog-notes { width: 100%; min-height: 90px; resize: vertical; }
.scope-field { display: grid; gap: 8px; margin-top: 20px; }
.scope-field-label { color: var(--text-primary); font-size: 14px; font-weight: 600; }
.dialog-notes { padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-primary); background: var(--surface-raised); font: 400 16px/1.5 var(--font-sans); }
.dialog-notes::placeholder { color: var(--text-secondary); }
.dialog-footer .button { border: 0; cursor: pointer; font-family: var(--font-sans); }
.dialog-footer .button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.dialog-footer p { max-width: 300px; margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
.dialog-feedback { min-height: 20px; margin: 8px 0 0; color: var(--danger); font-size: 13px; }
.service-dialog[open] { animation: dialog-enter .2s ease-out both; }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.dialog-notes:focus-visible, .scope-input:focus-visible, .scope-textarea:focus-visible, .scope-select:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: 2px; }
.implementation-band {
  min-height: 224px;
  margin-bottom: 90px;
  padding: 34px 38px;
  display: grid;
  grid-template-columns: 86px 1fr .88fr;
  align-items: center;
  gap: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
}
.implementation-index { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--primary-text); font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.implementation-index i { width: 1px; height: 48px; background: var(--border-default); }
.implementation-copy .eyebrow { margin-bottom: 10px; }
.implementation-copy h2 { max-width: 360px; margin: 0; font-size: 34px; line-height: 1.1; }
.implementation-band > p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.75; }
.products-conversation {
  position: relative;
  min-height: 260px;
  margin-block: 0 92px;
  padding: 44px 62px 44px 165px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-inverse);
  color: var(--text-inverse);
}
.products-conversation .conversation-mark { color: var(--tea-rose-200); }
.products-conversation .eyebrow { color: var(--thistle-300); }
[data-theme="dark"] .products-conversation .conversation-mark { color: var(--brunswick-700); }
[data-theme="dark"] .products-conversation .conversation-copy .eyebrow,
[data-theme="dark"] .products-conversation .conversation-copy p:last-child { color: var(--brunswick-700); }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-hero { gap: 36px; }
  .catalog-heading { gap: 35px; }
  .implementation-band { grid-template-columns: 58px 1fr 1fr; gap: 20px; padding-inline: 28px; }
  .products-conversation { padding-right: 36px; }
}
@media (max-width: 767px) {
  .cart-nav-link { grid-area: cart; justify-self: start; min-height: 38px; margin: 0; padding-inline: 11px; font-size: 12px; }
  .header-inner { grid-template-areas: "brand cta theme" "nav nav nav" "cart cart cart"; }
  .service-dialog { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .service-dialog-content { padding: 0 22px 26px; }
  .dialog-product-head h2 { font-size: 32px; }
  .dialog-description { font-size: 15px; }
  .dialog-footer { align-items: stretch; flex-direction: column; }
  .dialog-footer .button { width: 100%; }
  .products-hero { min-height: auto; grid-template-columns: 1fr; gap: 38px; padding-block: 56px 58px; }
  .products-intro h1 { margin-bottom: 18px; }
  .products-lead { font-size: 17px; line-height: 1.6; }
  .products-note { margin-top: 20px; }
  .stack-visual { min-height: 300px; }
  .stack-topline { left: 16px; right: 16px; top: 16px; font-size: 8px; }
  .stack-center { width: 122px; height: 122px; }
  .stack-thread { width: 205px; height: 135px; }
  .thread-b { width: 170px; height: 200px; }
  .stack-crm { left: 5%; top: 23%; }
  .stack-conversations { right: 3%; top: 31%; }
  .stack-ai { left: 12%; bottom: 18%; }
  .stack-caption { left: 16px; right: 16px; bottom: 16px; }
  .catalog { padding-block: 46px 66px; }
  .catalog-heading { display: block; padding-bottom: 21px; }
  .catalog-heading h2 { font-size: 34px; }
  .catalog-heading > p { margin-top: 14px; font-size: 14px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 0; padding: 24px; }
  .product-card-top { margin-bottom: 14px; }
  .product-card h3 { font-size: 25px; }
  .product-card p { font-size: 14px; line-height: 1.65; }
  .implementation-band { margin-bottom: 58px; padding: 25px 22px; grid-template-columns: 34px 1fr; gap: 15px; }
  .implementation-index { grid-row: span 2; }
  .implementation-index i { height: 35px; }
  .implementation-copy h2 { font-size: 29px; }
  .implementation-band > p { grid-column: 2; font-size: 14px; }
  .products-conversation { min-height: auto; margin-block: 0 58px; padding: 105px 24px 27px; align-items: flex-start; flex-direction: column; gap: 24px; }
  .products-conversation .conversation-mark { top: 22px; left: auto; right: 23px; width: 62px; height: 62px; transform: none; font-size: 42px; }
  .products-conversation .conversation-spark { width: 16px; height: 16px; top: 4px; right: 3px; }
  .products-conversation .conversation-copy h2 { font-size: 31px; }
}
