/* =========================================================
   ROUTIX — PRODUCT LANDING PAGES
   ========================================================= */

.product-shell {
  --product-accent: var(--signal);
  --product-accent-soft: var(--paper-3);
}

.product-hero {
  padding-block: clamp(64px, 8vw, 112px);
  border-bottom: 1px solid var(--line);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}

.product-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--s-7);
}

.product-logo {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
  object-fit: contain;
  padding: 10px;
}

.product-name {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.025em;
}

.product-layer {
  margin-top: 7px;
  color: var(--mid);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
}

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: var(--s-5);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
}

.product-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--product-accent);
}

.product-title {
  max-width: 14ch;
  font-family: var(--font-serif);
  font-size: clamp(48px, 6.5vw, 92px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.product-title em {
  color: var(--product-accent);
  font-style: italic;
}

.product-summary {
  max-width: 60ch;
  margin-top: var(--s-6);
  color: var(--slate);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-8);
}

.product-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--paper-2);
}

.product-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--mid);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
}

.product-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-fact {
  min-height: 132px;
  padding: var(--s-5);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.product-fact:nth-child(-n+2) { border-top: 0; }
.product-fact:nth-child(odd) { border-left: 0; }

.product-fact strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--fs-24);
  font-weight: 400;
  letter-spacing: -.01em;
}

.product-fact span {
  color: var(--mid);
  font-size: 13px;
  line-height: 1.5;
}

.product-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-10);
}

.product-copy {
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.product-copy .meta {
  color: var(--product-accent);
}

.product-copy h2 {
  max-width: 15ch;
  margin: var(--s-4) 0 var(--s-5);
}

.product-copy p {
  color: var(--slate);
  font-size: 17px;
  line-height: 1.65;
}

.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.product-feature {
  min-height: 214px;
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--paper-2);
}

.product-feature-index {
  display: block;
  margin-bottom: var(--s-8);
  color: var(--product-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tr-eyebrow);
}

.product-feature h3 {
  margin-bottom: var(--s-3);
  font-family: var(--font-serif);
  font-size: var(--fs-24);
  font-weight: 400;
  letter-spacing: -.015em;
}

.product-feature p {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.55;
}

.product-stack {
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.product-stack .meta,
.product-stack p {
  color: #aaa8a1;
}

.product-stack h2 {
  color: var(--paper);
}

.product-stack-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: var(--s-12);
  align-items: start;
}

.product-stack-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #34363a;
  border-radius: var(--r-2);
}

.product-stack-item {
  min-height: 132px;
  padding: var(--s-5);
  border-top: 1px solid #34363a;
  border-left: 1px solid #34363a;
}

.product-stack-item:nth-child(-n+2) { border-top: 0; }
.product-stack-item:nth-child(odd) { border-left: 0; }

.product-stack-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: var(--fs-20);
  font-weight: 400;
}

.product-stack-item span {
  color: #aaa8a1;
  font-size: 13px;
  line-height: 1.45;
}

.product-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--s-6);
}

.product-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid #45474c;
  border-radius: var(--r-pill);
  color: #d8d6cf;
  font-family: var(--font-mono);
  font-size: 11px;
}

.product-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
}

.product-roadmap-step {
  min-height: 180px;
  padding: var(--s-6);
  border-left: 1px solid var(--line);
  background: var(--paper-2);
}

.product-roadmap-step:first-child { border-left: 0; }

.product-roadmap-step .step {
  color: var(--product-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
}

.product-roadmap-step h3 {
  margin: var(--s-4) 0 var(--s-3);
  font-family: var(--font-serif);
  font-size: var(--fs-24);
  font-weight: 400;
}

.product-roadmap-step p {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.55;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
}

.ecosystem-card {
  min-width: 0;
  padding: var(--s-5);
  border-left: 1px solid var(--line);
  background: var(--paper-2);
  color: inherit;
}

.ecosystem-card:first-child { border-left: 0; }
.ecosystem-card:hover { background: var(--paper-3); }
.ecosystem-card.current { box-shadow: inset 0 3px 0 var(--product-accent); }

.ecosystem-card img {
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-4);
  object-fit: contain;
}

.ecosystem-card strong {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-serif);
  font-size: var(--fs-20);
  font-weight: 400;
}

.ecosystem-card span {
  color: var(--mid);
  font-size: 12px;
  line-height: 1.45;
}

.product-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-8);
  align-items: end;
}

@media (max-width: 980px) {
  .product-hero-grid,
  .product-stack-grid {
    grid-template-columns: 1fr;
  }
  .product-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ecosystem-card {
    border-top: 1px solid var(--line);
  }
  .ecosystem-card:nth-child(odd) { border-left: 0; }
  .ecosystem-card:nth-child(-n+2) { border-top: 0; }
}

@media (max-width: 720px) {
  .product-hero-grid,
  .product-split,
  .product-feature-grid,
  .product-roadmap,
  .product-cta {
    grid-template-columns: 1fr;
  }
  .product-panel-grid,
  .product-stack-list {
    grid-template-columns: 1fr;
  }
  .product-fact,
  .product-stack-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .product-stack-item { border-top-color: #34363a; }
  .product-fact:first-child,
  .product-stack-item:first-child { border-top: 0; }
  .product-roadmap-step {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .product-roadmap-step:first-child { border-top: 0; }
}

@media (max-width: 520px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
  .ecosystem-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .ecosystem-card:nth-child(2) { border-top: 1px solid var(--line); }
}
