/* ========================================
   FONTS
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap');

/* ========================================
   VARIABLES
======================================== */
:root {
    --primary: #0d6efd;
    --success: #198754;
    --danger: #dc3545;
    --dark: #0b1e3c;
    --light: #f5f7fb;
    --text: #1f2937;
    --muted: #6b7280;
    --radius: 12px;
    --shadow: 0 4px 14px rgba(0,0,0,0.05);
    --font-main: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    
    /* BACKGROUND */
    --bg: #f6f9fc;
    --surface: #ffffff;
    --surface2: #f1f5f9;

    /* BORDERS */
    --border: rgba(15, 23, 42, .08);
    --border-hi: rgba(59, 130, 246, .35);

    /* ACCENTS */
    --accent: #3b82f6;
    --accent2: #2563eb;
    --accent-g: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);

    /* STATUS */
    --warn: #f59e0b;
    --ok: #10b981;

    /* TEXT */
    --txt: #0f172a;
    --txt-muted: #64748b;
    --txt-soft: #475569;

    /* RADIUS */
    --radius-lg: 22px;
}

/* ========================================
   RESET
======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', var(--font-main);
    font-size: 14px;
    line-height: 1.5;
    background: var(--bg);
    color: var(--txt);
    min-height: 100vh;
    overflow-x: hidden;
}

/* BACKGROUND ORBS */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, .13) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 202, 255, .08) 0%, transparent 70%);
    bottom: 10%;
    left: -150px;
}

/* ========================================
   LAYOUT
======================================== */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

.page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 80px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 10px;
    padding: 27px 0 37px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.logo {
    margin-bottom: 20px;
}

.logo img {
    height: 50px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

.logo-wrap img {
    height: 32px;
    width: auto;
    filter: none;
}

.logo-badge {
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(99, 202, 255, .1);
    border: 1px solid rgba(99, 202, 255, .2);
    padding: 4px 10px;
    border-radius: 99px;
}

.tag-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(99, 202, 255, .08);
    border: 1px solid rgba(99, 202, 255, .15);
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 28px;
}

.tag-line::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

/* ========================================
   TYPOGRAPHY
======================================== */
h1 {
    font-family: var(--font-main);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #0f172a 30%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 30px;
}

h3 {
    font-size: 20px;
    font-weight: 600;
}

.subtitle {
    font-size: 1.05rem;
    color: var(--txt-soft);
    max-width: 560px;
    line-height: 1.7;
    font-weight: 300;
}

.small {
    font-size: 13px;
    color: var(--muted);
}

/* ========================================
   FORM & SCAN BOX
======================================== */
.scan-box {
    width: 100%;
    max-width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    margin-top: 30px;
}

.scan-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 202, 255, .04) 0%, transparent 60%);
    pointer-events: none;
}

.scan-label {
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--txt-muted);
    margin-bottom: 12px;
}

form,
.scan-box form,
.input-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
}

.input-wrap {
    position: relative;
    width: 100%;
}

.input-wrap .prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--txt-muted);
    font-size: .9rem;
    pointer-events: none;
    user-select: none;
}

input[type="text"],
.scan-box input[type="text"] {
    width: 100%;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px 16px 80px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--txt);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

input[type="text"]::placeholder {
    color: var(--txt-muted);
}

input:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--accent2);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

button,
.btn-scan {
    font-family: var(--font-main);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
    padding: 16px 28px;
    border: none;
    border-radius: var(--radius);
    background: var(--accent-g);
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-scan::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background .2s;
}

button:hover,
.btn-scan:hover {
    opacity: .9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

button:active,
.btn-scan:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.18);
}

.trust-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: var(--txt-muted);
}

.trust-item .icon {
    width: 16px;
    height: 16px;
    background: rgba(52, 211, 153, .15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ok);
    font-size: 10px;
}

/* ========================================
   LOADER
======================================== */
.loader {
    display: none;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding: 18px 20px;
    background: rgba(99, 202, 255, .05);
    border: 1px solid rgba(99, 202, 255, .12);
    border-radius: var(--radius);
    text-align: center;
}

