/* Free tool pages (web/src/pages/_ui/tools). The tool is the hero: a short header, then a
   two-pane workbench, form on the left and the live result on the right. Prefixed tl-. */

/* ---------- Header ---------- */
.tl-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
.tl-hero h1 { margin-top: var(--space-5); font-size: clamp(2.4rem, 3vw + 1rem, 4.25rem); line-height: 1; letter-spacing: -0.04em; font-weight: var(--font-weight-heavy); text-wrap: balance; max-width: 18ch; }
.tl-hero__lede { margin-top: var(--space-5); font-size: clamp(1.1rem, 0.4vw + 1rem, 1.3rem); line-height: 1.55; color: var(--color-text-muted); max-width: 60ch; text-wrap: pretty; }
.tl-hero__note { margin-top: var(--space-3); font-size: var(--font-size-sm); color: var(--color-text-muted); }

/* ---------- Stage: the brand shapes sit behind the workbench, as on the homepage ---------- */
.tl-stage { position: relative; padding: var(--space-4) 0 clamp(56px, 7vw, 96px); overflow: clip; }
.tl-stage__circle, .tl-stage__squircle { position: absolute; pointer-events: none; }
.tl-stage__circle { width: clamp(260px, 32vw, 440px); aspect-ratio: 1; right: -6%; top: 0; border-radius: 50%; background: var(--color-accent); opacity: 0.95; }
.tl-stage__squircle { width: clamp(110px, 12vw, 170px); aspect-ratio: 1; left: -2%; bottom: 8%; border-radius: 30%; background-color: var(--color-lavender); background-image: radial-gradient(rgba(255, 255, 255, 0.8) 2px, transparent 2.6px); background-size: 16px 16px; }
.tl-root { position: relative; }

/* ---------- Workbench ---------- */
.tl-bench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.tl-form, .tl-output, .tl-start { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-2xl); box-shadow: 0 2px 4px rgba(36, 27, 53, 0.05), 0 40px 80px -40px rgba(36, 27, 53, 0.3); }
.tl-form { padding: clamp(20px, 3vw, 36px); display: grid; gap: var(--space-8); }
.tl-output { position: sticky; top: 96px; padding: clamp(20px, 2.6vw, 30px); display: grid; gap: var(--space-4); max-height: calc(100vh - 120px); grid-template-rows: auto auto minmax(0, 1fr) auto; }
.tl-output__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.tl-output__head h2 { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); letter-spacing: -0.01em; }
.tl-output__actions { display: flex; gap: var(--space-2); }
.tl-output__foot { font-size: var(--font-size-sm); color: var(--color-text-muted); line-height: 1.55; }
.tl-output__foot code, .tl-note code { font-family: var(--font-family-mono); font-size: 0.85em; }

.tl-code { margin: 0; overflow: auto; min-height: 160px; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-ink-bg); color: var(--color-ink-text); font-family: var(--font-family-mono); font-size: 0.8125rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.tl-code:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Form ---------- */
.tl-group { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-4); min-width: 0; }
.tl-group legend { padding: 0; margin-bottom: var(--space-4); font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); letter-spacing: -0.01em; }
.tl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); }
.tl-field { display: grid; gap: 6px; min-width: 0; }
.tl-field__label { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.tl-field__hint, .tl-note { font-size: var(--font-size-sm); color: var(--color-text-muted); line-height: 1.5; }
.tl-note { max-width: 62ch; }
.tl-bench input:not([type="checkbox"]), .tl-bench select, .tl-bench textarea, .tl-urlform input {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-text); font: inherit; font-size: var(--font-size-base);
  transition: border-color 0.15s var(--ease-out-quart), box-shadow 0.15s var(--ease-out-quart);
}
.tl-bench textarea { resize: vertical; line-height: 1.5; }
.tl-bench input:focus, .tl-bench select:focus, .tl-bench textarea:focus, .tl-urlform input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 4px var(--color-focus-halo); }
.tl-bench input::placeholder, .tl-bench textarea::placeholder, .tl-urlform input::placeholder { color: var(--color-text-muted); }
.tl-bench input:disabled, .tl-bench select:disabled { background: var(--color-surface-muted); color: var(--color-text-muted); }

.tl-inline { display: flex; gap: var(--space-2); align-items: center; }
.tl-inline input { flex: 1; }

