/* =========================
   Base Styles
========================= */
:root {
    /* Variables from Reference */
    --clr-bg: #f4f6fb;
    --clr-surface: #ffffff;
    --clr-primary: #00804A;
    --clr-primary-light: #ecedfb;
    /* --clr-primary-dark: #00804A; */
    --clr-accent: #00b4d8;
    --clr-accent-light: #e0f7fb;
    --clr-text: #1e1e2f;
    --clr-text-secondary: #555670;
    --clr-border: #e0e2ee;
    --clr-highlight: #fff3cd;
    --clr-tag-bg: #ecedfb;
    --clr-tag-text: #3a3fc2;
    --clr-success: #198754;
    --clr-danger: #dc3545;
    --shadow-sm: 0 1px 3px rgba(30, 30, 47, 0.06);
    --shadow-md: 0 4px 16px rgba(30, 30, 47, 0.08);
    --shadow-lg: 0 8px 32px rgba(30, 30, 47, 0.10);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --indigo: #4f46e5;
    --green: #22c55e;
    --dark: #0f172a;
    --light: #f8fafc;
    --muted: #64748b;
    --card: #ffffff;

    /* Logo Colors */
    --clr-primary-green: #00804A;
    --clr-secondary-green: #00E685;
    --clr-primary-black: #131521;
    --clr-primary-white: #FFFFFF;
}

body {
    font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    width: 100%;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #eaeaea 1px, transparent 0);
    background-size: 16px 16px;
    z-index: 0;
    color: #111827;
}

header,
footer {
    width: 100%;
    box-sizing: border-box;
}

h1 {
    font-size: 58px;
    margin-bottom: 20px;
    margin-top: 0px;
    color: #111827;
}

h2 {
    font-size: 48px;
    margin-bottom: 20px;
    margin-top: 0px;
}

h3 {
    font-size: 38px;
    margin-bottom: 20px;
    margin-top: 0px;
}

h4 {
    font-size: 28px;
    margin-bottom: 20px;
    margin-top: 0px;
}

h5 {
    font-size: 18px;
    margin-bottom: 20px;
    margin-top: 0px;
}

h6 {
    font-size: 16px;
    margin-bottom: 20px;
    margin-top: 0px;
}

