* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #071829;
    --navy-2: #0d2944;
    --green: #2e7d32;
    --gold: #f4b400;
    --teal: #55e6d6;
    --bg: #f4f8fc;
    --text: #172536;
    --muted: #64748b;
    --border: #e3eaf1;
    --white: #ffffff;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

button {
    font: inherit;
}

.hidden {
    display: none !important;
}

.ai-wrap {
    width: min(1120px, 92%);
    margin: auto;
}

.ai-header {
    background: var(--navy);
    color: white;
    padding: 17px 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    color: white;
    text-decoration: none;
    font-size: 25px;
    font-weight: 800;
}

.brand-hubble {
    color: #55a85b;
}

.brand-hut {
    color: var(--gold);
}

.brand-product {
    font-size: 13px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,.25);
    color: #cbd5e1;
    font-weight: 600;
}

.back-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: .9;
}

.lens-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(85,230,214,.18), transparent 28%),
        linear-gradient(135deg, #061727, #0d426b);
    color: white;
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    text-align: center;
    padding: 80px 0;
}

.hero-inner {
    max-width: 850px;
}

.eyebrow {
    color: #35cdbb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.lens-hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    margin: 10px 0 24px;
    letter-spacing: -2px;
}

.lens-hero h1 span {
    color: var(--teal);
}

.hero-copy {
    max-width: 760px;
    margin: auto;
    color: #dbeafe;
    font-size: 18px;
}

.hero-points {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin: 30px 0;
    color: #eef8ff;
}

.hero-points span {
    color: var(--teal);
    font-weight: 800;
    margin-right: 5px;
}

.primary-btn,
.secondary-btn,
.next-btn,
.restart-btn {
    border: 0;
    cursor: pointer;
    transition: .25s ease;
}

.primary-btn {
    background: var(--gold);
    color: #111827;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(244,180,0,.2);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(244,180,0,.3);
}

.privacy-note {
    font-size: 12px;
    color: #a9c1d4;
    margin-top: 14px;
}

.assessment-section {
    padding: 55px 0 80px;
}

.assessment-top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 15px;
}

.assessment-status {
    font-size: 14px;
    color: var(--muted);
}

.restart-btn {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 8px 13px;
    border-radius: 8px;
}

.progress-track {
    height: 7px;
    background: #e4ebf2;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
}

.progress-bar {
    height: 100%;
    width: 8%;
    background: linear-gradient(90deg, var(--green), var(--teal));
    border-radius: inherit;
    transition: width .4s ease;
}

.question-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: clamp(25px, 5vw, 48px);
    box-shadow: 0 20px 55px rgba(7,24,41,.08);
}

.question-number {
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.question-card h2 {
    font-size: clamp(25px, 4vw, 38px);
    line-height: 1.2;
    margin: 8px 0 10px;
}

.question-help {
    color: var(--muted);
    margin-bottom: 25px;
}

.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
}

.answer-option {
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: 13px;
    padding: 17px;
    text-align: left;
    cursor: pointer;
    transition: .2s ease;
}

.answer-option:hover {
    border-color: #7fc6c0;
    background: #f1fbfa;
    transform: translateY(-1px);
}

.answer-option.selected {
    border-color: var(--green);
    background: #f0f9f1;
    box-shadow: 0 0 0 3px rgba(46,125,50,.08);
}

.answer-option strong {
    display: block;
    margin-bottom: 3px;
}

.answer-option span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.next-btn {
    margin-top: 20px;
    background: var(--navy);
    color: white;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 700;
}

.why-box {
    margin-top: 15px;
    background: #eef8f7;
    border: 1px solid #cfe9e6;
    padding: 15px 18px;
    border-radius: 12px;
    color: #315b59;
    font-size: 13px;
}

.why-box strong {
    display: block;
    margin-bottom: 3px;
}

.results-section {
    padding: 55px 0 80px;
}

.result-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 35px;
}

.result-header h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.1;
    margin-bottom: 10px;
}

.result-header p {
    color: var(--muted);
}

