/* Product presentation. Platform structure stays shared; each product module
   chooses the palette, geometry and working-surface details that belong to its
   subject instead of inheriting a generic dashboard theme. */

.product { --product-ink: #102a43; --product-paper: #f7fafc; --product-signal: #d97706; }

.product-hero {
  position: relative;
  min-height: clamp(22rem, 56vw, 38rem);
  margin: 0 0 clamp(2rem, 6vw, 4.5rem);
  overflow: hidden;
  border-radius: clamp(.35rem, 1.6vw, 1.1rem);
  isolation: isolate;
  background: var(--product-ink);
  color: #fff;
  box-shadow: 0 1.5rem 4rem rgba(8, 18, 28, .22);
}

.product-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 15, 25, .92) 0%, rgba(4, 15, 25, .66) 38%, rgba(4, 15, 25, .08) 72%);
}

.product-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero-copy {
  display: flex;
  min-height: inherit;
  width: min(38rem, 72%);
  padding: clamp(2rem, 7vw, 5.5rem);
  flex-direction: column;
  justify-content: flex-end;
}

.product-hero .hero-title {
  max-width: 16ch;
  margin: 1rem 0 .65rem;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.product-hero .hero-excerpt {
  max-width: 50ch;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.product-job {
  width: fit-content;
  margin: 1.25rem 0 0;
  padding: .55rem .75rem;
  border-left: .22rem solid var(--product-signal);
  background: rgba(3, 12, 18, .55);
  color: #fff;
  font-weight: 650;
  line-height: 1.35;
}

.product-mark { width: 4rem; height: 4rem; border-radius: 1rem; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.25); }
.product-hero-plain { min-height: auto; color: var(--text); background: var(--surface); box-shadow: none; }
.product-hero-plain::after { display: none; }
.product-hero-plain .product-hero-copy { width: auto; min-height: auto; padding: 1.5rem; }
.product-hero-plain .hero-title { color: var(--text); }
.product-hero-plain .hero-excerpt { color: var(--muted); }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.tool-grid > li { min-width: 0; }
.tool-grid .tool-card {
  display: grid;
  grid-template-rows: 13rem 1fr;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: .75rem;
}
.product-card-image { width: 100%; height: 13rem; object-fit: cover; }
.product-card-body, .tool-grid .tool-card-body { position: relative; padding: 1.2rem 1.25rem 1.35rem; }
.product-card-mark { position: absolute; top: -2rem; right: 1rem; width: 3.75rem; height: 3.75rem; border-radius: .9rem; box-shadow: 0 .35rem 1rem rgba(0,0,0,.23); }
.tool-grid .tool-card-title { padding-right: 3.5rem; }
.tool-grid .tool-card-answer { margin-top: auto; }

.tool-form .input,
.tool-form select.input,
.pane .input {
  min-height: 3rem;
  padding: .72rem .85rem;
  border: 1.5px solid color-mix(in srgb, var(--border) 76%, var(--product-ink));
  border-radius: .45rem;
  background: color-mix(in srgb, var(--bg) 94%, var(--product-paper));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.tool-form .input:hover, .pane .input:hover { border-color: color-mix(in srgb, var(--border) 45%, var(--product-ink)); }
.tool-form .input:focus-visible, .pane .input:focus-visible {
  border-color: var(--product-signal);
  outline: 3px solid color-mix(in srgb, var(--product-signal) 28%, transparent);
  outline-offset: 1px;
}

.vault-backup { margin-top: 3rem; padding: 1.2rem 1.35rem; border-top: 1px solid var(--border); }

@media (max-width: 44rem) {
  .product-hero { min-height: 31rem; }
  .product-hero::after { background: linear-gradient(0deg, rgba(4,15,25,.94) 0%, rgba(4,15,25,.48) 58%, rgba(4,15,25,.08) 100%); }
  .product-hero-copy { width: auto; padding: 1.5rem; justify-content: flex-end; }
  .product-hero .hero-title { font-size: clamp(2.15rem, 12vw, 3.8rem); }
  .tool-grid .tool-card { grid-template-rows: 11rem 1fr; }
  .product-card-image { height: 11rem; }
}

@media (prefers-reduced-motion: reduce) {
  .product * { scroll-behavior: auto !important; }
}
