/* Tool-page kit: shared components for everything below a tool (tool_kit.py). */
.tk-sec { padding: 72px 0; }
body { overflow-x: clip; }
.tk-sec.tk-alt { position: relative; isolation: isolate; }
.tk-sec.tk-alt::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--bg2); z-index: -1; }
.tk-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.tk-wrap.tk-narrow { max-width: 860px; }
.tk-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.tk-head.tk-left { text-align: left; margin-left: 0; }
.tk-head h2 { font-family: var(--disp); font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; color: var(--fg); margin: 0; }
.tk-lead { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--mut); }
.tk-eyebrow { margin: 0 0 10px; font-family: var(--disp); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brd); }
.tk-ic { width: 22px; height: 22px; color: var(--brd); flex: none; }
.tk-sec code, .tk-trust code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; color: var(--fg); background: #fff; border: 1px solid var(--bd); border-radius: 5px; padding: 1px 5px; }
.tk-sec a:not(.btn):not(.tk-tool):not(.dl-opt) { color: var(--brd); text-decoration: underline; text-underline-offset: 2px; }

/* trust strip */
.tk-trust { max-width: 1080px; margin: 26px auto 0; padding: 0 24px; }
.tk-trust ul { list-style: none; margin: 0; padding: 14px 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  border: 1px solid var(--bd); border-radius: 14px; background: #fff; }
.tk-trust li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--fg); justify-content: center; }
.tk-trust .tk-ic { width: 20px; height: 20px; }

/* answer card */
.tk-answer { border: 1px solid var(--bd); border-left: 4px solid var(--brd); border-radius: 16px; padding: 30px 34px 24px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.tk-answer h2 { font-family: var(--disp); font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; color: var(--fg); }
.tk-answer > p { margin: 0 0 18px; font-size: 17px; line-height: 1.65; color: var(--mut); }
.tk-num { list-style: none; counter-reset: tkn; margin: 0; padding: 0; display: grid; gap: 12px; }
.tk-num li { counter-increment: tkn; position: relative; padding-left: 42px; min-height: 28px; line-height: 1.6; padding-top: 2px; color: var(--fg); font-size: 16px; }
.tk-num li::before { content: counter(tkn); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brs); color: var(--brd);
  font-family: var(--disp); font-weight: 800; font-size: 14px; text-align: center; line-height: 28px; }
.tk-byline { margin: 22px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--bd); font-size: 13.5px !important; color: var(--sub) !important; }

/* steps */
.tk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tk-step { position: relative; background: #fff; border: 1px solid var(--bd); border-radius: 16px; padding: 26px 24px 22px; }
.tk-step .tk-ic { width: 26px; height: 26px; margin-bottom: 14px; }
.tk-stepn { position: absolute; top: 20px; right: 22px; font-family: var(--disp); font-weight: 800; font-size: 30px; color: var(--bd); line-height: 1; }
.tk-step h3, .tk-feat h3 { font-family: var(--disp); font-size: 18px; font-weight: 800; margin: 0 0 8px; color: var(--fg); letter-spacing: -.01em; }
.tk-step p, .tk-feat p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--mut); }

/* before / after */
.tk-ba { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 14px; align-items: stretch; }
.tk-ba figure { margin: 0; border: 1px solid var(--bd); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.tk-ba figcaption { display: flex; align-items: center; gap: 8px; padding: 11px 16px; font-family: var(--disp); font-size: 13px; font-weight: 700; color: var(--sub);
  text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--bd); background: var(--bg2); }
