/* ============================================================
   Products section (home) and product links.
   Each product has its own site and brand; TechMils introduces it on its
   dark product stage and links out. Product colours appear only in the
   product's own logo, so the TechMils palette stays intact.
   ============================================================ */
.products-stage .container { position: relative; z-index: 1; }
.products-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: clamp(1.5rem, 5vw, 6rem); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.products-intro h2 { max-width: 15ch; color: var(--paper-bright); }
.products-intro .lead { color: #bbc5d4; }

.product-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background: var(--night-2);
  color: #bbc5d4;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
.product-card::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--orange); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.product-card:hover, .product-card:focus-visible { border-color: rgba(255, 255, 255, .34); box-shadow: 0 28px 60px rgba(0, 0, 0, .3); text-decoration: none; transform: translateY(-4px); }
.product-card:hover::before, .product-card:focus-visible::before { transform: scaleX(1); }
.product-card:focus-visible { outline-color: var(--teal-bright); }

.product-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.product-card-logo { width: 56px; height: 56px; border-radius: 13px; }
.product-card-monogram { display: grid; width: 56px; height: 56px; place-items: center; border: 1px dashed rgba(255, 255, 255, .35); border-radius: 13px; color: var(--paper-bright); font-family: var(--font-display); font-size: 1.5rem; font-weight: 640; }
.product-card-domain { color: #ffc28a; font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .02em; }
.product-card-kicker { display: block; margin-bottom: .7rem; color: #ffb575; font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.product-card-name { display: block; margin-bottom: 1rem; color: var(--paper-bright); font-family: var(--font-display); font-size: var(--step-3); font-weight: 640; letter-spacing: -.048em; line-height: 1; }
.product-card-copy { display: block; max-width: 52ch; font-size: 1rem; line-height: 1.65; }
.product-card-copy .is-placeholder { color: #ffc28a; }
.product-card-points { display: grid; gap: .5rem; margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line-light); font-size: .9rem; }
.product-card-points > span { display: flex; gap: .65rem; }
.product-card-points > span::before { flex: none; width: 6px; height: 6px; margin-top: .6em; border-radius: 50%; background: var(--teal-bright); content: ""; }
.product-card-cta { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: 2rem; color: var(--paper-bright); font-weight: 600; }
.product-card:hover .product-card-cta { color: #ffc28a; }

.contact-products { margin-top: 1.4rem; color: var(--muted); font-size: .93rem; }

@media (max-width: 900px) {
  .products-intro, .product-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .product-card, .product-card::before { transition: none; }
  .product-card:hover, .product-card:focus-visible { transform: none; }
}

/* ---------- Home hero: the product panel ----------
   Reuses the hero-figure frame; the two rows link out to the product sites.
   Hidden on phones, where the hero's "Our products" button does the same job. */
.flow-products { display: grid; gap: .6rem; }
.flow-product {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  background: rgba(6, 111, 101, .05);
  color: var(--ink-2);
  animation: fade-up .6s var(--ease) both;
  transition: background .25s, border-color .25s;
}
.flow-product:nth-child(1) { animation-delay: .35s; }
.flow-product:nth-child(2) { animation-delay: .5s; }
.flow-product:hover, .flow-product:focus-visible { border-color: var(--line-strong); border-left-color: var(--orange); background: rgba(255, 121, 0, .07); text-decoration: none; }
.flow-product img { width: 40px; height: 40px; border-radius: 10px; }
.flow-product-text b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1rem; font-weight: 640; letter-spacing: -.02em; line-height: 1.2; }
.flow-product-text > span { display: block; margin-top: .15rem; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.flow-product-go { color: var(--orange-dark); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .flow-product { animation: none; }
}

/* The headline stays on two lines beside the product panel */
@media screen and (min-width: 761px) {
  .home-hero--figure h1 { font-size: clamp(3rem, 5vw, 4.2rem); }
}
@media (max-width: 760px) {
  .hero-flow { display: none; }
}
