:root {
    --rdt-ink: #071527;
    --rdt-ink-soft: #26354d;
    --rdt-muted: #657189;
    --rdt-border: #dce7f5;
    --rdt-card: #ffffff;
    --rdt-bg: #f6f9ff;
    --rdt-cyan: #23b9e9;
    --rdt-blue: #3ba7f5;
    --rdt-purple: #c66bff;
    --rdt-purple-dark: #9d45ea;
    --rdt-shadow: 0 18px 55px rgba(7, 21, 39, 0.10);
    --rdt-shadow-soft: 0 12px 35px rgba(7, 21, 39, 0.08);
    --rdt-gradient: linear-gradient(135deg, var(--rdt-purple) 0%, var(--rdt-blue) 48%, var(--rdt-cyan) 100%);
}

.rdt-wrap,
.rdt-wrap * {
    box-sizing: border-box;
}

.rdt-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 16px 72px;
    color: var(--rdt-ink);
    font-family: inherit;
}

.rdt-wrap a {
    text-decoration: none;
}

.rdt-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 42px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 16% 20%, rgba(198, 107, 255, 0.28), transparent 32%),
        radial-gradient(circle at 85% 10%, rgba(35, 185, 233, 0.33), transparent 34%),
        linear-gradient(135deg, #071527 0%, #102742 54%, #0a1b31 100%);
    color: #ffffff;
    box-shadow: var(--rdt-shadow);
}

.rdt-hero::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    pointer-events: none;
}

.rdt-hero-badge,
.rdt-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #eaf8ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rdt-kicker {
    background: linear-gradient(135deg, rgba(198, 107, 255, 0.14), rgba(35, 185, 233, 0.14));
    color: var(--rdt-purple-dark);
}

.rdt-hero h1 {
    max-width: 770px;
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.rdt-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.7;
}

.rdt-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.rdt-button,
.rdt-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 13px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--rdt-gradient);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(35, 185, 233, 0.28);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.rdt-button:hover,
.rdt-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(157, 69, 234, 0.26);
    opacity: .96;
}

.rdt-button-light {
    background: #ffffff;
    color: var(--rdt-ink) !important;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.18);
}

.rdt-ghost-link {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 4px;
    color: #ffffff !important;
    font-weight: 850;
}

.rdt-tools-panel,
.rdt-tool,
.rdt-cta,
.rdt-faq {
    margin-top: 26px;
    border: 1px solid var(--rdt-border);
    border-radius: 28px;
    background: var(--rdt-card);
    box-shadow: var(--rdt-shadow-soft);
}

.rdt-tools-panel {
    padding: 26px;
}

.rdt-panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 20px;
    align-items: end;
    margin-bottom: 20px;
}

.rdt-panel-head h2,
.rdt-tool-head h2,
.rdt-cta h2,
.rdt-faq h2 {
    margin: 0 0 8px;
    color: var(--rdt-ink);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.rdt-panel-head .rdt-kicker,
.rdt-tool-head .rdt-kicker,
.rdt-cta .rdt-kicker,
.rdt-faq .rdt-kicker {
    margin-bottom: 10px;
}

.rdt-search-label {
    display: block;
    color: var(--rdt-ink-soft);
    font-size: 14px;
    font-weight: 800;
}

.rdt-search-label input {
    margin-top: 8px;
}

.rdt-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.rdt-card {
    position: relative;
    min-height: 178px;
    padding: 22px;
    border: 1px solid #e2ebf6;
    border-radius: 22px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(198, 107, 255, 0.28), rgba(35, 185, 233, 0.30)) border-box;
    color: var(--rdt-ink);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.rdt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(7, 21, 39, 0.10);
    border-color: rgba(35, 185, 233, 0.55);
}

.rdt-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(198, 107, 255, 0.16), rgba(35, 185, 233, 0.18));
    color: var(--rdt-purple-dark);
    font-weight: 900;
}

.rdt-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--rdt-ink);
    font-size: 17px;
    line-height: 1.25;
}

