/* Free tools: one card for the tool, one band for ClipTen, a grid of the rest.
   Built on site.css tokens; nothing here changes other pages. */

.t-head .h1 { font-size: clamp(34px, 5.6vw, 62px); line-height: 1.02; }
.t-head .lede { font-size: clamp(16.5px, 1.8vw, 18.5px); }

/* the tool card */
.tool { position: relative; max-width: 880px; margin: 34px auto 0; border-radius: 24px; background: #fff; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(10, 20, 14, .04), 0 28px 60px -34px rgba(10, 20, 14, .32); }
.tool::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--neon-2), var(--neon) 55%, rgba(43, 255, 136, 0)); }
.t-body { display: grid; gap: 18px; padding: 26px; }
.t-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.t-row.two { grid-template-columns: 1fr 1fr; margin-top: 0; }
.t-lab { display: grid; gap: 7px; min-width: 0; }
.t-lab > span, .t-k { font: 650 12px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.t-in, .t-sel, .t-area { width: 100%; min-width: 0; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  font: 500 16px/1.5 var(--sans); transition: border-color .15s, box-shadow .15s; }
.t-in, .t-sel { height: 50px; padding: 0 14px; }
.t-sel { appearance: none; padding-right: 38px; cursor: pointer; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%235e6561' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.t-area { display: block; min-height: 180px; padding: 14px 16px; resize: vertical; font-size: 15.5px; }
.t-area.mono, .t-out.mono { font-family: var(--mono); font-size: 14px; }
.t-in:focus, .t-sel:focus, .t-area:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--glow-soft); }
.t-in.big { height: 64px; font: 650 24px/1 var(--display); letter-spacing: -.02em; }
.t-in::placeholder, .t-area::placeholder { color: var(--faint); }
.t-num { width: 110px; }

.t-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.t-check { display: inline-flex; align-items: center; gap: 8px; font: 550 14.5px/1.2 var(--sans); color: var(--ink-2); cursor: pointer; user-select: none; }
.t-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--neon-ink); }

/* segmented choices */
.t-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 13px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; }
.t-seg button { height: 36px; padding: 0 13px; border-radius: 10px; font: 600 14px/1 var(--sans); color: var(--muted); white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.t-seg button:hover { color: var(--ink); }
.t-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 2px 0 var(--cap-edge), 0 0 0 3px var(--glow-soft); }
.t-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.t-chip { height: 32px; padding: 0 12px; border-radius: 999px; font: 550 13.5px/1 var(--sans); color: var(--ink-2); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, background .15s; }
.t-chip:hover { background: var(--neon-soft); box-shadow: inset 0 0 0 1px var(--neon-2); }