.loader.active {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(99, 202, 255, .2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    flex-shrink: 0;
    margin: auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader p {
    font-size: .9rem;
    color: var(--txt-soft);
}

/* ========================================
   STATS
======================================== */
.stats {
    margin-top: 40px;
    padding: 40px 30px;
    background: #f8f9fb;
    border-radius: var(--radius);
    text-align: center;
}

.stats-grid,
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
}

.stat-number,
.stat-num {
    font-family: var(--font-main);
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--accent-g);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-number {
    font-size: 48px;
    color: #0f172a;
}

.stat-num.danger,
.stat-danger {
    background: linear-gradient(135deg, #f87171, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--danger);
}

.stat-lbl {
    font-size: .82rem;
    color: var(--txt-muted);
    margin-top: 6px;
    line-height: 1.5;
}

.stat-text {
    margin-top: 10px;
    font-size: 16px;
    color: #64748b;
    line-height: 1.5;
}

.stats-warning {
    margin-top: 10px;
    font-size: 16px;
    color: #b91c1c;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.alert-bar {
    background: rgba(251, 191, 36, .06);
    border: 1px solid rgba(251, 191, 36, .18);
    border-radius: var(--radius);
    padding: 14px 20px;
    font-size: .85rem;
    color: var(--txt-soft);
    line-height: 1.6;
    margin-bottom: 28px;
}

.alert-bar strong {
    color: var(--warn);
}

/* ========================================
   RESULT BOX
======================================== */
.result-box {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 28px;
    margin-top: 30px;
    box-shadow: var(--shadow);
    animation: fadeUp .4s ease;
    scroll-margin-top: 80px;
}

.result-box.visible {
    display: block;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.result-title {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--txt);
}

.score-pill {
    font-family: var(--font-main);
    font-size: .85rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 99px;
}

.score-pill.ok {
    background: rgba(52, 211, 153, .12);
    color: var(--ok);
    border: 1px solid rgba(52, 211, 153, .25);
}

.score-pill.warn {
    background: rgba(251, 191, 36, .12);
    color: var(--warn);
    border: 1px solid rgba(251, 191, 36, .25);
}

.score-pill.bad {
    background: rgba(248, 113, 113, .12);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, .25);
}

/* SCORE ARC */
.score-arc-wrap {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 36px;
    padding: 32px;
    background: rgba(255, 255, 255, .02);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.arc-svg {
    flex-shrink: 0;
}

.arc-info h3 {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.arc-info p {
    font-size: .9rem;
    color: var(--txt-soft);
    line-height: 1.6;
}

/* SCORE BAR (Legacy support) */
.score-box {
    margin-top: 25px;
}
.score-label {
    font-size: 14px;
    color: #777;
}
.score-value {
    font-size: 34px;
    font-weight: 700;
    margin-top: 6px;
}
.score-bar {
    height: 10px;
    background: #eee;
    border-radius: 8px;
    margin-top: 10px;
    overflow: hidden;
}
.score-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.4s ease;
}
.score-fill.success { background: var(--success); }
.score-fill.warning { background: #f59e0b; }
.score-fill.danger { background: var(--danger); }

/* GRID CARDS & REPORTS */
.report-grid,
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
    margin-top: 20px;
}

.report-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.report-card {
    background: #f9fafc;
    padding: 18px;
    border-radius: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.label {
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}

.value {
    font-size: 18px;
    font-weight: 600;
}

.ok { color: var(--ok); }
.error { color: var(--danger); }

.info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.info-card .ic-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(99, 202, 255, .08);
}

.info-card .ic-body {
    min-width: 0;
}

.info-card .ic-lbl {
    font-size: .75rem;
    color: var(--txt-muted);
    font-weight: 500;
    letter-spacing: .04em;
    margin-bottom: 2px;
}

.info-card .ic-val {
    font-family: var(--font-main);
    font-size: .95rem;
    font-weight: 700;
    color: var(--txt);
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
}

.ic-val.ok { color: var(--ok); }
.ic-val.warn { color: var(--warn); }
.ic-val.bad { color: var(--danger); }

/* ========================================
   RECOMMENDATIONS
======================================== */
.recommendations-box,
.recs-box {
    margin-top: 25px;
    margin-bottom: 28px;
    background: #fff3cd;
    padding: 18px;
    border-radius: 10px;
}

.recs-box {
    background: transparent;
    padding: 0;
}

.recommendations-box ul {
    margin-top: 10px;
    padding-left: 18px;
}

.recommendations-box li {
    margin-bottom: 6px;
}

.recs-box h3 {
    font-family: var(--font-main);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--txt-muted);
    margin-bottom: 14px;
}

.recs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recs-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .9rem;
    color: var(--txt-soft);
    line-height: 1.6;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.recs-list li .ri {
    font-size: 15px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ========================================
   LEAD BOX
======================================== */
.lead-box {
    display: none;
    margin-top: 25px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(248, 113, 113, .08) 0%, rgba(251, 191, 36, .05) 100%);
    border: 1px solid rgba(248, 113, 113, .2);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
}

.lead-box.visible {
    display: block;
}

.lead-box::before {
    content: "⚠";
    position: absolute;
    left: 14px;
    top: 18px;
    font-size: 18px;
}

.lead-box h3 {
    font-family: var(--font-main);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    padding-left: 22px;
}

.lead-box p {
    font-size: .9rem;
    color: var(--txt-soft);
    line-height: 1.7;
    margin-bottom: 22px;
}

.lead-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lead-button,
.lead-btn {
    font-family: var(--font-main);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 13px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}

.lead-btn:hover,
.lead-button:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.lead-button.primary { background: #dc3545; color: white; }
.lead-button.secondary { background: #0d6efd; color: white; }
.lead-btn.primary { background: var(--accent-g); color: #fff; }
.lead-btn.secondary { background: rgba(255, 255, 255, .06); color: var(--txt); border: 1px solid var(--border); }

/* ========================================
   PDF BUTTON
======================================== */
.pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: .85rem;
    font-weight: 600;
    color: var(--txt-muted);
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 11px 20px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    margin-top: 25px;
}

.pdf-btn:hover {
    border-color: var(--border-hi);
    color: var(--txt);
    background: #157347;
}

/* ========================================
   INFO SECTION
======================================== */
.info,
.info-section {
    margin-top: 60px;
    background: var(--surface);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 28px;
}

.info-section {
    padding: 40px;
    border-radius: var(--radius-lg);
}

.info p,
.info-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.info-section p {
    font-size: .92rem;
    color: var(--txt-soft);
    line-height: 1.75;
    margin-bottom: 14px;
}

.info ul {
    padding-left: 20px;
}

.info li {
    margin-bottom: 8px;
}

.info-section h2 {
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.checks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 4px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    color: var(--txt-soft);
}

.check-item .ch {
    color: var(--accent);
    font-size: 15px;
}

/* ========================================
   HISTORY
======================================== */
.section-head {
    font-family: var(--font-main);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--txt-muted);
    margin-bottom: 14px;
}

.history-box {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
}

.history-box table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.history-box thead tr {
    border-bottom: 1px solid var(--border);
}

.history-box th {
    font-family: var(--font-main);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--txt-muted);
    padding: 14px 20px;
    text-align: left;
}

.history-box tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.history-box tbody tr:last-child {
    border-bottom: none;
}

.history-box tbody tr:hover {
    background: #f1f5f9;
}

.history-box td {
    padding: 14px 20px;
    font-size: .88rem;
    color: var(--txt-soft);
}

.history-box td:first-child {
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--txt);
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 500;
}