.rdt-card small {
    display: block;
    color: var(--rdt-muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.rdt-card.is-hidden {
    display: none;
}

.rdt-tool,
.rdt-cta,
.rdt-faq {
    padding: 34px;
}

.rdt-tool-head {
    margin-bottom: 22px;
}

.rdt-tool-head p:not(.rdt-kicker),
.rdt-cta p:not(.rdt-kicker) {
    max-width: 820px;
    margin: 0;
    color: var(--rdt-muted);
    font-size: 16px;
    line-height: 1.72;
}

.rdt-form {
    display: grid;
    gap: 16px;
}

.rdt-two-col,
.rdt-three-col {
    display: grid;
    gap: 16px;
}

.rdt-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rdt-three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rdt-form label {
    display: block;
    color: var(--rdt-ink-soft);
    font-size: 14px;
    font-weight: 850;
}

.rdt-form input,
.rdt-form select,
.rdt-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px 14px;
    border: 1px solid var(--rdt-border);
    border-radius: 16px;
    background: #fbfdff;
    color: var(--rdt-ink);
    font: inherit;
    font-size: 15px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.rdt-form textarea {
    min-height: 108px;
    resize: vertical;
}

.rdt-form input:focus,
.rdt-form select:focus,
.rdt-form textarea:focus {
    border-color: var(--rdt-cyan);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(35, 185, 233, 0.14);
}

.rdt-result {
    display: none;
    margin-top: 8px;
    padding: 22px;
    border: 1px solid rgba(35, 185, 233, 0.26);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(198, 107, 255, 0.08), rgba(35, 185, 233, 0.10));
}

.rdt-result.is-visible {
    display: block;
}

.rdt-result h3 {
    margin: 0 0 10px;
    color: var(--rdt-ink);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.rdt-result ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.rdt-result li {
    margin: 7px 0;
    color: var(--rdt-ink-soft);
}

.rdt-score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 78px;
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 999px;
    background: var(--rdt-gradient);
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
    box-shadow: 0 14px 34px rgba(35, 185, 233, 0.26);
}

.rdt-output-box {
    white-space: pre-wrap;
    border: 1px dashed rgba(35, 185, 233, 0.55);
    border-radius: 16px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.86);
    margin: 12px 0;
    color: var(--rdt-ink-soft);
    line-height: 1.65;
}

.rdt-pill-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.rdt-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(35, 185, 233, 0.34);
    color: var(--rdt-ink-soft);
    font-size: 14px;
    font-weight: 800;
}

.rdt-note {
    display: block;
    margin-top: 10px;
    color: var(--rdt-muted);
    font-size: 13px;
    line-height: 1.6;
}

.rdt-cta {
    text-align: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(198, 107, 255, 0.14), transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(35, 185, 233, 0.15), transparent 35%),
        #ffffff;
}

.rdt-cta p {
    margin-left: auto !important;
    margin-right: auto !important;
}

.rdt-cta .rdt-button {
    margin-top: 22px;
}

.rdt-faq {
    background: #ffffff;
}

.rdt-faq details {
    border: 1px solid var(--rdt-border);
    border-radius: 16px;
    padding: 16px 18px;
    background: #fbfdff;
}

.rdt-faq details + details {
    margin-top: 12px;
}

.rdt-faq summary {
    cursor: pointer;
    color: var(--rdt-ink);
    font-weight: 900;
}

.rdt-faq p {
    margin: 12px 0 0;
    color: var(--rdt-muted);
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .rdt-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .rdt-panel-head,
    .rdt-grid,
    .rdt-three-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .rdt-wrap {
        padding: 20px 12px 50px;
    }

    .rdt-hero,
    .rdt-tool,
    .rdt-tools-panel,
    .rdt-cta,
    .rdt-faq {
        padding: 22px 16px;
        border-radius: 22px;
    }

    .rdt-panel-head,
    .rdt-grid,
    .rdt-two-col,
    .rdt-three-col {
        grid-template-columns: 1fr;
    }

    .rdt-card {
        min-height: auto;
    }

    .rdt-button,
    .rdt-copy-btn {
        width: 100%;
    }

    .rdt-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

.rdt-inline-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border: 1px solid rgba(35, 185, 233, 0.22);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(198, 107, 255, 0.06), rgba(35, 185, 233, 0.08));
}