.tl-hours, .tl-faq { display: grid; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface-muted); }
.tl-days { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-day { min-width: 44px; min-height: 40px; border-radius: var(--radius-full); border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); cursor: pointer; transition: background-color 0.15s var(--ease-out-quart), color 0.15s var(--ease-out-quart); }
.tl-day[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-contrast); }
.tl-times { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--space-3); align-items: end; }

/* ---------- Buttons ---------- */
.tl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 var(--space-5); border: 0; border-radius: var(--radius-full); background: var(--color-text); color: var(--color-surface); font: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); cursor: pointer; transition: transform 0.15s var(--ease-out-quart), background-color 0.15s var(--ease-out-quart); }
.tl-btn:hover:not(:disabled) { transform: translateY(-1px); }
.tl-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.tl-btn--primary { min-height: 52px; padding: 0 var(--space-6); background: var(--color-accent); color: var(--color-accent-contrast); font-size: var(--font-size-base); box-shadow: var(--shadow-signature); white-space: nowrap; }
.tl-btn--primary:hover:not(:disabled) { background: var(--color-accent-hover); }
.tl-btn--quiet { background: transparent; color: var(--color-text); border: 1px solid var(--color-border-strong); }
.tl-add, .tl-remove, .tl-reset, .tl-linkbtn { justify-self: start; border: 0; background: none; padding: 6px 0; font: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); cursor: pointer; }
.tl-add { color: var(--color-accent-text); }
.tl-add::before { content: "+ "; }
.tl-remove, .tl-reset { color: var(--color-text-muted); }
.tl-remove:hover, .tl-reset:hover { color: var(--color-danger); }
.tl-linkbtn { color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.tl-bench button:focus-visible, .tl-start button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Status ---------- */
.tl-status { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); line-height: 1.5; padding: 10px 14px; border-radius: var(--radius-md); }
.tl-status--ok { background: var(--color-accent-soft); color: var(--color-accent-soft-text); }
.tl-status--warn { background: var(--color-apricot-soft); color: var(--color-apricot-soft-text); }
.tl-status--error { background: var(--color-coral-soft); color: var(--color-coral-soft-text); }
.tl-issues { display: grid; gap: var(--space-2); max-height: 220px; overflow: auto; }
.tl-issues ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: var(--font-size-sm); line-height: 1.5; }

/* ---------- llms.txt: start state and link list ---------- */
.tl-start { max-width: 760px; padding: clamp(24px, 4vw, 44px); display: grid; gap: var(--space-5); }
.tl-urlform { display: grid; gap: var(--space-4); }
.tl-urlform__row { display: flex; gap: var(--space-3); }
.tl-urlform__row input { min-height: 52px; border-radius: var(--radius-full); padding: 0 var(--space-5); }
.tl-start__alt { font-size: var(--font-size-sm); color: var(--color-text-muted); }
.tl-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.tl-link { display: grid; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface-muted); transition: opacity 0.2s var(--ease-out-quart); }
.tl-link--off { opacity: 0.55; }
.tl-link__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.tl-link__head select { width: auto; min-height: 38px; padding: 6px 10px; font-size: var(--font-size-sm); }
.tl-check { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.tl-check input { width: 18px; height: 18px; accent-color: var(--color-accent); flex-shrink: 0; }
.tl-link__url { font-family: var(--font-family-mono); font-size: var(--font-size-xs); overflow-wrap: anywhere; }

/* ---------- Below the tool ---------- */
.tl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(24px, 3vw, 40px); }
.tl-steps li { display: grid; gap: var(--space-3); align-content: start; }
.tl-steps__n { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--color-text); color: var(--color-surface); font-weight: var(--font-weight-bold); }
.tl-steps h3 { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); letter-spacing: -0.01em; }
.tl-steps p { color: var(--color-text-muted); line-height: 1.6; max-width: 40ch; }
.tl-about { display: grid; gap: var(--space-4); max-width: 68ch; font-size: var(--font-size-lg); line-height: 1.6; }
.tl-about a { color: var(--color-accent-text); text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .tl-bench { grid-template-columns: minmax(0, 1fr); }
  .tl-output { position: static; max-height: none; }
  .tl-code { max-height: 420px; }
}
@media (max-width: 560px) {
  .tl-urlform__row { flex-direction: column; }
  .tl-times { grid-template-columns: 1fr 1fr; }
  .tl-times .tl-remove { grid-column: 1 / -1; }
  .tl-stage__circle { right: -30%; }
}