.score-layout {
    display: grid;
    grid-template-columns: .9fr 1.6fr;
    gap: 20px;
    margin-bottom: 20px;
}

.score-card,
.dimension-card,
.result-card,
.roadmap-card,
.recommendation-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(7,24,41,.05);
}

.score-card {
    text-align: center;
}

.score-ring {
    width: 190px;
    height: 190px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--green) 0deg, var(--green) 0deg, #e9eef3 0deg);
    position: relative;
}

.score-ring::before {
    content: "";
    position: absolute;
    width: 154px;
    height: 154px;
    border-radius: 50%;
    background: white;
}

.score-ring > div {
    position: relative;
    z-index: 1;
}

.score-ring strong {
    display: block;
    font-size: 52px;
    line-height: 1;
}

.score-ring span {
    color: var(--muted);
}

.readiness-label {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 30px;
    background: #edf8ee;
    color: var(--green);
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 10px;
}

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

.dimension-card h3 {
    margin-bottom: 20px;
}

.dimension {
    margin-bottom: 17px;
}

.dimension:last-child {
    margin-bottom: 0;
}

.dimension-head {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
}

.dimension-head span:last-child {
    font-weight: 800;
}

.dimension-track {
    height: 9px;
    background: #edf1f5;
    border-radius: 20px;
    overflow: hidden;
}

.dimension-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--teal));
    border-radius: inherit;
}

.result-card {
    margin-bottom: 20px;
}

.result-card h2,
.roadmap-card h2,
.recommendation-card h2 {
    margin-bottom: 18px;
}

.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.opportunity {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}

.opportunity .priority {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--green);
}

.opportunity h3 {
    margin: 5px 0;
}

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

.opportunity-meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.pill {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    color: #475569;
}

.blocker-list {
    display: grid;
    gap: 10px;
}

.blocker {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: #fff8e6;
    border-radius: 12px;
}

.blocker-icon {
    color: #c88700;
    font-weight: 900;
}

.blocker strong {
    display: block;
}

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

.roadmap-card {
    background: linear-gradient(135deg, #071829, #0d426b);
    color: white;
    margin-bottom: 20px;
}

.roadmap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.roadmap-step {
    padding: 20px;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.06);
    border-radius: 15px;
}

.roadmap-step > span {
    color: var(--teal);
    font-weight: 900;
}

.roadmap-step h3 {
    margin: 10px 0 3px;
}

.roadmap-step strong {
    display: block;
    color: #f8d76b;
}

.roadmap-step p {
    color: #cbd5e1;
    font-size: 13px;
    margin-top: 7px;
}

.recommendation-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    border-left: 5px solid var(--gold);
    margin-bottom: 25px;
}

.recommendation-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff5cf;
    display: grid;
    place-items: center;
    color: #b57b00;
    font-size: 21px;
    flex-shrink: 0;
}

.recommendation-card p {
    color: var(--muted);
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.secondary-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 14px 22px;
    border-radius: 11px;
    font-weight: 700;
    color: var(--navy);
}

.result-footer {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 35px;
}

.result-footer span {
    display: block;
    margin-top: 4px;
}

@media (max-width: 760px) {
    .answer-grid,
    .score-layout,
    .opportunity-grid,
    .roadmap {
        grid-template-columns: 1fr;
    }

    .lens-hero {
        min-height: calc(100vh - 61px);
        padding: 60px 0;
    }

    .hero-points {
        flex-direction: column;
        gap: 9px;
    }

    .assessment-top {
        align-items: center;
    }

    .brand-product {
        display: none;
    }

    .question-card {
        border-radius: 16px;
    }

    .score-ring {
        width: 165px;
        height: 165px;
    }

    .score-ring::before {
        width: 135px;
        height: 135px;
    }

    .roadmap-card,
    .score-card,
    .dimension-card,
    .result-card,
    .recommendation-card {
        padding: 22px;
    }
}