.rdt-small-btn {
    min-height: 38px;
    padding: 10px 14px;
    font-size: 13px;
    box-shadow: 0 8px 20px rgba(35, 185, 233, 0.18);
}

.rdt-inline-note {
    color: var(--rdt-muted);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 750;
}

.rdt-copy-btn:disabled,
.rdt-button:disabled {
    cursor: not-allowed;
    opacity: .72;
    transform: none;
}

.rdt-smart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.rdt-smart-grid > div {
    padding: 16px;
    border: 1px solid rgba(35, 185, 233, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 640px) {
    .rdt-smart-grid {
        grid-template-columns: 1fr;
    }

    .rdt-inline-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

.rdt-secondary-btn {
    background: #ffffff;
    color: var(--rdt-ink) !important;
    border: 1px solid rgba(35, 185, 233, 0.32);
    box-shadow: 0 8px 22px rgba(7, 21, 39, 0.08);
}

.rdt-generate-actions {
    justify-content: flex-start;
}

.rdt-result .rdt-secondary-btn {
    margin-left: 10px;
    margin-top: 0;
}

@media (max-width: 640px) {
    .rdt-result .rdt-secondary-btn {
        margin-left: 0;
        margin-top: 10px;
    }
}

.rdt-industry-highlight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 12px;
    padding: 12px 14px;
    border: 1px solid rgba(35, 185, 233, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--rdt-ink-soft);
    font-weight: 850;
}


.rdt-snapshot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(137, 91, 255, 0.12), rgba(29, 185, 232, 0.12));
    border: 1px solid rgba(15, 23, 42, 0.08);
    margin: 14px 0 18px;
}

.rdt-snapshot-top strong {
    display: block;
    font-size: 20px;
    color: #0d1630;
}

.rdt-snapshot-top span {
    display: block;
    color: #60708a;
    margin-top: 2px;
}

.rdt-snapshot-top a,
.rdt-mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #925bff, #20b7e8);
    white-space: nowrap;
}

.rdt-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.rdt-snapshot-card {
    background: #ffffff;
    border: 1px solid #dce7f5;
    border-radius: 18px;
    padding: 16px;
    min-height: 132px;
    box-shadow: 0 14px 34px rgba(12, 24, 56, 0.08);
}

.rdt-snapshot-card span {
    display: block;
    color: #60708a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.rdt-snapshot-card strong {
    display: block;
    color: #0d1630;
    font-size: 24px;
    line-height: 1.15;
    word-break: break-word;
}

.rdt-snapshot-card small {
    display: block;
    color: #68758c;
    margin-top: 8px;
    line-height: 1.4;
}

.rdt-snapshot-card .rdt-mini-link {
    margin-top: 12px;
    font-size: 13px;
}

@media (max-width: 920px) {
    .rdt-snapshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .rdt-snapshot-top {
        align-items: flex-start;
        flex-direction: column;
    }
    .rdt-snapshot-grid {
        grid-template-columns: 1fr;
    }
}

.rdt-clean-table {
    width: 100%;
    border-collapse: collapse;
    white-space: normal;
    margin-top: 10px;
    color: var(--rdt-ink-soft);
}

.rdt-clean-table th,
.rdt-clean-table td {
    text-align: left;
    padding: 10px 9px;
    border-bottom: 1px solid #dce7f5;
    vertical-align: top;
}

.rdt-clean-table th {
    color: var(--rdt-ink);
    font-weight: 900;
    background: rgba(35, 185, 233, 0.06);
}

.rdt-snapshot-tables {
    align-items: start;
    margin-top: 14px;
}

.rdt-snapshot-tables .rdt-output-box {
    white-space: normal;
    height: 100%;
}

.rdt-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    background: rgba(104, 117, 140, 0.12);
    color: #334155;
    white-space: nowrap;
}