@media (prefers-reduced-motion: no-preference) {
  .tl-bench, .tl-start { animation: tl-settle 0.7s var(--ease-out-expo) both; }
}
@keyframes tl-settle { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Checkers (tc-): one address bar, then a result that says what to do ---------- */
.tc-card { position: relative; max-width: 1040px; padding: clamp(16px, 2.6vw, 28px); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); box-shadow: 0 32px 64px -32px rgba(36, 27, 53, 0.22); }
.tc-card--results { margin-top: var(--space-5); padding: clamp(20px, 3.4vw, 40px); }

.tc-bar__pill { display: flex; align-items: center; gap: var(--space-2); min-height: 64px; padding: 6px 6px 6px clamp(18px, 2.4vw, 28px); background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-full); transition: border-color 0.15s var(--ease-out-quart), box-shadow 0.15s var(--ease-out-quart); }
.tc-bar__pill:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-soft); }
.tc-bar__pill input { flex: 1; min-width: 0; height: 50px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--color-text); font-family: var(--font-family-mono); font-size: 1rem; }
.tc-bar__pill input::placeholder { color: var(--color-text-muted); }
.tc-bar__go { flex: none; height: 52px; padding: 0 clamp(18px, 2.4vw, 28px); border: 0; border-radius: var(--radius-full); background: var(--color-accent); color: #fff; font: inherit; font-weight: var(--font-weight-semibold); cursor: pointer; transition: background-color 0.15s var(--ease-out-quart), transform 0.2s var(--ease-out-quart); }
.tc-bar__go:hover { background: var(--color-accent-hover); }
.tc-bar__go:active { transform: scale(0.97); transition-duration: 0.15s, 0.08s; }
.tc-bar__go:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.tc-bar__problem, .tc-error { margin: var(--space-3) 0 0; padding: 10px 16px; border-radius: var(--radius-md); background: var(--color-coral-soft); color: var(--color-coral-soft-text); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.tc-hint { margin: var(--space-3) 0 0; padding-inline: clamp(4px, 1vw, 12px); color: var(--color-text-muted); font-size: var(--font-size-sm); line-height: 1.55; text-wrap: pretty; }
.tc-note { margin: var(--space-5) 0 0; max-width: 72ch; color: var(--color-text-muted); font-size: var(--font-size-sm); line-height: 1.55; text-wrap: pretty; }

.tc-result { padding: clamp(20px, 3vw, 36px) clamp(4px, 1.4vw, 12px) clamp(4px, 1vw, 12px); }

.tc-verdict { display: flex; gap: var(--space-4); align-items: flex-start; }
.tc-verdict__mark { flex: none; width: 16px; height: 16px; margin-top: 0.55em; border-radius: 50%; }
.tc-verdict__mark--good { background: var(--color-accent); }
.tc-verdict__mark--bad { background: var(--color-coral); }
.tc-verdict__mark--wait { background: var(--color-apricot); }
.tc-verdict__mark--off { background: var(--color-border-strong); }
.tc-verdict h2 { margin: 0; font-family: var(--font-family-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; outline: 0; }
.tc-verdict p { margin: var(--space-2) 0 0; max-width: 66ch; color: var(--color-text-muted); line-height: 1.55; text-wrap: pretty; }

.tc-sig { display: inline-flex; align-items: center; gap: 8px; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium, 500); color: var(--color-text); }
.tc-sig__dot { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.tc-sig__dot--good { background: var(--color-accent); }
.tc-sig__dot--bad { background: var(--color-coral); }
.tc-sig__dot--wait { background: var(--color-apricot); }
.tc-sig__dot--off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--color-border-strong); }
.tc-sig__dot--pulse { background: var(--color-apricot); }

.tc-table { margin-top: var(--space-6); }
.tc-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(130px, 0.6fr) minmax(190px, 0.85fr); gap: var(--space-2) var(--space-5); align-items: center; padding: var(--space-4) 0; border-top: 1px solid var(--color-border); }
.tc-row--head { padding: 0 0 var(--space-2); border-top: 0; color: var(--color-text-muted); font-size: 0.8125rem; font-weight: var(--font-weight-semibold); }
.tc-row--pending { grid-template-columns: minmax(0, 1fr) auto; }
.tc-row__who { display: grid; gap: 2px; min-width: 0; }
.tc-row__bot { font-family: var(--font-family-mono); font-size: 0.9375rem; font-weight: 600; }
.tc-row__purpose { color: var(--color-text-muted); font-size: var(--font-size-sm); line-height: 1.45; text-wrap: pretty; }

