/* A tool's page (git-dummy, git-story, git-tagup), laid out like the git-sim
   page: the hero card with a bold tagline, three numbered points with chips
   under each saying where or how it applies, the command in a dark box with
   the calls to action beside it; then sections led by an icon tile, a heading
   and a lede: tiles, numbered steps, tables, code, questions. Light palette,
   the site font, weights capped at 700. Each page sets --accent. */

main.tool-page { --text: var(--ic-ink); --body: var(--ic-text); --muted: var(--ic-muted); --panel: var(--ic-panel); --rule: var(--ic-rule); --accent: var(--ic-accent); --accent-soft: var(--ic-accent-soft); --accent-ink: var(--ic-accent-ink); --accent-line: var(--ic-accent-line); --mono: "Cascadia Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace; }
main.tool-page.git-dummy { --accent: var(--ic-emerald); --accent-soft: var(--ic-em-soft); --accent-ink: var(--ic-em-ink); --accent-line: var(--ic-em-line); }
main.tool-page.git-story { --accent: var(--ic-amber); --accent-soft: var(--ic-amber-soft); --accent-ink: var(--ic-amber-ink); --accent-line: var(--ic-amber-line); }
main.tool-page.git-tagup { --accent: var(--ic-rose); --accent-soft: var(--ic-rose-soft); --accent-ink: var(--ic-rose-ink); --accent-line: var(--ic-rose-line); }

/* ---- hero ---------------------------------------------------------------------- */
main.tool-page .tool-intro.hero-card { text-align: left; padding-bottom: 40px; }
main.tool-page .tool-intro .tagline { font-size: 23px; line-height: 1.5; color: var(--ic-lead) !important; margin: 0 0 14px; max-width: 860px; }
main.tool-page .tool-intro .tagline strong { color: var(--ic-ink); font-weight: 700; }
main.tool-page .tool-intro .hero-points { list-style: none; counter-reset: point; margin: 6px 0 30px; padding: 0; max-width: 860px; display: grid; gap: 18px; }
main.tool-page .tool-intro .hero-points li { counter-increment: point; position: relative; padding-left: 46px; font-size: 17.5px; line-height: 1.5; font-weight: 700; color: var(--ic-ink); }
main.tool-page .tool-intro .hero-points li::before { content: counter(point); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: var(--ic-kicker-bg); color: #fff; font: 700 14px/30px sans-serif; font-family: inherit; text-align: center; }
main.tool-page .tool-intro .hero-points .where { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
main.tool-page .tool-intro .hero-points .where i { font: 600 12px/1 sans-serif; font-family: inherit; font-style: normal; color: var(--ic-accent-ink); background: var(--ic-accent-soft); border: 1px solid var(--ic-accent-line); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
main.tool-page .tool-intro .hero-points li:nth-child(2) .where i { color: var(--ic-em-ink); background: var(--ic-em-soft); border-color: var(--ic-em-line); }
main.tool-page .tool-intro .hero-points li:nth-child(3) .where i { color: var(--ic-rose-ink); background: var(--ic-rose-soft); border-color: var(--ic-rose-line); }
main.tool-page .tool-intro code { font: 600 .9em/1.2 var(--mono); color: var(--ic-ink); background: var(--ic-accent-soft); border: 1px solid var(--ic-accent-line); border-radius: 5px; padding: 1px 6px; }
main.tool-page .tool-intro .hero-run { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0; }
main.tool-page .tool-intro .hero-run pre { display: inline-block; margin: 0; padding: 14px 22px; background: var(--ic-kicker-bg); border: 0; border-radius: 12px; color: #fff !important; font: 16px/1.4 var(--mono); min-width: min(100%, 380px); box-shadow: 0 14px 30px -16px rgba(30,27,75,.7); }
main.tool-page .tool-intro .hero-run pre .p { color: #a5b4fc; }
main.tool-page .tool-intro .hero-run pre .cursor { display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; background: #a5b4fc; animation: tp-blink 1s steps(1) infinite; }
@keyframes tp-blink { 50% { opacity: 0; } }
main.tool-page .tool-intro .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
main.tool-page .tool-intro .hero-actions a { display: inline-block; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--accent); font: 700 14px/1 sans-serif; font-family: inherit; color: var(--accent) !important; background: var(--ic-card); text-decoration: none !important; transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
main.tool-page .tool-intro .hero-actions a:hover { background: var(--accent); color: #fff !important; transform: translateY(-2px); box-shadow: 0 10px 20px -12px var(--accent); }
main.tool-page .tool-intro .hero-actions a.primary { background: var(--accent); color: #fff !important; box-shadow: 0 8px 18px -10px var(--accent); }
main.tool-page .tool-intro .hero-actions a.primary:hover { filter: brightness(1.08); }

/* ---- body ---------------------------------------------------------------------- */
.tp-wrap { max-width: 960px; margin: 0 auto; padding: 0 18px 20px; color: var(--body); }
.tp-wrap h2 { font-size: 26px; line-height: 1.25; font-weight: 700; margin: 44px 0 10px; color: var(--text); scroll-margin-top: 90px; text-align: left; text-transform: none; letter-spacing: -.01em; }
.tp-wrap h3 { font-size: 17px; line-height: 1.3; font-weight: 700; margin: 20px 0 6px; color: var(--text); }
.tp-wrap p, .tp-wrap li { font-size: 16px; line-height: 1.6; color: var(--body); margin: 0 0 12px; }
.tp-wrap ul { padding-left: 22px; }
.tp-wrap ul li { margin-bottom: 6px; }
.tp-wrap code { font: 14px/1.4 var(--mono); color: var(--text); background: var(--panel); border: 1px solid var(--rule); border-radius: 5px; padding: 1px 6px; }
.tp-wrap pre { margin: 8px 0 14px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; overflow-x: auto; color: var(--body) !important; font: 14px/1.5 var(--mono); }
.tp-wrap pre code { border: 0; background: none; padding: 0; font-size: 14px; color: inherit !important; }
.tp-wrap pre .p { color: var(--ic-muted); user-select: none; }
.tp-wrap pre .o { color: var(--muted); }
.tp-wrap pre .c { color: var(--muted); font-style: italic; }
.tp-wrap pre .s { color: var(--ic-amber-ink); }
.tp-wrap .fine { color: var(--muted); font-size: 14px; }
main.tool-page .tp-wrap a:not(.cta-a) { color: var(--accent) !important; font-weight: 600; }
main.tool-page .tp-wrap a:not(.cta-a):hover { color: var(--accent-ink) !important; }
.tp-wrap table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 15px; line-height: 1.5; }
.tp-wrap th, .tp-wrap td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tp-wrap th { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.tp-wrap td code { white-space: nowrap; }
.tp-wrap details { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 16px; margin: 8px 0; background: var(--panel); }
.tp-wrap summary { cursor: pointer; font-size: 16px; line-height: 1.4; font-weight: 700; color: var(--text); }
.tp-wrap details p { margin: 10px 0 4px; }

/* a section's head: icon tile, heading, lede */
.tp-wrap .sec-head { display: flex; gap: 16px; align-items: flex-start; margin: 64px 0 18px; scroll-margin-top: 90px; }
.tp-wrap .sec-head:first-child { margin-top: 36px; }
.tp-wrap .sec-head > svg { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tp-wrap .sec-head svg .fill { fill: var(--accent); stroke: none; }
.tp-wrap .sec-head h2 { margin: 2px 0 4px; font-size: 26px; }
.tp-wrap .sec-head .lede { margin: 0; color: var(--muted); font-size: 16px; }

/* tiles: small cards for use cases and features */
.tp-wrap .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 8px; }
.tp-wrap .tile { border: 1px solid var(--rule); border-radius: 14px; background: var(--ic-card); padding: 16px 18px; box-shadow: 0 2px 6px -3px rgba(30,27,75,.12); }
.tp-wrap .tile b { display: block; font-size: 15.5px; line-height: 1.3; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.tp-wrap .tile p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.tp-wrap .tile p:last-child { margin: 0; }

/* numbered steps */
.tp-wrap .steps { display: grid; gap: 12px; }
.tp-wrap .step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; border: 1px solid var(--rule); border-radius: 14px; background: var(--panel); padding: 16px; }
.tp-wrap .step > b { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 16px/1 sans-serif; font-family: inherit; }
.tp-wrap .step > div { min-width: 0; }
.tp-wrap .step > div > span { display: block; font-size: 15px; line-height: 1.3; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.tp-wrap .step pre { margin: 0 0 10px; background: var(--ic-card); }
.tp-wrap .step .fine { margin: 0; }

/* a graph or a video in a dark screen */
.tp-wrap .screen { display: block; background: #0d1117; border-radius: 14px; padding: 10px; margin: 14px 0 8px; box-shadow: 0 16px 34px -18px rgba(30,27,75,.5); text-decoration: none !important; }
.tp-wrap .screen img, .tp-wrap .screen video { display: block; width: 100%; height: auto; border-radius: 8px; }
.tp-wrap .caption { font-size: 14px; color: var(--muted); margin: 0 0 8px; }

/* the strip of calls to action at the end */
.tp-wrap .next-steps { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 18px; margin: 68px 0 20px; padding: 24px 20px 26px; border: 1px solid var(--rule); border-radius: 18px; background: var(--panel); }
.tp-wrap .next-steps .ns-lead { flex-basis: 100%; text-align: center; font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--text); letter-spacing: -.01em; margin: 0; }
.tp-wrap .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }
main.tool-page .tp-wrap .cta a.cta-a { display: inline-block; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--accent); font: 700 14px/1 sans-serif; font-family: inherit; color: var(--accent) !important; background: var(--ic-card); text-decoration: none !important; transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
main.tool-page .tp-wrap .cta a.cta-a:hover { background: var(--accent); color: #fff !important; transform: translateY(-2px); box-shadow: 0 10px 20px -12px var(--accent); }
main.tool-page .tp-wrap .cta a.cta-a.primary { background: var(--accent); color: #fff !important; box-shadow: 0 8px 18px -10px var(--accent); }
main.tool-page .tp-wrap .cta a.cta-a.primary:hover { filter: brightness(1.08); }

@media (max-width: 860px) {
	.tp-wrap .tiles { grid-template-columns: minmax(0, 1fr); }
	main.tool-page .tool-intro .tagline { font-size: 20px; }
	main.tool-page .tool-intro .hero-points li { font-size: 16px; }
	main.tool-page .tool-intro .hero-run pre { min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; font-size: 14px; overflow-x: auto; white-space: pre; }
	.tp-wrap .next-steps { border-radius: 14px; padding: 18px 16px 20px; gap: 12px; }
	.tp-wrap .next-steps .ns-lead { font-size: 17px; }
}