.rdt-status-badge.is-good {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.rdt-status-badge.is-warning {
    background: rgba(245, 158, 11, 0.13);
    color: #92400e;
}

.rdt-status-badge.is-muted {
    background: rgba(100, 116, 139, 0.13);
    color: #475569;
}

.rdt-locked-metrics {
    margin-top: 14px;
    border-style: dashed;
    background: linear-gradient(135deg, rgba(20, 33, 61, 0.04), rgba(35, 185, 233, 0.05));
}

.rdt-locked-metrics p {
    margin: 8px 0 10px;
    color: var(--rdt-ink-soft);
}


.rdt-ahrefs-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.rdt-ahrefs-links a {
    text-decoration: none !important;
}


.rdt-traffic-score-band {
    width: 100%;
    height: 16px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.14);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
    margin: -2px 0 16px;
}

.rdt-traffic-score-band span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--rdt-gradient);
    min-width: 6%;
    transition: width .35s ease;
}

/* v3.3 tool explanation boxes */
.rdt-tool-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: -4px 0 24px;
}

.rdt-info-card {
    border: 1px solid rgba(157, 69, 234, 0.15);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(157, 69, 234, 0.055), rgba(35, 185, 233, 0.055));
    padding: 16px 16px 15px;
}

.rdt-info-card span {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--rdt-purple-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rdt-info-card p {
    margin: 0;
    color: var(--rdt-ink-soft);
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 860px) {
    .rdt-tool-info {
        grid-template-columns: 1fr;
    }
}

/* Keep RaasDigital tools headings in title case even when a theme forces lowercase headings. */
.rdt-wrap .rdt-hero h1,
.rdt-wrap .rdt-tools-panel h2,
.rdt-wrap .rdt-tool-head h2,
.rdt-wrap .rdt-cta h2,
.rdt-wrap .rdt-faq h2 {
    text-transform: none !important;
}


/* Strong caps/title-case fix: keep tool text exactly as written even if the theme forces lowercase. */
.rdt-wrap,
.rdt-wrap *,
.rdt-shortcode-section,
.rdt-shortcode-section *,
.rdt-hero-shortcode,
.rdt-hero-shortcode * {
    text-transform: none !important;
}

/* Keep small badges intentionally uppercase. */
.rdt-wrap .rdt-hero-badge,
.rdt-wrap .rdt-tools-badge,
.rdt-wrap .rdt-kicker,
.rdt-shortcode-section .rdt-hero-badge,
.rdt-shortcode-section .rdt-tools-badge,
.rdt-shortcode-section .rdt-kicker {
    text-transform: uppercase !important;
}

/* Individual tool shortcode fix: single tool pages do not include the main .rdt-wrap wrapper. */
body .rdt-tool,
body .rdt-cta,
body .rdt-faq,
body .rdt-tools-panel {
    box-sizing: border-box !important;
    width: 100%;
    max-width: 1180px;
    margin-left: auto !important;
    margin-right: auto !important;
    color: var(--rdt-ink) !important;
    font-family: inherit;
    text-transform: none !important;
}

body .rdt-tool *,
body .rdt-cta *,
body .rdt-faq *,
body .rdt-tools-panel *,
body .rdt-tool-head,
body .rdt-tool-head *,
body .rdt-panel-head,
body .rdt-panel-head * {
    box-sizing: border-box !important;
    text-transform: none !important;
}

body .rdt-tool .rdt-tool-head h1,
body .rdt-tool .rdt-tool-head h2,
body .rdt-tool .rdt-tool-head h3,
body .rdt-tools-panel .rdt-panel-head h1,
body .rdt-tools-panel .rdt-panel-head h2,
body .rdt-cta h2,
body .rdt-faq h2,
body .rdt-card strong {
    text-transform: none !important;
}

body .rdt-tool .rdt-kicker,
body .rdt-cta .rdt-kicker,
body .rdt-faq .rdt-kicker,
body .rdt-tools-panel .rdt-tools-badge,
body .rdt-tool .rdt-info-card span {
    text-transform: uppercase !important;
}