.tc-fixes { list-style: none; margin: var(--space-6) 0 0; padding: 0; }
.tc-fix { display: flex; gap: var(--space-3); padding: var(--space-4) 0; border-top: 1px solid var(--color-border); }
.tc-fix__dot { margin-top: 0.5em; }
.tc-fix__body { min-width: 0; flex: 1; }
.tc-fix h3 { margin: 0; font-size: 1.0625rem; font-weight: var(--font-weight-semibold); line-height: 1.35; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tc-fix p { margin: var(--space-1) 0 0; max-width: 72ch; color: var(--color-text-muted); line-height: 1.55; text-wrap: pretty; overflow-wrap: anywhere; }
.tc-fix p a { color: var(--color-accent-text); }
.tc-fix__caveat { font-size: var(--font-size-sm); }
.tc-snippet { display: flex; gap: var(--space-3); align-items: flex-start; justify-content: space-between; margin-top: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-surface-muted); }
.tc-snippet pre { margin: 0; min-width: 0; overflow: auto; font-family: var(--font-family-mono); font-size: 0.875rem; line-height: 1.6; }

.tc-blocks { margin-top: var(--space-8); }
.tc-blocks > h3 { margin: 0 0 var(--space-3); font-size: 1.0625rem; font-weight: var(--font-weight-semibold); }
.tc-block { border-top: 1px solid var(--color-border); }
.tc-block summary { display: flex; align-items: center; gap: var(--space-2); min-height: 48px; cursor: pointer; list-style: none; }
.tc-block summary::-webkit-details-marker { display: none; }
.tc-block summary::after { content: ""; width: 7px; height: 7px; margin-left: auto; margin-right: 4px; border-right: 2px solid var(--color-text-muted); border-bottom: 2px solid var(--color-text-muted); transform: rotate(45deg); transition: transform 0.2s var(--ease-out-quart); }
.tc-block[open] summary::after { transform: rotate(225deg); }
.tc-block summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 6px; }
.tc-block dl { margin: 0 0 var(--space-4); padding: 0; }
.tc-block dl > div { display: grid; grid-template-columns: minmax(110px, 0.5fr) minmax(0, 1.3fr) minmax(170px, 0.6fr); gap: 2px var(--space-4); padding: 9px 0; align-items: baseline; }
.tc-block dt { color: var(--color-text-muted); font-size: var(--font-size-sm); }
.tc-block dd { margin: 0; min-width: 0; }
.tc-block__value { font-size: var(--font-size-sm); overflow-wrap: anywhere; }
.tc-block__value--none { color: var(--color-text-muted); }

.tc-next { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-6) clamp(24px, 4vw, 56px); margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--color-border-strong); }
.tc-next h3 { margin: 0; font-family: var(--font-family-display); font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.tc-next__offer p { margin: var(--space-2) 0 var(--space-5); max-width: 56ch; color: var(--color-text-muted); line-height: 1.55; text-wrap: pretty; }
.tc-next__cta { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 52px; padding: 6px 8px 6px var(--space-6); border-radius: var(--radius-full); background: var(--color-text); color: #fff; font-weight: var(--font-weight-semibold); text-decoration: none; transition: transform 0.2s var(--ease-out-quart); }
.tc-next__cta:active { transform: scale(0.97); transition-duration: 0.08s; }
.tc-next__cta:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.tc-next__arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); transition: transform 0.2s var(--ease-out-quart); }
.tc-next__cta:hover .tc-next__arrow { transform: translate(2px, -2px); }
.tc-next__mail label { display: block; margin-bottom: var(--space-2); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.tc-next__mail > div { display: flex; gap: var(--space-2); }
.tc-next__mail input { flex: 1; min-width: 0; min-height: 46px; padding: 0 var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: var(--font-size-sm); }
.tc-next__mail input:focus { outline: 0; border-color: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-soft); }
.tc-next__mail input::placeholder { color: var(--color-text-muted); }
.tc-next__mail button { flex: none; min-height: 46px; padding: 0 var(--space-5); border: 1px solid var(--color-border-strong); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); cursor: pointer; transition: border-color 0.15s var(--ease-out-quart), transform 0.2s var(--ease-out-quart); }
.tc-next__mail button:hover { border-color: var(--color-text); }
.tc-next__mail button:active { transform: scale(0.97); transition-duration: 0.15s, 0.08s; }
.tc-next__mail button:disabled { opacity: 0.5; cursor: progress; }
.tc-next__mail p { margin: var(--space-2) 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--color-text-muted); }
.tc-next__mail p a { color: inherit; }
.tc-next__sent { margin: 0; font-weight: var(--font-weight-semibold); }
.tc-next__more { margin-top: var(--space-5); font-size: var(--font-size-sm); }
.tc-next__more p { margin: 0; color: var(--color-text-muted); }
.tc-next__more ul { display: flex; flex-wrap: wrap; gap: 4px var(--space-4); margin: 4px 0 0; padding: 0; list-style: none; }
.tc-next__more a { display: inline-block; padding: 4px 0; color: var(--color-accent-text); font-weight: var(--font-weight-semibold); text-underline-offset: 3px; }