.status-dot::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.ok::before { background: var(--ok); }
.status-dot.warn::before { background: var(--warn); }
.status-dot.bad::before { background: var(--danger); }

.history-empty {
    padding: 40px;
    text-align: center;
    font-size: .88rem;
    color: var(--txt-muted);
}

/* ========================================
   STATUS & TRUST BADGES
======================================== */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-success {
    background: rgba(25,135,84,0.12);
    color: var(--success);
}

.status-warning {
    background: rgba(245,158,11,0.15);
    color: #b45309;
}

.status-danger {
    background: rgba(220,53,69,0.15);
    color: var(--danger);
}

.trust {
    margin-top: 18px;
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--muted);
}

.trust span {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 8px;
}

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

.faq-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;

    margin-bottom: 16px;

    box-shadow:
        0 6px 20px rgba(15,23,42,.04);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;

    height: auto !important;
    min-height: auto !important;
}

.faq-item:hover {
    border-color: rgba(59,130,246,.12);

    box-shadow:
        0 10px 30px rgba(15,23,42,.06);
}

.faq-item.active {
    border-color:
        rgba(59,130,246,.18);
}

/* ========================================
   FAQ QUESTION
======================================== */

.faq-q {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    background: transparent;
    border: 0;

    padding: 22px 28px;

    text-align: left;
    cursor: pointer;

    color: var(--txt);

    font-family: var(--font-main);

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;

    transition:
        background .2s ease,
        color .2s ease;
}

.faq-q:hover {
    background:
        rgba(59,130,246,.025);
}

.faq-q:focus {
    outline: none;
}

/* ========================================
   FAQ ANSWER
======================================== */

.faq-ans {

    max-height: 0;

    overflow: hidden;

    visibility: hidden;

    opacity: 0;

    transition:

        max-height .35s ease,

        opacity .2s ease,

        visibility .2s ease;

}

/* OPEN */

.faq-item.active .faq-ans {

    visibility: visible;

    opacity: 1;

}

.faq-ans-inner {
    padding:
        0 28px 22px;

    font-size:
        .95rem;

    font-weight:
        400;

    color:
        var(--txt-soft);

    line-height:
        1.75;
}

