/* Free tools. Uses the tokens from shared.css. */
.ft-sec { padding: 72px max(56px, calc((100% - 1200px) / 2)); background: var(--black); }
.ft-sec + .ft-sec { background: var(--dark); border-top: 1px solid var(--border); }
.ft-tool { padding-top: 56px; }
.ft-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 20px 40px -30px rgba(23, 19, 16, .35);
}
.ft-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ft-grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.ft-l {
  display: block;
  margin: 18px 0 8px;
  font-family: var(--font-sub);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.ft-card > .ft-l:first-child, .ft-card > form > .ft-l:first-child { margin-top: 0; }
.ft-in {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-900);
  font: inherit;
  font-size: 1rem;
}
.ft-in:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
textarea.ft-in { resize: vertical; field-sizing: content; min-height: 90px; }
.ft-inline { display: flex; gap: 12px; }
.ft-inline .ft-in { flex: 1; font-size: 1.1rem; padding: 14px 16px; }
.ft-go { white-space: nowrap; }
.ft-hint { margin: 8px 0 0; font-size: .9rem; line-height: 1.5; color: var(--ink-600); }
.ft-hint a { color: var(--orange-deep); }
.ft-err { margin: 16px 0 0; padding: 14px 18px; border-radius: 10px; background: #fff1ec; color: #8f2a0e; border: 1px solid #f4c3b1; }
.ft-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.ft-url { font-family: var(--font-sub); font-weight: 700; font-size: 1.05rem; word-break: break-all; color: var(--ink-900); }

/* grader */
.ft-out { margin-top: 24px; }
.ft-score { display: flex; align-items: center; gap: 28px; }
.ft-ring {
  --s: 0;
  flex: none;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(closest-side, var(--panel) 78%, transparent 80% 100%),
    conic-gradient(var(--orange) calc(var(--s) * 1%), var(--border) 0);
}
.ft-ring span { font-family: var(--font-head); font-size: 3.2rem; line-height: .9; color: var(--ink-900); }
.ft-ring small { font-size: .8rem; color: var(--ink-500); }
.ft-checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ft-check {
  display: grid;
  gap: 4px;
  padding: 16px 18px 16px 20px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid #1f9d4a;
}
.ft-check.bad { border-left-color: #d9480f; }
.ft-check strong { font-family: var(--font-sub); font-size: 1.05rem; }
.ft-check span { font-size: .95rem; color: var(--ink-700); word-break: break-word; }

/* search preview */
.ft-meter { height: 6px; border-radius: 3px; background: var(--border); margin-top: 8px; overflow: hidden; }
.ft-meter span { display: block; height: 100%; border-radius: 3px; background: #1f9d4a; transition: width .15s; }
.ft-meter span.over { background: #d9480f; }
.ft-meter span.short { background: #e8a200; }
.serp { font-family: Arial, sans-serif; padding: 18px 0 4px; max-width: 600px; }
.serp-site { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #202124; }
.serp-fav { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; border: 1px solid #dadce0; flex: none; }
.serp-name { display: block; }
.serp-path { color: #4d5156; font-size: 12px; }
.serp-t { margin-top: 8px; font-size: 20px; line-height: 1.3; color: #1a0dab; }
.serp-d { margin-top: 4px; font-size: 14px; line-height: 1.58; color: #4d5156; }

/* schema */
.ft-code {
  margin: 0 0 16px;
  padding: 18px;
  max-height: 520px;
  overflow: auto;
  border-radius: 10px;
  background: #141210;
  color: #f4f1ec;
  font: 13px/1.55 ui-monospace, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

/* review link */
.ft-qr { margin-top: 20px; }
.ft-qr img, .ft-qr canvas { display: block; padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }

/* missed calls */
.ft-dark { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.ft-dark .ft-l, .ft-dark .ft-hint { color: var(--on-ink-soft); }
.ft-big { font-family: var(--font-head); font-size: clamp(3.4rem, 7vw, 5.4rem); line-height: .9; color: var(--orange-lift); }
.ft-stats { list-style: none; padding: 0; margin: 24px 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ft-stats li { padding: 14px; border: 1px solid #2b2521; border-radius: 10px; display: grid; gap: 4px; }
.ft-stats strong { font-family: var(--font-head); font-size: 1.9rem; line-height: 1; color: #fff; }
.ft-stats span { font-size: .82rem; color: var(--on-ink-mute); }

/* tiles */
.ft-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.ft-tiles-hub { margin-top: 0; }
.ft-tile {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 26px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink-800);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.ft-tile:hover, .ft-tile:focus-visible { transform: translateY(-3px); border-color: var(--orange); box-shadow: 0 20px 40px -26px rgba(23, 19, 16, .45); }
.ft-tile-k { font-family: var(--font-sub); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-deep); }
.ft-tile strong { font-family: var(--font-sub); font-size: 1.35rem; line-height: 1.15; color: var(--ink-900); }
.ft-tile span:last-child { font-size: .95rem; line-height: 1.55; }

/* faq */
.ft-faq { max-width: 860px; border-bottom: 1px solid var(--border); padding: 18px 0; }
.ft-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.ft-faq summary::-webkit-details-marker { display: none; }
.ft-faq summary::after { content: "+"; color: var(--orange-deep); font-size: 1.5rem; line-height: 1; }
.ft-faq[open] summary::after { content: "\2212"; }
.ft-faq h3 { margin: 0; font-family: var(--font-sub); font-size: 1.15rem; font-weight: 700; }
.ft-faq p { margin: 12px 0 0; font-size: 1rem; line-height: 1.75; color: var(--ink-700); }

@media (prefers-reduced-motion: reduce) { .ft-tile, .ft-meter span { transition: none; } .ft-tile:hover { transform: none; } }
@media (max-width: 900px) {
  .ft-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ft-sec { padding: 48px 16px; }
  .ft-card { padding: 20px; }
  .ft-inline { flex-direction: column; }
  .ft-grid3 { grid-template-columns: 1fr 1fr; }
  .ft-grid3 > :first-child { grid-column: 1 / -1; }
  .ft-score { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ft-stats { grid-template-columns: 1fr; }
}
