:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --soft: #f6f8fc;
    --text: #202124;
    --muted: #68717e;
    --line: #e3e7ee;
    --blue: #2868df;
    --blue-soft: #eaf1ff;
    --shadow: rgba(32, 63, 115, .08);
}
html[data-theme="dark"] {
    --bg: #10151e;
    --surface: #171e2a;
    --soft: #1b2433;
    --text: #edf2fa;
    --muted: #a6b1c2;
    --line: #2c3748;
    --blue: #80aaff;
    --blue-soft: #213554;
    --shadow: rgba(0,0,0,.2);
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
    outline: 3px solid #78a6ff;
    outline-offset: 4px;
}
.blue { color: var(--blue); }
.header {
    height: 76px;
    display: flex;
    align-items: center;
    padding: 0 4%;
    gap: 44px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    position: relative;
    z-index: 10;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 27px;
    font-weight: 650;
    letter-spacing: -1.5px;
    white-space: nowrap;
}
.brand svg { width: 32px; height: 32px; color: var(--blue); }
nav { display: flex; align-items: center; gap: 27px; }
nav button, nav a {
    background: none;
    border: 0;
    padding: 27px 0;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}
nav button:hover, nav a:hover { color: var(--blue); }
nav .nav-active {
    color: var(--blue);
    border-bottom: 2px solid var(--blue);
}
nav .radar-link { color: var(--text); font-weight: 600; }
.header-actions {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-left: auto;
}
.icon-button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    display: grid;
    place-items: center;
}
.icon-button:hover { background: var(--soft); }
.icon-button svg { width: 21px; height: 21px; }
.sign-in {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 11px 23px;
    color: var(--blue);
    background: var(--surface);
    white-space: nowrap;
    font-size: 14px;
}
.mobile-menu { display: none; }
.hero {
    position: relative;
    text-align: center;
    padding: 94px 24px 73px;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 100%, var(--blue-soft), transparent 68%);
    opacity: .65;
}
.hero > :not(.hero-glow) { position: relative; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--muted);
}
.status-dot {
    width: 7px;
    height: 7px;
    background: var(--blue);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--blue-soft);
}
h1 {
    font-size: clamp(42px, 5vw, 76px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.065em;
    margin: 25px 0 22px;
}
.hero-description {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.75;
    max-width: 610px;
    margin: 0 auto;
}
.tabs {
    display: flex;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
    margin: 35px 0 18px;
}
.tab {
    border: 0;
    border-radius: 25px;
    padding: 11px 19px;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tab svg, .tool-icon svg, .search-icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tab.active { color: var(--blue); background: var(--blue-soft); }
.tab:hover { background: var(--soft); }
#tool-panel { max-width: 790px; margin: auto; }
.search-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 8px 8px 8px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 35px var(--shadow);
    min-height: 70px;
}
.search-bar:focus-within { border-color: var(--blue); }
.search-icon { width: 24px; height: 24px; color: var(--muted); flex-shrink: 0; }
.search-bar input {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    outline: none;
    font-size: 16px;
}
.search-bar input:focus-visible { outline: none; }
.primary {
    border: 0;
    border-radius: 30px;
    padding: 17px 28px;
    background: #2868df;
    color: white;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background .2s, transform .2s;
}
.primary:hover { background: #1957c7; transform: translateY(-1px); }
.search-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 20px;
}
.separator { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.container { max-width: 1250px; margin: auto; padding-left: 30px; padding-right: 30px; }
.tools-section { padding-top: 55px; padding-bottom: 40px; }
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}
.section-kicker {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--blue);
    font-weight: 700;
    margin-bottom: 12px;
}
h2 { font-size: 32px; font-weight: 500; letter-spacing: -1.3px; margin: 0 0 10px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.section-label { font-size: 12px; color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card {
    text-align: left;
    padding: 27px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
    color: var(--text);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 10px 30px var(--shadow);
}
.tool-top { display: flex; align-items: center; justify-content: space-between; }
.tool-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-soft);
    color: var(--blue);
    border-radius: 13px;
    display: grid;
    place-items: center;
}
.tool-icon svg { width: 25px; height: 25px; }
.arrow { color: var(--muted); font-size: 21px; }
.tool-card h3 { font-size: 19px; margin: 24px 0 10px; letter-spacing: -.4px; font-weight: 600; }
.tool-card p { color: var(--muted); font-size: 14px; line-height: 1.7; min-height: 72px; margin: 0 0 20px; }
.tool-footer {
    display: flex;
    justify-content: space-between;
    color: var(--blue);
    border-top: 1px solid var(--line);
    padding-top: 17px;
    font-size: 13px;
    font-weight: 600;
}
.radar-banner {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    border-radius: 18px;
    background: linear-gradient(110deg, #0b162b, #142d51);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 45px 65px;
}
.radar-copy { position: relative; z-index: 2; }
.radar-kicker { color: #86b3ff; letter-spacing: 2px; font-size: 10px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.radar-dot { width: 6px; height: 6px; background: #83b5ff; border-radius: 50%; box-shadow: 0 0 12px #83b5ff; }
.radar-copy h2 { font-size: 54px; line-height: 1.02; letter-spacing: -2.8px; margin: 20px 0 15px; }
.radar-copy p { font-size: 17px; color: #d5e2f7; margin: 0 0 12px; }
.radar-copy .radar-description { font-size: 13px; max-width: 410px; line-height: 1.7; color: #9eb2d1; }
.radar-button { background: #fff; border: 0; color: #14294a; padding: 14px 23px; border-radius: 30px; font-size: 13px; font-weight: 600; margin-top: 12px; }
.radar-button span { margin-left: 18px; }
.radar-visual { position: relative; width: 340px; height: 300px; display: grid; place-items: center; flex-shrink: 0; }
.radar-screen { position: relative; width: 270px; height: 270px; border: 1px solid #456a9a; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, #23467455, transparent); }
.radar-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 1px solid #517eb45c; border-radius: 50%; }
.ring-one { width: 80%; height: 80%; }
.ring-two { width: 60%; height: 60%; }
.ring-three { width: 40%; height: 40%; }
.ring-four { width: 20%; height: 20%; }
.radar-cross { position: absolute; background: #517eb45c; }
.horizontal { width: 100%; height: 1px; top: 50%; }
.vertical { height: 100%; width: 1px; left: 50%; }
.radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, #5b9cff55 359deg, #8cbaffaa 360deg);
    animation: sweep 6s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-blip { position: absolute; width: 7px; height: 7px; background: #a6d6ff; border-radius: 50%; box-shadow: 0 0 13px #70b8ff; animation: blink 3s ease-in-out infinite; }
.blip-one { top: 25%; left: 66%; }
.blip-two { top: 65%; left: 29%; animation-delay: 1s; }
.blip-three { top: 74%; left: 71%; animation-delay: 2s; }
@keyframes blink { 50% { opacity: .25; } }
.radar-centre { position: absolute; top: 49%; left: 49%; width: 2%; height: 2%; background: #b4d7ff; border-radius: 50%; }
.radar-coordinate { position: absolute; color: #7093c3; font-size: 9px; letter-spacing: 2px; }
.coordinate-top { top: 0; right: 0; }
.coordinate-bottom { bottom: 0; left: 0; }
.process-section { padding-top: 65px; padding-bottom: 45px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 35px; }
.step-number { font-size: 28px; font-weight: 400; color: var(--blue); }
.process-grid h3 { font-size: 17px; margin: 15px 0 10px; }
.process-grid p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }
.transparency { display: flex; align-items: flex-start; gap: 16px; padding-top: 20px; padding-bottom: 55px; }
.transparency-icon { flex-shrink: 0; width: 23px; height: 23px; border: 1px solid var(--blue); color: var(--blue); border-radius: 50%; text-align: center; line-height: 21px; font-family: Georgia, serif; }
.transparency h3 { margin: 0 0 7px; font-size: 14px; }
.transparency p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; max-width: 850px; }
.footer { border-top: 1px solid var(--line); background: var(--soft); padding: 30px max(30px, calc((100% - 1190px)/2)); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-brand { display: inline-block; font-size: 24px; }
.footer-inner p { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links button, .footer-links a { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; color: var(--muted); font-size: 11px; }
.editor {
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: 0 8px 35px var(--shadow);
    padding: 20px;
    text-align: left;
}
.editor textarea {
    width: 100%;
    min-height: 165px;
    resize: vertical;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}
.editor-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding-top: 15px; flex-wrap: wrap; }
.editor-bottom span { color: var(--muted); font-size: 12px; }
.editor select { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; padding: 10px; }
.upload-area { text-align: center; border: 1px dashed var(--line); border-radius: 12px; padding: 30px 15px; }
.upload-area.dragging { border-color: var(--blue); background: var(--blue-soft); }
.upload-area p { font-size: 13px; color: var(--muted); }
.upload-area label { display: inline-block; padding: 12px 22px; border-radius: 25px; background: var(--blue-soft); color: var(--blue); cursor: pointer; font-size: 14px; }
.upload-area img { display: block; max-width: 100%; max-height: 230px; margin: 15px auto; border-radius: 8px; }
#feedback { max-width: 790px; margin: 20px auto 0; text-align: left; padding: 17px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 14px; line-height: 1.6; }
#feedback strong { color: var(--text); display: block; margin-bottom: 5px; }
@media(max-width:1100px) {
    .header { gap: 24px; padding: 0 25px; }
    nav { gap: 16px; }
    nav button, nav a { font-size: 12px; }
}
@media(max-width:900px) {
    .mobile-menu { display: grid; }
    nav { display: none; position: absolute; top: 75px; left: 0; right: 0; padding: 15px 25px; background: var(--surface); border-bottom: 1px solid var(--line); }
    nav.open { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
    nav button, nav a { padding: 13px 0; font-size: 14px; }
    .radar-banner { padding: 35px; }
    .radar-visual { width: 270px; }
    .radar-screen { width: 230px; height: 230px; }
}
@media(max-width:650px) {
    .header { height: 65px; padding: 0 16px; gap: 10px; }
    .brand { font-size: 24px; }
    .brand svg { width: 27px; height: 27px; }
    .header-actions { gap: 5px; }
    .sign-in { padding: 9px 14px; font-size: 12px; }
    nav { top: 64px; }
    .hero { padding: 60px 18px 45px; }
    h1 { font-size: clamp(36px, 9vw, 52px); }
    .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
    .hero-description { font-size: 15px; }
    .tabs { gap: 3px; margin-top: 25px; }
    .tab { padding: 10px 11px; font-size: 12px; gap: 5px; }
    .tab svg { width: 16px; height: 16px; }
    .search-bar { gap: 8px; min-height: 60px; padding-left: 15px; }
    .search-bar input { font-size: 13px; }
    .search-icon { width: 19px; height: 19px; }
    .primary { padding: 14px 17px; font-size: 12px; }
    .search-note { font-size: 10px; gap: 8px; }
    .container { padding-left: 18px; padding-right: 18px; }
    .tools-section { padding-top: 35px; padding-bottom: 25px; }
    .tool-grid, .process-grid { grid-template-columns: 1fr; gap: 13px; }
    .tool-card { padding: 22px; }
    .tool-card p { min-height: auto; }
    .section-label { display: none; }
    h2 { font-size: 27px; }
    .radar-banner { padding: 30px; flex-direction: column; align-items: flex-start; }
    .radar-copy h2 { font-size: 47px; }
    .radar-visual { width: 100%; height: 250px; margin-top: 25px; }
    .radar-screen { width: 220px; height: 220px; }
    .process-section { padding-top: 40px; }
    .process-grid { gap: 28px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-links { gap: 15px; }
}
@media(prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================
   AISCANS V1.1 PREMIUM DESIGN SYSTEM
   ========================================= */

:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --soft: #f8f9fc;
    --text: #20242c;
    --muted: #596575;
    --line: #e0e5ec;
    --blue: #2568e8;
    --blue-soft: #eaf1ff;
    --shadow: rgba(27, 58, 110, .09);
}

html[data-theme="dark"] {
    --bg: #151a23;
    --surface: #1d2531;
    --soft: #19212d;
    --text: #f0f3fa;
    --muted: #b1bed0;
    --line: #344153;
    --blue: #86b0ff;
    --blue-soft: #243b5e;
    --shadow: rgba(0, 0, 0, .22);
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.header {
    height: 72px;
    padding: 0 4%;
    gap: 40px;
}

.brand {
    font-weight: 650;
    letter-spacing: -1.4px;
    font-size: 28px;
}

nav {
    gap: 28px;
}

nav button, nav a {
    font-size: 14px;
    font-weight: 500;
    padding: 25px 0;
}

.hero {
    padding: 67px 24px 49px;
}

.hero-glow {
    opacity: .6;
    background: radial-gradient(
        ellipse at 50% 100%,
        var(--blue-soft),
        transparent 70%
    );
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 1.7px;
}

h1 {
    font-size: clamp(42px, 5vw, 72px);
    letter-spacing: -.045em;
    line-height: 1.12;
    font-weight: 500;
    margin: 22px 0 18px;
}

.hero-description {
    font-size: 16px;
    line-height: 1.7;
    max-width: 650px;
}

.tabs {
    margin: 28px 0 15px;
    gap: 8px;
}

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

#tool-panel {
    max-width: 850px;
}

.search-bar {
    min-height: 72px;
    border: 1px solid #c9d4e4;
    box-shadow:
        0 4px 8px var(--shadow),
        0 12px 35px var(--shadow);
    padding: 8px 8px 8px 25px;
    transition: box-shadow .2s, border-color .2s;
}

html[data-theme="dark"] .search-bar {
    border-color: #40516b;
}

.search-bar:hover {
    border-color: var(--blue);
}

.search-bar:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-soft);
}

.search-bar input {
    font-size: 17px;
}

.search-bar input::placeholder,
.editor textarea::placeholder {
    color: var(--muted);
    opacity: .85;
}

.primary {
    background: #2568e8;
    padding: 17px 30px;
    font-size: 14px;
    font-weight: 600;
}

.search-note {
    font-size: 12px;
    margin-top: 17px;
}

.tools-section {
    padding-top: 38px;
    padding-bottom: 30px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: 32px;
    letter-spacing: -1px;
}

.section-kicker {
    letter-spacing: 1.6px;
    font-size: 10px;
}

.tool-grid {
    gap: 16px;
}

.tool-card {
    padding: 23px;
    border-radius: 14px;
}

.tool-card h3 {
    margin-top: 19px;
    font-size: 20px;
}

.tool-card p {
    min-height: 64px;
    line-height: 1.65;
}

.tool-icon {
    border-radius: 12px;
    width: 46px;
    height: 46px;
}

.example-link {
    background: none;
    border: 0;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
}

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

.radar-banner {
    min-height: 330px;
    background:
        radial-gradient(
            ellipse at 78% 50%,
            #1d4169,
            transparent 55%
        ),
        linear-gradient(110deg, #0b1425, #12253e);
    border: 1px solid #263c58;
}

.radar-copy h2 {
    letter-spacing: -2px;
    font-weight: 500;
}

.radar-button {
    transition: transform .2s, background .2s;
}

.radar-button:hover {
    transform: translateY(-2px);
    background: #dceaff;
}

.radar-screen {
    box-shadow:
        0 0 45px #4a8fe51a,
        inset 0 0 45px #4a8fe51a;
}

/* EXAMPLE ANALYTICS DASHBOARD */

.report-section {
    padding-top: 58px;
    padding-bottom: 5px;
    scroll-margin-top: 25px;
}

.demo-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.demo-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
}

.report-dashboard {
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
    overflow: hidden;
    box-shadow: 0 6px 25px var(--shadow);
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--line);
}

.report-site {
    display: flex;
    align-items: center;
    gap: 13px;
}

.report-site-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--blue);
    background: var(--blue-soft);
}

.report-site-icon svg {
    width: 24px;
    height: 24px;
}

.report-site strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.report-site span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.sample-badge {
    background: var(--soft);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    white-space: nowrap;
}

.report-main {
    display: grid;
    grid-template-columns: 32% 68%;
}

.score-panel {
    padding: 35px 22px;
    text-align: center;
    border-right: 1px solid var(--line);
}

.report-small-label {
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--muted);
}

.score-ring {
    width: 172px;
    height: 172px;
    border-radius: 50%;
    margin: 26px auto;
    background: conic-gradient(
        #e6a33c 0% 65%,
        var(--line) 65% 100%
    );
    display: grid;
    place-items: center;
}

.score-inner {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-inner strong {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -2px;
}

.score-inner span {
    color: var(--muted);
    font-size: 12px;
}

.score-panel h3 {
    font-size: 16px;
    margin: 0 0 7px;
    font-weight: 600;
}

.score-panel p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 230px;
    margin: auto;
}

.report-details {
    padding: 22px 28px;
    min-width: 0;
}

.report-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 26px;
}

.report-tab {
    padding: 10px 0 14px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 13px;
    border-bottom: 2px solid transparent;
}

.report-tab.selected {
    color: var(--blue);
    border-bottom-color: var(--blue);
    font-weight: 600;
}

.metric-row {
    margin-bottom: 21px;
}

.metric-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    margin-bottom: 9px;
}

.metric-heading strong {
    font-size: 13px;
    font-weight: 600;
}

.metric-track {
    height: 7px;
    background: var(--soft);
    border-radius: 8px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    border-radius: 8px;
    transform-origin: left;
    animation: metricGrow .7s ease-out;
}

@keyframes metricGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.report-subheading {
    font-size: 13px;
    font-weight: 600;
    margin: 25px 0 12px;
}

.report-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.result-status {
    font-size: 11px;
    color: var(--muted);
    text-align: right;
}

.result-status.elevated {
    color: #b77b20;
}

.result-status.low {
    color: #269365;
}

html[data-theme="dark"] .result-status.elevated {
    color: #efbb65;
}

html[data-theme="dark"] .result-status.low {
    color: #72d4a5;
}

.report-disclaimer {
    padding: 15px 25px;
    background: var(--soft);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-circle {
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--muted);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    font-family: Georgia, serif;
}

.sample-passage {
    padding: 15px;
    border-radius: 9px;
    background: var(--soft);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.sample-highlight {
    background: #f4cb7040;
    border-bottom: 2px solid #d9a247;
    padding: 2px 0;
}

.report-explanation {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

@media(max-width:1100px) {
    .header {
        gap: 25px;
    }
    nav {
        gap: 17px;
    }
    nav button, nav a {
        font-size: 12px;
    }
}

@media(max-width:900px) {
    nav {
        top: 71px;
    }
    nav button, nav a {
        padding: 13px 0;
        font-size: 14px;
    }
    .report-main {
        grid-template-columns: 35% 65%;
    }
    .report-details {
        padding: 20px;
    }
}

@media(max-width:650px) {
    .header {
        height: 65px;
        padding: 0 16px;
        gap: 10px;
    }

    .brand {
        font-size: 24px;
    }

    nav {
        top: 64px;
    }

    .hero {
        padding: 49px 17px 38px;
    }

    h1 {
        font-size: clamp(36px, 9vw, 50px);
        letter-spacing: -.045em;
    }

    .hero-description {
        font-size: 14px;
    }

    .eyebrow {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .tabs {
        gap: 3px;
        margin-top: 24px;
    }

    .tab {
        padding: 9px 10px;
        font-size: 12px;
    }

    .search-bar {
        min-height: 60px;
        padding-left: 15px;
    }

    .search-bar input {
        font-size: 13px;
    }

    .primary {
        padding: 14px 16px;
        font-size: 12px;
    }

    .search-note {
        font-size: 10px;
    }

    .tools-section {
        padding-top: 30px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .section-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .tool-card p {
        min-height: auto;
    }

    .report-section {
        padding-top: 40px;
    }

    .report-main {
        grid-template-columns: 1fr;
    }

    .score-panel {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 25px 15px;
    }

    .report-header {
        padding: 15px;
    }

    .report-site span {
        font-size: 10px;
    }

    .report-details {
        padding: 17px;
    }

    .report-tabs {
        gap: 17px;
    }

    .report-tab {
        font-size: 12px;
    }

    .report-disclaimer {
        padding: 13px 15px;
    }

    .score-ring {
        width: 150px;
        height: 150px;
        margin: 20px auto;
    }

    .score-inner {
        width: 130px;
        height: 130px;
    }

    .score-inner strong {
        font-size: 36px;
    }
}

@media(prefers-reduced-motion: reduce) {
    .metric-fill {
        animation: none;
    }
}

/* AIScans V1.2 - Two-tone headline */

.hero h1 {
    color: #929ba9;
}

.hero h1 .blue {
    color: #1958cf;
}

html[data-theme="dark"] .hero h1 {
    color: #d5dbe5;
}

html[data-theme="dark"] .hero h1 .blue {
    color: #679cff;
}


/* AIScans V1.3 - Original headline colours */

.hero h1 {
    color: #202124;
}

.hero h1 .blue {
    color: #2868df;
}

html[data-theme="dark"] .hero h1 {
    color: #edf2fa;
}

html[data-theme="dark"] .hero h1 .blue {
    color: #80aaff;
}


/* ==========================================
   AISCANS V1.4
   SIGNATURE HEADLINE SCANNING ANIMATION
   ========================================== */

.hero .scan-headline {
    position: relative;
    display: table;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    isolation: isolate;
    color: #202124;
}

.scan-headline-content {
    position: relative;
    display: block;
    z-index: 1;
}

.hero .scan-headline .blue {
    color: #2868df;
}

/* Scanning overlay */

.headline-scan-overlay {
    position: absolute;
    inset: -8px -10px;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

/* Thin electric-blue scanning beam */

.headline-scan-beam {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -5%;
    width: 2px;

    background: linear-gradient(
        to bottom,
        transparent 0%,
        #4d91ff 12%,
        #2878ff 50%,
        #4d91ff 88%,
        transparent 100%
    );

    box-shadow:
        0 0 5px rgba(40, 120, 255, .65),
        0 0 12px rgba(40, 120, 255, .35);

    opacity: 0;

    animation:
        aiscansHeadlineSweep
        7s
        ease-in-out
        1s
        infinite;

    will-change: left, opacity;
}

/* Soft illuminated scanning trail */

.headline-scan-trail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -5%;
    width: 85px;
    margin-left: -85px;

    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(40, 120, 255, .025) 35%,
        rgba(40, 120, 255, .065) 75%,
        rgba(40, 120, 255, .13) 100%
    );

    opacity: 0;

    animation:
        aiscansHeadlineSweep
        7s
        ease-in-out
        1s
        infinite;

    will-change: left, opacity;
}

/* Sweep followed by a resting period */

@keyframes aiscansHeadlineSweep {

    0% {
        left: -5%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    48% {
        left: 105%;
        opacity: 1;
    }

    53% {
        left: 105%;
        opacity: 0;
    }

    100% {
        left: 105%;
        opacity: 0;
    }
}

/* Dark mode */

html[data-theme="dark"] .hero .scan-headline {
    color: #edf2fa;
}

html[data-theme="dark"] .hero .scan-headline .blue {
    color: #80aaff;
}

html[data-theme="dark"] .headline-scan-beam {
    background: linear-gradient(
        to bottom,
        transparent,
        #91c5ff 15%,
        #b5d9ff 50%,
        #91c5ff 85%,
        transparent
    );

    box-shadow:
        0 0 7px rgba(100, 170, 255, .8),
        0 0 18px rgba(100, 170, 255, .4);
}

html[data-theme="dark"] .headline-scan-trail {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(100, 170, 255, .04) 35%,
        rgba(100, 170, 255, .09) 75%,
        rgba(100, 170, 255, .17) 100%
    );
}

/* Mobile optimisation */

@media (max-width: 650px) {

    .headline-scan-overlay {
        inset: -5px -5px;
    }

    .headline-scan-beam {
        width: 1.5px;
    }

    .headline-scan-trail {
        width: 45px;
        margin-left: -45px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .headline-scan-overlay {
        display: none !important;
    }

    .headline-scan-beam,
    .headline-scan-trail {
        animation: none !important;
    }
}

.ais-billing-link {
    display: block;
    text-align: center;
    margin: 22px auto;
    color: #6495ed;
    font-weight: 600;
    text-decoration: none;
}