.tc-work__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-5) clamp(20px, 3vw, 36px); margin-top: var(--space-5); padding: 0 clamp(4px, 1vw, 12px) clamp(4px, 1vw, 12px); align-items: start; }
.tc-card--flush .tc-hint { margin-top: 0; padding-inline: 0; }
.tc-fields { display: grid; gap: var(--space-5); min-width: 0; }
.tc-field { display: grid; gap: 6px; min-width: 0; }
.tc-field > span:first-child { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.tc-field input, .tc-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: var(--font-size-base); line-height: 1.5; resize: vertical; transition: border-color 0.15s var(--ease-out-quart), box-shadow 0.15s var(--ease-out-quart); }
.tc-field input:focus, .tc-field textarea:focus { outline: 0; border-color: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-soft); }
.tc-field input::placeholder, .tc-field textarea::placeholder { color: var(--color-text-muted); }
.tc-fields__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.tc-fields__actions .tl-btn { border: 1px solid var(--color-border-strong); }

.tc-meter { display: grid; gap: 6px; margin-top: 2px; }
.tc-meter__track { position: relative; display: block; height: 6px; border-radius: var(--radius-full); background: var(--color-surface-muted); overflow: hidden; }
/* Follows the typing one to one, so it has no transition on purpose. */
.tc-meter__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--color-accent); transform-origin: left; }
.tc-meter__fill.is-over { background: var(--color-coral); }
.tc-meter__limit { position: absolute; top: 0; bottom: 0; left: 80%; width: 2px; background: var(--color-text); opacity: 0.45; }
.tc-meter__text { color: var(--color-text-muted); font-family: var(--font-family-mono); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.tc-meter__text.is-over { color: var(--color-coral-soft-text); font-weight: 600; }

.tc-preview { position: sticky; top: 96px; min-width: 0; padding: clamp(14px, 2vw, 22px); border-radius: var(--radius-lg, 20px); background: var(--color-surface-muted); }
.tc-preview__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-4); }
.tc-preview__head h2 { margin: 0; font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }
.tc-preview .tc-note { margin-top: var(--space-3); font-size: 0.8125rem; }

.tc-seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: var(--radius-full); background: var(--color-border); }
.tc-seg__thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: var(--radius-full); background: var(--color-surface); box-shadow: 0 1px 2px rgba(36, 27, 53, 0.14); transition: transform 0.25s var(--ease-out-quart); }
.tc-seg[data-active="mobile"] .tc-seg__thumb { transform: translateX(100%); }
.tc-seg button { position: relative; min-height: 34px; padding: 0 14px; border: 0; background: none; color: var(--color-text-muted); font: inherit; font-size: 0.8125rem; font-weight: var(--font-weight-semibold); cursor: pointer; transition: color 0.15s var(--ease-out-quart); }
.tc-seg button[aria-pressed="true"] { color: var(--color-text); }
.tc-seg button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-radius: var(--radius-full); }