.faq-ans-inner p {
    margin-bottom: 12px;
}

.faq-ans-inner strong {
    color:
        var(--txt);
    font-weight:
        600;
}

/* ========================================
   FAQ LIST
======================================== */

.faq-ans-inner ul,
.faq-ans-inner ol {
    margin:
        10px 0 12px;

    padding-left:
        18px;
}

.faq-ans-inner li {
    margin-bottom:
        6px;

    line-height:
        1.6;
}

.faq-ans-inner li:last-child {
    margin-bottom: 0;
}

/* ========================================
   FAQ ICON
======================================== */

.arr {
    flex-shrink: 0;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background:
        rgba(59,130,246,.07);

    color:
        var(--accent);

    font-size:
        1.15rem;

    font-weight:
        700;

    transition:
        transform .25s ease,
        background .2s ease,
        color .2s ease;
}

.faq-item:hover .arr {
    background:
        rgba(59,130,246,.12);
}

.faq-item.active .arr {
    transform:
        rotate(180deg);
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

    .faq-q {
        padding:
            18px 20px;

        font-size:
            .95rem;
    }

    .faq-ans-inner {
        padding:
            0 20px 20px;

        font-size:
            .9rem;
    }

    .arr {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* ========================================
   GLOBAL IMPROVEMENTS
======================================== */
section {
    margin-top: 40px;
}

/* ========================================
   FOOTER
======================================== */
footer {
    text-align: center;
    font-size: .82rem;
    color: var(--txt-muted);
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--txt-muted);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
}

.footer-pro {
    width: 100%;
    margin-top: 20px;
    padding: 50px 20px 25px;
    background: #0b1220;
    border-top: 1px solid rgba(255,255,255,.05);
    color: #94a3b8;
    font-size: 14px;
    text-align: left;
}

.footer-grid,
.footer-bottom {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.footer-grid {
    margin-bottom: 35px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-bottom {
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col a {
    display: block;
    margin-bottom: 6px;
    line-height: 1.5;
    opacity: 0.9;
}

.footer-col a:last-child {
    margin-bottom: 0;
}

.footer-title {
    margin-bottom: 10px;
}

.footer-col a:hover {
    opacity: 1;
}

.footer-payments {
    max-width: 260px;
}

.footer-pay {
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-pay strong {
    color: #fff;
    font-weight: 600;
}

.footer-legal {
    margin-top: 14px;
    font-size: 12px;
    color: #64748b;
}

.footer-legal-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.footer-legal-links a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

.footer-payments::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,.08);
    margin-bottom: 12px;
}

/* PAYWALL TERMS & FORM */
.paywall-terms {
    margin-top: 10px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

.paywall-terms a {
    color: #3b82f6;
    text-decoration: none;
}

.paywall-terms a:hover {
    text-decoration: underline;
}

.paywall-form {
    margin-top: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    margin-bottom: 14px;
}

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

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    color: #fff;
    outline: none;
}

.form-group input:focus {
    border-color: #2563eb;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    form,
    .scan-box form,
    .input-row {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .stats-row {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 36px;
    }

    .scan-box {
        position: sticky;
        top: 10px;
        z-index: 100;
    }

    button,
    .scan-box button {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .scan-box {
        padding: 24px;
    }

    .btn-scan {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .cards-grid,
    .checks-grid {
        grid-template-columns: 1fr;
    }

    .score-arc-wrap {
        flex-direction: column;
        text-align: center;
    }

    .result-box,
    .info-section {
        padding: 24px;
    }
}

/* ========================================
   DARK MODE READY (future)
======================================== */
@media (prefers-color-scheme: dark) {
    body {
        background: #0f172a;
        color: #e5e7eb;
    }

    .scan-box,
    .result-box,
    .info,
    .faq-item,
    .report-card {
        background: #111827;
    }

    .label {
        color: #9ca3af;
    }
}

/* ========================================
   REPORT ACTIONS
======================================== */

.hidden {
    display: none !important;
}

.report-actions {
    margin-top: 36px;
    animation: fadeUp .35s ease;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 26px;
}

/* CARD */

.report-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow:
        0 10px 28px rgba(15,23,42,.05);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.report-card:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 18px 44px
        rgba(15,23,42,.08);
}

/* FREE */

.report-card.free {

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 100%
        );
}

/* PREMIUM */

.report-card.premium {

    background:
        linear-gradient(
            135deg,
            #0f172a 0%,
            #172554 100%
        );

    border:
        1px solid
        rgba(99,102,241,.22);

    color:
        #fff;
}

.report-card.premium::before {

    content: '';

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(99,102,241,.16),
            transparent 40%
        );

    pointer-events: none;
}

/* BADGE */

.report-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    height: 32px;

    padding: 0 14px;

    border-radius: 999px;

    background:
        rgba(59,130,246,.08);

    border:
        1px solid
        rgba(59,130,246,.14);

    color:
        var(--accent);

    font-size: .75rem;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

    margin-bottom: 18px;
}

.premium-badge {

    background:
        rgba(255,255,255,.08);

    border:
        1px solid
        rgba(255,255,255,.12);

    color:
        #c7d2fe;
}

/* TYPO */

.report-card h3 {

    font-family:
        var(--font-main);

    font-size:
        1.35rem;

    font-weight:
        800;

    line-height:
        1.25;

    margin-bottom:
        12px;
}

.report-card p {

    font-size:
        .94rem;

    line-height:
        1.75;

    color:
        var(--txt-soft);

    margin-bottom:
        20px;
}

.report-card.premium p {

    color:
        rgba(255,255,255,.78);
}

/* FEATURES */

.report-features {

    list-style:
        none;

    display:
        flex;

    flex-direction:
        column;

    gap:
        12px;

    margin-bottom:
        28px;
}

.report-features li {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    font-size:
        .9rem;

    color:
        var(--txt);

    font-weight:
        500;
}

.report-card.premium
.report-features li {

    color:
        rgba(255,255,255,.92);
}

/* PRICE */

.premium-price {

    font-family:
        var(--font-main);

    font-size:
        2rem;

    font-weight:
        800;

    margin-bottom:
        18px;

    color:
        #fff;
}

/* BUTTONS */

.btn-report-free,
.btn-report-premium {

    width:
        100%;

    height:
        56px;

    border:
        none;

    border-radius:
        16px;

    font-family:
        var(--font-main);

    font-size:
        .92rem;

    font-weight:
        800;

    cursor:
        pointer;

    transition:
        transform .18s ease,
        opacity .2s ease,
        box-shadow .2s ease;
}

.btn-report-free {

    background:
        var(--surface2);

    border:
        1px solid
        var(--border);

    color:
        var(--txt);
}

.btn-report-free:hover {

    background:
        #eef4ff;

    border-color:
        rgba(59,130,246,.18);
}

.btn-report-premium {

    background:
        linear-gradient(
            135deg,
            #3b82f6,
            #6366f1
        );

    color:
        #fff;

    box-shadow:
        0 10px 30px
        rgba(99,102,241,.26);
}

.btn-report-premium:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 14px 36px
        rgba(99,102,241,.35);
}

/* PAYMENT BOX */

.payment-box {

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 100%
        );

    border:
        1px solid var(--border);

    border-radius:
        24px;

    padding:
        32px;

    box-shadow:
        0 8px 24px
        rgba(15,23,42,.05);
}