.main-section {
    padding: 80px 40px;
    width: 100%;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.container.banner-container {
    max-width: 900px;
    min-height: 60vh;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.logo-wrap {
    width: 200px;
    margin: 20px;
}

/* =========================
   Site Header
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img {
    height: 40px;
    width: auto;
}

/* ---- User Menu ---- */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: #f1f5f9;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    border: 1px solid #e2e8f0;
}

.user-menu-trigger:hover {
    background: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-greeting {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

.user-menu-arrow {
    color: #64748b;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.user-menu:hover .user-menu-arrow {
    transform: rotate(180deg);
}

/* ---- Dropdown ---- */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 101;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.user-dropdown-item:hover {
    background: #f1f5f9;
    color: #4f46e5;
}

.user-dropdown-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* ---- Guest Header Auth Buttons ---- */
.header-auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 165px;
}

.header-login-btn {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    /* color: var(--clr-primary-green); */
    color: black;

    /* background: transparent; */
    background: white;
    /* border: 2px solid var(--clr-primary-green); */
    border: 2px solid black;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.header-login-btn:hover {
    /* background: #eef2ff; */
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.header-signup-btn {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    /* background: linear-gradient(135deg, var(--clr-primary-green), var(--clr-secondary-green)); */
    background: black;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
    border: 2px solid var(--clr-primary-green);
    border: 2px solid black;
}

.header-signup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.result {
    padding: 0px;
}

/* =========================
   Typography
========================= */

.main-section.banner .main h1 {
    font-weight: 1000;
}

.sub-cont {
    font-size: 20px;
    line-height: 1.6;
    color: #000;
    opacity: 0.7;
    text-align: center;
    width: auto;
    margin: 0 auto 80px;
    animation: HeroSection_slideUpFadeInBottom__DCnOz 0.4s ease 0.4s forwards;
    width: 60%;
}

/* Gradient Text */
.colored {
    /* font-weight: 800; */
    /* background: linear-gradient(to right, #4f46e5, #22c55e); */
    background: linear-gradient(to right, var(--clr-primary-green), #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stroked {
    text-decoration: line-through;
}

/* =========================
   Form & Inputs
========================= */
form {
    margin: 40px 0;
}

.main form,
h1 {
    text-align: center;
}

/* URL Input */
.main input[type="url"] {
    width: 100%;
    padding: 20px 18px;
    font-size: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    /* min-height: 30px; */
    line-height: 1.2;
    box-sizing: border-box;
}

.main input[type="url"]:focus {
    border-color: var(--clr-secondary-green);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.main .scan-form .input-group {
    position: relative;
    width: 70%;
    margin: auto;
}

/* =========================
   Buttons
========================= */
button {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    /* background: linear-gradient(90deg, #4f46e5, #22c55e); */
    background: linear-gradient(90deg, var(--clr-secondary-green), var(--clr-primary-green));
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.main .scan-form .input-group button {
    position: absolute;
    top: 9px;
    right: 10px;
}

/* ── SCORE CHARTS ── */
.score-charts {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.score-chart-card {
    flex: 1;
    min-width: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-chart-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.score-chart-ring-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
}

.score-chart-svg {
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
    /* Start from top */
}

/* Adjust circle properties to be full-cap */
.score-chart-svg circle {
    fill: transparent;
}

.score-chart-center {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.score-chart-num {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.score-chart-denom {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.score-chart-grade {
    padding: 0.4rem 1.25rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    /* Border and text color are set dynamically in HTML via Alpine */
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* =========================
   Tabs
========================= */
.tabs {
    display: flex;
    gap: 12px;
    margin: 20px 0 30px 0;
    align-items: center;
}

.tab {
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    background: rgb(241, 245, 249, 0.3);
    color: #475569;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid #475569;
}

.tab:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.tab.active {
    background: rgba(25, 253, 1, 0.3);
    color: #00804a;
    border: 1px solid #00804A;
    box-shadow: rgba(57, 180, 11, 0.62) 0px 4px 12px;
}

/* Align the last tab (Export PDF) to the right */
.tab:last-child {
    margin-left: auto;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab:last-child:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}


/* =========================
   Status & Results
========================= */
.loader {
    margin: 20px 0;
    width: 85%;
    margin-left: 60px;
}

.item {
    margin-top: 12px;
    padding: 16px;
    border-left: 6px solid;
    border-radius: 8px;
}

.pass {
    background: #f0fdf4;
    border-color: #22c55e;
}

.fail {
    background: #fef2f2;
    border-color: #ef4444;
}

.badge {
    float: right;
    font-weight: bold;
}

.issue {
    color: #b91c1c;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
    background: #fde3c9;
    padding: 10px;
}

.fix {
    color: #065f46;
    font-size: 14px;
    margin-top: 4px;
    margin-bottom: 10px;
    background: #b8fbc6;
    padding: 10px;
}

.details {
    margin-top: 4px;
    margin-bottom: 10px;
}

/* =========================
   Progress Bar
========================= */
.progress-wrapper {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--clr-primary), #22c55e);
    transition: width 0.4s ease;
}

.progress-text {
    margin-top: 8px;
    font-size: 13px;
    color: #374151;
}

/* =================
    FEATURES
================= */
.features {
    max-width: 100%;
    margin: auto;
    background: #fff;
}

.features h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 55px;
    margin-top: 0;
    font-weight: 800;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.card {
    flex: 1 1 260px;
    max-width: 400px;
    background: var(--card);
    padding: 32px;
    border-radius: 22px;
    box-shadow: 0 0px 15px 5px rgba(0, 0, 0, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 65px rgba(79, 70, 229, .2);
}

.card h3 {
    /* color: var(--indigo); */
    /* color: var(--clr-primary); */
    color: #111827;
    font-size: 22px;
    margin-bottom: 10px;
}

.grid .card p {
    color: var(--muted);
    font-size: 16px;
}


/* =========================
   Lead Capture Section
========================= */
.lead-section {
    padding: 80px 20px;
    /* background: linear-gradient(135deg, #4f46e5, #22c55e); */
    background: linear-gradient(135deg, var(--clr-primary-green), var(--clr-secondary-green));
}

.lead-container {
    /* max-width: 520px; */
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
}

/* Heading */
.lead-container h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--clr-primary), #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead-container p {
    font-size: 20px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 30px;
    width: 100%;
}

/* Form */
.lead-form {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group {
    text-align: left;
    width: 48%;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.lead-container .form-group p {
    margin-bottom: 10px;
}

/* Input Focus */
.form-group input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Button */
.submit-btn {
    margin-top: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    /* background: linear-gradient(90deg, #4f46e5, #22c55e); */
    background: linear-gradient(135deg, var(--clr-secondary-green), var(--clr-primary-green));
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.lead-container .submission-message {
    padding: 15px;
    border: #bd7b01 1px solid;
    color: #bd7b01;
    background: #ffa5004a;
    border-radius: 5px;
    box-sizing: border-box;
    margin-top: 15px !important;
    text-align: center;
}

.lead-container .submission-message.success {
    border: var(--clr-primary-green) 1px solid;
    color: var(--clr-primary-green);
    background: #d8f9e5;
    display: block;
    border-radius: 5px;
}

.lead-container .submission-message.error {
    border-color: #bb0303 !important;
    color: #bb0303;
    background: #fecfcf;
    display: block;
    border-radius: 5px;
}

/* =========================
   Floating Expert Contact
========================= */
.expert-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
}

.expert-float a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    background: linear-gradient(90deg, var(--clr-primary), #22c55e);
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Icon */
.expert-icon {
    font-size: 18px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover */
.expert-float a:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

.expert-icon img {
    width: 20px;
}

/* Error message styling */
.error-message {
    color: #b91c1c;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    text-align: left;
    width: 85%;
    margin-left: 60px;
}


/* ================= Counter ================= */

.stats-section {
    background: #f9fafb;
    display: flex;
    justify-content: center;
}

.stats-container {
    max-width: 900px;
    text-align: center;
}

/* Heading */
.stats-title {
    font-size: 40px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
}

/* Subheading */
.stats-subtitle {
    font-size: 20px;
    color: #6b7280;
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* Counter row */
.stats-row {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 28px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

/* Icon */
.stats-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: #4f46e5; */
    color: var(--clr-primary-green);
}

/* Number */
.stats-row strong {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;

    /* background: linear-gradient(90deg, #4f46e5, #22c55e); */
    background: linear-gradient(90deg, var(--clr-primary-green), #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* fallback for older browsers */
    color: var(--clr-primary-green);
}

/* Label */
.stats-label {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}


/* ================= FOOTER ================= */
footer {
    background: #101010;
    color: #cbd5f5;
    text-align: center;
    padding: 34px 20px;
    font-size: 0.9rem;
}

footer .footer-bottom span {
    background: linear-gradient(135deg, var(--clr-primary), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Footer Contact Modal ── */
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-modal-content {
    background: #1e293b;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    max-height: 85vh;
}

.contact-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    padding: 5px;
    transition: color 0.15s;
    width: fit-content;
}

.contact-modal-close:hover {
    color: #ffffff;
}

.contact-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.contact-modal-header h3 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 12px;
}

.contact-modal-header p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.5;
}

.footer-contact-form-box {
    text-align: left;
}

.footer-contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-contact-form .form-group-half {
    flex: 1;
}

.footer-contact-form .form-group-full {
    width: 100%;
    margin-bottom: 16px;
}

.footer-contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.footer-contact-form input,
.footer-contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.footer-contact-form input:focus,
.footer-contact-form textarea:focus {
    border-color: #4f46e5;
}

.footer-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.footer-contact-form .field-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.footer-contact-form .char-counter {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    text-align: right;
    transition: color 0.2s ease;
}

.footer-contact-form .char-counter--warn {
    color: #f59e0b;
    font-weight: 600;
}

.footer-contact-form .submit-btn {
    width: 100%;
    margin-top: 10px;
}


/* ================= FAQ SECTION ================= */

.faq-section {
    width: 100%;
    background: #f9fafb;
    box-sizing: border-box;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.faq-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 14px;
    color: #111827;
}

.faq-subtitle {
    font-size: 20px;
    color: #6b7280;
    max-width: 640px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.faq-list {
    text-align: left;
}

.faq-item {
    background: #ffffff;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 2px solid #e5e7eb;
    /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05); */
    overflow: hidden;
}

.faq-item:last-of-type {
    margin-bottom: 0 !important;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    box-shadow: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin-bottom: 0;
    box-sizing: border-box;
}

.faq-question:hover {
    background: none;
    box-shadow: none;
}

.faq-icon {
    font-size: 22px;
    font-weight: 700;
    color: var(--clr-primary);
    transition: transform 0.25s ease;
}

.faq-icon.rotate {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0px 24px 22px;
    font-size: 16px;
    color: #374151;
    line-height: 1.6;
}

.faq-question-text {
    text-align: left;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0;
}

/* ================= BLOG SECTION ================= */

.blog-section {
    /* padding: 90px 20px; */
    background: #ffffff;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.blog-title {
    font-size: 40px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 14px;
}

.blog-subtitle {
    font-size: 20px;
    color: #6b7280;
    max-width: 720px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.blog-grid {
    /* display: grid; */
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
    gap: 26px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-card {
    background: #f9fafb;
    border-radius: 18px;
    padding: 28px;
    text-align: left;
    border: 1px solid #e5e7eb;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: calc(33.33% - ((26px * 2) / 3));
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.blog-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
    background: #eef2ff;
    color: #4f46e5;
    width: fit-content;
    height: fit-content;
}

.blog-tag.seo {
    background: #ecfeff;
    color: #0369a1;
}

.blog-tag.ai {
    background: #f0fdf4;
    color: #15803d;
}

.blog-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0;
    line-height: 1.4;
}

.blog-card p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: fit-content;
}

.blog-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--clr-primary);
    text-decoration: none;
    width: 100%;
}

.blog-link:hover {
    text-decoration: underline;
}

.blog-link:last-of-type {
    margin-top: auto;
}

/* ================= BLOG POST ================= */

.blog-post {
    background: #f9fafb;
    padding: 80px 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-post-title {
    /* font-size: 2.5rem; */
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.blog-post-subtitle {
    font-size: 1rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
}

.blog-content {
    display: flex;
    /* max-width: 1100px; */
    margin: 0 auto;
    gap: 40px;
}

.blog-main-content {
    flex: 2;
    padding-right: 20px;
}

.blog-main-content h2 {
    font-size: 1.6rem;
    color: #111827;
    margin: 30px 0 14px;
}

.blog-main-content h3 {
    font-size: 1.6rem;
    color: #111827;
    /* margin: 30px 0 14px; */
}

.blog-sidebar h4 {
    font-size: 1.3rem;
    color: #111827;
}

.blog-main-content p,
.blog-main-content li {
    font-size: 16px;
    color: #374151;
    line-height: 1.8;
}

.blog-main-content ul {
    margin: 10px 0 20px 20px;
}

.blog-sidebar {
    flex: 1;
    background: #f1f5f9;
    border-radius: 16px;
    padding: 28px;
    align-self: flex-start;
}

.blog-sidebar h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.subscribe-form input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 10px;
    outline: none;
    box-sizing: border-box;
}

.subscribe-btn {
    display: inline-block;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(90deg, var(--clr-primary), #22c55e);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* =========================
   Results Gating & Skeleton
========================= */
.results-gated-wrap {
    position: relative;
    overflow: hidden;
    max-height: 260px;
}

.results-gated-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .85) 60%, rgba(255, 255, 255, 1) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Skeleton placeholder items */
.skeleton-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    margin-top: 12px;
    border-left: 6px solid #e5e7eb;
    border-radius: 8px;
    background: #f3f4f6;
}

.skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e5e7eb 25%, #d1d5db 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-line.w70 {
    width: 70%;
}

.skeleton-line.w60 {
    width: 60%;
}

.skeleton-line.w50 {
    width: 50%;
}

.skeleton-badge {
    width: 48px;
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e5e7eb 25%, #d1d5db 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* CTA banner */
.results-cta {
    text-align: center;
    padding: 28px 20px;
    margin-top: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    border: 1px solid #d4d9f7;
    background-image: url(../images/results-placeholder.jpg);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Semi-transparent overlay for text readability */
.results-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    border-radius: inherit;
    z-index: 0;
}

.results-cta>* {
    position: relative;
    z-index: 1;
}

.results-cta h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #1e293b;
}

.results-cta p {
    margin: 0 0 18px;
    font-size: 14px;
    color: #64748b;
}

.results-cta .cta-btn {
    display: inline-block;
    padding: 12px 32px;
    /* background: linear-gradient(135deg, #6366f1, #4f46e5); */
    color: #fff;
    /* border: 2px transparent; */
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    text-decoration: none;
}

.results-cta .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 187, 65, 0.50);
}


/* ===============================================================
   AUTH MODULE — Login / Register / Dashboard
   =============================================================== */

/* Full-page background */
.auth-body {
    font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 60px;
    background: #0f172a;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.15), transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(34, 197, 94, 0.10), transparent 60%);
    margin: 0;
    /* padding: 20px; */
}

/* Centered wrapper */
.auth-container {
    width: 100%;
    max-width: 480px;
    margin: auto;
    animation: authFadeIn 0.5s ease forwards;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-section {
    width: 100%;
    box-sizing: border-box;
    padding: 30px;
}

/* Card */
.auth-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 44px 36px 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 6px;
    background: linear-gradient(90deg, var(--clr-primary), #4ade80);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    font-size: 15px;
    color: #94a3b8;
    margin: 0;
}

/* ---- Form fields ---- */
.auth-field {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-align: left;
}

.auth-field-header {
    display: flex;
    justify-content: space-between;
}

.auth-field-header a {
    font-size: 13px;
}

.text-red-500 {
    color: red;
    font-weight: 500;
}

.auth-input {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    color: #f1f5f9;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: #475569;
}

.auth-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Password wrapper */
.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .auth-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 6px 8px;
    line-height: 1;
    box-shadow: none;
    color: #94a3b8;
    width: unset;
}

.password-toggle:hover {
    transform: translateY(-50%);
    box-shadow: none;
}

/* Field-level error */
.auth-field-error {
    font-size: 13px;
    color: #f87171;
    margin: 6px 0 0;
    text-align: left;
}

[x-cloak] {
    display: none !important;
}

.auth-password-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.auth-password-header .auth-label {
    margin-bottom: 0;
}

.auth-forgot-link {
    font-size: 13px;
    color: #818cf8;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-forgot-link:hover {
    color: #6366f1;
    text-decoration: underline;
}

/* ---- Alerts (flash messages) ---- */
.auth-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 22px;
    line-height: 1.5;
}

.auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.auth-alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* ---- Buttons ---- */
.auth-btn {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(90deg, var(--clr-secondary-green), var(--clr-primary-green));
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
    text-align: center;
    text-decoration: none;
    margin-top: 6px;
    box-sizing: border-box;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn-loading {
    opacity: 0.7;
    cursor: wait;
}

.auth-btn-secondary {
    background: #334155;
    box-shadow: none;
}

.auth-btn-secondary:hover {
    background: #475569;
    box-shadow: none;
}

.auth-btn-danger {
    background: linear-gradient(90deg, #ef4444, #f97316);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

.auth-btn-danger:hover {
    box-shadow: 0 10px 28px rgba(239, 68, 68, 0.35);
}

/* ---- Footer link ---- */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #94a3b8;
}

.auth-link {
    color: var(--clr-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--clr-secondary-green);
    text-decoration: underline;
}

/* ---- Dashboard info ---- */
.dashboard-info {
    margin: 24px 0;
}

.dashboard-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-info-row:last-child {
    border-bottom: none;
}

.dashboard-label {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-value {
    font-size: 15px;
    color: #e2e8f0;
    text-align: right;
    word-break: break-all;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.dashboard-actions .auth-btn {
    flex: 1;
}


/* ===============================================================
   SLIDE-IN AUTH DRAWER
   =============================================================== */

/* Overlay backdrop */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 9998;
}

/* Alpine transition classes for overlay */
.overlay-enter {
    transition: opacity 300ms ease;
}

.overlay-enter-start {
    opacity: 0;
}

.overlay-enter-end {
    opacity: 1;
}

.overlay-leave {
    transition: opacity 200ms ease;
}

.overlay-leave-start {
    opacity: 1;
}

.overlay-leave-end {
    opacity: 0;
}

/* Drawer panel */
.auth-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    overflow-y: auto;
    background: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    padding: 40px 32px;
    transform: translateX(100%);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-drawer-open {
    transform: translateX(0);
}

/* Close button */
.auth-drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.auth-drawer-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Drawer uses shared .auth-header, .auth-field, etc. from the auth module CSS */

/* Drawer-specific overrides */
.auth-drawer .auth-header {
    margin-bottom: 24px;
}

.auth-drawer .auth-btn {
    margin-top: 8px;
}

.auth-drawer .auth-footer {
    margin-top: 20px;
}

/* Results CTA buttons row */
.results-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.results-cta-buttons .cta-btn {
    min-width: 130px;
}

/* Outline variant for CTA button */
.cta-btn-outline {
    background: transparent !important;
    border: 2px solid var(--clr-primary-green);
    color: var(--clr-primary-green) !important;
}

.cta-btn-outline:hover {
    /* background: rgba(79, 70, 229, 0.15) !important; */
    border-color: var(--clr-primary-green);
    color: var(--clr-primary-green) !important;
}

.dashboard-page {
    font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    background: #0f172a;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.15), transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(34, 197, 94, 0.10), transparent 60%);
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Scan History Section */
.scan-history {
    /* margin-top: 50px; */
}

.scan-history-title {
    font-size: 20px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.scan-empty {
    text-align: center;
    padding: 32px;
    color: #94a3b8;
    font-size: 15px;
    background: #1e293b;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.scan-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.scan-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.scan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.scan-url {
    font-size: 15px;
    font-weight: 600;
    color: #818cf8;
    text-decoration: none;
    word-break: break-all;
    line-height: 1.4;
}

.scan-url:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

.scan-time {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
}

.scan-card-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.scan-score {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(90deg, #818cf8, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scan-pass-fail {
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.scan-pass {
    color: #4ade80;
    font-weight: 600;
}

.scan-fail {
    color: #f87171;
    font-weight: 600;
}

/* Score bar */
.scan-bar-track {
    width: 100%;
    height: 6px;
    background: #334155;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 14px;
}

.scan-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #4ade80);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.scan-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.rescan-btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rescan-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #818cf8;
    transform: translateY(-1px);
    box-shadow: none;
}

.view-report-btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-report-btn:hover {
    background: rgba(74, 222, 128, 0.2);
    border-color: #4ade80;
    transform: translateY(-1px);
}



/* =========================
   Blog Styles
========================= */
/* ── progress bar ── */
.progress-bar.progress-bar-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
    z-index: 1000;
    transition: width 0.15s ease-out;
}

/* ── header / nav ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--clr-border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--clr-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo svg {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--clr-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--clr-primary);
}

/* ── hero ── */
.hero {
    background: linear-gradient(160deg, var(--clr-primary-black) 0%, var(--clr-primary-green) 40%, var(--clr-secondary-green) 100%);
    color: #fff;
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.25) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.hero-inner {
    /* max-width: 860px; */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.hero-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.hero-breadcrumb span {
    opacity: 0.5;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    text-align: left;
    color: #fff;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.hero-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* ── layout ── */
.content-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ── sidebar / TOC ── */
.sidebar {
    position: sticky;
    top: 84px;
}

.toc {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--clr-text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-title svg {
    width: 14px;
    height: 14px;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0;
}

.toc-list a {
    display: block;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    color: var(--clr-text-secondary);
    text-decoration: none;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    line-height: 1.4;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--clr-primary);
    background: var(--clr-primary-light);
    border-left-color: var(--clr-primary);
}

/* ── article ── */
.article {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 3rem 3.5rem;
    box-shadow: var(--shadow-md);
    min-width: 0;
}

.article>*+* {
    margin-top: 1.25rem;
}

.article h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--clr-text);
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin-top: 3rem;
    margin-bottom: 0.75rem;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
    scroll-margin-top: 84px;
}

.article>*:first-child~h2:first-of-type,
.article h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.article h2 .section-number {
    display: inline-block;
    background: linear-gradient(270deg, var(--clr-secondary-green), var(--clr-primary-green));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 8px;
    margin-right: 0.6rem;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.article h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clr-text);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    scroll-margin-top: 84px;
}

.article h3 .h3-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--clr-accent-light);
    color: var(--clr-accent);
    border-radius: 6px;
    flex-shrink: 0;
}

.article h3 .h3-icon svg {
    width: 14px;
    height: 14px;
}

.article p {
    color: var(--clr-text-secondary);
    font-size: 1rem;
    line-height: 1.85;
}

.article strong {
    color: var(--clr-text);
    font-weight: 600;
}

/* ── intro paragraph ── */
.intro-text {
    font-size: 1.1rem;
    color: var(--clr-text);
    line-height: 1.9;
    font-weight: 400;
    border-left: 4px solid var(--clr-primary);
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ── lists ── */
.styled-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.styled-list li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--clr-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--clr-primary);
    border-radius: 50%;
}

/* check-list variant */
.check-list li::before {
    content: '✓';
    background: var(--clr-success);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0.25em;
}

.check-list li {
    padding-left: 2rem;
}

/* cross-list variant */
.cross-list li::before {
    content: '✕';
    background: var(--clr-danger);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0.25em;
}

.cross-list li {
    padding-left: 2rem;
}

/* numbered list */
.numbered-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.numbered-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 2.5rem;
    color: var(--clr-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.numbered-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 24px;
    height: 24px;
    background: var(--clr-primary-light);
    color: var(--clr-primary);
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── callout boxes ── */
.callout {
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    margin: 1.75rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.callout-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.callout-content {
    flex: 1;
}

.callout-content p {
    color: inherit;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

.callout-info {
    background: #eef6ff;
    border: 1px solid #c5ddf8;
    color: #1a4d8f;
}

.callout-info .callout-icon {
    background: #c2d9ff;
    color: #fff;
}

.callout-warning {
    background: #fff8eb;
    border: 1px solid #f5d990;
    color: #7a5e1a;
}

.callout-warning .callout-icon {
    background: #f59e0b;
    color: #fff;
}

.callout-success {
    background: #eefbf3;
    border: 1px solid #a7e8c0;
    color: #14532d;
}

.callout-success .callout-icon {
    background: #22c55e;
    color: #fff;
}

/* ── card grid (for schema types) ── */
.blog-content-card-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.blog-content-card,
.feature-card {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-content-card:hover,
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.blog-content-card-icon,
.feature-card-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem;
    background: var(--clr-primary-light);
    color: var(--clr-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.blog-content-card h3,
.blog-content-card h4,
.feature-card h3,
.feature-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-text);
    margin: 0;
    justify-content: center;
}

/* ── comparison box ── */
.comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.75rem 0;
}

.comparison-side {
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.comparison-side.negative {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.comparison-side.positive {
    background: #eefbf3;
    border: 1px solid #a7e8c0;
}

.comparison-side h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.comparison-side.negative h4 {
    color: var(--clr-danger);
}

.comparison-side.positive h4 {
    color: var(--clr-success);
}

.comparison-side p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.comparison-side.negative p {
    color: #7f1d1d;
}

.comparison-side.positive p {
    color: #14532d;
}

/* ── code-style tag ── */
.code-tag {
    display: inline;
    background: var(--clr-primary-light);
    color: var(--clr-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    padding: 0.15em 0.5em;
    border-radius: 4px;
    font-weight: 500;
}

/* ── key takeaway box ── */
.takeaway-box {
    background: linear-gradient(135deg, var(--clr-primary-green), var(--clr-secondary-green));
    color: #fff;
    border-radius: var(--radius-md);
    padding: 2rem 2.25rem;
    margin: 2rem 0;
}

.takeaway-box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.takeaway-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.8;
}

/* ── footer ── */
.site-footer {
    background: #1e1e2f;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2.5rem 2rem;
    font-size: 0.85rem;
    margin-top: 2rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

/* ===============================================================
   RESPONSIVE — Grouped by breakpoint, large → small
   =============================================================== */

/* ---- Tablet (max-width: 1024px) ---- */
@media (max-width: 1024px) {
    h1 {
        font-size: 48px;
    }

    .main-section {
        padding: 60px 30px;
    }

    .main input[type="url"] {
        /* width: 60%; */
    }

    .error-message {
        width: 70%;
        margin-left: 105px;
    }

    .features,
    .lead-section,
    .result {
        width: auto;
    }
}

@media (max-width: 900px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: -1;
    }

    .article {
        padding: 2rem 1.5rem;
    }

    .comparison-box {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3rem 1.5rem 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .blog-card {
        width: calc(50% - ((26px * 1) / 2));
    }
}

/* ---- Small Tablet (max-width: 768px) ---- */
@media (max-width: 768px) {
    h1 {
        font-size: 42px;
    }

    p {
        width: auto;
    }

    .main input[type="url"] {
        margin-bottom: 12px;
        padding: 14px 12px;
    }

    .main .scan-form .input-group button {
        top: 7px;
        right: 7px;
        padding: 10px 15px
    }

    .error-message {
        width: 60%;
        margin-left: 0px;
    }

    .loader {
        width: 80%;
        margin-left: 73px;
    }

    /* Blog post layout */
    .blog-content {
        flex-direction: column;
        padding: 0 15px;
    }

    .blog-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .blog-main-content {
        padding-right: 0;
    }

    .blog-sidebar {
        /* margin-top: 40px; */
        box-sizing: border-box;
        width: 100%;
    }

    .subscribe-btn {
        /* width: 100%; */
        /* padding: 14px 24px; */
    }

    .lead-form {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        width: 100%;
        margin-bottom: 20px;
    }

    .form-group p {
        margin-bottom: 5px;
    }

    .footer-contact-form .form-row {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
    }

    .lead-container .submission-message {
        font-size: 14px;
        padding: 10px
    }
}

/* ---- Mobile (max-width: 600px) ---- */
@media (max-width: 600px) {
    section.main-section {
        padding: 40px 20px;
    }

    /* Header: compact on mobile */
    .header-inner {
        padding: 10px 16px;
    }

    .user-greeting {
        display: none;
    }

    .user-menu-trigger {
        padding: 4px;
        border-radius: 50%;
    }

    .user-menu-arrow {
        display: none;
    }

    .header-login-btn,
    .header-signup-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    h1 {
        font-size: 26px;
    }

    .sub-cont {
        font-size: 16px;
        margin-bottom: 30px;
        width: 80%;
    }

    .stats-subtitle {
        font-size: 16px;
    }

    .faq-subtitle {
        font-size: 16px;
    }

    .blog-subtitle {
        font-size: 16px;
    }

    .lead-container p {
        font-size: 16px;
    }

    .main input[type="url"] {
        width: 85%;
        margin-bottom: 12px;
    }

    button {
        width: 95%;
    }

    .scan-form input[type="url"],
    .scan-form button {
        width: 85% !important;
        box-sizing: border-box;
        display: block;
        margin: 15px auto;
    }

    .main .scan-form .input-group button {
        position: unset;
    }

    .stats-row {
        gap: 6px;
    }

    .stats-row strong {
        font-size: 28px;
    }

    .features h2 {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .stats-title {
        font-size: 26px;
    }

    .card h3,
    .blog-card h3 {
        font-size: 18px;
    }

    .blog-card {
        width: calc(100%);
    }

    .loader {
        width: 95%;
        margin-left: 10px;
    }

    .tab {
        padding: 5px 5px;
        font-size: 14px;
    }

    .error-message {
        width: auto;
        margin-left: 10px;
    }

    .faq-title {
        font-size: 26px;
    }

    .faq-question-text {
        font-size: 18px;
    }

    .faq-section {
        width: 100%;
        box-sizing: border-box;
    }

    .lead-section {
        padding: 30px 13px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Lead form */
    .lead-container {
        padding: 30px 20px;
    }

    .lead-container h2 {
        font-size: 26px;
    }

    .lead-form button {
        width: 100%;
    }

    /* Blog */
    .blog-title {
        font-size: 26px;
    }

    /* Expert float: icon only */
    .expert-text {
        display: none;
    }

    .expert-float a {
        padding: 14px;
        border-radius: 50%;
    }

    h2.scan-history-title {
        font-size: 17px;
    }

    .article {
        padding: 1.5rem 1.15rem;
    }

    .blog-content-card-grid,
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .article h2 {
        font-size: 1.35rem;
    }

    .article h3 {
        font-size: 1.1rem;
    }

    .score-charts {
        gap: 0.25rem;
    }

    .score-chart-card {
        padding: 0.5rem;
    }

    .score-chart-label {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
        margin-bottom: 0.5rem;
    }

    .score-chart-ring-wrap {
        width: 70px;
        height: 70px;
        margin-bottom: 0.5rem;
    }

    .score-chart-num {
        font-size: 1.5rem;
    }

    .score-chart-denom {
        font-size: 0.55rem;
    }

    .score-chart-svg {
        /* Optional: can dial down the stroke-width if needed */
    }

    .score-chart-grade {
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
        letter-spacing: 0;
    }

}

/* ---- Auth pages responsive (max-width: 520px) ---- */
@media (max-width: 520px) {
    .auth-card {
        padding: 32px 22px 28px;
    }

    .auth-title {
        font-size: 24px;
    }

    .dashboard-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .dashboard-value {
        text-align: left;
    }

    .dashboard-actions {
        flex-direction: column;
    }

    .scan-card-header {
        flex-direction: column;
        gap: 4px;
    }

    .scan-card-stats {
        flex-wrap: wrap;
    }
}

/* ---- Small Mobile (max-width: 480px) ---- */
@media (max-width: 480px) {

    /* Auth Drawer */
    .auth-drawer {
        width: 100vw;
        max-width: 90vw;
        padding: 32px 20px;
    }

    /* Tabs: scrollable row */
    .tabs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 6px;
    }

    .tab {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Result Items */
    .item {
        padding: 12px 10px;
        margin-top: 8px;
        font-size: 14px;
    }

    .item strong {
        font-size: 14px;
        max-width: 70%;
        display: inline-block;
    }

    .badge {
        font-size: 12px;
    }

    .issue,
    .fix {
        font-size: 13px;
        padding: 8px;
    }

    .details,
    .impact {
        font-size: 13px;
    }

    /* Results CTA */
    .results-cta {
        padding: 24px 16px;
        border-radius: 10px;
    }

    .results-cta h3 {
        font-size: 18px;
        line-height: 1.3;
    }

    .results-cta p {
        font-size: 13px;
    }

    .results-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .results-cta-buttons .cta-btn {
        min-width: auto;
        padding: 14px 20px;
        font-size: 15px;
    }

    /* Better contrast for outline button */
    .cta-btn-outline {
        border-width: 2px;
        border-color: #4f46e5 !important;
        color: #4338ca !important;
        background: rgba(255, 255, 255, 0.9) !important;
    }

    .cta-btn-outline:hover {
        background: rgba(79, 70, 229, 0.1) !important;
    }

    /* Skeleton */
    .results-gated-wrap {
        max-height: 180px;
    }

    /* FAQ Section */

    .faq-title {
        font-size: 22px;
        padding: 0 8px;
    }

    .faq-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
        padding: 0 4px;
    }

    .faq-question {
        padding: 16px 14px;
        font-size: 16px;
        gap: 10px;
    }

    .faq-question-text {
        font-size: 16px;
    }

    .faq-question span:first-child {
        flex: 1;
        line-height: 1.4;
    }

    .faq-icon {
        font-size: 18px;
        flex-shrink: 0;
    }

    .faq-answer {
        padding: 14px 14px 16px;
        font-size: 14px;
        line-height: 1.6;
    }

    .faq-item {
        margin-bottom: 10px;
    }

    /* Section Headings */
    .stats-title {
        font-size: 22px;
    }

    .features h2 {
        font-size: 22px;
    }

    /* Feature Cards */
    .cards {
        gap: 12px;
    }

    .card {
        padding: 20px 16px;
    }

    .card h3,
    .blog-card h3 {
        font-size: 16px;
    }

    .grid .card p,
    .blog-card p,
    .blog-link,
    .stats-label {
        font-size: 14px;
    }

    .card p {
        font-size: 13px;
    }

    /* Lead Form */
    .lead-container {
        padding: 24px 16px;
    }

    .lead-container h2 {
        font-size: 22px;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
    }

    /* Hero section */

    h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .sub-cont {
        font-size: 14px;
        width: 95%;
        margin-bottom: 20px;
    }

    .stats-subtitle {
        font-size: 14px;
    }

    .blog-subtitle {
        font-size: 14px;
    }

    .lead-container p {
        font-size: 14px;
    }

    .main input[type="url"] {
        width: 100%;
        box-sizing: border-box;
        font-size: 15px;
        padding: 14px 16px;
    }

    button {
        width: 100%;
        box-sizing: border-box;
    }

    /* Error message: full width on mobile */
    .error-message {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    /* Loader */
    .loader {
        width: 100%;
        margin-left: 0;
    }

    /* Blog */
    .blog-title {
        font-size: 22px;
    }

    /* Footer spacing */
    footer {
        padding: 20px 12px;
    }

    .blog-content-card-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .scan-card-actions {
        flex-direction: column;
        justify-content: center
    }

    .scan-card-actions a {
        justify-content: center;
    }
}