/* ═══════════════════════════════════════════════════════
   Product pages — /sheets and /excel
   Shared shape; the two pages differ only in content.
   First real application of the 2026 graphic language.
   ═══════════════════════════════════════════════════════ */

.product {
  flex: 1;
}

/* ── Hero ───────────────────────────────────────────────
   Graph-paper ground referencing engineering drawings, faded out before it
   reaches body copy so the grid never competes with the text. */
.product-hero {
  position: relative;
  padding: 72px 48px 64px;
  border-bottom: var(--hairline) solid var(--border-subtle);
  overflow: hidden;
}
.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      to right,
      var(--grid-line-strong) 0 1px,
      transparent 1px var(--grid-major)
    ),
    repeating-linear-gradient(
      to bottom,
      var(--grid-line-strong) 0 1px,
      transparent 1px var(--grid-major)
    ),
    repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px var(--grid-minor)),
    repeating-linear-gradient(to bottom, var(--grid-line) 0 1px, transparent 1px var(--grid-minor));
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  pointer-events: none;
}
.product-hero > * {
  position: relative;
}

.product-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}

.product-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin: 16px 0 0;
}
.product-lede {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  max-width: 52ch;
  margin-top: 16px;
}

/* Host-app mark, framed with registration corners rather than a card. */
.product-mark {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  background: var(--surface-raised);
  border: var(--hairline) solid var(--border-subtle);
  position: relative;
  flex: none;
}
.product-mark img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}
.product-mark::before,
.product-mark::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 0 solid var(--accent);
}
.product-mark::before {
  top: -7px;
  left: -7px;
  border-top-width: var(--hairline);
  border-left-width: var(--hairline);
}
.product-mark::after {
  right: -7px;
  bottom: -7px;
  border-right-width: var(--hairline);
  border-bottom-width: var(--hairline);
}

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--status-info-text);
  background: var(--status-info-bg);
  border: var(--hairline) solid var(--border-accent);
  padding: 5px 10px;
  margin-top: 24px;
}
.product-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  flex: none;
}

/* ── Sections ─────────────────────────────────────────── */
.product-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 48px;
}
.product-section + .product-section {
  border-top: var(--hairline) solid var(--border-subtle);
}
.product-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin: 12px 0 8px;
}
.product-section > p {
  color: var(--text-secondary);
  max-width: 62ch;
}

/* ── Capability grid ──────────────────────────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: var(--hairline) solid var(--border-subtle);
  margin-top: 32px;
}
.cap {
  background: var(--surface-raised);
  padding: 24px;
}
.cap h3 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 12px 0 6px;
}
.cap p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}
.cap .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

/* ── Steps ────────────────────────────────────────────── */
.steps-list {
  counter-reset: step;
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 1px;
  background: var(--border-subtle);
  border: var(--hairline) solid var(--border-subtle);
}
.steps-list li {
  counter-increment: step;
  background: var(--surface-raised);
  padding: 22px 24px 22px 68px;
  position: relative;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 22px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-on-accent);
  background: var(--accent);
}
.steps-list strong {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.steps-list p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}
.steps-list code {
  font-family: var(--font-mono);
  font-size: 0.8125em;
  background: var(--code-inline-bg);
  color: var(--code-inline-fg);
  padding: 1px 5px;
}

/* ── Screenshots ──────────────────────────────────────── */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.shot figure {
  margin: 0;
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border: var(--hairline) solid var(--border-subtle);
  background: var(--surface-raised);
}
.shot figcaption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: var(--leading-normal);
}

/* ── Support ──────────────────────────────────────────── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.support-card {
  border: var(--hairline) solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  background: var(--surface-raised);
  padding: 20px 22px;
}
.support-card h3 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.support-card p,
.support-card a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}
.support-card a {
  color: var(--text-link);
  text-decoration: none;
}
.support-card a:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
}

@media (max-width: 860px) {
  .product-hero,
  .product-section {
    padding-left: 24px;
    padding-right: 24px;
  }
  .product-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .product-mark {
    order: -1;
  }
}
