/* ClickBanger free tools: hub and interactive tool pages. Uses the site tokens (site.css): paper cards, ink result
   panels, the blue pencil for what is selected. */
.thub { padding-bottom: 2rem; }
.thub__hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; position: relative; isolation: isolate; }
.thub__hero .crumbs { margin-bottom: 1.5rem; }
.thub__eyebrow { display: inline-flex; align-items: center; gap: .625rem; font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 1.25rem; }
.thub__eyebrow::before { content: ""; width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--accent); }
.thub__title { font-family: var(--display); font-size: clamp(2.875rem, 6.8vw, 6rem); line-height: .96; letter-spacing: -.025em; font-weight: 400; max-width: 19ch; margin: 0; color: var(--ink); text-wrap: balance; }
.thub__lede { max-width: 46rem; margin: 1.5rem 0 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--ink-2); }
.thub__proof { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.75rem 0 0; padding: 1.125rem 0 0; border-top: 1px solid var(--line-2); list-style: none; font-size: .875rem; color: var(--ink-2); }
.thub__proof li { display: inline-flex; align-items: center; gap: .5rem; }
.thub__proof li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.tfind { display: grid; gap: 1rem; margin: 2rem 0 1.5rem; }
.tfind__search { position: relative; max-width: 34rem; }
.tfind__search input { width: 100%; min-height: 3.25rem; padding: 0 1.25rem 0 2.9rem; border: 1px solid var(--line-3); border-radius: 999px; background: var(--bg-2); box-shadow: var(--shadow); color: var(--ink); font: inherit; font-size: 1rem; }
.tfind__search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.tfind__search svg { position: absolute; left: 1rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -.55rem; color: var(--ink-3); pointer-events: none; }
.tchips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tchip { min-height: 2.5rem; padding: 0 1rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.tchip:hover { border-color: var(--ink); color: var(--ink); }
.tchip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tchip:focus-visible, .tbtn:focus-visible, .tcard:focus-visible, .opt:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.thub__count { font-size: .875rem; color: var(--ink-3); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr)); gap: 1.25rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.tgrid > li[hidden] { display: none; }
.tcard { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--bg-2); box-shadow: var(--shadow); overflow: hidden; color: inherit; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.tcard:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tcard__art { aspect-ratio: 16 / 9; background: radial-gradient(110% 120% at 100% 0%, #d9e0ff 0%, rgba(217, 224, 255, 0) 60%), #f1ecdf; border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.tcard__art svg { width: 100%; height: 100%; display: block; }
.tcard__body { display: flex; flex-direction: column; gap: .625rem; padding: 1.25rem 1.375rem 1.375rem; flex: 1; }
.tcard__cat { font-family: var(--mono); font-size: .625rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.tcard__name { margin: 0; font-family: var(--display); font-size: 1.625rem; font-weight: 400; letter-spacing: -.012em; line-height: 1.1; color: var(--ink); }
.tcard__desc { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--ink-3); flex: 1; }
.tcard__go { font-size: .875rem; font-weight: 600; color: var(--ink); display: inline-flex; gap: .375rem; align-items: center; margin-top: .25rem; }
.tcard:hover .tcard__go { color: var(--accent-2); }
.tempty { padding: 2rem; border: 1px dashed var(--line-3); border-radius: var(--r-lg); color: var(--ink-2); margin-top: 1rem; }
.tsec { margin-top: clamp(3rem, 7vw, 5rem); }
.tsec > h2 { font-family: var(--display); font-size: clamp(2.125rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -.02em; font-weight: 400; margin: 0 0 .75rem; color: var(--ink); }
.tsec > p.tsec__lead { max-width: 42rem; color: var(--ink-2); margin: 0 0 1.5rem; }
.tqa { display: grid; gap: .5rem; }
.tqa details { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); }
.tqa summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.tqa summary::-webkit-details-marker { display: none; }
.tqa summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.25rem; line-height: 1; }
.tqa details[open] summary::after { content: "–"; }
.tqa details > div { padding: 0 1.25rem 1.125rem; color: var(--ink-2); line-height: 1.65; }
.tqa details > div a { color: var(--accent-2); text-decoration: underline; text-underline-offset: .18em; }
.tlinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.tlinks a { display: grid; gap: .25rem; height: 100%; padding: 1.125rem 1.25rem; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.tlinks a:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.tlinks b { color: var(--ink); font-weight: 600; }
.tlinks span { font-size: .875rem; color: var(--ink-3); }
.tprivacy { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; padding: 1.75rem; border: 1px solid var(--ok-line); background: #eef7f1; border-radius: var(--r-xl); }
.tprivacy svg { width: 2.5rem; height: 2.5rem; color: var(--ok); }
.tprivacy h2 { margin: 0 0 .5rem; font-family: var(--display); font-size: 1.875rem; font-weight: 400; line-height: 1; letter-spacing: -.015em; color: var(--ink); }
.tprivacy p { margin: 0; color: var(--ink-2); line-height: 1.65; }

/* ---- tool page ------------------------------------------------------------------------------------------ */
.tapp-wrap { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.tapp { border: 1px solid var(--line-2); border-radius: var(--r-2xl); background: var(--bg-2); box-shadow: var(--shadow-lg); }
.tapp__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; align-items: center; padding: 1.125rem 1.5rem; border-bottom: 1px solid var(--line); }
.tapp__head h2 { margin: 0; font-family: var(--display); font-size: 1.625rem; font-weight: 400; line-height: 1.1; letter-spacing: -.012em; color: var(--ink); }
.tapp__head p { margin: 0; font-family: var(--mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tapp__body { padding: 1.5rem; }
.tapp__static { padding: 1rem 1.5rem 1.5rem; color: var(--ink-2); }
.tapp.is-live .tapp__static { display: none; }
.tapp:not(.is-live) [data-tool-ui] { display: none; }
.tapp__foot { padding: 1rem 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tapp__foot small { color: var(--ink-3); flex: 1 1 14rem; font-size: .8125rem; line-height: 1.5; }
.tcols { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: 2rem; align-items: start; }
.tcols--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 880px) { .tcols, .tcols--even { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
.tform { display: grid; gap: 1rem; align-content: start; }
.tform--2 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.tfield { display: grid; gap: .4375rem; min-width: 0; }
.tfield > label, .tlabel { font-size: .8125rem; font-weight: 550; color: var(--ink); }
.tctl { display: flex; align-items: center; gap: .375rem; min-height: 2.875rem; padding: 0 .875rem; border: 1px solid var(--line-3); border-radius: var(--r); background: var(--bg-1); }
.tctl:focus-within { border-color: var(--accent); background: var(--bg-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.tctl.is-bad { border-color: var(--red); }
.tctl i { font-style: normal; color: var(--ink-3); font-size: .9375rem; }
.tin { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 1rem; padding: .6rem 0; font-variant-numeric: tabular-nums; }
textarea.tin { resize: vertical; min-height: 4.5rem; line-height: 1.5; }
.tfield__hint { color: var(--ink-3); font-size: .75rem; line-height: 1.45; }
.tfield__err { margin: 0; color: var(--red-2); font-size: .8125rem; }
.tfield__err[hidden] { display: none; }
select.tin { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 1rem) 55%, calc(100% - .7rem) 55%; background-size: .3rem .3rem; background-repeat: no-repeat; padding-right: 2rem; }
select.tin { min-height: 2.875rem; padding: .6rem 2.25rem .6rem .875rem; border: 1px solid var(--line-3); border-radius: var(--r); background-color: var(--bg-1); cursor: pointer; }
select.tin:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tctl select.tin { min-height: 0; padding-left: 0; border: 0; background-color: transparent; }
select.tin option { background: #fff; color: var(--ink); }
.tbtn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.5rem; padding: 0 1.125rem; border-radius: 999px; border: 1px solid var(--line-3); background: var(--bg-2); color: var(--ink); font: inherit; font-size: .875rem; font-weight: 550; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.tbtn:hover { border-color: var(--ink); }
.tbtn--primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tbtn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tbtn--ghost { background: transparent; }
.tbtn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.tbtn[disabled] { opacity: .45; cursor: not-allowed; }
@media (pointer: coarse) { .tbtn { min-height: 2.75rem; } }
.trow { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tkpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .75rem; }
.tkpi { padding: 1rem 1.125rem; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-1); min-width: 0; }
.tkpi dt, .tkpi .tkpi__l { font-size: .75rem; color: var(--ink-3); margin: 0 0 .25rem; }
.tkpi dd, .tkpi .tkpi__v { margin: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -.025em; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tkpi--big { grid-column: 1 / -1; padding: 1.375rem 1.5rem; border-color: transparent; border-radius: var(--r-xl); background: radial-gradient(90% 90% at 100% 0%, rgba(86, 110, 255, .36), rgba(86, 110, 255, 0) 70%), var(--bg); }
.tkpi--big .tkpi__v { font-family: var(--display); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.tkpi.is-good .tkpi__v { color: var(--ok); } .tkpi.is-bad .tkpi__v { color: var(--red-2); }
.tkpi small { display: block; margin-top: .25rem; font-size: .75rem; color: var(--ink-3); line-height: 1.4; }
.tverdict { padding: 1rem 1.125rem; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--bg-1); line-height: 1.6; color: var(--ink-2); }
.tverdict b { color: var(--ink); }
.tverdict.is-good { border-color: var(--ok-line); background: var(--ok-soft); }
.tverdict.is-bad { border-color: var(--red-line); background: var(--red-soft); }
.tverdict.is-mid { border-color: var(--amber-line); background: var(--amber-soft); }
.tstack { display: grid; gap: 1rem; min-width: 0; }
.tnote { font-size: .8125rem; color: var(--ink-3); line-height: 1.55; margin: 0; }
.tnote b { color: var(--ink-2); }
.tsmall { font-size: .75rem; color: var(--ink-3); }
.ttable { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.ttable th, .ttable td { padding: .625rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ttable th { font-family: var(--mono); font-size: .625rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); background: var(--bg-1); white-space: nowrap; }
.ttable td.r, .ttable th.r { text-align: right; }
.ttable tr.is-hit td { background: var(--red-soft); }
.tscroll { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); }
.tscroll:focus-visible { outline: 2px solid var(--accent); }
.tscroll .ttable { min-width: 30rem; }
.ttable input.tin { padding: .4rem .5rem; border: 1px solid var(--line-3); border-radius: var(--r-sm); background: var(--bg-1); min-width: 5rem; }
.ttable input.tin:focus-visible { outline: 2px solid var(--accent); }
/* segmented control and option cards */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 0; border: 1px solid var(--line-3); border-radius: var(--r-lg); background: var(--bg-1); overflow: hidden; }
.seg label { position: relative; display: grid; place-items: center; text-align: center; padding: .7rem .5rem; font-size: .8125rem; font-weight: 550; color: var(--ink-2); cursor: pointer; border-right: 1px solid var(--line); min-height: 3rem; line-height: 1.25; }
.seg label:last-child { border-right: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--accent); color: #fff; }
.seg label:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: -4px; }
@media (max-width: 640px) { .seg { grid-auto-flow: row; } .seg label { border-right: 0; border-bottom: 1px solid var(--line); } .seg label:last-child { border-bottom: 0; } }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .625rem; border: 0; padding: 0; margin: 0; }
.opts legend { font-family: var(--display); font-size: 1.75rem; font-weight: 400; line-height: 1.1; letter-spacing: -.015em; color: var(--ink); margin-bottom: 1rem; padding: 0; }
.opt { position: relative; display: grid; gap: .25rem; padding: 1rem 1.125rem; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-1); cursor: pointer; }
.opt:hover { border-color: var(--ink); }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt b { color: var(--ink); font-weight: 600; font-size: .9375rem; }
.opt span { color: var(--ink-3); font-size: .8125rem; line-height: 1.45; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.steps { display: flex; gap: .375rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.steps li { flex: 1; height: .3125rem; border-radius: 999px; background: var(--line-2); }
.steps li.is-done { background: var(--accent); } .steps li.is-now { background: var(--accent-2); }
/* generic bars */
.bar { height: .625rem; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bar--ok > i { background: var(--ok); } .bar--bad > i { background: var(--red); } .bar--amber > i { background: var(--amber); }
.tcopy { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: center; padding: .875rem 1rem; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-1); }
.tcopy p { margin: 0; color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
.tcopy small { color: var(--ink-3); }
.tcopy.is-pinned { border-color: var(--accent); background: #eef1ff; }
@media (max-width: 520px) { .tcopy { grid-template-columns: 1fr; } }
.tlist { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.tcode { padding: 1.125rem; border: 0; border-radius: var(--r-lg); background: var(--bg); font-family: var(--mono); font-size: .8125rem; line-height: 1.6; color: var(--accent-ink); overflow-wrap: anywhere; word-break: break-all; }
.tmeter { position: relative; width: 9rem; height: 9rem; margin: 0 auto; }
.tmeter svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tmeter b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.875rem; letter-spacing: -.03em; color: var(--ink); }
.tmeter b small { display: block; font-size: .6875rem; font-weight: 500; color: var(--ink-3); text-align: center; }
.tcheck { display: grid; grid-template-columns: 1fr auto; gap: .75rem 1rem; align-items: center; padding: .875rem 0; border-bottom: 1px solid var(--line); }
.tcheck:last-child { border-bottom: 0; }
.tcheck p { margin: 0; color: var(--ink); font-size: .9375rem; line-height: 1.45; }
.tcheck small { display: block; margin-top: .1875rem; color: var(--ink-3); font-size: .8125rem; }
.tcheck .seg { min-width: 14rem; } .tcheck .seg label { min-height: 2.5rem; padding: .4rem .5rem; }
@media (max-width: 640px) { .tcheck { grid-template-columns: 1fr; } .tcheck .seg { grid-auto-flow: column; min-width: 0; } .tcheck .seg label { border-right: 1px solid var(--line); border-bottom: 0; } }
.tgroup { margin: 1.25rem 0 .25rem; font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.tgroup:first-child { margin-top: 0; }
.tfun { display: grid; gap: .375rem; }
.tfun svg { width: 100%; height: auto; display: block; }
.tmore .tmore__h { margin: 0 0 .5rem; }
.post--tool .post__grid--prose { margin-top: clamp(2rem, 4vw, 3rem); }
.tool-intro-static ol { margin: .5rem 0 0 1.25rem; }
@media print {
  .top, .foot, .menu, .tapp__foot .tbtn, .post__side, .post__rail, .tmore, .tfind, .thub__proof, [data-cta-band], .crumbs, .tnav { display: none !important; }
  body.site { background: #fff; color: #000; }
  .tapp { box-shadow: none; border-color: #999; background: #fff; }
  .tapp *, .post__title { color: #000 !important; }
  .tkpi, .tverdict, .tcopy { background: #fff !important; border-color: #999 !important; }
}
@media (prefers-reduced-motion: reduce) { .tcard, .tchip, .tbtn { transition: none; } .tcard:hover { transform: none; } }

.tapp [hidden], .thub [hidden], .tfield[hidden] { display: none !important; }
.tapp__h3 { margin: 0 0 .25rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.tmeter svg circle:first-child { stroke: var(--bg-3); }
.tpaths { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.tpath { padding: 1.625rem; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--bg-2); box-shadow: var(--shadow); }
.tpath h3 { margin: 0 0 .5rem; font-family: var(--display); font-size: 1.75rem; font-weight: 400; line-height: 1.05; letter-spacing: -.015em; color: var(--ink); }
.tpath p { margin: 0 0 .875rem; color: var(--ink-3); font-size: .9375rem; line-height: 1.55; }
.tpath ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .25rem; }
.tpath a { display: inline-flex; align-items: center; min-height: 2rem; color: var(--accent-2); font-weight: 550; font-size: .9375rem; }
.tpath a:hover { text-decoration: underline; text-underline-offset: .2em; }
.tapp, .tapp__body, [data-tool-ui], .tstack > *, .tcopy > *, .tcols > * { min-width: 0; }
.tcopy .tbtn { white-space: normal; }
.tstack, .tform { grid-template-columns: minmax(0, 1fr); } .tform--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.tscroll { position: relative; } .steps li { min-width: 0; padding: 0; margin: 0; width: auto; }
