:root {
    --text: #171b26;
    --muted: #667085;
    --primary: #e33b32;
    --primary-dark: #b92c25;
    --surface: #ffffff;
    --soft: #f5f7fb;
    --line: #e6eaf0;
    --dark: #111827;
    --shadow: 0 18px 42px rgba(17, 24, 39, 0.09);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #fff 0%, var(--soft) 48%, #fff 100%);
    color: var(--text);
    font-family: "Poppins", Arial, sans-serif;
}

h1,
h2,
h3,
.navbar-brand {
    font-family: "Montserrat", Arial, sans-serif;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.02;
}

h2 {
    font-weight: 800;
}

h3 {
    font-size: 1.08rem;
    font-weight: 800;
}

a {
    color: var(--primary-dark);
}

.navbar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.navbar-brand {
    color: var(--dark);
    font-weight: 800;
}

.nav-link {
    color: var(--text);
    font-weight: 600;
}

.hero-section {
    padding: 5.5rem 0 3.5rem;
    background:
        radial-gradient(circle at 14% 20%, rgba(227, 59, 50, 0.12), transparent 28rem),
        radial-gradient(circle at 88% 12%, rgba(17, 24, 39, 0.08), transparent 26rem);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 760px;
    margin: 1.1rem 0 1.7rem;
    color: var(--muted);
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    border-radius: 12px;
    font-weight: 700;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
}

.hero-panel,
.tool-shell,
.tool-card,
.notice-card,
.result-box,
.thumbnail-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 1.25rem;
}

.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
}

.metric-row:last-child {
    border-bottom: 0;
}

.metric-row span,
.section-heading p,
.tool-card p,
.disclaimer,
.muted-copy,
.breadcrumb,
.footer-grid p {
    color: var(--muted);
}

.section-pad,
.faq-section,
.tool-section {
    padding: 4rem 0;
}

.bg-white {
    background: #fff;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.tool-card {
    display: block;
    height: 100%;
    padding: 1.25rem;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(17, 24, 39, 0.12);
}

.tool-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 12px;
    color: #fff;
    background: var(--primary);
}

.tool-icon::before {
    content: attr(data-icon);
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
}

.text-link {
    color: var(--primary-dark);
    font-weight: 800;
}

.seo-section {
    padding: 4rem 0;
    background: #fff;
}

.notice-card,
.result-box,
.tool-shell {
    padding: 1.25rem;
}

.tool-hero {
    padding: 3rem 0 1.5rem;
}

.tool-shell {
    max-width: 980px;
}

.form-control,
.form-select {
    min-height: 48px;
    border-color: var(--line);
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(227, 59, 50, 0.45);
    box-shadow: 0 0 0 0.22rem rgba(227, 59, 50, 0.12);
}

textarea.form-control {
    min-height: 140px;
}

.result-box {
    min-height: 72px;
    background: #fbfcfe;
    white-space: pre-wrap;
}

.copy-row {
    display: flex;
    gap: 0.75rem;
    align-items: start;
}

.copy-row .form-control,
.copy-row .result-box {
    flex: 1;
}

.thumbnail-card {
    height: 100%;
    overflow: hidden;
}

.thumbnail-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eef1f6;
}

.thumbnail-card-body {
    padding: 1rem;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    background: #fff0ef;
    border: 1px solid rgba(227, 59, 50, 0.18);
    border-radius: 999px;
    color: var(--primary-dark);
    font-weight: 800;
}

.score-ring {
    display: inline-flex;
    width: 112px;
    height: 112px;
    align-items: center;
    justify-content: center;
    border: 10px solid #e9edf3;
    border-top-color: var(--primary);
    border-radius: 50%;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
}

.check-list {
    display: grid;
    gap: 0.65rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.check-list li {
    padding: 0.8rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.breadcrumb-wrap {
    margin-bottom: 1rem;
}

.accordion {
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.accordion-button {
    font-weight: 800;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-dark);
    background: #fff4f3;
    box-shadow: none;
}

.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-title {
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-content: start;
    justify-content: end;
}

.footer-links a {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.footer-link-button {
    padding: 0;
    color: var(--text);
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 700;
    text-align: left;
}

.footer-link-button:hover,
.footer-links a:hover {
    color: var(--primary-dark);
}

.consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(17, 24, 39, 0.68);
}

.consent-overlay[hidden] {
    display: none;
}

.consent-modal {
    width: min(100%, 560px);
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.consent-modal h2 {
    margin-bottom: 0.8rem;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.consent-decline-message,
.consent-tool-notice {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    color: #7a211b;
    background: #fff0ef;
    border: 1px solid rgba(227, 59, 50, 0.22);
    border-radius: 12px;
    font-weight: 600;
}

.consent-page-notice {
    padding: 0.85rem 1rem;
    color: #7a211b;
    background: #fff0ef;
    border-bottom: 1px solid rgba(227, 59, 50, 0.22);
    font-weight: 600;
    text-align: center;
}

.consent-page-notice button {
    margin-left: 0.5rem;
    padding: 0;
    color: var(--primary-dark);
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
}

.consent-disabled {
    opacity: 0.62;
}

.related-tools {
    margin-top: 3rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.related-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.related-link-row a {
    padding: 0.6rem 0.8rem;
    color: var(--text);
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 4rem;
    }

    .copy-row,
    .footer-grid {
        display: block;
    }

    .copy-row .btn {
        width: 100%;
        margin-top: 0.75rem;
    }

    .footer-links {
        justify-content: start;
        margin-top: 1rem;
    }

    .consent-actions .btn {
        width: 100%;
    }
}