@media print {
    .ai-header,
    .result-actions,
    .restart-btn {
        display: none !important;
    }

    body {
        background: white;
    }

    .results-section {
        padding-top: 20px;
    }

    .score-card,
    .dimension-card,
    .result-card,
    .roadmap-card,
    .recommendation-card {
        box-shadow: none;
        break-inside: avoid;
    }
}


/* =========================================================
   AI LENS LOADING SCREEN
   ========================================================= */

.ai-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 85% 20%, rgba(85,230,214,.18), transparent 28%),
        linear-gradient(135deg, #061727, #0d426b);
    opacity: 1;
    visibility: visible;
    transition: opacity .45s ease, visibility .45s ease;
}

.ai-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ai-loader-inner {
    text-align: center;
    color: #fff;
    animation: loaderRise .6s ease both;
}

.loader-brand {
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1;
    font-weight: 850;
    letter-spacing: -2px;
}

.loader-hubble {
    color: #55a85b;
}

.loader-hut {
    color: #f4b400;
}

.loader-product {
    margin-top: 9px;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.loader-orbit {
    width: 52px;
    height: 52px;
    margin: 28px auto 18px;
    position: relative;
}

.loader-orbit span {
    position: absolute;
    inset: 7px;
    border: 2px solid transparent;
    border-top-color: #55e6d6;
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
}

.loader-orbit span:nth-child(2) {
    inset: 13px;
    border-top-color: #55a85b;
    animation-duration: .75s;
    animation-direction: reverse;
}

.loader-orbit span:nth-child(3) {
    inset: 19px;
    border-top-color: #f4b400;
    animation-duration: .55s;
}

.ai-loader p {
    color: #cfe3f3;
    font-size: 13px;
    margin: 0;
}

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

@keyframes loaderRise {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* AI Lens header uses the same gradient */
.ai-header {
    background:
        radial-gradient(circle at 85% 20%, rgba(85,230,214,.12), transparent 28%),
        linear-gradient(135deg, #061727, #0d426b) !important;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff !important;
}

.back-hubble {
    color: #55a85b !important;
    font-weight: 800;
}

.back-hut {
    color: #f4b400 !important;
    font-weight: 800;
}


/* =========================================================
   MOBILE AI LENS — CONSISTENT DARK GREEN BACKGROUND
   ========================================================= */

@media (max-width: 760px) {
    html,
    body {
        background:
            radial-gradient(circle at 85% 8%, rgba(85,230,214,.10), transparent 30%),
            linear-gradient(135deg, #061727 0%, #0a2638 52%, #071829 100%) !important;
        background-color: #061727 !important;
        background-attachment: fixed !important;
    }

    body {
        min-height: 100vh;
    }

    main,
    .assessment-section,
    .results-section {
        background: transparent !important;
    }

    .lens-hero {
        background:
            radial-gradient(circle at 85% 20%, rgba(85,230,214,.12), transparent 28%),
            linear-gradient(135deg, #061727 0%, #0a2638 52%, #071829 100%) !important;
    }

    .ai-header {
        background: #061727 !important;
    }
}



/* =========================================================
   AI LENS MOBILE — UNIFIED DARK TEAL CANVAS
   Final mobile override. Desktop remains unchanged.
   ========================================================= */
@media screen and (max-width: 800px) {
    html,
    body {
        background: #0b2635 !important;
        background-color: #0b2635 !important;
        background-image: none !important;
    }

    body {
        min-height: 100vh !important;
    }

    .ai-header,
    main,
    .lens-hero,
    .assessment-section,
    .results-section {
        background: #0b2635 !important;
        background-color: #0b2635 !important;
        background-image: none !important;
    }

    /* Keep cards readable while the page canvas stays dark teal. */
    .question-card,
    .score-card,
    .dimension-card,
    .result-card,
    .roadmap-card,
    .recommendation-card {
        background: #ffffff !important;
    }

    .why-box {
        background: rgba(255,255,255,.09) !important;
        border-color: rgba(255,255,255,.16) !important;
        color: #eaf7f5 !important;
    }
}
