/* Altus Meta Description Checker — tool styles.
 * The card is white on the site's dark navy tool pages.
 * HEADING RULE: every h2/h3 inside the card gets a dark colour with a
 * selector that beats the theme's `.page-body h2` white rule.
 */
.mdc-root { max-width: 860px; margin: 0 auto; }
.mdc-card {
    background: #fff; border-radius: 18px; padding: 36px 34px;
    box-shadow: 0 18px 50px rgba(2, 8, 23, .35); color: #33475f;
}
.page-body .mdc-card h2, .page-body .mdc-card h3 { color: #0f2033; }
.mdc-card h2, .mdc-card h3 { color: #0f2033; }
.mdc-badge {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: #10b3fe; border: 1px solid #10b3fe;
    border-radius: 999px; padding: 6px 14px; margin-bottom: 14px;
}
.mdc-title { font-size: 30px; margin: 0 0 10px; line-height: 1.25; }
.mdc-sub { font-size: 16px; line-height: 1.65; margin: 0 0 22px; color: #51637a; }

/* tabs */
.mdc-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.mdc-tab {
    border: 1px solid #d7e0ec; background: #f4f7fb; color: #33475f;
    border-radius: 10px; padding: 10px 18px; font-size: 15px; font-weight: 600;
    cursor: pointer;
}
.mdc-tab-active { background: #0f2033; border-color: #0f2033; color: #fff; }

/* fields */
.mdc-field { margin-bottom: 16px; }
.mdc-label { display: block; font-weight: 700; font-size: 14px; color: #0f2033; margin-bottom: 6px; }
.mdc-input {
    width: 100%; box-sizing: border-box; border: 1.5px solid #d7e0ec; border-radius: 10px;
    padding: 12px 14px; font-size: 15px; color: #0f2033; background: #fbfdff;
}
.mdc-input:focus { outline: none; border-color: #10b3fe; box-shadow: 0 0 0 3px rgba(16,179,254,.15); }
textarea.mdc-input { min-height: 96px; resize: vertical; font-family: inherit; }
.mdc-input-bad { border-color: #e5484d; }
.mdc-hint { font-size: 13px; color: #7b8ba0; margin: 6px 0 0; }
.mdc-count { font-size: 13px; color: #7b8ba0; text-align: right; margin: 4px 0 0; }
.mdc-row { display: flex; gap: 12px; }
.mdc-row .mdc-input { flex: 1; }

/* buttons */
.mdc-btn {
    display: inline-block; background: #10b3fe; color: #fff !important; border: none;
    border-radius: 12px; padding: 14px 30px; font-size: 16px; font-weight: 700;
    cursor: pointer; text-decoration: none; transition: background .2s;
}
.mdc-btn:hover { background: #0a9fe6; }
.mdc-btn:disabled { opacity: .6; cursor: wait; }
.mdc-btn-secondary {
    background: #0f2033; padding: 12px 22px; font-size: 15px; white-space: nowrap;
}
.mdc-btn-secondary:hover { background: #1b3a5c; }
.mdc-btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.mdc-btn-ghost {
    background: #fff; color: #0f2033 !important; border: 1.5px solid #d7e0ec;
}
.mdc-btn-ghost:hover { border-color: #10b3fe; background: #f4fafe; }

.mdc-error {
    background: #fdecec; border: 1px solid #f3b4b6; color: #a02a2e;
    border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 0 0 16px;
}
.mdc-fetch-msg { font-size: 14px; color: #51637a; margin: 8px 0 0; }

/* score */
.mdc-score { display: flex; align-items: center; gap: 22px; margin: 6px 0 22px; }
.mdc-score-ring {
    width: 104px; height: 104px; border-radius: 50%; flex: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #f0f5fa; border: 6px solid #e2eaf3;
}
.mdc-score-num { font-size: 30px; font-weight: 800; color: #0f2033; line-height: 1; }
.mdc-score-max { font-size: 12px; color: #7b8ba0; }
.mdc-score-meta { flex: 1; }
.mdc-grade { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.mdc-good { color: #1d7a3a; }
.mdc-warn { color: #b7791f; }
.mdc-bad { color: #c0362c; }
.mdc-score-track { height: 10px; background: #e8eef5; border-radius: 999px; overflow: hidden; }
.mdc-score-fill { height: 100%; width: 0; border-radius: 999px; transition: width .6s ease; }
.mdc-score-fill.mdc-good { background: #22a355; }
.mdc-score-fill.mdc-warn { background: #e0a32e; }
.mdc-score-fill.mdc-bad { background: #e5484d; }

/* SERP preview */
.mdc-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.mdc-preview-head h3 { margin: 0; font-size: 19px; }
.mdc-serp {
    border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px 22px;
    background: #fff; max-width: 640px;
}
.mdc-serp-mobile { max-width: 380px; }
.mdc-serp-url { font-size: 14px; color: #202124; margin-bottom: 2px; }
.mdc-serp-title { font-size: 20px; color: #1a0dab; line-height: 1.3; margin: 2px 0 4px; font-weight: 400; }
.mdc-serp-title:hover { text-decoration: underline; }
.mdc-serp-desc { font-size: 14px; color: #4d5156; line-height: 1.58; margin: 0; }
.mdc-prev-note { font-size: 13px; color: #7b8ba0; margin: 10px 0 0; }

/* checklists */
.mdc-checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.mdc-check {
    display: flex; gap: 12px; align-items: flex-start;
    border: 1px solid #e6ecf4; border-radius: 12px; padding: 12px 14px; background: #fbfdff;
}
.mdc-check-icon {
    flex: none; width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; color: #fff; margin-top: 2px;
}
.mdc-pass .mdc-check-icon { background: #22a355; }
.mdc-warn .mdc-check-icon { background: #e0a32e; }
.mdc-fail .mdc-check-icon { background: #e5484d; }
.mdc-check strong { display: block; font-size: 14.5px; color: #0f2033; margin-bottom: 2px; }
.mdc-check p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #51637a; }
.mdc-checks-title { font-size: 18px; margin: 26px 0 4px; }

.mdc-copy-msg { font-size: 14px; color: #1d7a3a; margin: 10px 0 0; }

/* email gate */
.mdc-gate { margin-top: 30px; border-top: 1px solid #e6ecf4; padding-top: 26px; }
.mdc-gate h3 { font-size: 19px; margin: 0 0 8px; }
.mdc-gate p { font-size: 14.5px; color: #51637a; margin: 0 0 16px; line-height: 1.6; }
.mdc-gate-done { text-align: center; padding: 10px 0; }
.mdc-tick {
    width: 54px; height: 54px; border-radius: 50%; background: #22a355; color: #fff;
    font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
}
.mdc-gate-done h3 { margin: 0 0 8px; }

.mdc-fineprint { font-size: 12.5px; color: #8b98ac; margin: 26px 0 0; line-height: 1.6; }

@media (max-width: 640px) {
    .mdc-card { padding: 24px 20px; }
    .mdc-title { font-size: 24px; }
    .mdc-row { flex-direction: column; }
    .mdc-btn-secondary { white-space: normal; }
    .mdc-score { flex-direction: column; text-align: center; }
    .mdc-score-meta { width: 100%; }
}
