/* Precision Transmission v3 — site extras.
   tokens.css is copied verbatim from design/tokens.css and is NOT edited here.
   This file only adds components tokens.css does not define:
   tabs, grids, result blocks, breadcrumbs, related modules, search, figures. */
/* Sticky header is ~64px tall on desktop and taller when its nav wraps, so
   every anchor target needs a margin comfortably above that height, or the
   heading lands hidden behind the header. 120px covers both cases. */
section[id], h2[id], li[id] { scroll-margin-top: 320px; }
#after-sales { scroll-margin-top: 320px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4); }
.tabs button {
  background: #ffffff; color: var(--color-ink); border: 2px solid var(--color-ink);
  border-radius: var(--radius-md); padding: 8px 12px; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); font-size: 14px;
}
.tabs button.on { background: var(--color-ink); color: #ffffff; }
.out {
  white-space: pre-wrap; background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-md); padding: var(--space-4); margin-top: var(--space-4);
  font-size: 14px; line-height: 1.65;
}
.out b { color: var(--color-ink); }
.breadcrumb { font-size: 14px; color: var(--color-muted-2); padding: var(--space-4) 0 0; }
.breadcrumb a { color: var(--color-muted-2); }
.figure { margin: 0 0 var(--space-4); }
.figure img, .figure svg { width: 100%; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: #ffffff; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-8); }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; } }
.related h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-brand); }
.related a { display: block; margin: 0 0 var(--space-2); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { padding-left: var(--space-8); position: relative; margin-bottom: var(--space-3); }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: var(--radius-md); background: var(--color-ink);
  color: #ffffff; text-align: center; line-height: 24px; font-weight: 700; font-size: 14px;
}
.search-box { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.search-box input { flex: 1 1 280px; }
.search-group { margin-top: var(--space-6); }
.search-group h3 { border-bottom: 2px solid var(--color-ink); padding-bottom: var(--space-2); }
.search-hit { display: block; padding: var(--space-2) 0; border-bottom: 1px solid var(--color-line); text-decoration: none; }
.search-hit b { color: var(--color-ink); }
.search-hit span { display: block; color: var(--color-muted-2); font-size: 14px; }
.cmp-card input[type="checkbox"] { width: auto; accent-color: var(--color-brand); }
.hero .figure { margin: 0; }
.lead { font-size: var(--text-body-large); color: var(--color-muted); }
.checklist li { margin-bottom: var(--space-2); }
@media print {
  .site-header, .site-footer, .related, .breadcrumb { display: none !important; }
  body { background: #ffffff; }
}

/* ---- Homepage hero title: text gradient only (landing-page-design B5) ---- */
/* Gradient sits on the title text, never on a background. Light theme, */
/* site ink #12212e to #666666, left to right. */
.hero-home h1 {
  background: linear-gradient(90deg, #12212e, #666666);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* ---- Tagline reveal (landing-page-design B11) ---- */
.tagline {
  font-size: 36px;
  line-height: 40px;
  font-weight: 700;
  max-width: 680px;
  margin: 0;
  text-wrap: balance;
}
.tagline-word {
  opacity: 0.3;
  transition: opacity 800ms cubic-bezier(0.32,0.72,0,1);
}
.tagline-word.on { opacity: 1; }
/* ---- Scroll reveal (landing-page-design B7 + design-to-motion website rules) ---- */
/* Card kind: rise 24px, scale 0.985, blur 6px to sharp. Added by JS only, */
/* so no-JS still shows content. IntersectionObserver fires once; the */
/* observer unobserves after firing, so leaving the viewport never replays. */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  filter: blur(6px);
  transition: transform 900ms cubic-bezier(0.32,0.72,0,1), opacity 700ms cubic-bezier(0.32,0.72,0,1), filter 700ms cubic-bezier(0.32,0.72,0,1);
}
.reveal.reveal-in { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .tagline-word { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}
