* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(94,114,228,.18), transparent 35%),
        radial-gradient(circle at 90% 20%, rgba(122,80,190,.12), transparent 30%),
        #f4f6fb;
    color: #202437;
}

.topbar {
    background: white;
    border-bottom: 1px solid #e2e5ee;
    padding: 18px 25px;
}

.brand {
    max-width: 1000px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg,#5268db,#805ac7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 800;
}

.brand-name {
    font-weight: 800;
    font-size: 18px;
}

.brand-sub {
    color: #777d91;
    font-size: 13px;
}

main {
    max-width: 920px;
    margin: 45px auto;
    padding: 0 18px;
}

.card {
    background: rgba(255,255,255,.96);
    border: 1px solid #e2e5ee;
    border-radius: 22px;
    padding: 42px;
    box-shadow: 0 20px 60px rgba(31,38,75,.08);
}

.intro-card {
    text-align: center;
    padding-top: 55px;
    padding-bottom: 55px;
}

.badge {
    display: inline-block;
    background: #edf0ff;
    color: #5268db;
    border-radius: 30px;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

h1 {
    font-size: clamp(34px,6vw,55px);
    line-height: 1.05;
    margin: 22px 0 18px;
}

h2 {
    margin-top: 30px;
}

.lead {
    max-width: 680px;
    margin: auto;
    color: #62697c;
    font-size: 19px;
    line-height: 1.65;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 15px;
    max-width: 600px;
    margin: 35px auto;
}

.info-box {
    background: #f7f8fc;
    border: 1px solid #e7e9f1;
    padding: 20px;
    border-radius: 14px;
}

.info-box strong {
    display: block;
    font-size: 25px;
    color: #5367d8;
}

.info-box span {
    color: #777d91;
    font-size: 13px;
}

.notice {
    background: #faf9f3;
    border: 1px solid #ebe6cf;
    border-radius: 12px;
    padding: 16px;
    max-width: 700px;
    margin: 25px auto;
    color: #666252;
    line-height: 1.55;
    font-size: 14px;
}

button {
    border: 0;
    cursor: pointer;
    font-weight: 750;
    border-radius: 10px;
    padding: 14px 25px;
    font-size: 15px;
}

.primary {
    background: linear-gradient(135deg,#5368dd,#7558c4);
    color: white;
}

.primary:hover {
    filter: brightness(.96);
}

.secondary {
    background: #edf0f5;
    color: #3e4352;
}

.big {
    font-size: 17px;
    padding: 17px 35px;
}

.hidden {
    display: none;
}

.test-header {
    display: flex;
    justify-content: space-between;
    color: #666d80;
    font-size: 14px;
    font-weight: 700;
}

.progress {
    height: 9px;
    background: #e9ebf3;
    border-radius: 10px;
    margin: 12px 0 35px;
    overflow: hidden;
}

#progressBar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg,#5368dd,#8358c6);
    transition: width .3s;
}

.instruction {
    color: #777d91;
}

.question {
    padding: 27px 0;
    border-bottom: 1px solid #e8eaf0;
}

.question-number {
    color: #596ddd;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 7px;
}

.question-text {
    font-size: 18px;
    font-weight: 650;
    line-height: 1.45;
    margin-bottom: 18px;
}

.answers {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 8px;
}

.answer {
    border: 1px solid #dfe2eb;
    background: #fafbfe;
    padding: 12px 6px;
    border-radius: 9px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.25;
    min-height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.answer:hover {
    border-color: #6879db;
    background: #f2f4ff;
}

.answer.selected {
    color: white;
    border-color: #596ddd;
    background: #596ddd;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
}

.score-circle {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: linear-gradient(135deg,#5368dd,#7b59c5);
    color: white;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-circle div {
    font-size: 58px;
    font-weight: 850;
}

.score-circle span {
    font-size: 13px;
    opacity: .85;
}

#results {
    text-align: center;
}

.interpretation {
    max-width: 650px;
    margin: 20px auto 35px;
    font-size: 18px;
    line-height: 1.6;
}

.category {
    text-align: left;
    margin: 22px 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    font-weight: 750;
    margin-bottom: 7px;
}

.category-bar {
    height: 13px;
    border-radius: 20px;
    background: #e9ebf2;
    overflow: hidden;
}

.category-fill {
    height: 100%;
    background: linear-gradient(90deg,#5368dd,#8258c5);
}

.result-note {
    margin: 35px 0;
    background: #faf9f3;
    border: 1px solid #ebe6cf;
    border-radius: 12px;
    padding: 18px;
    line-height: 1.6;
    text-align: left;
}

footer {
    text-align: center;
    color: #858a99;
    font-size: 12px;
    padding: 10px 20px 40px;
}

@media(max-width:700px) {

    .card {
        padding: 25px 18px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .answers {
        grid-template-columns: repeat(2,1fr);
    }

    h1 {
        font-size: 38px;
    }
}

/* =========================================================
   LOW-STIMULATION / SENSORY-FRIENDLY THEME
   ========================================================= */

:root {
    --bg: #182126;
    --bg-deep: #131b1f;
    --surface: #222d32;
    --surface-soft: #29363c;
    --surface-hover: #314149;

    --text: #d8dedc;
    --text-soft: #aebbb8;
    --text-muted: #899895;

    --accent: #719b94;
    --accent-soft: #547a74;
    --accent-dark: #41645f;

    --border: #39484d;
}

/* Remove the bright background completely */
body {
    background: var(--bg) !important;
    color: var(--text) !important;
}

/* Header */
.topbar {
    background: var(--bg-deep) !important;
    border-bottom: 1px solid var(--border) !important;
}

.brand-name {
    color: var(--text) !important;
}

.brand-sub {
    color: var(--text-muted) !important;
}

.logo {
    background: var(--accent-dark) !important;
    color: #e4e9e7 !important;
}

/* Main cards */
.card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.18) !important;
}

h1,
h2,
h3 {
    color: var(--text) !important;
}

.lead,
.instruction {
    color: var(--text-soft) !important;
}

/* Badge */
.badge {
    background: #2b3d3d !important;
    color: #a9cbc4 !important;
}

/* Intro statistics */
.info-box {
    background: var(--surface-soft) !important;
    border-color: var(--border) !important;
}

.info-box strong {
    color: #9bc0b9 !important;
}

.info-box span {
    color: var(--text-soft) !important;
}

/* Disclaimer */
.notice,
.result-note {
    background: #29312f !important;
    border-color: #48534e !important;
    color: #bdc5c1 !important;
}

/* Progress */
.test-header {
    color: var(--text-soft) !important;
}

.progress {
    background: #354248 !important;
}

#progressBar {
    background: var(--accent) !important;
}

/* Questions */
.question {
    border-bottom-color: var(--border) !important;
}

.question-number {
    color: #94bcb5 !important;
}

.question-text {
    color: var(--text) !important;
}

/* Answers */
.answer {
    background: var(--surface-soft) !important;
    border-color: #43535a !important;
    color: #c7d0ce !important;
}

.answer:hover {
    background: var(--surface-hover) !important;
    border-color: #739b95 !important;
}

.answer.selected {
    background: var(--accent-soft) !important;
    border-color: #83aaa3 !important;
    color: #f0f4f2 !important;
}

/* Buttons */
.primary {
    background: var(--accent-dark) !important;
    color: #edf2f0 !important;
}

.primary:hover {
    background: var(--accent-soft) !important;
    filter: none !important;
}

.secondary {
    background: var(--surface-soft) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

/* Results */
.score-circle {
    background: var(--accent-dark) !important;
}

.category-bar {
    background: #354248 !important;
}

.category-fill {
    background: var(--accent) !important;
}

/* Footer */
footer {
    color: var(--text-muted) !important;
}

/* Avoid harsh transitions and unnecessary visual motion */
* {
    scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}


/* =========================================================
   POSITIVE / ENCOURAGING RESULTS SECTION
   ========================================================= */

.positive-result {
    max-width: 760px;
    margin: 36px auto 42px;
}

.positive-heading {
    padding: 28px 26px;
    background: linear-gradient(145deg, #2b403d, #263738);
    border: 1px solid #4c6863;
    border-radius: 16px;
    text-align: center;
}

.positive-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #9fc9c1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.positive-heading h2 {
    margin: 5px 0 12px;
    font-size: 23px;
}

.positive-heading p {
    max-width: 620px;
    margin: auto;
    color: #c3d0cd;
    line-height: 1.65;
}

.notable-company {
    margin-top: 20px;
    padding: 24px;
    background: #273439;
    border: 1px solid #3d5055;
    border-radius: 15px;
}

.notable-company h3,
.strengths-panel h3 {
    margin: 0 0 7px;
    color: #dce6e3 !important;
    text-align: center;
    font-size: 19px;
}

.notable-intro {
    margin: 0 0 20px;
    color: #aebdb9;
    text-align: center;
}

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

.person-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 13px;
    padding: 17px;
    background: #2d3c41;
    border: 1px solid #43565b;
    border-radius: 12px;
    text-align: left;
}

.person-initial {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #547a74;
    color: #f1f5f3;
    font-size: 21px;
    font-weight: 800;
}

.person-card strong {
    display: block;
    color: #e1e8e6;
    font-size: 16px;
}

.person-card span {
    display: block;
    margin-top: 2px;
    color: #9fc2bc;
    font-size: 12px;
}

.person-card p {
    margin: 8px 0 0;
    color: #afbdba;
    line-height: 1.5;
    font-size: 12px;
}

.people-note {
    margin: 16px 4px 0;
    color: #879994;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

.strengths-panel {
    margin-top: 20px;
    padding: 25px;
    background: #263338;
    border: 1px solid #3d4e53;
    border-radius: 15px;
}

.strengths-panel > p {
    color: #aebbb8;
    text-align: center;
}

.strength-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 19px;
}

.strength-grid > div {
    padding: 14px 15px;
    background: #2d3d41;
    border-radius: 9px;
    text-align: left;
}

.strength-grid strong {
    display: block;
    margin-bottom: 4px;
    color: #a9d0c8;
    font-size: 13px;
}

.strength-grid span {
    color: #aab8b5;
    font-size: 11px;
    line-height: 1.45;
}

.strength-caveat {
    margin: 16px 0 0 !important;
    color: #849691 !important;
    font-size: 11px !important;
}

.bottom-message {
    margin-top: 20px;
    padding: 24px 26px;
    background: #30413f;
    border: 1px solid #56716b;
    border-radius: 15px;
    text-align: center;
}

.bottom-message strong {
    color: #c6ded9;
    font-size: 19px;
}

.bottom-message p {
    max-width: 620px;
    margin: 9px auto 0;
    color: #b8c7c3;
    line-height: 1.6;
}

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


/* =========================================================
   SITE-WIDE WALLPAPER
   ========================================================= */

html {
    min-height: 100%;
    background: #182126 url("wallpaper.png") center center / cover fixed no-repeat !important;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(
            rgba(12, 20, 23, 0.30),
            rgba(12, 20, 23, 0.30)
        ),
        url("wallpaper.png") center center / cover fixed no-repeat !important;
}

/* Keep the wallpaper visible around all content */
main,
.container,
.wrapper,
.page,
#app,
#intro,
#test,
#results {
    background-color: transparent;
}