.tk-ba figcaption .tk-ic { width: 16px; height: 16px; }
.tk-ba pre { margin: 0; padding: 18px 20px; font-size: 13.5px; line-height: 1.65; background: #0f172a; color: #e2e8f0; flex: 1; overflow: auto; white-space: pre-wrap; }
.tk-ba pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.tk-ba-arrow { display: flex; align-items: center; justify-content: center; }
.tk-ba-arrow .tk-ic { width: 26px; height: 26px; }
.tk-paper { padding: 22px 26px; flex: 1; font-size: 14.5px; line-height: 1.6; color: var(--fg); }
.tk-paper h4 { font-family: Calibri, 'Segoe UI', Arial, sans-serif; font-size: 22px; color: #1f3864; margin: 0 0 10px; font-weight: 600; }
.tk-paper h5 { font-family: Calibri, 'Segoe UI', Arial, sans-serif; font-size: 17px; color: #2f5496; margin: 14px 0 6px; font-weight: 600; }
.tk-paper p, .tk-paper ul { margin: 0 0 8px; }
.tk-paper ul { padding-left: 1.2em; }
.tk-paper table { border-collapse: collapse; width: 100%; font-size: 13.5px; margin: 6px 0 4px; }
.tk-paper th, .tk-paper td { border: 1px solid #bfbfbf; padding: 5px 8px; text-align: left; }
.tk-paper th { background: #dbe5f1; }
.tk-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--brs); color: var(--brd); font: 600 11px/1.6 var(--disp); vertical-align: middle; }

/* feature grid + cards */
.tk-grid { display: grid; gap: 20px; }
.tk-grid.tk-c2 { grid-template-columns: repeat(2, 1fr); }
.tk-grid.tk-c3 { grid-template-columns: repeat(3, 1fr); }
.tk-feat { background: #fff; border: 1px solid var(--bd); border-radius: 16px; padding: 24px; }
.tk-feat .tk-ic { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--brs); margin-bottom: 14px; }
.tk-card { background: #fff; border: 1px solid var(--bd); border-radius: 16px; padding: 22px 24px 10px; }
.tk-card h3 { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-size: 18px; font-weight: 800; margin: 0 0 14px; color: var(--fg); }
.tk-card ul { list-style: none; margin: 0; padding: 0; }
.tk-card li { position: relative; padding-left: 18px; margin: 0 0 12px; font-size: 15px; line-height: 1.65; color: var(--mut); }
.tk-card li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--br); }
.tk-card li strong { color: var(--fg); }

/* checklist */
.tk-check { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tk-check > div { background: #fff; border: 1px solid var(--bd); border-radius: 16px; padding: 22px 24px 12px; }
.tk-check h3 { font-family: var(--disp); font-size: 16px; font-weight: 800; margin: 0 0 14px; color: var(--fg); }
.tk-check ul { list-style: none; margin: 0; padding: 0; }
.tk-check li { display: flex; gap: 10px; margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--mut); }
.tk-ok, .tk-mid { width: 20px; height: 20px; flex: none; margin-top: 2px; border-radius: 50%; padding: 3px; }
.tk-ok { color: #047857; background: #d1fae5; }
.tk-mid { color: #b45309; background: #fef3c7; }

/* table */
.tk-table { overflow-x: auto; border: 1px solid var(--bd); border-radius: 16px; background: #fff; }
.tk-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tk-table th, .tk-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bd); line-height: 1.6; }
.tk-table thead th { background: var(--bg2); font-family: var(--disp); font-size: 14px; color: var(--fg); }
.tk-table tbody tr:last-child td { border-bottom: 0; }
.tk-table td:first-child { width: 32%; font-weight: 600; color: var(--fg); }
.tk-table td { color: var(--mut); }

/* prose */
.tk-prose p { font-size: 17px; line-height: 1.75; color: var(--mut); margin: 0 0 14px; }

/* faq */
.tk-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: start; }
.tk-faq details { background: #fff; border: 1px solid var(--bd); border-radius: 12px; margin: 0 0 12px; }
.tk-faq summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 18px; font-weight: 600; color: var(--fg); position: relative; line-height: 1.45; }
.tk-faq summary::-webkit-details-marker { display: none; }
.tk-faq summary::after { content: "+"; position: absolute; right: 18px; top: 13px; font-size: 20px; color: var(--brd); font-weight: 400; }
.tk-faq details[open] summary::after { content: "\2212"; }
.tk-faq details p { margin: 0; padding: 0 18px 16px; font-size: 15px; line-height: 1.65; color: var(--mut); }

/* app cta */
.tk-app { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.tk-app h2 { font-family: var(--disp); font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; margin: 0 0 12px; color: var(--fg); }
.tk-app-copy > p { font-size: 17px; line-height: 1.6; color: var(--mut); margin: 0 0 16px; }
.tk-app-pts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.tk-app-pts li { display: flex; gap: 10px; font-size: 15.5px; color: var(--fg); }
.tk-app-row { justify-content: flex-start !important; flex-wrap: wrap; }
.tk-btnic { width: 16px; height: 16px; }
.tk-app-copy > p.tk-micro { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--sub); }
.tk-micro a { color: var(--sub) !important; }
.tk-app-shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--bd); background: #fff; box-shadow: 0 20px 50px -20px rgba(15,23,42,.35); }
.tk-titlebar { display: flex; gap: 6px; padding: 10px 12px; background: #f1f5f9; border-bottom: 1px solid var(--bd); }
.tk-titlebar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.tk-app-shot img { display: block; width: 100%; height: auto; }

/* more tools */
.tk-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tk-tool { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--bd); border-radius: 14px; background: #fff; text-decoration: none; color: var(--fg); transition: border-color .15s, transform .15s; }
.tk-tool:hover { border-color: var(--br); transform: translateY(-1px); }
.tk-tool .tk-ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brs); }
.tk-tool b { display: block; font-family: var(--disp); font-size: 15px; }
.tk-tool small { display: block; margin-top: 2px; font-size: 13px; color: var(--sub); line-height: 1.4; }

/* hub pages */
.tk-hero { padding: 56px 0 8px; text-align: center; }
.tk-crumb { margin: 0 0 14px; font-size: 13.5px; color: var(--sub); }
.tk-crumb a { color: var(--sub) !important; text-decoration: none !important; }
.tk-hero h1 { font-family: var(--disp); font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: -.03em; color: var(--fg); margin: 0 auto 14px; max-width: 820px; }
.tk-hero-lead { font-size: 18px; line-height: 1.6; color: var(--mut); max-width: 680px; margin: 0 auto; }
.tk-hub { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bd); border-radius: 16px; padding: 24px; text-decoration: none !important; color: var(--fg) !important; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tk-hub:hover { border-color: var(--br); transform: translateY(-2px); box-shadow: 0 10px 30px -18px rgba(15,23,42,.35); }
.tk-hub .tk-ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brs); margin-bottom: 16px; }
.tk-hub h3 { font-family: var(--disp); font-size: 18px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; }
.tk-hub p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--mut); flex: 1; }
.tk-hub-go { font-family: var(--disp); font-size: 14px; font-weight: 700; color: var(--brd); }
@media (max-width: 900px) { .tk-hero { padding: 40px 0 4px; } .tk-hero h1 { font-size: 32px; } }
/* features */
.tk-chips { position: sticky; top: 64px; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bd); }
.tk-chips .tk-wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; justify-content: center; flex-wrap: wrap; }
.tk-chips a { flex: none; font: 600 13.5px/1 var(--disp); color: var(--mut) !important; text-decoration: none !important; padding: 8px 13px; border: 1px solid var(--bd); border-radius: 999px; background: #fff; }
.tk-chips a:hover { color: var(--brd) !important; border-color: var(--br); }
.tk-frow { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.tk-frow.tk-flip .tk-fcopy { order: 2; }
.tk-fcopy h2 { font-family: var(--disp); font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; color: var(--fg); margin: 0 0 12px; scroll-margin-top: 130px; }
.tk-ftext { font-size: 17px; line-height: 1.65; color: var(--mut); margin: 0 0 18px; }
.tk-more { margin: 18px 0 0; font-family: var(--disp); font-weight: 700; }
.tk-more a { text-decoration: none !important; }
.tk-shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--bd); background: #fff; box-shadow: 0 24px 50px -24px rgba(15,23,42,.35); }
.tk-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .tk-frow { grid-template-columns: 1fr; gap: 26px; }
  .tk-frow.tk-flip .tk-fcopy { order: 0; }
  .tk-fcopy h2 { font-size: 26px; }
  .tk-chips { top: 56px; } .tk-chips .tk-wrap { flex-wrap: nowrap; justify-content: flex-start; }
}
@media (max-width: 900px) {
  .tk-sec { padding: 52px 0; }
  .tk-head h2, .tk-app h2 { font-size: 26px; }
  .tk-trust ul { grid-template-columns: repeat(2, 1fr); }
  .tk-trust li { justify-content: flex-start; }
  .tk-steps, .tk-grid.tk-c3, .tk-grid.tk-c2, .tk-check, .tk-faq, .tk-app { grid-template-columns: 1fr; }
  .tk-tools { grid-template-columns: repeat(2, 1fr); }
  .tk-ba { grid-template-columns: 1fr; }
  .tk-ba-arrow { transform: rotate(90deg); height: 28px; }
  .tk-answer { padding: 22px 20px 18px; }
  .tk-answer h2 { font-size: 22px; }
  .tk-app { gap: 28px; }
}
@media (max-width: 520px) {
  .tk-wrap, .tk-trust { padding: 0 16px; }
  .tk-tools { grid-template-columns: 1fr; }
  .tk-table td:first-child { width: auto; }
}
