        :root, [data-theme="dark"] {
            --bg: #0f1117;
            --surface: #1a1d27;
            --surface-2: #232733;
            --border: #2e3345;
            --text: #e1e4ed;
            --text-dim: #8b90a0;
            --accent: #6c8cff;
            --accent-strong: #4560e0; /* darker accent for white small text (WCAG AA) */
            --green: #4ade80;
            --yellow: #fbbf24;
            --red: #f87171;
            --radius: 12px;
            --tag-green-bg: rgba(74, 222, 128, 0.15);
            --tag-yellow-bg: rgba(251, 191, 36, 0.15);
            --tag-red-bg: rgba(248, 113, 113, 0.15);
            --shadow: none;
            --hero-dot: rgba(255, 255, 255, 0.05);
        }

        [data-theme="light"] {
            --bg: #f5f6fa;
            --surface: #ffffff;
            --surface-2: #f0f1f5;
            --border: #e2e4ea;
            --text: #1a1d27;
            --text-dim: #6b7084;
            --accent: #4f6df5;
            --accent-strong: #3d57d6; /* darker accent for white small text (WCAG AA) */
            --green: #16a34a;
            --yellow: #ca8a04;
            --red: #dc2626;
            --tag-green-bg: rgba(22, 163, 74, 0.1);
            --tag-yellow-bg: rgba(202, 138, 4, 0.1);
            --tag-red-bg: rgba(220, 38, 38, 0.1);
            --shadow: 0 1px 3px rgba(0,0,0,0.08);
            --hero-dot: rgba(79, 109, 245, 0.20);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        abbr { text-decoration: none; }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            line-height: 1.6;
        }

        /* Offset anchors below sticky header */
        [id] {
            scroll-margin-top: 80px;
        }

        /* === Maintenance Banner === */
        .maintenance-banner {
            position: sticky;
            top: 0;
            z-index: 110;
            background: linear-gradient(90deg, #fde68a 0%, #fcd34d 100%);
            color: #422006;
            border-bottom: 1px solid #d97706;
        }
        .maintenance-banner-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 10px 24px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14px;
            line-height: 1.4;
        }
        .maintenance-banner-icon { font-size: 22px; }
        .maintenance-banner-text strong { display: block; font-weight: 700; }
        .maintenance-banner-text span { display: block; opacity: 0.85; }
        .maintenance-banner + .site-header { top: 0; }

        /* === Sticky Header === */
        .site-header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(15, 17, 23, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            padding: 0 24px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        [data-theme="light"] .site-header {
            background: rgba(245, 246, 250, 0.85);
        }

        .scroll-progress {
            position: fixed;
            top: 60px;
            left: 0;
            right: 0;
            height: 3px;
            background: transparent;
            z-index: 99;
            pointer-events: none;
        }
        .scroll-progress__bar {
            height: 100%;
            width: 0;
            background: linear-gradient(90deg, var(--accent, #6c8cff), #a78bfa);
            transition: width 0.08s linear;
        }

        .header-logo {
            font-size: 20px;
            font-weight: 700;
            color: var(--accent);
            text-decoration: none;
        }

        .header-nav {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .header-nav a, .header-nav .nav-modal-btn {
            color: var(--text-dim);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            position: relative;
            transition: color 0.2s ease;
        }
        .header-nav a::after, .header-nav .nav-modal-btn::after {
            content: "";
            position: absolute;
            left: 0; right: 0;
            bottom: -6px;
            height: 2px;
            border-radius: 2px;
            background: linear-gradient(90deg, var(--accent), #a78bfa);
            transform: scaleX(0);
            transform-origin: center;
            transition: transform 0.22s ease;
        }
        .header-nav a:hover, .header-nav .nav-modal-btn:hover { color: var(--accent); }
        .header-nav a:hover::after, .header-nav .nav-modal-btn:hover::after { transform: scaleX(1); }
        .header-nav .nav-modal-btn {
            background: none;
            border: none;
            cursor: pointer;
            font-family: inherit;
            padding: 0;
        }


        .header-controls {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .lang-switcher {
            display: flex;
            gap: 4px;
        }

        .lang-btn {
            background: transparent;
            border: 2px solid transparent;
            border-radius: 6px;
            padding: 3px 6px;
            cursor: pointer;
            font-size: 18px;
            transition: border-color 0.2s;
            line-height: 1;
        }

        .lang-btn.active { border-color: var(--accent); }
        .lang-btn:hover { border-color: var(--border); }

        #themeToggle {
            background: transparent;
            border: 1px solid var(--border);
            border-radius: 50%;
            width: 36px;
            height: 36px;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        #themeToggle:hover { background: var(--surface-2); }

        /* === Hero Section === */
        .hero {
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, rgba(108, 140, 255, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
            padding: 80px 24px 60px;
            text-align: center;
        }
        .hero::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 50% 26%, rgba(108, 140, 255, 0.20), rgba(108, 140, 255, 0) 60%),
                radial-gradient(circle, var(--hero-dot) 1.2px, transparent 1.3px);
            background-size: 100% 100%, 24px 24px;
            -webkit-mask-image: radial-gradient(ellipse 78% 75% at 50% 38%, #000 30%, transparent 100%);
            mask-image: radial-gradient(ellipse 78% 75% at 50% 38%, #000 30%, transparent 100%);
            pointer-events: none;
            z-index: 0;
        }

        .hero--compact {
            padding: 40px 24px 32px;
        }

        .hero-inner {
            position: relative;
            z-index: 1;
            max-width: 700px;
            margin: 0 auto;
        }

        .hero h1 {
            font-family: "Geist", system-ui, -apple-system, sans-serif;
            font-size: 40px;
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 16px;
            letter-spacing: -0.025em;
        }

        .hero--compact h1 {
            font-size: 28px;
            margin-bottom: 12px;
        }

        .hero-subtitle {
            color: var(--text-dim);
            font-size: 18px;
            margin-bottom: 32px;
        }

        .hero--compact .hero-subtitle { display: none; }

        .search-form {
            display: flex;
            gap: 12px;
            max-width: 600px;
            margin: 0 auto 24px;
        }

        .search-form input[type="text"] {
            flex: 1;
            padding: 16px 20px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            color: var(--text);
            font-size: 16px;
            outline: none;
            transition: border-color 0.2s;
        }

        .search-form input[type="text"]:focus { border-color: var(--accent); }
        .search-form input[type="text"]::placeholder { color: var(--text-dim); }

        .search-form button {
            padding: 16px 36px;
            background: var(--accent);
            color: #fff;
            border: none;
            border-radius: var(--radius);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: opacity 0.2s;
            white-space: nowrap;
        }

        .search-form button:hover { opacity: 0.85; }

        .search-form-btn-reset {
            display: inline-block;
            padding: 14px 32px;
            background: var(--accent);
            color: #fff;
            border: none;
            border-radius: var(--radius);
            font-size: 16px;
            font-weight: 600;
            text-decoration: none;
            white-space: nowrap;
            cursor: pointer;
            transition: opacity 0.2s;
        }

        .search-form-btn-reset:hover { opacity: 0.85; }
        .search-form button:disabled { opacity: 0.5; cursor: wait; }

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

        .trust-strip {
            padding: 20px 24px;
            border-bottom: 1px solid var(--border);
            background: var(--bg);
        }

        .trust-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-dim);
            font-size: 14px;
            font-weight: 500;
        }

        .trust-badge svg {
            width: 20px;
            height: 20px;
            color: var(--accent);
        }

        /* === Container === */
        .container-landing {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .container-results {
            max-width: 900px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* === Error === */
        .error-msg {
            background: rgba(248, 113, 113, 0.1);
            border: 1px solid var(--red);
            color: var(--red);
            padding: 12px 20px;
            border-radius: var(--radius);
            margin-bottom: 24px;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
        }

        /* === Marketing Sections === */
        .section-marketing { padding: 60px 24px; }

        /* Pricing section: tighter so cards + buttons fit in viewport on anchor jump */
        #pricing.section-marketing { padding-top: 18px; padding-bottom: 40px; scroll-margin-top: 60px; }
        #pricing .section-title { margin-bottom: 24px; }

        .section-title {
            font-family: "Geist", system-ui, -apple-system, sans-serif;
            text-align: center;
            font-size: 32px;
            font-weight: 700;
            color: var(--accent);
            letter-spacing: -0.02em;
            margin-bottom: 48px;
        }
        .section-title::after {
            content: "";
            display: block;
            width: 64px;
            height: 3px;
            margin: 14px auto 0;
            border-radius: 2px;
            background: linear-gradient(90deg, var(--accent), #a78bfa);
        }

        /* How it Works */
        .how-it-works {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 32px;
            max-width: 900px;
            margin: 0 auto;
        }

        .how-step {
            text-align: center;
            padding: 32px 24px;
            background: var(--surface);
            border-radius: var(--radius);
            border: 1px solid var(--border);
            box-shadow: var(--shadow);
        }

        .how-step-icon {
            width: 56px;
            height: 56px;
            margin: 0 auto 16px;
            background: rgba(108, 140, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .how-step-icon svg {
            width: 28px;
            height: 28px;
            color: var(--accent);
        }

        .how-step-num {
            display: inline-block;
            width: 28px;
            height: 28px;
            line-height: 28px;
            border-radius: 50%;
            background: var(--accent);
            color: #fff;
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 12px;
        }

        .how-step h3 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .how-step p {
            color: var(--text-dim);
            font-size: 14px;
        }

        /* Pricing */
        .pricing-cards {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
            max-width: 1080px;
            margin: 0 auto;
        }
        @media (max-width: 1000px) {
            .pricing-cards { grid-template-columns: 1fr; max-width: 480px; }
        }

        .pricing-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 22px 28px;
            position: relative;
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
        }

        .pricing-card--popular {
            border-color: var(--accent);
            border-width: 2px;
        }

        .pricing-badge {
            position: absolute;
            top: -12px;
            right: 20px;
            background: var(--accent-strong);
            color: #fff;
            padding: 4px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .pricing-price {
            font-size: 40px;
            font-weight: 800;
            margin-bottom: 4px;
        }

        .pricing-name {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .tier-persona {
            font-size: 13px;
            color: var(--text-dim);
            margin-bottom: 14px;
        }

        .tier-coffee {
            display: inline-block;
            font-size: 12px;
            color: var(--green);
            font-weight: 600;
            margin-bottom: 8px;
        }

        .tier-upsell {
            background: var(--tag-green-bg);
            color: var(--green);
            font-size: 12.5px;
            font-weight: 600;
            padding: 7px 12px;
            border-radius: 8px;
            margin-bottom: 14px;
            line-height: 1.4;
        }

        .pricing-features {
            list-style: none;
            margin-bottom: 16px;
            flex: 1;
        }

        .pricing-features li {
            padding: 4px 0;
            font-size: 14px;
            color: var(--text-dim);
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }

        .pricing-features li::before {
            content: '\2713';
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            margin-top: 2px;
            background: var(--tag-green-bg);
            color: var(--green);
            border-radius: 50%;
            font-size: 11px;
            font-weight: 700;
            line-height: 1;
        }

        .btn-pricing {
            display: block;
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: var(--radius);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: opacity 0.2s;
            background: var(--surface-2);
            color: var(--text);
            border: 1px solid var(--border);
        }

        .btn-pricing:hover { opacity: 0.85; }

        .btn-pricing--primary {
            background: linear-gradient(135deg, var(--accent), #a78bfa);
            color: #fff;
            border: none;
        }

        /* FAQ */
        .faq-list {
            max-width: 700px;
            margin: 0 auto;
        }

        .faq-item {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            margin-bottom: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
        }
        .faq-item:hover {
            transform: translateY(-2px);
            border-color: var(--accent);
            box-shadow: 0 8px 22px rgba(108, 140, 255, 0.14);
        }
        @media (prefers-reduced-motion: reduce) {
            .faq-item:hover { transform: none; }
        }

        .faq-question {
            width: 100%;
            padding: 18px 24px;
            background: transparent;
            border: none;
            color: var(--text);
            font-size: 16px;
            font-weight: 600;
            text-align: left;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .faq-question:hover { background: var(--surface-2); }

        .faq-arrow {
            transition: transform 0.3s;
            color: var(--text-dim);
        }

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

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }
        .faq-item.active .faq-answer {
            max-height: 600px;
        }

        .faq-answer-inner {
            padding: 0 24px 18px;
            color: var(--text-dim);
            font-size: 14px;
            line-height: 1.7;
        }

        /* === Results Section === */
        .results-section {
            padding: 32px 0 60px;
        }

        .score-card {
            text-align: center;
            padding: 32px;
            background: var(--surface);
            border-radius: var(--radius);
            margin-bottom: 24px;
            box-shadow: var(--shadow);
        }

        .score-circle {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            font-weight: 800;
            margin-bottom: 12px;
        }

        .score-green { background: var(--tag-green-bg); color: var(--green); border: 3px solid var(--green); }
        .score-yellow { background: var(--tag-yellow-bg); color: var(--yellow); border: 3px solid var(--yellow); }
        .score-red { background: var(--tag-red-bg); color: var(--red); border: 3px solid var(--red); }

        .score-domain {
            font-size: 20px;
            font-weight: 600;
        }
        .score-breakdown {
            display: inline-flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 4px 14px;
            margin-top: 14px;
            font-size: 13px;
            color: var(--text-dim);
            font-variant-numeric: tabular-nums;
        }
        .score-breakdown-item { display: inline-flex; align-items: baseline; gap: 4px; }
        .score-breakdown-num { font-weight: 700; }
        .score-breakdown-num.s-green { color: var(--green); }
        .score-breakdown-num.s-yellow { color: var(--yellow); }
        .score-breakdown-num.s-red { color: var(--red); }
        .score-breakdown-sep { color: var(--border); }

        .card {
            background: var(--surface);
            border-radius: var(--radius);
            padding: 24px;
            margin-bottom: 16px;
            box-shadow: var(--shadow);
        }

        .card h2 {
            font-family: "Geist", system-ui, -apple-system, sans-serif;
            font-size: 19px;
            font-weight: 700;
            color: var(--text);
            letter-spacing: -0.01em;
            margin-bottom: 18px;
        }

        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        .stat {
            padding: 16px;
            background: var(--surface-2);
            border-radius: 8px;
        }

        .stat-label {
            font-size: 13px;
            color: var(--text-dim);
            margin-bottom: 4px;
        }

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

        .tag {
            display: inline-block;
            padding: 2px 10px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
        }

        .tag-green { background: var(--tag-green-bg); color: var(--green); }
        .tag-yellow { background: var(--tag-yellow-bg); color: var(--yellow); }
        .tag-red { background: var(--tag-red-bg); color: var(--red); }

        /* Font-safe status glyphs swapped in for emojis in AI markdown (PDF has no emoji font) */
        .md-status { font-weight: 700; display: inline-block; min-width: 1em; text-align: center; }
        .md-status--red { color: var(--red); }
        .md-status--amber { color: var(--yellow); }
        .md-status--green { color: var(--green); }
        .md-status--blue { color: var(--blue, #2563eb); }
        .md-status--muted { color: var(--text-2); }

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

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

        /* === Keyword density bar (visual alongside density value) === */
        .data-table td.kw-density-cell {
            position: relative;
            min-width: 110px;
            padding-right: 8px;
            white-space: nowrap;
        }
        .data-table td.kw-density-cell::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 6px;
            transform: translateY(-50%);
            width: calc(var(--kw-pct, 0%) * 0.45);
            height: 6px;
            background: linear-gradient(90deg, var(--accent), #a78bfa);
            border-radius: 3px;
            opacity: 0.5;
            z-index: 0;
            pointer-events: none;
        }
        .data-table td.kw-density-cell > .kw-val {
            position: relative;
            z-index: 1;
            font-variant-numeric: tabular-nums;
        }

        /* === Status grid: pack pure pass/fail rows into 2-column grid === */
        .card.status-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4px 32px;
            align-items: start;
        }
        .card.status-grid > h2,
        .card.status-grid > p,
        .card.status-grid > .grid-2 {
            grid-column: 1 / -1;
        }
        .card.status-grid .row {
            border-bottom: none;
            padding: 8px 0;
        }
        /* Problem rows in status-grid span full width (visual emphasis) */
        .card.status-grid .row:has(.tag-red),
        .card.status-grid .row:has(.tag-yellow) {
            grid-column: 1 / -1;
        }
        /* Problem-row tinting still applies in grid mode */
        @media (max-width: 600px) {
            .card.status-grid { grid-template-columns: 1fr; }
        }

        /* Per-section problem counter badge (added by JS) */
        .section-counter {
            display: inline-block;
            margin-left: 12px;
            padding: 2px 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 600;
            vertical-align: middle;
            font-family: system-ui, sans-serif;
            letter-spacing: 0;
        }
        .section-counter.all-ok {
            background: var(--tag-green-bg);
            color: var(--green);
        }
        .section-counter.has-issues {
            background: var(--tag-yellow-bg);
            color: var(--yellow);
        }
        .section-counter.has-errors {
            background: var(--tag-red-bg);
            color: var(--red);
        }
        .counter-box.is-clickable {
            cursor: pointer;
            transition: transform 0.18s ease, box-shadow 0.18s ease;
        }
        .counter-box.is-clickable:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 22px rgba(108, 140, 255, 0.14);
        }

        /* === Audit floating TOC (desktop only) === */
        .audit-toc {
            position: fixed;
            left: 18px;
            top: 96px;
            width: 220px;
            max-height: calc(100vh - 140px);
            overflow-y: auto;
            padding: 14px 16px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 12px;
            box-shadow: var(--shadow);
            z-index: 50;
            font-size: 13px;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.22s ease, visibility 0.22s;
        }
        .audit-toc.is-visible {
            opacity: 1;
            visibility: visible;
        }
        .audit-toc-title {
            font-family: 'Geist', system-ui, sans-serif;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-dim);
            margin-bottom: 10px;
            letter-spacing: 0.02em;
        }
        .audit-toc ol {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .audit-toc li { margin: 0; }
        .audit-toc a {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            padding: 6px 8px;
            color: var(--text-dim);
            text-decoration: none;
            border-radius: 6px;
            border-left: 2px solid transparent;
            transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
        }
        .audit-toc a:hover {
            color: var(--text);
            background: var(--surface-2);
        }
        .audit-toc a.is-active {
            color: var(--accent);
            background: var(--surface-2);
            border-left-color: var(--accent);
            font-weight: 600;
        }
        .audit-toc-dot {
            display: inline-block;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .audit-toc-dot.toc-err { background: var(--red); }
        .audit-toc-dot.toc-warn { background: var(--yellow); }
        .audit-toc-dot.toc-ok { background: var(--green); opacity: 0.45; }
        @media (max-width: 1200px) {
            .audit-toc { display: none; }
        }

        /* === Audit check rows: visual weight by status === */
        .data-table tr.check-pass td.check-name { color: var(--text-dim); }
        .data-table tr.check-fail td.check-name { color: var(--text); font-weight: 600; }
        .data-table tr.check-points { font-variant-numeric: tabular-nums; }
        .data-table .check-icon { font-size: 16px; font-weight: 700; padding: 0; background: transparent; }
        /* Agent-Ready: quiet pass/skip signals, bold problem signals */
        .data-table tr.ar-pass .ar-title,
        .data-table tr.ar-skip .ar-title {
            font-weight: 400;
            color: var(--text-dim);
        }
        .data-table tr.ar-fail .ar-title,
        .data-table tr.ar-warn .ar-title {
            font-weight: 700;
            color: var(--text);
        }
        /* Override default .check-icon styling so it's not pill-shaped */
        .data-table .tag-green.check-icon { color: var(--green); }
        .data-table .tag-red.check-icon { color: var(--red); }
        .data-table .tag-yellow.check-icon { color: var(--yellow); }

        /* === Problem-row highlighting (modern :has() selector) === */
        /* When a row contains a red/yellow status tag, tint the whole row */
        .row:has(.tag-red) {
            background: rgba(248, 113, 113, 0.07);
            margin: 0 -16px;
            padding-left: 16px;
            padding-right: 16px;
            border-radius: 6px;
            border-bottom-color: transparent;
        }
        [data-theme="light"] .row:has(.tag-red) {
            background: rgba(220, 38, 38, 0.05);
        }
        .row:has(.tag-red) .row-label {
            font-weight: 700;
            color: var(--text);
        }
        .row:has(.tag-red) .row-label::before {
            content: "\26A0\FE0F";
            margin-right: 8px;
            color: var(--red);
            font-size: 0.95em;
        }

        .row:has(.tag-yellow) {
            background: rgba(251, 191, 36, 0.07);
            margin: 0 -16px;
            padding-left: 16px;
            padding-right: 16px;
            border-radius: 6px;
            border-bottom-color: transparent;
        }
        [data-theme="light"] .row:has(.tag-yellow) {
            background: rgba(202, 138, 4, 0.06);
        }
        .row:has(.tag-yellow) .row-label {
            font-weight: 700;
            color: var(--text);
        }
        .row:has(.tag-yellow) .row-label::before {
            content: "\26A0\FE0F";
            margin-right: 8px;
            color: var(--yellow);
            font-size: 0.95em;
        }

        /* Same treatment for table rows in spec tables (AI Visibility, Top Keywords, Hreflang) */
        tr:has(.tag-red) {
            background: rgba(248, 113, 113, 0.06) !important;
        }
        [data-theme="light"] tr:has(.tag-red) {
            background: rgba(220, 38, 38, 0.04) !important;
        }
        tr:has(.tag-yellow) {
            background: rgba(251, 191, 36, 0.06) !important;
        }
        [data-theme="light"] tr:has(.tag-yellow) {
            background: rgba(202, 138, 4, 0.05) !important;
        }


        .row-label {
            color: var(--text-dim);
            font-size: 14px;
        }

        .row-value {
            font-weight: 500;
            font-size: 14px;
            text-align: right;
            max-width: 60%;
            word-break: break-all;
        }

        /* Issue/Warning/Rec counters */
        .counters-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-bottom: 16px;
        }

        .counter-box {
            text-align: center;
            padding: 20px 16px;
            border-radius: var(--radius);
            background: var(--surface);
            box-shadow: var(--shadow);
        }

        .counter-num {
            font-size: 32px;
            font-weight: 800;
            line-height: 1;
            margin-bottom: 6px;
        }

        .counter-label {
            font-size: 13px;
            font-weight: 500;
        }

        .counter-box--red { border: 1px solid var(--red); }
        .counter-box--red .counter-num { color: var(--red); }
        .counter-box--red .counter-label { color: var(--red); }

        .counter-box--yellow { border: 1px solid var(--yellow); }
        .counter-box--yellow .counter-num { color: var(--yellow); }
        .counter-box--yellow .counter-label { color: var(--yellow); }

        .counter-box--blue { border: 1px solid var(--accent); }
        .counter-box--blue .counter-num { color: var(--accent); }
        .counter-box--blue .counter-label { color: var(--accent); }

        /* === Paywall === */
        .paywall-teaser {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 22px 26px;
            margin-bottom: 24px;
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        }
        .paywall-teaser:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 32px rgba(108, 140, 255, 0.18);
            border-color: var(--accent);
        }
        .paywall-teaser-head {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 18px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 14px;
        }
        .paywall-teaser-icon {
            width: 22px;
            height: 22px;
            color: var(--accent);
            flex-shrink: 0;
        }
        .paywall-teaser-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 14px;
        }
        .ptz-badge {
            flex: 1 1 140px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: 999px;
            font-size: 14px;
            font-weight: 500;
        }
        .ptz-badge b {
            font-size: 15px;
            font-weight: 700;
        }
        .ptz-badge--red { background: var(--tag-red-bg); color: var(--red); }
        .ptz-badge--yellow { background: var(--tag-yellow-bg); color: var(--yellow); }
        .ptz-badge--blue { background: rgba(108, 140, 255, 0.15); color: var(--accent); }
        .paywall-teaser-found {
            margin-bottom: 14px;
        }
        .ptf-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 8px;
        }
        .ptf-list {
            list-style: none;
            margin: 0 0 8px;
            padding: 0;
        }
        .ptf-list li {
            font-size: 13.5px;
            color: var(--text-dim);
            padding: 3px 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .ptf-lock {
            opacity: 0.7;
            flex-shrink: 0;
        }
        .ptf-more {
            font-size: 12.5px;
            color: var(--accent);
            font-weight: 600;
        }
        .paywall-teaser-body {
            font-size: 15px;
            line-height: 1.65;
            color: var(--text-dim);
        }
        .locked-preview {
            position: relative;
            margin-top: 16px;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid var(--border);
            cursor: pointer;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .locked-preview:hover {
            border-color: var(--accent);
            box-shadow: 0 4px 16px rgba(108, 140, 255, 0.15);
        }
        .locked-preview-rows {
            filter: blur(5px);
            padding: 14px 16px;
            user-select: none;
        }
        .lp-row {
            height: 12px;
            background: var(--text-dim);
            opacity: 0.25;
            border-radius: 4px;
            margin: 10px 0;
        }
        .locked-overlay {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 600;
            color: var(--accent);
        }
        .lp-lock { font-size: 14px; }

        .paywall-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 24px;
        }

        @media (max-width: 700px) {
            .paywall-grid { grid-template-columns: 1fr; }
        }

        .paywall-card {
            position: relative;
            border-radius: var(--radius);
            border: 2px solid var(--border);
            background: var(--surface);
            padding: 32px 28px;
            display: flex;
            flex-direction: column;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .paywall-card:hover {
            border-color: var(--accent);
            box-shadow: 0 4px 24px rgba(108, 140, 255, 0.1);
        }

        .paywall-card--popular {
            border-color: var(--accent);
            box-shadow: 0 4px 24px rgba(108, 140, 255, 0.15);
        }

        /* Review quote cards */
        .reviews-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            max-width: 900px;
            margin: 0 auto;
        }
        .review-quote {
            border: 1px solid var(--border);
            border-top: 2px solid var(--accent);
            padding: 20px 24px;
            background: var(--surface);
            border-radius: 0 0 12px 12px;
            box-shadow: var(--shadow);
            transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
            margin: 0;
        }
        .review-quote:hover { border-top-color: var(--accent); border-color: var(--accent); }
        .review-quote:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 28px rgba(108, 140, 255, 0.18);
        }
        .review-quote p {
            color: var(--text);
            font-style: italic;
            margin: 0 0 10px;
            font-size: 15px;
            line-height: 1.7;
        }
        .review-quote cite {
            color: var(--text-dim);
            font-size: 13px;
            font-style: normal;
        }
        @media (prefers-reduced-motion: reduce) {
            .review-quote:hover { transform: none; }
        }

        /* Lively hover for content cards (lift + accent border + glow) */
        .how-step,
        .pricing-card,
        .card,
        .counter-box {
            transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
        }
        .how-step:hover,
        .pricing-card:hover,
        .card:hover {
            transform: translateY(-4px);
            border-color: var(--accent);
            box-shadow: 0 10px 28px rgba(108, 140, 255, 0.18);
        }
        /* Counter boxes keep their semantic border colour, just lift + glow */
        .counter-box:hover,
        .paywall-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 28px rgba(108, 140, 255, 0.18);
        }

        /* Stat cards (About -> SEO Nerve in Numbers) */
        .stat-card {
            border: 1px solid var(--border);
            box-shadow: var(--shadow);
            transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
        }
        .stat-card:hover {
            transform: translateY(-4px);
            border-color: var(--accent);
            box-shadow: 0 10px 28px rgba(108, 140, 255, 0.18);
        }

        /* "SEO Nerve in Numbers" heading */
        .stats-heading {
            text-align: center;
            font-size: 22px;
            font-weight: 700;
            color: var(--accent);
            letter-spacing: 0.3px;
            margin: 32px 0 20px;
        }
        .stats-heading::after {
            content: "";
            display: block;
            width: 48px;
            height: 3px;
            margin: 10px auto 0;
            border-radius: 2px;
            background: linear-gradient(90deg, var(--accent), #a78bfa);
        }

        .stats-strip {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: baseline;
            gap: 18px 40px;
            margin: 18px 0 8px;
            padding: 0 16px;
        }
        .stats-strip-item {
            display: inline-flex;
            align-items: baseline;
            gap: 10px;
        }
        .stats-num {
            font-family: 'Geist', system-ui, sans-serif;
            font-size: 36px;
            font-weight: 800;
            letter-spacing: -0.02em;
            line-height: 1;
        }
        .stats-lbl { font-size: 14px; color: var(--text-dim); }
        .stats-strip-sep {
            width: 1px;
            height: 28px;
            background: var(--border);
            display: inline-block;
            align-self: center;
        }
        @media (max-width: 700px) {
            .stats-strip { gap: 14px 0; }
            .stats-strip-sep { display: none; }
            .stats-strip-item { width: 100%; justify-content: center; }
        }

        .checks-intro {
            text-align: center;
            max-width: 520px;
            margin: -8px auto 4px;
            color: var(--text-dim);
            font-size: 14px;
            line-height: 1.6;
        }

        /* About meta strip (author / date / contact) */
        .about-meta {
            margin-top: 22px;
            padding-top: 16px;
            border-top: 1px solid var(--border);
            font-size: 13px;
            color: var(--text-dim);
            line-height: 1.8;
        }
        .about-meta a { color: var(--accent); }

        /* About intro lead card */
        .about-intro {
            max-width: 760px;
            margin: 0 auto 28px;
            padding: 32px 36px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
        }
        .about-intro:hover {
            transform: translateY(-2px);
            border-color: var(--accent);
            box-shadow: 0 8px 22px rgba(108, 140, 255, 0.14);
        }
        .ai-disclaimer {
            transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
        }
        .ai-disclaimer:hover {
            transform: translateY(-2px);
            border-color: var(--accent);
            box-shadow: 0 8px 22px rgba(108, 140, 255, 0.14);
        }
        @media (prefers-reduced-motion: reduce) {
            .about-intro:hover, .ai-disclaimer:hover { transform: none; }
        }
        .about-intro p {
            color: var(--text-dim);
            line-height: 1.85;
            font-size: 15px;
            margin: 0 0 14px;
        }
        .about-intro p:last-child { margin-bottom: 0; }
        .about-lead {
            font-size: 18px;
            line-height: 1.6 !important;
            color: var(--text) !important;
            font-weight: 500;
        }
        .about-lead strong, .about-intro strong { color: var(--accent); }
        @media (max-width: 600px) {
            .about-intro { padding: 24px 20px; }
            .about-lead { font-size: 16px; }
        }

        /* Use cases / scenarios */
        .usecases-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
            max-width: 980px;
            margin: 0 auto;
        }
        .usecase-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 28px 28px 24px;
            display: flex;
            flex-direction: column;
            transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
        }
        .usecase-card:hover {
            border-color: var(--accent);
            box-shadow: 0 8px 28px rgba(108, 140, 255, 0.18);
            transform: translateY(-3px);
        }
        .usecase-head { margin-bottom: 8px; }
        .usecase-title {
            font-size: 19px;
            font-weight: 700;
            color: var(--text);
            margin: 0 0 6px;
            line-height: 1.3;
        }
        .usecase-sub {
            font-size: 14px;
            color: var(--text-dim);
            line-height: 1.5;
            margin: 0;
        }
        .usecase-steps {
            list-style: none;
            padding: 0;
            margin: 0 0 4px;
            flex: 1;
        }
        .usecase-steps li {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 13px 0;
            border-top: 1px solid var(--border);
            font-size: 14px;
            line-height: 1.55;
            color: var(--text);
        }
        .usecase-num {
            flex-shrink: 0;
            width: 26px;
            height: 26px;
            line-height: 26px;
            text-align: center;
            border-radius: 50%;
            background: var(--accent);
            color: #fff;
            font-size: 13px;
            font-weight: 700;
        }
        .usecase-foot {
            margin: 0;
            padding-top: 16px;
            border-top: 1px solid var(--border);
            font-size: 14px;
            font-weight: 600;
            color: var(--accent);
            line-height: 1.5;
        }
        @media (max-width: 760px) {
            .usecases-grid { grid-template-columns: 1fr; }
            .usecase-card { padding: 24px 20px 20px; }
        }
        @media (prefers-reduced-motion: reduce) {
            .usecase-card { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
            .usecase-card:hover { transform: none; }
        }


        @media (prefers-reduced-motion: reduce) {
            .stat-card { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
            .stat-card:hover { transform: none; }
        }

        /* "What we check" - bento grid: 2 featured (#1 Technical SEO 2x2, #6 AI Visibility wide) + 6 normal */
        .checks-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin: 20px 0;
        }
        /* Bento zig-zag: wide card (40%) shifts position each row, two narrow (30%) fill the rest */
        .check-card:nth-child(1), .check-card:nth-child(5), .check-card:nth-child(9) { flex: 0 0 calc(40% - 11px); }
        .check-card {
            flex: 0 0 calc(30% - 11px);
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 20px 18px;
            box-shadow: var(--shadow);
            transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
        }
        .check-card:hover {
            transform: translateY(-4px);
            border-color: var(--accent);
            box-shadow: 0 10px 28px rgba(108, 140, 255, 0.18);
        }
        .check-card-icon {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            background: rgba(108, 140, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
        }
        .check-card-icon svg { width: 22px; height: 22px; color: var(--accent); }
        .check-card-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
        .check-card-list { font-size: 13px; color: var(--text-dim); line-height: 1.65; }
        .check-card-list strong { color: var(--text); font-weight: 600; }
        @media (max-width: 900px) {
            .check-card, .check-card:nth-child(1), .check-card:nth-child(5), .check-card:nth-child(9) { flex: 0 0 calc(50% - 8px); }
        }
        @media (max-width: 520px) {
            .check-card, .check-card:nth-child(1), .check-card:nth-child(5), .check-card:nth-child(9) { flex: 0 0 100%; }
        }
        @media (prefers-reduced-motion: reduce) {
            .check-card { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
            .check-card:hover { transform: none; }
        }

        @media (prefers-reduced-motion: reduce) {
            .how-step,
            .pricing-card,
            .card,
            .counter-box,
            .paywall-card {
                transition: border-color 0.18s ease, box-shadow 0.18s ease;
            }
            .how-step:hover,
            .pricing-card:hover,
            .card:hover,
            .counter-box:hover,
            .paywall-card:hover {
                transform: none;
            }
        }

        .paywall-price {
            font-size: 42px;
            font-weight: 800;
            color: var(--text);
            line-height: 1;
            margin-bottom: 4px;
        }

        .paywall-price span {
            font-size: 16px;
            font-weight: 400;
            color: var(--text-dim);
        }

        .paywall-name {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text);
        }

        .paywall-desc {
            color: var(--text-dim);
            font-size: 14px;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .paywall-features {
            list-style: none;
            margin-bottom: 24px;
            flex: 1;
        }

        .paywall-features li {
            padding: 6px 0;
            font-size: 14px;
            color: var(--text);
            display: flex;
            align-items: flex-start;
            gap: 8px;
            line-height: 1.4;
        }

        .paywall-features .check {
            color: var(--green);
            font-weight: 700;
            flex-shrink: 0;
        }

        .btn-pay {
            display: block;
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: var(--radius);
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: opacity 0.2s, transform 0.2s;
            text-align: center;
        }

        .btn-pay:hover { opacity: 0.9; transform: translateY(-1px); }

        .btn-pay-basic {
            background: linear-gradient(135deg, var(--accent), #a78bfa);
            color: #fff;
        }

        .btn-pay-full {
            background: linear-gradient(135deg, #f59e0b, #ef4444);
            color: #fff;
        }

        .paywall-badge {
            position: absolute;
            top: -1px;
            right: 24px;
            background: var(--accent);
            color: #fff;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            z-index: 2;
        }

        .paywall-tenge-note,
        .pricing-tenge-note {
            margin-top: 10px;
            font-size: 11px;
            line-height: 1.4;
            color: var(--text-dim);
            text-align: center;
            letter-spacing: 0.2px;
        }

        .fx-usd-main {
            display: block;
        }
        .paywall-price .fx-usd-main {
            font-size: 42px;
            font-weight: 800;
            color: var(--text);
            line-height: 1;
        }

        .fx-kzt-line {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dim);
            margin-top: 4px;
        }
        .paywall-price .fx-kzt-line {
            font-size: 14px;
        }
        .paywall-price .fx-kzt-line span {
            font-size: inherit;
            font-weight: inherit;
            color: inherit;
        }

        /* === CTA Section === */
        .cta-section {
            background: linear-gradient(135deg, rgba(108, 140, 255, 0.15) 0%, rgba(167, 139, 250, 0.08) 100%);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 24px 24px;
            text-align: center;
            margin-bottom: 32px;
        }

        .cta-section h3 {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .cta-section p {
            color: var(--text-dim);
            font-size: 14px;
            margin-bottom: 16px;
        }

        .cta-form {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            max-width: 500px;
            margin: 0 auto;
        }

        .cta-form input {
            padding: 12px 16px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-size: 14px;
            outline: none;
        }

        .cta-form input:focus { border-color: var(--accent); }

        .cta-form input.full-width {
            grid-column: 1 / -1;
        }

        .cta-submit {
            grid-column: 1 / -1;
            padding: 14px;
            background: var(--accent);
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: opacity 0.2s;
        }

        .cta-submit:hover { opacity: 0.85; }

        /* === Footer === */
        .site-footer {
            border-top: 1px solid var(--border);
            padding: 40px 24px;
            text-align: center;
        }

        .footer-inner {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
        }

        .footer-logo {
            font-size: 16px;
            font-weight: 700;
            color: var(--accent);
        }

        .footer-links {
            display: flex;
            gap: 24px;
        }

        .footer-links a {
            color: var(--text-dim);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.2s ease;
        }

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

        .footer-copy {
            color: var(--text-dim);
            font-size: 13px;
        }

        /* === Loading spinner === */
        .loading { display: none; }
        .loading.active { display: inline-block; }

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

        .spinner {
            width: 18px;
            height: 18px;
            border: 2px solid var(--border);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
            display: inline-block;
            vertical-align: middle;
            margin-right: 8px;
        }

        .ok-message {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            background: var(--tag-green-bg);
            border-radius: 8px;
            color: var(--green);
            font-weight: 500;
            font-size: 14px;
        }

        /* === AI Content (typography polish) === */
        .ai-content {
            font-size: 15px;
            line-height: 1.75;
            color: var(--text);
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        .ai-content > *:first-child { margin-top: 0; }
        .ai-content h2 {
            font-family: 'Geist', system-ui, -apple-system, sans-serif;
            font-size: 22px;
            font-weight: 700;
            color: var(--text);
            text-transform: none;
            letter-spacing: -0.015em;
            margin-top: 36px;
            margin-bottom: 14px;
            padding-top: 24px;
            border-top: 1px solid var(--border);
        }
        .ai-content > h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
        .ai-content h3 {
            font-family: 'Geist', system-ui, sans-serif;
            font-size: 17px;
            font-weight: 600;
            color: var(--accent);
            margin-top: 24px;
            margin-bottom: 10px;
            letter-spacing: -0.005em;
        }
        .ai-content p { margin: 12px 0; word-wrap: break-word; }
        .ai-content ul, .ai-content ol { padding-left: 24px; margin: 12px 0; }
        .ai-content li { margin-bottom: 8px; word-wrap: break-word; }
        .ai-content li::marker { color: var(--accent); }
        .ai-content strong { color: var(--text); font-weight: 700; }
        .ai-content hr {
            border: none;
            border-top: 1px solid var(--border);
            margin: 28px 0;
        }
        .ai-content blockquote {
            margin: 16px 0;
            padding: 12px 16px;
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 6px;
            color: var(--text-dim);
            font-style: italic;
        }
        .ai-content pre {
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 14px 16px;
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
            font-size: 13px;
            line-height: 1.65;
            overflow-x: auto;
            white-space: pre;
            display: block;
            max-width: 100%;
            margin: 14px 0;
        }
        .ai-content code {
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 4px;
            padding: 2px 6px;
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            font-size: 0.88em;
            color: var(--accent);
        }
        .ai-content pre code {
            display: block;
            padding: 0;
            border: none;
            background: none;
            color: var(--text);
            font-size: 13px;
        }
        .ai-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 16px 0;
            font-size: 14px;
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
        }
        .ai-content thead th, .ai-content th {
            background: var(--surface-2);
            color: var(--accent);
            font-weight: 700;
            padding: 10px 14px;
            text-align: left;
            border-bottom: 1px solid var(--border);
        }
        .ai-content tbody td, .ai-content td {
            padding: 10px 14px;
            border-bottom: 1px solid var(--border);
            vertical-align: top;
            word-wrap: break-word;
        }
        .ai-content tbody tr:last-child td { border-bottom: none; }
        .ai-content tbody tr:hover { background: var(--surface-2); }
        .ai-content tbody tr:hover, .ai-content tr:hover { background: var(--border); }
        .ai-content h4 { font-size: 15px; color: var(--text); margin-top: 14px; margin-bottom: 6px; }

        /* === Responsive === */
        @media (max-width: 768px) {
            .header-nav { display: none; }
            .hero h1 { font-size: 28px; }
            .hero-subtitle { font-size: 16px; }
            .search-form { flex-direction: column; }
            .search-form button { width: 100%; }
            .how-it-works { grid-template-columns: 1fr; }
            #reviews .container-landing > div { grid-template-columns: 1fr !important; }
            .pricing-cards { grid-template-columns: 1fr; }
            .trust-badges { gap: 16px; }
            .counters-grid { grid-template-columns: 1fr; }
            .cta-form { grid-template-columns: 1fr; }
            .cta-form input.full-width { grid-column: 1; }
            .footer-inner { flex-direction: column; text-align: center; }
            .section-title { font-size: 24px; }
        }

        @media (max-width: 600px) {
            .grid-2 { grid-template-columns: 1fr; }
        }

        /* OK message (broken links, redirect chain) */
        .ok-message {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            background: var(--tag-green-bg);
            border-radius: 8px;
            color: var(--green);
            font-weight: 500;
        }

        /* Data tables (keywords, AI visibility, E-E-A-T, broken links, hreflang) */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }

        /* Narrow phones (<=480px): let a too-wide table scroll inside its card
           instead of pushing the whole page sideways, and tighten cells so most
           tables fit without scrolling at all. */
        @media (max-width: 480px) {
            .card { overflow-x: auto; }
            .data-table { font-size: 13px; }
            .data-table th, .data-table td { padding: 6px 8px; }
        }

        .data-table th {
            text-align: left;
            padding: 8px 12px;
            color: var(--text-dim);
            font-weight: 500;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid var(--border);
        }

        .data-table td {
            padding: 8px 12px;
            border-bottom: 1px solid var(--border);
        }

        .data-table tr:last-child td { border-bottom: none; }

        /* Heading hierarchy */
        .heading-tree {
            list-style: none;
            padding: 0;
            font-size: 14px;
        }

        .heading-tree li {
            padding: 4px 0;
            color: var(--text);
        }

        .heading-tag {
            display: inline-block;
            min-width: 28px;
            padding: 1px 6px;
            border-radius: 4px;
            background: var(--surface-2);
            color: var(--text-dim);
            font-size: 11px;
            font-weight: 600;
            text-align: center;
            margin-right: 8px;
        }

        /* Redirect chain */
        .chain-step {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            flex-wrap: wrap;
        }

        .chain-arrow {
            color: var(--text-dim);
            font-size: 16px;
        }

        /* === Chat assistant widget === */
        /* Scroll-to-top button - sits above the chat FAB */
        .scroll-top {
            position: fixed;
            bottom: 84px;
            right: 20px;
            width: 46px;
            height: 46px;
            border-radius: 50%;
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--accent);
            cursor: pointer;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
            z-index: 997;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transform: translateY(12px);
            transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s, box-shadow 0.2s ease;
        }
        .scroll-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .scroll-top:hover {
            transform: translateY(-3px);
            border-color: var(--accent);
            box-shadow: 0 8px 24px rgba(108, 140, 255, 0.28);
        }
        .scroll-top svg {
            width: 22px;
            height: 22px;
        }
        @media (max-width: 600px) {
            .scroll-top { bottom: 76px; right: 16px; width: 44px; height: 44px; }
        }
        @media (prefers-reduced-motion: reduce) {
            .scroll-top { transition: opacity 0.2s ease, visibility 0.2s; transform: none; }
            .scroll-top.visible { transform: none; }
            .scroll-top:hover { transform: none; }
        }

        .chat-fab {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            border: none;
            background: var(--accent, #6c8cff);
            color: #fff;
            font-size: 26px;
            cursor: pointer;
            box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
            z-index: 998;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.18s ease, box-shadow 0.18s ease;
        }
        .chat-fab:hover {
            transform: translateY(-2px) scale(1.04);
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
        }
        .chat-fab[aria-expanded="true"] { display: none; }

        .chat-modal {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 380px;
            max-width: calc(100vw - 32px);
            height: 560px;
            max-height: calc(100vh - 40px);
            background: var(--surface);
            color: var(--text);
            border: 1px solid var(--border);
            border-radius: 16px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
            z-index: 999;
            display: none;
            flex-direction: column;
            overflow: hidden;
        }
        .chat-modal[data-open="true"] { display: flex; }

        .chat-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
            background: linear-gradient(135deg, rgba(108,140,255,0.18), transparent);
        }
        .chat-header-title { font-weight: 700; font-size: 15px; }
        .chat-header-sub { font-size: 11px; color: var(--text-dim, #9aa1b3); margin-top: 2px; }
        .chat-close {
            background: none;
            border: none;
            color: var(--text-dim, #9aa1b3);
            font-size: 22px;
            cursor: pointer;
            line-height: 1;
            padding: 4px 8px;
        }
        .chat-close:hover { color: var(--text); }

        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 14px 14px 6px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            scroll-behavior: smooth;
        }
        .chat-bubble {
            max-width: 86%;
            padding: 9px 13px;
            border-radius: 14px;
            font-size: 14px;
            line-height: 1.45;
            white-space: pre-wrap;
            word-wrap: break-word;
        }
        .chat-bubble.bot {
            align-self: flex-start;
            background: rgba(255, 255, 255, 0.06);
            border-bottom-left-radius: 4px;
        }
        .chat-bubble.user {
            align-self: flex-end;
            background: var(--accent, #6c8cff);
            color: #fff;
            border-bottom-right-radius: 4px;
        }
        .chat-bubble.typing { opacity: 0.6; font-style: italic; }

        .chat-support-btn {
            align-self: flex-start;
            margin-top: -2px;
            padding: 7px 12px;
            font-size: 13px;
            border-radius: 10px;
            border: 1px solid var(--accent, #6c8cff);
            background: transparent;
            color: var(--accent, #6c8cff);
            cursor: pointer;
            text-decoration: none;
        }
        .chat-support-btn:hover { background: rgba(108,140,255,0.12); }

        .chat-form {
            display: flex;
            gap: 8px;
            padding: 10px 12px 12px;
            border-top: 1px solid var(--border, rgba(255,255,255,0.08));
        }
        .chat-input {
            flex: 1;
            padding: 10px 12px;
            font-size: 14px;
            border-radius: 10px;
            border: 1px solid var(--border, rgba(255,255,255,0.12));
            background: var(--bg, #0f1117);
            color: var(--text);
            outline: none;
            font-family: inherit;
        }
        .chat-input:focus { border-color: var(--accent, #6c8cff); }
        .chat-send {
            padding: 0 16px;
            border-radius: 10px;
            border: none;
            background: var(--accent, #6c8cff);
            color: #fff;
            font-weight: 600;
            cursor: pointer;
            font-size: 14px;
        }
        .chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

        [data-theme="light"] .chat-modal {
            background: #ffffff;
            color: #1a1d27;
            border-color: rgba(0,0,0,0.08);
        }
        [data-theme="light"] .chat-bubble.bot { background: #f1f3f8; color: #1a1d27; }
        [data-theme="light"] .chat-input { background: #fff; color: #1a1d27; border-color: rgba(0,0,0,0.12); }
        [data-theme="light"] .chat-header { background: linear-gradient(135deg, rgba(108,140,255,0.10), transparent); }

        @media (max-width: 600px) {
            .chat-modal {
                bottom: 0;
                right: 0;
                left: 0;
                top: 0;
                width: 100vw;
                height: 100vh;
                max-width: 100vw;
                max-height: 100vh;
                border-radius: 0;
            }
            .chat-fab { bottom: 16px; right: 16px; }
        }

        /* === PDF preview modal === */
        .pdf-preview-link {
            display: block;
            text-align: center;
            color: var(--accent);
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            padding: 6px 0 10px;
            transition: opacity 0.18s ease;
        }
        .pdf-preview-link:hover { opacity: 0.75; text-decoration: underline; }
        .pdf-preview-link::before { content: '\1F4C4'; margin-right: 6px; }

        #pdfPreviewModal {
            display: flex;
            position: fixed;
            inset: 0;
            z-index: 1100;
            background: rgba(0,0,0,0.65);
            align-items: center;
            justify-content: center;
            padding: 16px;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.22s ease, visibility 0.22s;
        }
        #pdfPreviewModal.modal-open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        #pdfPreviewModal > .pdf-modal-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 16px;
            box-shadow: 0 16px 48px rgba(0,0,0,0.35);
            width: 100%;
            max-width: 1080px;
            max-height: 94vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transform: translateY(10px);
            transition: transform 0.22s ease;
        }
        #pdfPreviewModal.modal-open > .pdf-modal-card { transform: translateY(0); }
        .pdf-modal-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 24px;
            border-bottom: 1px solid var(--border);
        }
        .pdf-modal-title {
            font-family: 'Geist', system-ui, sans-serif;
            font-size: 17px;
            font-weight: 700;
            color: var(--text);
            margin: 0;
        }
        .pdf-modal-close {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-dim);
            width: 32px;
            height: 32px;
            border-radius: 8px;
            font-size: 18px;
            line-height: 1;
            cursor: pointer;
            transition: background 0.18s ease, color 0.18s ease;
        }
        .pdf-modal-close:hover { background: var(--surface-2); color: var(--text); }
        .pdf-carousel {
            position: relative;
            background: var(--surface-2);
            flex: 1;
            overflow: hidden;
        }
        .pdf-carousel-track {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.32s cubic-bezier(.16,1,.3,1);
        }
        .pdf-slide {
            flex: 0 0 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 18px 28px;
            min-height: 420px;
        }
        .pdf-slide-img {
            display: block;
            width: auto;
            max-width: 100%;
            max-height: 82vh;
            object-fit: contain;
            border: 1px solid var(--border);
            border-radius: 6px;
            box-shadow: 0 6px 22px rgba(0,0,0,0.16);
            background: #fff;
        }
        .pdf-carousel-empty {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 40px;
            font-size: 14px;
            color: var(--text-dim);
        }
        .pdf-carousel-empty[hidden] { display: none; }
        .pdf-carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--text);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 14px rgba(0,0,0,0.18);
            transition: background 0.18s ease;
            z-index: 2;
        }
        .pdf-carousel-btn:hover { background: var(--surface-2); }
        .pdf-carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }
        .pdf-carousel-btn--prev { left: 14px; }
        .pdf-carousel-btn--next { right: 14px; }
        .pdf-carousel-btn svg { width: 18px; height: 18px; }
        .pdf-modal-foot {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 14px 24px;
            border-top: 1px solid var(--border);
            gap: 12px;
            flex-wrap: wrap;
        }
        .pdf-pagination {
            display: flex;
            gap: 6px;
            align-items: center;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-dim);
            font-variant-numeric: tabular-nums;
        }
        @media (max-width: 600px) {
            .pdf-slide { padding: 20px 16px; min-height: 360px; }
            .pdf-modal-foot { flex-direction: column; }
        }

        /* === Motion polish: accessibility, theme, modals, cookie === */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }
        html { transition: background-color 0.25s ease; }
        body { transition: background-color 0.25s ease, color 0.2s ease; }

        #contactModal, #feedbackModal, #consentModal {
            display: flex;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.2s ease, visibility 0.2s;
        }
        #fix-prompt-modal {
            display: block;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.2s ease, visibility 0.2s;
        }
        #contactModal.modal-open,
        #feedbackModal.modal-open,
        #consentModal.modal-open,
        #fix-prompt-modal.modal-open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        #contactModal > div:first-of-type,
        #feedbackModal > div:first-of-type,
        #consentModal > div:first-of-type,
        #fix-prompt-modal > div:first-of-type {
            transform: translateY(10px);
            transition: transform 0.22s ease;
        }
        #contactModal.modal-open > div:first-of-type,
        #feedbackModal.modal-open > div:first-of-type,
        #consentModal.modal-open > div:first-of-type,
        #fix-prompt-modal.modal-open > div:first-of-type {
            transform: translateY(0);
        }

        #cookieBanner {
            display: block;
            transform: translateY(100%);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
        }
        #cookieBanner.visible {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        /* === /Motion polish === */
