/* /free-tools — checker result + tool hub. Token-only; see assets/css/tokens.css. */

.ft-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

.ft-kicker {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--graphite);
}

.ft-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--step-h1);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0.75rem 0 1rem;
}

.ft-title-domain {
    display: block;
    margin-top: 0.15em;
    font-size: 0.7em;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--accent);
    overflow-wrap: break-word;
}

.ft-lede {
    font-size: 1.125rem;
    color: var(--graphite);
    max-width: 52ch;
    margin: 0 0 2.5rem;
}

/* ── form ─────────────────────────────────────────────────────────────── */

.ft-form {
    display: flex;
    gap: 0.5rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    padding: 0.375rem 0.375rem 0.375rem 1.5rem;
    background: var(--surface);
    align-items: center;
}

.ft-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 1.0625rem;
    color: var(--ink);
    outline: none;
}

.ft-input::placeholder {
    color: var(--quiet);
}

.ft-hint {
    margin: 0.875rem 0 0;
    font-size: 0.8125rem;
    color: var(--graphite);
}

.ft-alert {
    margin-top: 1.5rem;
    padding: 0.875rem 1.125rem;
    border: 1px solid var(--fail-hair);
    border-radius: var(--radius-sm);
    background: var(--fail-bg);
    color: var(--fail);
    font-size: 0.9375rem;
}

/* ── result ───────────────────────────────────────────────────────────── */

.ft-result {
    margin-top: 2.5rem;
    border: 1px solid var(--hair);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 2rem;
}

.ft-score {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--hair);
}

.ft-score-domain {
    font-size: 1.0625rem;
    font-weight: 500;
    overflow-wrap: break-word;
}

.ft-score-label {
    font-size: 0.8125rem;
    color: var(--graphite);
    margin-top: 0.125rem;
}

.ft-score-figures {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.ft-grade {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--hair);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
}

.ft-grade--a,
.ft-grade--b {
    background: var(--pass-bg);
    border-color: var(--pass-hair);
    color: var(--pass);
}

.ft-grade--c,
.ft-grade--d {
    background: var(--warn-bg);
    border-color: var(--warn-hair);
    color: var(--warn);
}

.ft-grade--f {
    background: var(--fail-bg);
    border-color: var(--fail-hair);
    color: var(--fail);
}

.ft-score-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-variant-numeric: tabular-nums;
}

.ft-score-number span {
    font-size: 0.9375rem;
    color: var(--graphite);
}

.ft-checks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ft-check {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--hair);
}

.ft-check:last-child {
    border-bottom: 0;
}

.ft-check i {
    font-size: 1.125rem;
    line-height: 1.4;
    color: var(--quiet);
}

.ft-check--pass i { color: var(--pass); }
.ft-check--fail i { color: var(--fail); }
.ft-check--warn i { color: var(--warn); }

.ft-check-label {
    font-weight: 600;
    font-size: 0.9375rem;
}

.ft-check-msg {
    font-size: 0.875rem;
    color: var(--graphite);
}

.ft-record {
    margin-top: 1.25rem;
}

.ft-record-label {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--graphite);
    margin-bottom: 0.375rem;
}

.ft-record-value {
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--hair);
    border-radius: var(--radius-sm);
    background: var(--paper-2);
    font-size: 0.8125rem;
    line-height: 1.6;
    word-break: break-all;
}

.ft-cta {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--hair);
}

.ft-cta strong {
    display: block;
    font-size: 1.0625rem;
    margin-bottom: 0.875rem;
}

.ft-cta p {
    color: var(--graphite);
    font-size: 0.9375rem;
    margin: 0 0 1.125rem;
    max-width: 52ch;
}

.ft-cta-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── tool hub ─────────────────────────────────────────────────────────── */

.ft-tools {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--hair);
}

.ft-tools-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: var(--step-h2);
    letter-spacing: -0.02em;
    margin: 0 0 1.75rem;
}

.ft-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--hair);
    border-radius: var(--radius);
    overflow: hidden;
}

.ft-tool {
    padding: 1.75rem 1.5rem;
    background: var(--surface);
}

.ft-tool + .ft-tool {
    border-left: 1px solid var(--hair);
}

.ft-tool h3 {
    font-size: 1.0625rem;
    margin: 0 0 0.5rem;
}

.ft-tool p {
    font-size: 0.875rem;
    color: var(--graphite);
    margin: 0 0 1rem;
}

.ft-tool a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

@media (max-width: 760px) {
    .ft-wrap {
        padding: 2.5rem 1.25rem 1.5rem;
    }

    .ft-form {
        flex-direction: column;
        align-items: stretch;
        border-radius: var(--radius);
        padding: 1rem;
        gap: 0.75rem;
    }

    .ft-form .btn-pill {
        justify-content: center;
    }

    .ft-result {
        padding: 1.25rem;
    }

    .ft-score {
        flex-direction: column;
    }

    .ft-tool-grid {
        grid-template-columns: 1fr;
    }

    .ft-tool + .ft-tool {
        border-left: 0;
        border-top: 1px solid var(--hair);
    }
}