.payment-box h3 {

    font-size:
        1.3rem;

    font-weight:
        800;

    margin-bottom:
        10px;
}

.payment-box p {

    color:
        var(--txt-soft);

    margin-bottom:
        22px;

    line-height:
        1.7;
}

.payment-grid {

    display:
        grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap:
        14px;

    margin-bottom:
        22px;
}

.payment-grid input {

    width:
        100%;

    height:
        56px;

    padding:
        0 18px;

    border:
        1px solid
        var(--border);

    border-radius:
        16px;

    background:
        #fff;

    font-size:
        .95rem;

    outline:
        none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.payment-grid input:focus {

    border-color:
        var(--accent);

    box-shadow:
        0 0 0 4px
        rgba(59,130,246,.12);
}

.btn-paynow {

    width:
        100%;

    height:
        58px;

    border:
        none;

    border-radius:
        16px;

    background:
        linear-gradient(
            135deg,
            #16a34a,
            #15803d
        );

    color:
        #fff;

    font-size:
        1rem;

    font-weight:
        800;

    cursor:
        pointer;

    box-shadow:
        0 10px 30px
        rgba(22,163,74,.22);
}

.btn-paynow:hover {

    transform:
        translateY(-2px);
}

.payment-note {

    margin-top:
        14px;

    text-align:
        center;

    font-size:
        .78rem;

    line-height:
        1.7;

    color:
        var(--txt-muted);
}

.payment-note a {

    color:
        var(--accent);

    text-decoration:
        none;

    font-weight:
        600;
}

/* MOBILE */

@media (
    max-width: 768px
) {

    .report-grid {

        grid-template-columns:
            1fr;
    }

    .payment-grid {

        grid-template-columns:
            1fr;
    }

    .report-card,
    .payment-box {

        padding:
            24px;
    }
}