.tc-serp { padding: 16px 18px 18px; border-radius: var(--radius-md); background: #fff; font-family: Arial, sans-serif; box-shadow: 0 1px 2px rgba(36, 27, 53, 0.06); transition: max-width 0.25s var(--ease-out-quart); }
.tc-serp--mobile { max-width: 380px; }
.tc-serp__site { display: flex; align-items: center; gap: 10px; }
.tc-serp__site > span:last-child { display: grid; min-width: 0; }
.tc-serp__icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; color: #4d5156; font-size: 13px; font-weight: 700; }
.tc-serp__name { color: #202124; font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-serp__url { color: #4d5156; font-size: 12px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-serp__title { margin: 10px 0 4px; color: #1a0dab; font-size: 20px; line-height: 26px; overflow-wrap: anywhere; }
.tc-serp__desc { margin: 0; color: #4d5156; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.tc-serp .is-empty { color: #70757a; }

.tc-results__title { margin: 0; font-family: var(--font-family-display); font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); font-weight: 800; letter-spacing: -0.025em; }
.tc-results__title--good { display: flex; align-items: center; gap: var(--space-3); }
.tc-results__title--good .tc-sig__dot { width: 14px; height: 14px; }
.tc-card--results .tc-fixes { margin-top: var(--space-4); }

.tc-skeleton { display: grid; gap: var(--space-3); }
.tc-skeleton span { display: block; height: 18px; border-radius: var(--radius-full); background: var(--color-surface-muted); }
.tc-skeleton span:first-child { width: 62%; height: 34px; }
.tc-skeleton span:last-child { width: 44%; }

/* Tool list, on /tools and under each tool: rows, not a grid of identical cards. */
.tc-list { margin: 0; padding: 0; list-style: none; }
.tc-list li { border-top: 1px solid var(--color-border); }
.tc-list li:last-child { border-bottom: 1px solid var(--color-border); }
.tc-list a { display: grid; grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr) 24px; gap: 4px var(--space-5); align-items: baseline; padding: var(--space-4) var(--space-2); color: inherit; text-decoration: none; transition: background-color 0.15s var(--ease-out-quart); }
.tc-list a:hover { background: var(--color-surface-muted); }
.tc-list a:active { background: var(--color-border); }
.tc-list a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; border-radius: 6px; }
.tc-list__name { font-weight: var(--font-weight-semibold); }
.tc-list__body { color: var(--color-text-muted); font-size: var(--font-size-sm); line-height: 1.5; text-wrap: pretty; }
.tc-list__arrow { color: var(--color-accent-text); transition: transform 0.2s var(--ease-out-quart); }
.tc-list a:hover .tc-list__arrow { transform: translateX(3px); }