/* results */
.t-out { position: relative; min-height: 64px; padding: 18px 20px; padding-right: 108px; border-radius: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); font: 500 16px/1.6 var(--sans); white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.t-out.scroll { max-height: 420px; overflow: auto; }
.t-out:empty::before { content: attr(data-empty); color: var(--faint); }
.t-out.lead { font: 650 clamp(19px, 2.4vw, 24px)/1.4 var(--display); letter-spacing: -.015em; }
.t-out.hot { background: #fff; box-shadow: inset 0 0 0 1.5px var(--neon-2), 0 0 24px var(--glow-soft); }
.t-res { display: grid; gap: 6px; }
.t-res > small { font: 550 13px/1.4 var(--sans); color: var(--muted); }
.t-copy { position: absolute; z-index: 1; top: 12px; right: 12px; height: 36px; padding: 0 12px; gap: 7px; font-size: 13.5px; }
.t-copy.done { color: var(--neon-ink); }
.t-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.t-actions .cap-btn { height: 40px; font-size: 14px; }
.t-note { margin: 0; font: 500 13.5px/1.5 var(--sans); color: var(--muted); }
.t-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--neon-2); text-underline-offset: 3px; }
.t-err { color: #b42318; }

.t-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.t-stat { padding: 14px 16px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.t-stat b { display: block; font: 700 26px/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.t-stat span { font: 550 12.5px/1.3 var(--sans); color: var(--muted); }
.t-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.t-table td, .t-table th { padding: 11px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.t-table th { font: 650 12px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.t-table td:first-child { font-weight: 600; white-space: nowrap; }
.t-table td.n { font-variant-numeric: tabular-nums; }
.t-wrap { overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }

/* lists of copyable things: symbols, styles, characters */
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.t-sym { display: grid; place-items: center; height: 52px; border-radius: 12px; font: 400 24px/1 var(--sans); color: var(--ink);
  background: linear-gradient(180deg, #fff, var(--bg-2)); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--line), 0 2px 0 var(--cap-edge); transition: transform .12s, box-shadow .15s; }
.t-sym:hover { box-shadow: inset 0 1px 0 #fff, 0 0 0 1.5px var(--neon-2), 0 2px 0 var(--cap-edge), 0 0 14px var(--glow-soft); }
.t-sym:active { transform: translateY(2px); }
.t-sym.done { background: var(--neon-soft); }
.t-cat { margin: 6px 0 -6px; font: 650 15px/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); }
.t-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.t-line { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 14px; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.t-line > small { font: 600 12.5px/1.3 var(--sans); color: var(--muted); }
.t-line > div { min-width: 0; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.t-line .cap-btn { height: 36px; padding: 0 12px; font-size: 13.5px; }
.t-diff { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font: 14px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 520px; overflow: auto; }
.t-diff ins { background: #d3f8df; color: #05522a; text-decoration: none; border-radius: 3px; }
.t-diff del { background: #ffe0dd; color: #8a1c12; border-radius: 3px; }
.t-diff .l { display: block; padding: 0 6px; }
.t-diff .l.a { background: #e8fbef; } .t-diff .l.d { background: #fff0ee; }
.t-meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.t-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--neon-2); transition: width .25s var(--ease), background .25s; }
.t-meter i.over { background: #e5484d; }
.t-limits { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.t-limits div { display: grid; gap: 7px; font: 550 13.5px/1.3 var(--sans); color: var(--muted); }
.t-limits b { color: var(--ink); font-weight: 650; }
.t-paste { display: grid; place-items: center; min-height: 150px; padding: 24px; border: 2px dashed var(--line-2); border-radius: 18px; background: var(--cap-lo); color: var(--muted); font: 500 16px/1.5 var(--sans); text-align: center; resize: none; width: 100%; }
.t-paste:focus { outline: none; border-color: var(--neon-ink); background: var(--neon-soft); color: var(--ink); }
.t-rate { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.t-swap { align-self: end; justify-self: center; width: 50px; height: 50px; padding: 0; justify-content: center; font-size: 19px; }

/* the toast after a copy */
.t-toast { position: fixed; z-index: 90; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 32px));
  padding: 12px 16px 12px 14px; border-radius: 16px; background: var(--ink); color: #fff; font: 550 14.5px/1.4 var(--sans);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 40px -12px rgba(0, 0, 0, .55); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); }
.t-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.t-toast::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--glow); }
.t-toast a { flex: none; color: var(--neon); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

/* ClipTen, in one band */
.tcta { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; max-width: 880px; margin: 28px auto 0; padding: 30px 32px;
  border-radius: 24px; background: radial-gradient(120% 140% at 100% 0%, #13241a 0%, var(--ink) 55%); color: #fff; overflow: hidden; isolation: isolate; }
.tcta::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--neon); opacity: .13; filter: blur(60px); }
.tcta-k { display: inline-flex; align-items: center; gap: 8px; font: 650 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--neon); }
.tcta-k img { width: 20px; height: 20px; border-radius: 5px; }
.tcta h2 { margin: 12px 0 8px; font: 700 clamp(23px, 3vw, 30px)/1.12 var(--display); letter-spacing: -.03em; }
.tcta p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 15.5px; line-height: 1.55; }
.tcta p b { color: #fff; }
.tcta .dls { justify-content: flex-start; margin-top: 20px; gap: 10px; }
.tcta .store { width: 180px; height: 54px; }
.tcta .store-text b { font-size: 17px; }
.tcta-fine { margin-top: 12px !important; font-size: 13.5px !important; color: rgba(255, 255, 255, .55) !important; }
.tcta-fine a { color: #fff; text-decoration: underline; text-decoration-color: var(--neon-2); text-underline-offset: 3px; }
.tcta-keys { display: grid; gap: 14px; justify-items: center; }
.tcta-combo { display: flex; align-items: center; gap: 8px; }
.tcta-combo kbd { display: grid; place-items: center; min-width: 52px; height: 52px; padding: 0 12px; border-radius: 12px; font: 650 18px/1 var(--sans); color: var(--ink);
  background: linear-gradient(180deg, #fff, #e9ece8); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #9aa29d, 0 10px 20px -8px rgba(0, 0, 0, .6); }
.tcta-combo kbd.lit { color: var(--neon-ink); box-shadow: inset 0 1px 0 #fff, 0 0 0 2px var(--neon), 0 3px 0 #0f9f50, 0 0 26px var(--glow); }
.tcta-combo i { font: 600 16px/1 var(--sans); font-style: normal; color: rgba(255, 255, 255, .45); }
.tcta-keys small { font: 550 13px/1.3 var(--sans); color: rgba(255, 255, 255, .6); }

/* more tools */
.tmore { max-width: 880px; margin: 72px auto 0; }
.tmore-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.tmore-h h2 { margin: 0; font: 700 26px/1.15 var(--display); letter-spacing: -.03em; }
.tmore-h a { font: 600 14.5px/1 var(--sans); color: var(--neon-ink); white-space: nowrap; }
.t-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.t-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; height: 100%; padding: 16px; border-radius: 18px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px -20px rgba(10, 20, 14, .35); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.t-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--neon-2), 0 0 0 5px var(--glow-soft), 0 16px 30px -22px rgba(10, 20, 14, .45); }
.t-glyph { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font: 700 17px/1 var(--display); color: var(--ink); letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff, #f0f2ef); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(10, 20, 14, .09), 0 2px 0 var(--cap-edge); }
.t-card:hover .t-glyph { color: var(--neon-ink); box-shadow: inset 0 1px 0 #fff, 0 0 0 1.5px var(--neon-2), 0 2px 0 var(--cap-edge), 0 0 14px var(--glow-soft); }
.t-card b { font: 650 15.5px/1.25 var(--display); letter-spacing: -.01em; }
.t-card small { font: 500 13.5px/1.35 var(--sans); color: var(--muted); }

/* the hub */
.hub-find { max-width: 520px; margin: 28px auto 0; }
.hub-find .t-in { height: 54px; font-size: 17px; padding-left: 18px; border-radius: 16px; }
.hub-sec { max-width: 1040px; margin: 56px auto 0; }
.hub-sec h2 { margin: 0 0 16px; font: 700 24px/1.15 var(--display); letter-spacing: -.03em; }
.hub-sec[hidden], .t-cards li[hidden] { display: none; }
.hub-none { margin-top: 40px; text-align: center; color: var(--muted); }
.home-tools { margin-top: 18px; }

@media (max-width: 760px) {
  .tcta { grid-template-columns: 1fr; padding: 26px 22px; }
  .tcta-keys { justify-items: start; order: -1; }
  .tcta-combo kbd { min-width: 44px; height: 44px; font-size: 16px; }
  .t-line { grid-template-columns: 1fr auto; }
  .t-line > small { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .t-body { padding: 18px; gap: 16px; }
  .t-row.two { grid-template-columns: 1fr; }
  .t-out { padding: 16px; padding-top: 56px; }
  .t-out.lead { font-size: 19px; }
  .t-copy { top: 10px; right: 10px; }
  .tcta .store { width: 100%; }
  .tcta .dls { display: grid; grid-template-columns: 1fr; }
  .t-seg button { padding: 0 11px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .t-card, .t-card:hover, .t-sym { transition: none; transform: none; } .t-toast { transition: none; } }

/* a result with its copy button */
.t-box { position: relative; min-width: 0; }
.t-row.cur { grid-template-columns: 1.35fr 1fr auto 1fr; }
.t-sent { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 18px 20px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font: 550 17px/1.3 var(--sans); color: var(--ink-2); }
.t-sent .t-in { width: 130px; height: 46px; font-weight: 650; }
.t-sent output { margin-left: auto; padding: 8px 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--neon-2), 0 0 18px var(--glow-soft); font: 700 22px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; cursor: copy; }
.t-sent output:empty::before { content: "—"; color: var(--faint); }
.t-sent output.up { color: var(--neon-ink); } .t-sent output.down { color: #b42318; }
.t-table tr[data-copy-row] { cursor: copy; } .t-table tr[data-copy-row]:hover td { background: var(--neon-soft); }
@media (max-width: 760px) {
  .t-row.cur { grid-template-columns: 1fr auto 1fr; }
  .t-row.cur > :first-child { grid-column: 1 / -1; }
  .t-sent output { margin-left: 0; width: 100%; }
  .t-sent { padding: 14px 16px; gap: 8px 10px; font-size: 16px; }
  .t-sent .t-in { width: 92px; height: 42px; padding: 0 10px; }
  .t-sent .t-sel { width: auto; height: 42px; }
  .t-row.cur .t-sel { padding-left: 12px; padding-right: 30px; font-size: 15px; }
}
.t-big { font: 700 clamp(26px, 4vw, 38px)/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.t-chips li.t-chip { display: inline-flex; align-items: center; }
.t-line.pw { grid-template-columns: 1fr auto; }
.t-line.pw > div { font: 500 15px/1.4 var(--mono); }
.t-range { width: 100%; accent-color: var(--neon-ink); }
.t-more summary { cursor: pointer; font: 600 14.5px/1.3 var(--sans); color: var(--ink-2); }
.t-more[open] summary { margin-bottom: 10px; }
.t-symset { display: grid; gap: 14px; }
.t-symset[hidden], .t-sym[hidden] { display: none; }
.tool-api { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font: 13.5px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }

/* numbered steps: 1 paste, 2 choose, 3 copy */
.t-body { counter-reset: tstep; }
.t-field { display: grid; gap: 10px; min-width: 0; }
.t-field[hidden] { display: none; }
.t-fhead { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; min-height: 36px; }
.t-step { display: inline-flex; align-items: center; gap: 10px; font: 650 16px/1.25 var(--sans); color: var(--ink); }
.t-step::before { counter-increment: tstep; content: counter(tstep); display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 700 13px/1 var(--sans); }
.t-step.no-n::before { content: none; }
.t-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cap-btn.t-mini { height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn-ink.t-copybtn { height: 40px; padding: 0 20px; font-size: 14.5px; }
.t-res .t-area.out { background: var(--bg-2); }
.t-res .t-area.out:not(:placeholder-shown) { background: #fff; box-shadow: inset 0 0 0 1px var(--neon-2), 0 0 22px var(--glow-soft); border-color: var(--neon-2); }
.tcta-combo kbd.num { font-size: 16px; }

/* /calc: the API docs */
.cap-btn.t-mini[aria-pressed="true"] { color: var(--neon-ink); box-shadow: inset 0 0 0 1.5px var(--neon-2); }
.api-req { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 8px 8px 12px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.api-req code { flex: 1; min-width: 0; font: 500 13.5px/1.45 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.api-get { flex: none; padding: 5px 8px; border-radius: 8px; background: var(--ink); color: var(--neon); font: 700 11.5px/1 var(--mono); letter-spacing: .04em; }
.api { max-width: 880px; margin: 64px auto 0; display: grid; gap: 56px; }
.api-sec { display: grid; gap: 14px; min-width: 0; }
.api-sec h2 { margin: 0; font: 700 clamp(24px, 3vw, 30px)/1.15 var(--display); letter-spacing: -.03em; }
.api-sec h3 { margin: 6px 0 -4px; font: 650 13px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.api-sec p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.api-sec a:not(.cap-btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--neon-2); text-underline-offset: 3px; }
.api-sec code { font: 500 .9em/1.4 var(--mono); }
.api-pre { margin: 0; padding: 16px 18px; border-radius: 16px; background: var(--ink); color: #e9efe9; font: 13.5px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 460px; overflow: auto; }
.api-params td:first-child code { color: var(--neon-ink); font-weight: 650; }
.api-more summary { cursor: pointer; font: 600 14.5px/1.3 var(--sans); color: var(--ink-2); }
.api-more[open] summary { margin-bottom: 10px; }
.api-note { font-size: 14px !important; color: var(--muted) !important; }

@media (max-width: 560px) {
  .t-step { font-size: 15px; }
  .t-fhead .t-btns { width: 100%; }
  .t-res .t-fhead .t-btns { width: auto; }
  .api-req { flex-wrap: wrap; }
  .api-req code { flex-basis: calc(100% - 60px); }
}