/* Cards stay readable while allowing some wallpaper character through */
.card {
    background: rgba(30, 42, 47, 0.94) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Header floats naturally over the wallpaper */
.topbar {
    background: rgba(15, 24, 28, 0.94) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Mobile: fixed backgrounds can behave badly on some phones */
@media (max-width: 800px) {
    html,
    body {
        background-attachment: scroll !important;
    }
}


/* =========================================================
   AUTISM.160IQ.US HEADER LOGO
   ========================================================= */

.autism-site-logo {
    display: block !important;
    width: 230px !important;
    height: 82px !important;
    object-fit: contain !important;
    object-position: left center !important;
    flex: 0 0 auto !important;
    margin: -8px 18px -8px 0 !important;
}

/* Give the larger logo enough breathing room */
header,
.topbar,
.site-header {
    min-height: 100px;
}

/* Keep it large, but sensible on phones */
@media (max-width: 700px) {
    .autism-site-logo {
        width: 175px !important;
        height: 66px !important;
        margin-right: 10px !important;
    }

    header,
    .topbar,
    .site-header {
        min-height: 82px;
    }
}


/* =========================================================
   AUTISM.160IQ.US HEADER LOGO
   ========================================================= */

.autism-site-logo {
    display: block !important;
    width: 230px !important;
    height: 82px !important;
    object-fit: contain !important;
    object-position: left center !important;
    flex: 0 0 auto !important;
    margin: -8px 18px -8px 0 !important;
}

/* Give the larger logo enough breathing room */
header,
.topbar,
.site-header {
    min-height: 100px;
}

/* Keep it large, but sensible on phones */
@media (max-width: 700px) {
    .autism-site-logo {
        width: 175px !important;
        height: 66px !important;
        margin-right: 10px !important;
    }

    header,
    .topbar,
    .site-header {
        min-height: 82px;
    }
}


/* ===== FORCED AUTISM LOGO ===== */

.forced-autism-logo {
    position: fixed !important;
    top: 78px !important;
    left: 28px !important;
    z-index: 999999 !important;

    display: block !important;
    width: 300px !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.forced-autism-logo img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;

    object-fit: contain !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 900px) {
    .forced-autism-logo {
        position: absolute !important;
        top: 82px !important;
        left: 15px !important;
        width: 210px !important;
    }
}


/* =========================================================
   FINAL HEADER LOGO
   ========================================================= */

/* Kill previous floating-logo attempt */
.forced-autism-logo {
    display: none !important;
}

header {
    min-height: 100px !important;
    display: flex !important;
    align-items: center !important;
}

.header-logo-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 8px 18px;
}

.header-logo-container a {
    display: inline-block;
    line-height: 0;
}

.header-autism-logo {
    display: block !important;
    width: 280px !important;
    height: 82px !important;
    object-fit: contain !important;
    object-position: left center !important;
    max-width: none !important;
    max-height: none !important;
}

/* Phone */
@media (max-width: 700px) {
    header {
        min-height: 82px !important;
    }

    .header-logo-container {
        padding: 6px 14px;
    }

    .header-autism-logo {
        width: 210px !important;
        height: 66px !important;
    }
}


/* ===== HEADER LOGO 50% LARGER ===== */

header {
    min-height: 135px !important;
}

.header-autism-logo {
    width: 420px !important;
    height: 123px !important;
}

/* Mobile: 210px -> 315px */
@media (max-width: 700px) {
    header {
        min-height: 110px !important;
    }

    .header-autism-logo {
        width: 315px !important;
        height: 99px !important;
        max-width: calc(100vw - 28px) !important;
    }
}


/* ===== CENTER HEADER LOGO ===== */

.header-logo-container {
    max-width: none !important;
    width: 100% !important;
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.header-logo-container a {
    display: flex !important;
    justify-content: center !important;
}

.header-autism-logo {
    object-position: center center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* =========================================================
   REMOVE HEADER BAR — WALLPAPER BEHIND LOGO
   ========================================================= */

header,
.topbar,
.site-header {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Keep centered logo but eliminate unnecessary header padding */
.header-logo-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Logo remains prominent over wallpaper */
.header-autism-logo {
    position: relative !important;
    z-index: 10 !important;
}


/* =========================================================
   REMOVE HEADER BAR — WALLPAPER BEHIND LOGO
   ========================================================= */

header,
.topbar,
.site-header {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Keep centered logo but eliminate unnecessary header padding */
.header-logo-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Logo remains prominent over wallpaper */
.header-autism-logo {
    position: relative !important;
    z-index: 10 !important;
}


/* ===== LOGO 50% BIGGER AGAIN ===== */

.header-autism-logo {
    width: 630px !important;
    height: 185px !important;
}

header {
    min-height: 195px !important;
}

@media (max-width: 700px) {
    .header-autism-logo {
        width: 472px !important;
        height: auto !important;
        max-width: 94vw !important;
    }

    header {
        min-height: 150px !important;
    }
}

