/* One-screen splash layout for tools: the interactive visual on the right fills the
   viewport under the site nav, a compact intro and controls sit on the left, and
   everything else follows below the fold. --sp-top is set by /tools/splash.js.
   Desktop areas: intro and ctrl stack in the left column, stage spans both rows.
   Phones: intro, stage, ctrl, so the visual is on the first screen. */
.ax-app.sp-app { max-width: 1320px; }
.sp-hero {
  display: grid; gap: 14px; margin: 0 0 8px;
  grid-template-areas: "intro" "stage" "ctrl";
  grid-template-rows: auto minmax(330px, 1fr) auto;
}
@media (min-width: 960px) {
  .sp-hero {
    height: calc(100svh - var(--sp-top, 96px) - 14px); min-height: 560px;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "intro stage" "ctrl stage";
  }
}
.sp-intro, .sp-ctrl { min-width: 0; border: 2px solid var(--ax-line); border-radius: 18px; background: #fff; padding: 16px 18px; }
.sp-intro { grid-area: intro; display: grid; gap: 10px; }
.sp-ctrl { grid-area: ctrl; display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: auto; }
.sp-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-top .ax-head-icon { width: 40px; height: 40px; }
.sp-h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem) !important; line-height: 1.05; }
.sp-lede { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ax-text); }
.sp-stage { grid-area: stage; display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 2px solid var(--ax-line); border-radius: 18px; background: #f8fbff; padding: 12px; }
.sp-stage-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sp-k { font-family: var(--ax-mono); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ax-dim); }
.sp-canvas { position: relative; flex: 1 1 auto; min-height: 0; }
.sp-canvas > svg { display: block; width: 100%; height: 100%; }
.sp-note { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--ax-muted); }
.sp-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--ax-mono); font-size: 12px; color: var(--ax-muted); }
.sp-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sp-legend i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(15,23,42,.35); }
.sp-tip { position: absolute; pointer-events: none; z-index: 5; background: #fff; border: 2px solid var(--ax-ink); border-radius: 12px; padding: 8px 12px; font-size: 13px; line-height: 1.45; color: var(--ax-text); min-width: 180px; max-width: 260px; }
.sp-tip b { display: block; font-family: var(--ax-display); font-size: 15px; color: var(--ax-ink); overflow-wrap: break-word; }
.sp-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ax-accent); text-decoration: none; margin-top: auto; }
.sp-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sp-hero .ax-tiles { gap: 8px; }
.sp-hero .ax-tile { padding: 10px 12px; }
.sp-hero .ax-tile-value { font-size: 1.25rem; }
@media (max-width: 959px) {
  .sp-intro, .sp-ctrl { padding: 12px 14px; }
  .sp-top .ax-head-icon, .sp-more, .sp-lede { display: none; }
  .sp-h1 { font-size: 1.6rem !important; }
  .sp-stage { padding: 8px; }
}