@media (max-width: 860px) {
  .tc-work__grid { grid-template-columns: minmax(0, 1fr); }
  .tc-preview { position: static; order: -1; }
  .tc-next { grid-template-columns: minmax(0, 1fr); }
  .tc-block dl > div { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .tc-card { border-radius: var(--radius-lg, 20px); }
  .tc-row { grid-template-columns: minmax(0, 1fr); padding: var(--space-4) 0; }
  .tc-row--head { display: none; }
  .tc-row--pending { grid-template-columns: minmax(0, 1fr) auto; }
  .tc-row [data-label] { display: flex; justify-content: space-between; gap: var(--space-3); }
  .tc-row [data-label]::before { content: attr(data-label); color: var(--color-text-muted); font-size: var(--font-size-sm); }
  .tc-list a { grid-template-columns: minmax(0, 1fr) 24px; }
  .tc-list__name { grid-column: 1; }
  .tc-list__body { grid-column: 1; grid-row: 2; }
  .tc-list__arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .tc-snippet { flex-direction: column; }
}

@media (max-width: 480px) {
  .tc-bar__pill { flex-direction: column; align-items: stretch; padding: 6px; border-radius: 28px; }
  .tc-bar__pill input { flex: none; padding-inline: 16px; }
  .tc-bar__go { width: 100%; }
  .tc-next__cta { justify-content: space-between; }
}

@media (prefers-reduced-motion: no-preference) {
  .tc-result .tc-row:not(.tc-row--head), .tc-fix, .tc-verdict { animation: tc-rise 0.45s var(--ease-out-expo) both; }
  .tc-sig__dot--pulse { animation: tc-pulse 1s ease-in-out infinite alternate; }
  .tc-skeleton span { animation: tc-pulse 1s ease-in-out infinite alternate; }
}
@keyframes tc-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tc-pulse { from { opacity: 1; } to { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  .tc-bar__go:active, .tc-next__cta:active, .tc-next__mail button:active { transform: none; }
  .tc-next__cta:hover .tc-next__arrow, .tc-list a:hover .tc-list__arrow { transform: none; }
  .tc-seg__thumb, .tc-serp, .tc-block summary::after { transition: none; }
}

@media (prefers-contrast: more) {
  .tc-card, .tc-preview { border: 1px solid var(--color-text); }
  .tc-meter__track { outline: 1px solid var(--color-text); }
}

/* ---------- Tools hub (th-): start a check, or see what each tool gives you ---------- */
.th-hero { position: relative; padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); overflow: clip; }
.th-hero__circle { position: absolute; top: clamp(-160px, -9vw, -60px); right: clamp(-200px, -9vw, -100px); width: clamp(280px, 38vw, 560px); aspect-ratio: 1; border-radius: 50%; background: var(--color-coral); }
.th-hero__spark { position: absolute; top: clamp(32px, 7vw, 96px); right: clamp(240px, 33vw, 500px); width: clamp(28px, 4vw, 56px); aspect-ratio: 1; border-radius: 50%; background: var(--color-apricot); }
.th-hero .mk-wrap { position: relative; }
.th-hero h1 { max-width: 13ch; font-size: clamp(2.5rem, 2rem + 3.2vw, 4.75rem); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.th-hero__lede { margin-top: var(--space-5); max-width: 44ch; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem); line-height: 1.5; color: var(--color-text-muted); text-wrap: pretty; }

.th-start { margin-top: clamp(24px, 3vw, 36px); max-width: 720px; }
.th-start label { display: block; margin-bottom: var(--space-2); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.th-start input { width: 100%; height: 64px; padding: 0 var(--space-6); border: 1px solid var(--color-border-strong); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text); font-family: var(--font-family-mono); font-size: 1.0625rem; box-shadow: var(--shadow-lift); transition: border-color 0.15s var(--ease-out-quart), box-shadow 0.15s var(--ease-out-quart); }
.th-start input:focus { outline: 0; border-color: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-soft); }
.th-start input::placeholder { color: var(--color-text-muted); }
.th-start__choices { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.th-start__choices button { min-height: 46px; padding: 0 var(--space-5); border: 1px solid var(--color-border-strong); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); cursor: pointer; transition: border-color 0.15s var(--ease-out-quart), background-color 0.15s var(--ease-out-quart), transform 0.2s var(--ease-out-quart); }
.th-start__choices button:hover { border-color: var(--color-text); }
.th-start__choices .th-start__go { border-color: var(--color-accent); background: var(--color-accent); color: #fff; }
.th-start__choices .th-start__go:hover { border-color: var(--color-accent-hover); background: var(--color-accent-hover); }
.th-start__choices button:active { transform: scale(0.97); transition-duration: 0.15s, 0.15s, 0.08s; }
.th-start__choices button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

.th-tools { padding-top: clamp(16px, 2vw, 32px); }
.th-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.th-tile, .th-site { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--radius-xl); color: var(--color-text); text-decoration: none; transition: transform 0.25s var(--ease-out-quart); }
.th-tile { padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0; min-height: clamp(420px, 36vw, 480px); }
.th-tile--wide { grid-column: span 7; }
.th-tile--narrow { grid-column: span 5; }
.th-tile--violet { background: var(--color-accent); color: #fff; }
.th-tile--lavender { background: var(--color-lavender); }
.th-tile--apricot { background: var(--color-apricot); }
.th-tile:active, .th-site:active { transform: scale(0.99); transition-duration: 0.08s; }
.th-tile:focus-visible, .th-site:focus-visible, .th-build a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

.th-tile__copy { display: grid; gap: var(--space-2); }
.th-tile__name { font-family: var(--font-family-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.th-tile__body { max-width: 46ch; font-size: 1.0625rem; line-height: 1.45; text-wrap: pretty; }
.th-tile__go { margin-top: var(--space-2); font-weight: var(--font-weight-semibold); }
.th-tile__go span { display: inline-block; margin-left: 6px; transition: transform 0.25s var(--ease-out-quart); }
.th-tile:hover .th-tile__go span, .th-site:hover .th-tile__go span { transform: translateX(4px); }

/* A real result in miniature, running off the tile's bottom edge. */
.th-shot { position: relative; display: block; margin-top: auto; transform: translateY(0); padding: clamp(40px, 3.4vw, 48px) clamp(16px, 2vw, 24px) clamp(20px, 2vw, 28px); background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 -12px 32px -20px rgba(36, 27, 53, 0.4); transition: transform 0.35s var(--ease-out-quart); }
.th-tile__copy + .th-shot { margin-top: auto; }
.th-tile__copy { margin-bottom: var(--space-6); }
.th-tile:hover .th-shot { transform: translateY(-6px); }
.th-shot__tag { position: absolute; top: 14px; right: 16px; }
.th-rows { display: block; }
.th-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 9px 0; }
.th-row + .th-row { border-top: 1px solid var(--color-border); }
.th-row .tc-row__bot { font-size: 0.875rem; }
.th-row .tc-sig { flex: none; font-size: 0.8125rem; }
.th-row--stack .th-row__fact { min-width: 0; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.th-row__label { display: block; color: var(--color-text-muted); font-size: 0.75rem; font-weight: var(--font-weight-medium); }
.th-serp { display: block; padding: 0; box-shadow: none; background: none; }
.th-serp > span { display: block; }
.th-serp .tc-serp__title { margin: 6px 0 4px; font-size: 18px; line-height: 24px; }
.th-serp .tc-serp__desc { font-size: 13px; line-height: 20px; }
.th-meter { display: grid; margin-top: var(--space-4); }

.th-site { grid-column: span 7; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: var(--space-5) clamp(24px, 4vw, 56px); padding: clamp(24px, 3vw, 40px); background: var(--color-surface-muted); }
.th-site .th-tile__copy { margin-bottom: 0; }
.th-weights { display: grid; gap: 2px; }
.th-weights > span { display: flex; align-items: baseline; gap: var(--space-3); padding: 10px 0; font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); }
.th-weights > span + span { border-top: 1px solid var(--color-border-strong); }
.th-weights__points { width: 2.2ch; font-family: var(--font-family-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--color-accent-text); }

.th-build__title { margin-top: clamp(48px, 6vw, 80px); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); letter-spacing: -0.03em; }
.th-build { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin-top: var(--space-5); }
.th-build a { display: grid; gap: var(--space-4); align-content: space-between; min-width: 0; padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--color-border-strong); border-radius: var(--radius-xl); color: var(--color-text); text-decoration: none; transition: border-color 0.15s var(--ease-out-quart), transform 0.25s var(--ease-out-quart); }
.th-build a:hover { border-color: var(--color-text); }
.th-build a:active { transform: scale(0.99); transition-duration: 0.15s, 0.08s; }
.th-build .th-tile__copy { margin-bottom: 0; }
.th-build .th-tile__name { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }
.th-build .th-tile__body { font-size: 1rem; color: var(--color-text-muted); }
.th-build code { display: block; overflow: hidden; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-surface-muted); font-family: var(--font-family-mono); font-size: 0.8125rem; line-height: 1.6; white-space: pre; }

@media (max-width: 900px) {
  .th-tile--wide, .th-tile--narrow, .th-site { grid-column: 1 / -1; }
  .th-tile { min-height: 0; }
  .th-hero__spark { display: none; }
}

@media (max-width: 640px) {
  .th-hero__circle { top: -120px; right: -120px; width: 200px; }
  .th-site { grid-template-columns: minmax(0, 1fr); }
  .th-build { grid-template-columns: minmax(0, 1fr); }
  .th-start__choices button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .th-tile, .th-site, .th-build a { animation: tc-rise 0.5s var(--ease-out-expo) both; }
  .th-grid > :nth-child(2) { animation-delay: 60ms; }
  .th-grid > :nth-child(3) { animation-delay: 120ms; }
  .th-grid > :nth-child(4) { animation-delay: 180ms; }
}

@media (prefers-reduced-motion: reduce) {
  .th-tile, .th-site, .th-shot, .th-build a, .th-start__choices button, .th-tile__go span { transition: none; }
  .th-tile:hover .th-shot, .th-tile:hover .th-tile__go span, .th-site:hover .th-tile__go span, .th-tile:active, .th-site:active, .th-build a:active, .th-start__choices button:active { transform: none; }
}
