/* "Know <tool>" pages (/sak, /zonpy, /tdas, ...): one layout for every tool
   and module of the catalog, born on the SAK page. Hero with the catalog logo,
   a purpose block with a wide diagram, feature rows (text + diagram) and a
   grid of smaller cards, then the call to action. Loaded after landing.css. */

.hero {
  min-height: 72vh;
  padding: 64px 24px 48px;
}
.logo-wrap { margin-bottom: 28px; }
.logo-wrap svg { width: 300px; max-width: 80vw; height: auto; }
.hero p { max-width: 620px; }
.hero h1 { line-height: 1.35; padding-bottom: 0.1em; }
.hero-module {
  font-size: var(--fs-5);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.hero-module a { color: inherit; }

/* ── FEATURE ROWS (text + diagram) ── */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-shot { order: 1; }
.feature-row + .feature-row { margin-top: 72px; }

.feature-text p { color: var(--text-dim); font-size: var(--fs-12); line-height: 1.75; margin-bottom: 16px; }
.feature-text ul { color: var(--text-dim); font-size: var(--fs-11); line-height: 1.7; margin: 0 0 16px 20px; }
.feature-text li { margin-bottom: 6px; }
.feature-kicker { font-size: var(--fs-5); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.feature-text h3 { font-size: var(--fs-14); font-weight: 700; color: var(--text-strong); margin-bottom: 14px; }

/* ── CHIP PANEL (sits inside .diagram-card) ── */
.chip-panel { display: flex; flex-direction: column; justify-content: center; min-height: 164px; padding: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 22px; }
.chip-row:last-child { margin-bottom: 0; }
.chip-row-label { font-size: var(--fs-3); text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 10px; }
.chip {
  font-size: var(--fs-8);
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--navy-card);
}
.chip--accent { border-color: var(--teal); color: var(--teal); background: color-mix(in srgb, var(--tint-brand) 8%, transparent); }

/* ── DIAGRAM CARD (drawn SVG illustrations, in place of raw screenshots) ── */
.diagram-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--shadow) 25%, transparent);
}
.diagram-card svg { display: block; width: 100%; height: auto; }
.diagram-card--wide { max-width: 1100px; margin: 0 auto; }

/* ── PURPOSE TEXT (full-width text block above the wide diagram) ── */
.purpose-text { max-width: 700px; margin: 0 auto 36px; }
.purpose-text h3 { font-size: var(--fs-14); font-weight: 700; color: var(--text-strong); margin-bottom: 14px; }
.purpose-text p { color: var(--text-dim); font-size: var(--fs-12); line-height: 1.75; margin-bottom: 16px; }
.screenshot-caption {
  font-size: var(--fs-7);
  color: var(--text-dim);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

@media (max-width: 1024px) {
  .feature-row, .feature-row.reverse { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-shot { order: initial; }
}

/* ── MORE-FEATURES GRID (flex + centered wrap, so a leftover card in the
   last row centers instead of hugging the left edge) ── */
.util-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.util-card {
  flex: 0 1 300px;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
@media (max-width: 1024px) { .util-card { flex-basis: 45%; } }
@media (max-width: 600px) { .util-card { flex-basis: 100%; } }
.util-name { font-weight: 700; color: var(--text-strong); margin-bottom: 6px; }
.util-desc { font-size: var(--fs-7); color: var(--text-dim); line-height: 1.5; }

/* ── WORKS WITH: where the data comes from → this tool → where its output
   opens. Each item links to the other tool's own page. ── */
.flow {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 220px) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.flow-col { display: flex; flex-direction: column; gap: 10px; }
.flow-label { font-size: var(--fs-3); text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 2px; }
.flow-item {
  display: block;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
a.flow-item:hover { border-color: var(--teal); }
.flow-item b { display: block; color: var(--text-strong); margin-bottom: 2px; }
.flow-item span { font-size: var(--fs-7); color: var(--text-dim); line-height: 1.45; }
.flow-center {
  text-align: center;
  padding: 22px 16px;
  border: 2px solid var(--teal);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--tint-brand) 8%, transparent);
  font-weight: 700;
  font-size: var(--fs-13);
  color: var(--text-strong);
}
.flow-arrow { color: var(--teal); font-size: var(--fs-14); }
@media (max-width: 1024px) {
  .flow { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
  .flow-arrow { text-align: center; transform: rotate(90deg); }
}
