/* ================--------------- Import fonts ---------------================ */
/* Unbounded */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@200..900&display=swap');

/* Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ================--------------- (light) RESET ---------------================ */

* {
    box-sizing: border-box;
    font: inherit;
    vertical-align: baseline;
}

html,
body {
    margin: 0;
    padding: 0;
}

h1,
h2,
p {
    margin: 0;
}

button {
    background-color: transparent;
    cursor: pointer;
    border-style: unset;
}

ol,
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

img {
    display: block;
}

/* ================--------------- Custom properties ---------------================ */

:root {
    /* old */
    --bg: #ffffff;
    --bg2: #f8f9fa;
    --bg3: #f1f3f5;
    --surface: #ffffff;
    --surface2: #f8f9fa;
    --border: #dee2e6;
    --border2: #ced4da;
    --text: #212529;
    --text-dim: #6c757d;
    --text-bright: #000000;
    --accent: #00d4a0;
    --accent2: #0066ff;
    --critical: #dc3545;
    --warning: #ffc107;
    --opportunity: #0d6efd;
    --info: #6c757d;
    --mono: 'Space Mono', monospace;
    --sans: 'DM Sans', sans-serif;

    /* new */
    --mainColor: #2D0066;
    --secondaryColor: #FE9D2D;
    --ternaryColor: #FFF9F2;
    --lightColor: white;
    --mainFont: "Unbounded", sans-serif;
    --secondaryFont: "Poppins", sans-serif;
    --ternaryFont: "Roboto", sans-serif;
}

/* ================--------------- Global ---------------================ */

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    color: var(--mainColor);
    font-family: var(--secondaryFont);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Site background screenshot */
#site-background {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px) brightness(0.5);
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
    pointer-events: none;
}

#site-background.visible {
    opacity: 0.35;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondaryColor);
    font-family: var(--ternaryFont);
    border-radius: 4px;
    color: var(--mainColor);
    border: 1px solid var(--secondaryColor);
    font-weight: 500;
    min-height: 32px;
    font-size: 1.4rem;
    min-width: 115px;
    text-decoration: none;

    @media(min-width: 992px) {
        min-height: 36px;
    }
}


/* ================--------------- Titles ---------------================ */
h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

h1 {
    margin-block: 0 10px;
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--mainFont);
    line-height: 1.3;

    @media(min-width: 992px) {
        font-size: 4.4rem;
    }
}

.title {
    margin-block: 0 10px;
    font-size: 2.188rem;
    font-weight: 700;
    text-align: center;
    font-family: var(--mainFont);
    line-height: 1.3;
    font-size: 3.5rem;

    @media(min-width: 992px) {
        font-size: 4.4rem;
    }
}

.subtitle {
    margin-block: 0 10px;
    font-size: 1.563rem;
    font-weight: 700;
    text-align: center;
    font-family: var(--mainFont);
    line-height: 1.3;
}

/* ================--------------- Texts ---------------================ */
.text {
    font-size: 1.6rem;
    color: var(--mainColor)
}

/* ================--------------- Structure ---------------================ */
.content {
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 35px;
}

.content--alt {
    background-color: var(--ternaryColor);
}

/* Step containers */
.step {
    display: none;
    flex-direction: column;
    flex: 1;
}

.step.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step_header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-block-end: 16px;

    @media(min-width: 992px) {
        flex-direction: row;
        gap: 20px;
    }
}

.step_header .title {
    margin-block-end: 0;
}

/* ================--------------- Form elements ---------------================ */
.textfield {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-block: 30px;
    max-width: 554px;

    @media(min-width: 992px) {
        margin-block: 40px;
        flex-direction: row;
    }
}

.textfield_input {
    width: 100%;
    height: 60px;
    padding: 6px 16px;
    border: 2px solid var(--mainColor);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--mainColor);
    font-size: 1.6rem;

    @media (min-width: 992px) {
        height: 74px;
        font-size: 2rem;
        padding-inline-end: 150px;
    }
}

.textfield_input::placeholder {
    color: var(--mainColor);
    opacity: .6;
}

.textfield_input.textfield_input--alt {
    border-color: var(--lightColor);
    color: var(--lightColor);
}

.textfield_input.textfield_input--alt::placeholder {
    color: var(--lightColor);
}

.cta:disabled,
.cta[disabled] {
    background-color: transparent;
    border-color: #CACCD8;
    color: #CACCD8;
}

.textfield_submit {
    height: 60px;
    border-radius: 10px;
    font-size: 1.6rem;

    @media (min-width: 992px) {
        position: absolute;
        inset-inline-end: 12px;
        inset-block-start: 50%;
        transform: translateY(-50%);
    }
}

/* ================--------------- Components ---------------================ */

/* Add element input */
.add-wrapper {
    display: flex;
    gap: 14px;
    margin-block-start: 25px;
    width: 100%;
    max-width: 554px;
    border: 2px solid #E9EAF0;
    border-radius: 10px;

    @media (min-width: 992px) {
        margin-block-start: 40px;
        gap: 24px;
    }
}

.add-input {
    width: 100%;
    min-height: 44px;
    padding: 14px;
    font-size: 1.2rem;
    border: 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    color: var(--mainColor);

    @media (min-width: 992px) {
        padding: 24px;
        min-height: 74px;
        font-size: 1.6rem;
    }
}

.add-input:focus-visible {
    outline: 1px dotted grey;
}

.add-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    padding-inline: 16px;
    border: 1px solid var(--mainColor);
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--mainColor);
    background-color: var(--lightColor);
    transition: all .3s;

    @media (min-width: 992px) {
        margin: 12px;
        padding-inline: 24px;
        font-size: 1.5rem;
    }
}

.add-submit:hover,
.add-submit:focus {
    background-color: var(--mainColor);
    border-color: var(--mainColor);
    color: var(--lightColor);
}

/* ================--------------- Audit results ---------------================ */

@media (max-width: 991px) {

    body #score-section,
    body #score-section-full {
        grid-template-columns: none;
    }
}


/* Step 1: Presentation */
#step1 {
    background-color: var(--mainColor);
    color: var(--lightColor);
}

#step1 .content {
    @media(min-width: 992px) {
        flex-direction: row;
        justify-content: space-evenly;
    }
}

.intro {
    font-size: 1.4rem;

    @media(min-width: 992px) {
        font-size: 1.6rem;
    }
}

.input-zone {
    position: relative;
    z-index: 1;

    @media(min-width: 992px) {
        max-width: 630px;
    }
}

.deco {
    position: fixed;
    inset-block-start: 42%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    height: 550px;

    @media(min-width: 992px) {
        width: 100%;
        height: auto;
    }
}

.deco2 {
    display: none;

    @media(min-width: 992px) {
        display: block;
        width: 200px;
        position: absolute;
        inset-inline-end: 0;
        inset-block-start: 0;
        transform: translate(50%, -50%);
    }
}

.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--critical);
    color: var(--critical);
    padding: 12px 16px;
    border-radius: 6px;
    margin-block: 16px;
    font-size: 13px;
}

.tags {
    display: flex;
    gap: 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding-inline: 8px;
    color: var(--mainColor);
    background-color: var(--ternaryColor);
    border-radius: 50px;
    font-size: 0.875rem;
    font-size: 1.4rem;
}

.step1_screen_wrapper {
    position: relative;
}

.step1_screen {
    width: 300px;
    margin-inline: auto;
    margin-block: 54px;
    border-radius: 14px;
    border: 8px solid var(--lightColor);
    box-shadow: 9.95px 9.95px 27.73px 14.22px #FFFFFF40;

    @media(min-width: 992px) {
        width: 430px;
    }
}

/* Step 2: Processing */
#step2 {
    @media(min-width: 992px) {
        flex-direction: row;
    }
}

#step2 .content.content--alt {
    @media(min-width: 992px) {
        flex-direction: row;
        align-items: center;
    }
}

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

.loader {
    width: 48px;
    animation: spin 1s linear infinite;
}

.loader.is-hidden {
    opacity: 0;
}

.processing-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-block-end: 64px;

    @media(min-width: 992px) {
        margin-inline: 128px auto;
    }
}

.processing-status_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-inline-end: 24px;
    margin-block-start: 24px;

    @media(min-width: 992px) {
        margin-inline-end: auto;
    }
}

.processing-status_list_element {
    position: relative;
    padding-inline-start: 20px;
    text-align: start;
    font-size: 1.4rem;
    color: #D9D9D9;

    @media(min-width: 992px) {
        font-size: 1.6rem;
    }
}

.processing-status_list_element.is-processing {
    color: var(--mainColor);
}

.processing-status_list_element.is-done {
    color: var(--mainColor);
}

.processing-status_list_element::before {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 0;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-position: center;
}

.processing-status_list_element.is-processing::before {
    background-image: url('./assets/status-pending-icon.svg');
}

.processing-status_list_element.is-done::before {
    background-image: url('./assets/status-success.svg');
}

#screenshot-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screenshot-preview {
    border-radius: 4px;
    border: 8px solid white;
    box-shadow: 5.73px 5.73px 15.97px 8.19px #FF6B001A;
    margin-block-end: 24px;

    @media(min-width: 992px) {
        border-radius: 10px;
        box-shadow: 14px 14px 39px 20px #FF6B001A;
    }
}


#screenshot-img {
    width: 100%;
}

.screenshot-title {
    font-weight: 600;
    font-size: 1.4rem;

    @media(min-width: 992px) {
        font-size: 1.6rem;
    }
}

/* Step 3: Email + Partial Audit */
#step3 {
    @media(min-width: 992px) {
        flex-direction: row;
    }
}

#step3 .content.content--alt {
    @media(min-width: 992px) {
        flex-direction: row;
        align-items: center;
    }
}

.audit-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    text-align: center;
    text-wrap: balance;

    @media(min-width: 992px) {
        margin-inline: 128px auto;
        align-items: flex-start;
    }
}

.audit-header .step_header {

    @media(min-width: 992px) {
        margin-block-end: 32px;
    }
}

.audit-success {
    width: 42px;

    @media(min-width: 992px) {
        width: 54px;
    }
}

.email-capture {
    width: 100%;
}

#step3 .content.content--alt {
    align-items: flex-end;
}

.score_wrapper {
    position: relative;
    padding: 12px;
    background-color: var(--lightColor);
    width: 100%;
    max-width: 843px;

    @media(min-width: 992px) {
        margin-block-start: 32px;
    }
}



.score_wrapper.is-hidden {
    max-height: 600px;
    overflow: hidden;

    @media(min-width: 992px) {
        max-height: none;
        height: calc(100vh - 124px);
        margin-block-end: -35px;
    }
}

.score_wrapper.is-hidden::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset-inline-start: 0;
    inset-block-start: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.questionnaire-resume-steps_wrapper {
    width: 100%;
    max-width: 843px;
}

.score_locker {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 28px;
    z-index: 2;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 4px;
    background-color: white;

    @media(min-width: 992px) {
        inset-block-end: 0;
        height: 200px;
    }
}

.score_locker_title {
    color: var(--mainColor);
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;

    @media(min-width: 992px) {
        font-size: 2rem;
    }
}

.score_locker_url {
    font-size: 1rem;

    @media(min-width: 992px) {
        font-size: 1.6rem;
    }
}

.score_locker_picto {
    width: 21px;

    @media(min-width: 992px) {
        width: 50px;
    }
}

/* Score ring */
#score-section,
#score-section-full {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.score-ring-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.score-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.score-ring svg {
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: var(--border2);
    stroke-width: 8;
}

.score-ring-fg {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 358;
    stroke-dashoffset: 358;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.6s;
}

.score-ring-num {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-num {
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1;
}

.score-denom {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-top: 2px;
}

.score-band-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.stat-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* Step 4 : questionnary */
.logo-salecycle {
    width: 176px;
    margin-block-end: 20px;
    margin-inline: auto;
}

/* Category scores grid */
.cat-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 10px;
    margin-bottom: 32px;

    @media(min-width: 992px) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cat-cell {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s, transform 0.3s;
}

.cat-cell.show {
    opacity: 1;
    transform: none;
}

.cat-name {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.cat-score {
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    cursor: help;
    transition: opacity 0.2s;
}

.cat-score:hover {
    opacity: 0.7;
}

.cat-bar {
    height: 3px;
    background: var(--border2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.cat-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-weight {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
}

/* Findings section */
.findings-section {
    margin-bottom: 32px;
}

.findings-header {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.findings-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Finding card */
.finding-card {
    background: var(--bg2);
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s, transform 0.2s;
    overflow: hidden;
}

.finding-card:last-child {
    border-bottom: none;
}

.finding-card.show {
    opacity: 1;
    transform: none;
}

.finding-card.sev-critical .finding-head {
    border-left: 3px solid var(--critical);
}

.finding-card.sev-warning .finding-head {
    border-left: 3px solid var(--warning);
}

.finding-card.sev-opportunity .finding-head {
    border-left: 3px solid var(--opportunity);
}

.finding-card.sev-info .finding-head {
    border-left: 3px solid var(--info);
}

.finding-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 11px 14px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.finding-head:hover {
    background: var(--bg3);
}

.sev-badge {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.sev-badge.critical {
    color: var(--critical);
}

.sev-badge.warning {
    color: var(--warning);
}

.sev-badge.opportunity {
    color: var(--opportunity);
}

.sev-badge.info {
    color: var(--info);
}

.finding-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-bright);
    line-height: 1.4;
    flex: 1;
}

.finding-body {
    display: none;
    padding: 0 14px 14px 17px;
    border-top: 1px solid var(--border);
    background: var(--bg3);
}

.finding-card.expanded .finding-body {
    display: block;
}

.finding-desc {
    font-size: 12px;
    color: var(--text);
    margin-top: 10px;
    line-height: 1.7;
}

.finding-rec {
    font-size: 12px;
    color: var(--accent);
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(0, 212, 160, 0.06);
    border-radius: 4px;
    border-left: 2px solid var(--accent);
}

/* More findings teaser */
.more-findings {
    text-align: center;
    padding: 20px;
    background: var(--bg3);
    border: 1px dashed var(--border);
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 16px;
    font-family: var(--mono);
    letter-spacing: 0.05em;
}

/* Email capture section */


/* Tab navigation for full report */
.tab-navigation {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
    flex-direction: column;

    @media(min-width: 992px) {
        flex-direction: row;
    }
}

.tab-btn {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-dim);
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-bright);
    background: var(--bg3);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--bg2);
}

.tab-btn-icon {
    margin-right: 6px;
}

/* Tab content panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

/* Category grouping for full audit */
.category-group {
    margin-bottom: 32px;
}

.category-header {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-bright);
    margin-bottom: 12px;
    padding: 12px 16px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
}

/* Site preview card */
.site-preview-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 24px;
}

.preview-img-wrap {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg2);
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.preview-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preview-badge {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid var(--border);
    color: var(--text-dim);
}

/* Intel panels */
.intel-panel {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.intel-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
}

.intel-icon {
    font-size: 14px;
}

.intel-title {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    flex: 1;
}

.intel-body {
    padding: 16px;
}

.intel-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
}

.intel-empty {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* ── Intelligence Panel Styles from index.html ── */
.intel-count {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 1px 6px;
    border-radius: 10px;
}

.intel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 14px;
    min-height: 48px;
    align-content: flex-start;
}

/* Tool chips */
.tool-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid;
    white-space: nowrap;
}

.tool-chip.abtesting {
    color: #f59e0b;
    border-color: #f59e0b44;
    background: #f59e0b0e;
}

.tool-chip.heatmap {
    color: #f87171;
    border-color: #f8717144;
    background: #f871710e;
}

.tool-chip.analytics {
    color: #4a9eff;
    border-color: #4a9eff44;
    background: #4a9eff0e;
}

.tool-chip.tagmanager {
    color: #a78bfa;
    border-color: #a78bfa44;
    background: #a78bfa0e;
}

.tool-chip.personalisation {
    color: #34d399;
    border-color: #34d39944;
    background: #34d3990e;
}

.tool-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Graphic charter */
.charter-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.charter-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.charter-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.charter-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.swatch-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: transform 0.15s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.swatch-circle:hover {
    transform: scale(1.15);
}

.swatch-hex {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.charter-fonts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.font-tag {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid var(--border2);
    color: var(--text);
    background: var(--surface);
}

.font-source {
    font-family: var(--mono);
    font-size: 8px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}

.font-tag-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

/* Competitor cards */
.competitor-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid var(--border2);
    color: var(--text);
    background: var(--surface);
    white-space: nowrap;
}

.competitor-badge {
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.signal-4 {
    color: #ef4444;
    border-color: #ef444455;
    background: #ef44440e;
}

.signal-3 {
    color: #f59e0b;
    border-color: #f59e0b55;
    background: #f59e0b0e;
}

.signal-2 {
    color: #60a5fa;
    border-color: #60a5fa55;
    background: #60a5fa0e;
}

.signal-1 {
    color: var(--text-dim);
    border-color: var(--border2);
    background: var(--surface);
}

/* Profile panels (row 2+) */
.intel-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.intel-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.intel-row3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.intel-row3a {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.intel-row4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* Website Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px;
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 600;
}

.profile-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.profile-value.purpose {
    color: #4ecdc4;
}

.profile-value.industry {
    color: #ff6b6b;
}

.profile-value.tone {
    color: #a78bfa;
}

.profile-value.lang {
    color: #fbbf24;
}

/* Tech stack chips */
.tech-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
}

.tech-group-label {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 2px;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tech-chip {
    font-family: var(--mono);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 5px;
    border: 1px solid;
    white-space: nowrap;
}

.tech-chip.framework {
    color: #60a5fa;
    border-color: #60a5fa44;
    background: #60a5fa0d;
}

.tech-chip.ecommerce {
    color: #34d399;
    border-color: #34d39944;
    background: #34d3990d;
}

.tech-chip.cms {
    color: #a78bfa;
    border-color: #a78bfa44;
    background: #a78bfa0d;
}

.tech-chip.cdn {
    color: #f59e0b;
    border-color: #f59e0b44;
    background: #f59e0b0d;
}

.tech-chip.server {
    color: var(--text-dim);
    border-color: var(--border2);
    background: var(--surface);
}

.tech-conf-1::after {
    content: '?';
    font-size: 8px;
    opacity: 0.5;
    margin-left: 3px;
}

.tech-conf-2::after {
    content: '';
}

.tech-conf-3::after {
    content: '✓';
    font-size: 7px;
    opacity: 0.6;
    margin-left: 3px;
}

/* Boolean grid — for UX patterns, SEO, Revenue booleans */
.bool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 8px 14px;
}

.bool-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
    font-size: 10px;
    color: var(--text);
}

.bool-row:nth-last-child(-n+2) {
    border-bottom: none;
}

.bool-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bool-dot.yes {
    background: #34d399;
}

.bool-dot.no {
    background: var(--border2);
}

/* Conversion infra - category rows */
.conv-section {
    padding: 6px 14px;
    border-bottom: 1px solid var(--border);
}

.conv-section:last-child {
    border-bottom: none;
}

.conv-section-label {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
    display: block;
}

.conv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.conv-chip {
    font-family: var(--mono);
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid var(--border2);
    color: var(--text);
    background: var(--surface);
    white-space: nowrap;
}

.conv-chip.payments {
    border-color: #34d39944;
    color: #34d399;
    background: #34d3990d;
}

.conv-chip.livechat {
    border-color: #60a5fa44;
    color: #60a5fa;
    background: #60a5fa0d;
}

.conv-chip.exitintent {
    border-color: #f59e0b44;
    color: #f59e0b;
    background: #f59e0b0d;
}

.conv-chip.cmp {
    border-color: #a78bfa44;
    color: #a78bfa;
    background: #a78bfa0d;
}

.conv-chip.email {
    border-color: #fb923c44;
    color: #fb923c;
    background: #fb923c0d;
}

.conv-chip.recommend {
    border-color: #f472b644;
    color: #f472b6;
    background: #f472b60d;
}

.conv-chip.loyalty {
    border-color: #fbbf2444;
    color: #fbbf24;
    background: #fbbf240d;
}

.conv-chip.booking {
    border-color: #4ade8044;
    color: #4ade80;
    background: #4ade800d;
}

.conv-none {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    font-style: italic;
}

/* AI Readiness gauge */
.ai-gauge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 14px 6px;
}

.ai-score-ring {
    position: relative;
    width: 72px;
    height: 72px;
}

.ai-score-ring svg {
    transform: rotate(-90deg);
}

.ai-ring-bg {
    fill: none;
    stroke: var(--border2);
    stroke-width: 7;
}

.ai-ring-fg {
    fill: none;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 201;
    stroke-dashoffset: 201;
    transition: stroke-dashoffset 1s ease, stroke 0.4s;
}

.ai-ring-num {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ai-num {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1;
}

.ai-denom {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.ai-bool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    width: 100%;
    padding: 6px 14px 10px;
}

/* SEO image format bar */
.img-bar-wrap {
    padding: 8px 14px;
}

.img-bar-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 5px;
    display: block;
}

.img-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--border2);
}

.img-bar-modern {
    background: #34d399;
    transition: width 0.8s ease;
}

.img-bar-legacy {
    background: var(--border2);
}

.img-bar-pct {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Revenue signals bool list */
.revenue-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 14px;
}

.rev-tag {
    font-family: var(--mono);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 5px;
    white-space: nowrap;
}

.rev-tag.on {
    color: #34d399;
    border: 1px solid #34d39944;
    background: #34d3990d;
}

.rev-tag.off {
    color: var(--text-dim);
    border: 1px solid var(--border2);
    background: var(--surface);
    opacity: 0.45;
}

/* AI Readiness Learn More button */
.ai-learn-more-btn {
    margin-left: auto;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ai-learn-more-btn:hover {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ai-learn-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ai-learn-more-btn svg {
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
}

/* AI Readiness Learn More Modal */
.ai-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ai-modal {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.ai-modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-bright);
    margin: 0;
}

.ai-modal-close {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--text-dim);
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
}

.ai-modal-close:hover {
    background: var(--critical);
    border-color: var(--critical);
    color: white;
}

.ai-modal-body {
    overflow-y: auto;
    padding: 24px;
    flex: 1;
}

.ai-modal-body::-webkit-scrollbar {
    width: 10px;
}

.ai-modal-body::-webkit-scrollbar-track {
    background: var(--surface);
}

.ai-modal-body::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 5px;
}

.ai-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.ai-modal-section {
    margin-bottom: 32px;
}

.ai-modal-section:last-child {
    margin-bottom: 0;
}

.ai-modal-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.ai-modal-section p {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text);
}

.ai-modal-section ul {
    margin: 8px 0;
    color: var(--text);
}

.ai-modal-section ul li {
    margin-bottom: 6px;
}

.ai-modal-section a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ai-modal-section a:hover {
    color: var(--accent2);
    text-decoration: underline;
}

.ai-modal-metric {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.ai-modal-metric:last-child {
    margin-bottom: 0;
}

.ai-modal-metric h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

.ai-modal-metric p {
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.ai-modal-metric code {
    font-family: var(--mono);
    font-size: 12px;
    background: var(--bg2);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border2);
    color: var(--accent);
}

.ai-modal-example {
    background: var(--bg2);
    border-left: 3px solid var(--accent);
    padding: 10px 12px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
}

.ai-modal-example strong {
    color: var(--text-bright);
}

.ai-modal-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-modal-tip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
}

.ai-modal-tip strong {
    color: var(--text-bright);
    font-weight: 600;
}

.ai-modal-tip code {
    font-family: var(--mono);
    font-size: 12px;
    background: var(--bg2);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border2);
    color: var(--accent);
}

@media (max-width: 860px) {

    .intel-row,
    .intel-row2,
    .intel-row3,
    .intel-row3a {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 560px) {

    .intel-row,
    .intel-row2,
    .intel-row3,
    .intel-row3a {
        grid-template-columns: 1fr;
    }

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

/* ── Promise & Friction panel ─────────────────────────────────────────── */
/* ── MECLABS Friction Score panel ── */
.pf-f {
    color: #f59e0b;
    font-weight: 700;
}

.pf-a {
    color: #f87171;
    font-weight: 700;
}

/* Top strip: score ring + formula + penalty table */
.pf-meclabs {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    border-bottom: 1px solid var(--border);
    min-height: 130px;
}

@media (max-width: 991px) {
    .pf-meclabs {
        grid-template-columns: 1fr;
    }
}

/* Left: headline Friction Score ring */
.pf-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    border-right: 1px solid var(--border);
}

.pf-headline-ring {
    position: relative;
    width: 84px;
    height: 84px;
}

.pf-headline-ring svg {
    transform: rotate(-90deg);
    width: 84px;
    height: 84px;
}

.pf-headline-ring-bg {
    fill: none;
    stroke: var(--border2);
    stroke-width: 7;
}

.pf-headline-ring-fg {
    fill: none;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 239;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.6s;
}

.pf-headline-num {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.pf-headline-score {
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-bright);
}

.pf-headline-label {
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: center;
}

.pf-headline-band {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid;
}

.pf-band-low {
    color: #34d399;
    border-color: #34d39940;
    background: #34d3990d;
}

.pf-band-moderate {
    color: #60a5fa;
    border-color: #60a5fa40;
    background: #60a5fa0d;
}

.pf-band-high {
    color: #f59e0b;
    border-color: #f59e0b40;
    background: #f59e0b0d;
}

.pf-band-critical {
    color: #f87171;
    border-color: #f8717140;
    background: #f871710d;
}

.pf-headline-sub {
    font-size: 8px;
    color: var(--text-dim);
    text-align: center;
    font-style: italic;
}

/* Centre: formula + breakdown bars */
.pf-formula-area {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-formula-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.pf-formula-tag {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    flex-shrink: 0;
}

.pf-formula-eq {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}

.pf-formula-live {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
}

.pf-formula-live .val {
    color: var(--text-bright);
    font-weight: 700;
}

.pf-formula-live .neg {
    color: #f87171;
}

/* Dimension rows */
.pf-dim-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pf-dim-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pf-dim-tag {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    width: 14px;
    flex-shrink: 0;
    text-align: center;
}

.pf-dim-label {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-dim);
    width: 60px;
    flex-shrink: 0;
}

.pf-dim-track {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.pf-dim-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.pf-dim-fill-f {
    background: #f59e0b;
}

.pf-dim-fill-a {
    background: #f87171;
}

.pf-dim-val {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    width: 30px;
    text-align: right;
    flex-shrink: 0;
}

.pf-dim-penalty {
    font-family: var(--mono);
    font-size: 8px;
    color: var(--text-dim);
    width: 52px;
    text-align: right;
    flex-shrink: 0;
}

/* Right: penalty table */
.pf-penalty-table {
    padding: 14px 18px;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 200px;
}

.pf-penalty-tag {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 2px;
}

.pf-penalty-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.pf-penalty-key {
    font-family: var(--mono);
    font-size: 9px;
    flex: 1;
    color: var(--text-dim);
}

.pf-penalty-val {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-bright);
    text-align: right;
    min-width: 32px;
}

.pf-penalty-sep {
    height: 1px;
    background: var(--border);
    margin: 2px 0;
}

.pf-penalty-row-total .pf-penalty-key {
    color: var(--text);
    font-weight: 700;
}

.pf-penalty-row-total .pf-penalty-val {
    font-size: 14px;
}

.pf-recovery {
    font-size: 8px;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 2px;
}

.pf-gaps-highlight {
    color: #f87171;
    font-weight: 700;
    font-size: 10px;
}

/* Grid */
.pf-grid {
    display: grid;
    gap: 20px;
    padding: 20px;

    @media(min-width: 992px) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pf-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background 0.15s;
}

.pf-card:hover {
    background: var(--bg3);
}

.pf-card.covered {
    background: var(--bg2);
}

.pf-card.uncovered {
    background: #ef44440a;
}

/* Card header */
.pf-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--border);
}

.pf-card-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pf-card-icon {
    font-size: 14px;
    line-height: 1;
}

.pf-card-label {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Strength badge */
.pf-strength {
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.pf-strength-none {
    color: #ef4444;
    border-color: #ef444433;
    background: #ef44440f;
}

.pf-strength-weak {
    color: #f59e0b;
    border-color: #f59e0b33;
    background: #f59e0b0f;
}

.pf-strength-moderate {
    color: #60a5fa;
    border-color: #60a5fa33;
    background: #60a5fa0f;
}

.pf-strength-strong {
    color: #34d399;
    border-color: #34d39933;
    background: #34d3990f;
}

/* Coverage bar */
.pf-bar-wrap {
    height: 3px;
    background: var(--border);
    margin: 0;
}

.pf-bar-fill {
    height: 100%;
    border-radius: 0;
    transition: width 0.5s ease;
}

.pf-bar-none {
    background: #ef4444;
    width: 4%;
}

.pf-bar-weak {
    background: #f59e0b;
    width: 25%;
}

.pf-bar-moderate {
    background: #60a5fa;
    width: 65%;
}

.pf-bar-strong {
    background: #34d399;
    width: 100%;
}

/* Card body */
.pf-card-body {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Consumer voice */
.pf-consumer-voice {
    font-size: 9px;
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.45;
    padding: 4px 7px;
    background: var(--surface);
    border-radius: 4px;
    border-left: 2px solid var(--border2);
}

.pf-card.uncovered .pf-consumer-voice {
    border-left-color: #ef444488;
}

/* Promises list */
.pf-promises {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
}

.pf-promise-item {
    font-size: 9px;
    color: var(--text);
    line-height: 1.4;
    padding: 3px 7px 3px 5px;
    border-radius: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 5px;
    cursor: default;
}

.pf-promise-item:hover {
    background: var(--bg3);
}

.pf-promise-inner {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.pf-promise-text {
    flex: 1;
    font-weight: 500;
}

.pf-promise-source {
    font-size: 8px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

.pf-promise-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.pf-promise-dot.high {
    background: #34d399;
}

.pf-promise-dot.medium {
    background: #60a5fa;
}

.pf-promise-dot.low {
    background: var(--text-dim);
}

/* Gap (no promise) */
.pf-gap-box {
    padding: 5px 7px;
    border-radius: 4px;
    background: #ef44440d;
    border: 1px dashed #ef444444;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.pf-gap-icon {
    font-size: 11px;
    flex-shrink: 0;
    line-height: 1.5;
}

.pf-gap-text {
    font-size: 9px;
    color: #ef4444;
    font-style: italic;
    line-height: 1.4;
}

/* More / hint */
.pf-more {
    font-size: 8px;
    color: var(--text-dim);
    font-style: italic;
    margin-top: 2px;
    cursor: pointer;
    padding: 1px 4px;
    border-radius: 3px;
}

.pf-more:hover {
    color: var(--accent);
}

/* Recommendation hint (shown on hover / expand) */
.pf-reco {
    display: none;
    font-size: 9px;
    color: var(--text);
    line-height: 1.5;
    padding: 6px 8px;
    background: var(--surface);
    border-radius: 4px;
    border: 1px solid var(--border);
    margin-top: 4px;
}

.pf-card.expanded .pf-reco {
    display: block;
}

.pf-reco-toggle {
    font-size: 8px;
    color: var(--text-dim);
    cursor: pointer;
    margin-top: 4px;
    display: inline-block;
}

.pf-reco-toggle:hover {
    color: var(--accent);
}

/* Return action */
.return-action {
    text-align: center;
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid var(--border);
}

.return-action p {
    color: var(--text-dim);
    margin-bottom: 16px;
    font-size: 13px;
}

/* ── Site Intelligence section ── */
.si-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.si-title {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.si-spinner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--border2);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
    display: none;
}

.si-spinner.visible {
    display: block;
}

/* Site description */
.si-description {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
    padding: 14px 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Four-panel grid */
.si-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.si-panel {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.si-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.si-panel-icon {
    font-size: 14px;
}

.si-panel-title {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.si-panel-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.si-loading {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    font-style: italic;
}

/* Personas */
.persona-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.persona-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-bright);
}

.persona-desc {
    font-size: 11px;
    color: var(--text);
    line-height: 1.5;
}

.persona-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.persona-badge {
    font-family: var(--mono);
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--border2);
    color: var(--text-dim);
}

.persona-badge.tech-high {
    color: #34d399;
    border-color: #34d39944;
}

.persona-badge.tech-medium {
    color: #f59e0b;
    border-color: #f59e0b44;
}

.persona-badge.tech-low {
    color: #f87171;
    border-color: #f8717144;
}

.persona-bullets {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
}

.persona-bullet {
    font-size: 10px;
    color: var(--text);
    line-height: 1.4;
    padding-left: 12px;
    position: relative;
}

.persona-bullet::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.persona-section-label {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 2px;
}

/* Benefits + objections */
.benefit-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.benefit-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
}

.benefit-why {
    font-size: 10px;
    color: var(--text);
    line-height: 1.5;
}

.objection-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
}

.objection-item {
    font-size: 10px;
    color: #f59e0b;
    line-height: 1.4;
    padding-left: 14px;
    position: relative;
}

.objection-item::before {
    content: '⚠';
    position: absolute;
    left: 0;
    font-size: 8px;
}

.obj-friction-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
    cursor: default;
}

.obj-tag-price {
    color: #34d399;
    border-color: #34d39940;
    background: #34d3990d;
}

.obj-tag-trust {
    color: #60a5fa;
    border-color: #60a5fa40;
    background: #60a5fa0d;
}

.obj-tag-delivery {
    color: #a78bfa;
    border-color: #a78bfa40;
    background: #a78bfa0d;
}

.obj-tag-value {
    color: #f59e0b;
    border-color: #f59e0b40;
    background: #f59e0b0d;
}

.obj-tag-privacy {
    color: #f87171;
    border-color: #f8717140;
    background: #f871710d;
}

.obj-tag-social {
    color: #fb923c;
    border-color: #fb923c40;
    background: #fb923c0d;
}

.obj-tag-commitment {
    color: #e879f9;
    border-color: #e879f940;
    background: #e879f90d;
}

.obj-tag-obsolescence {
    color: #94a3b8;
    border-color: #94a3b840;
    background: #94a3b80d;
}

/* SWOT panels - strong/weak */
.swot-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.swot-card {
    border-radius: 7px;
    padding: 9px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.swot-card.strong {
    border: 1px solid #34d39933;
    background: #34d3990a;
}

.swot-card.weak {
    border: 1px solid #f8717133;
    background: #f871710a;
}

.swot-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.swot-label {
    font-size: 11px;
    font-weight: 600;
}

.swot-card.strong .swot-label {
    color: #34d399;
}

.swot-card.weak .swot-label {
    color: #f87171;
}

.swot-meta {
    display: flex;
    gap: 5px;
    align-items: center;
}

.swot-cat {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.06em;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid var(--border2);
    color: var(--text-dim);
    text-transform: uppercase;
}

.swot-impact {
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.swot-impact.high {
    color: #ef4444;
}

.swot-impact.medium {
    color: #f59e0b;
}

.swot-impact.low {
    color: var(--text-dim);
}

.swot-explanation {
    font-size: 10px;
    color: var(--text);
    line-height: 1.5;
}

/* ── Preview Favicon ── */
.preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.preview-favicon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: none;
    object-fit: contain;
}

/* ── Questionnaire ── */
.questionnaire-resume-steps_wrapper {
    display: flex;
    flex-direction: column;
    background-color: var(--lightColor);
    padding: 24px 16px;
    margin-block-start: 32px;
}

.questionnaire-resume-steps {
    display: flex;
    justify-content: space-between;
    margin-block-end: 32px;
}


.questionnaire-resume-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    font-weight: 600;
    font-size: 1rem;

    @media(min-width: 992px) {
        font-size: 1.4rem;
    }
}

.questionnaire-resume-step_status {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #BDB4C8;
    margin-block-end: 8px;
    position: relative;
    z-index: 1;
    background-size: cover;

    @media(min-width: 992px) {
        width: 15px;
        height: 15px;
    }
}

.questionnaire-resume-step::before,
.questionnaire-resume-step::after {
    content: "";
    position: absolute;
    height: 1px;
    width: 50%;
    inset-block-start: 6px;
    background-color: #BDB4C8;
}

.questionnaire-resume-step::before {
    inset-inline-start: 0;
    inset-inline-end: 50%;
}

.questionnaire-resume-step::after {
    inset-inline-start: 50%;
    inset-inline-end: 0;
}

.questionnaire-resume-step:first-of-type::before {
    content: none;
}

.questionnaire-resume-step:last-of-type::after {
    content: none;
}

.questionnaire-resume-step.is-current .questionnaire-resume-step_status {
    background-image: url("./assets/icon-current.svg");
    background-color: transparent;
}

.questionnaire-resume-step.is-validated .questionnaire-resume-step_status {
    background-image: url("./assets/status-success.svg");
    background-color: transparent;
}

.question-block {
    display: none;
    margin-block-end: 32px;
    text-align: center;
    flex-direction: column;
    align-items: center;

    @media(min-width: 992px) {
        margin-block-end: 64px;
    }
}

.question-block.is-current {
    display: flex;
}

.question-block_title {
    margin-block: 0 16px;
    font-size: 1.6rem;
    font-weight: 700;

    @media(min-width: 992px) {
        font-size: 2.4rem;
        ;
    }
}

.question-block_text {
    margin-block: 0 16px;
    font-size: 1.2rem;
    font-weight: 500;
    text-wrap: balance;

    @media(min-width: 992px) {
        font-size: 1.6rem;
        font-weight: 400;
        margin-block: 0 32px;
    }
}

.questionnaire-footer {
    display: flex;
    gap: 13px;
}

.questionnaire-footer .cta {
    flex: 1;

    @media(min-width: 992px) {
        flex: none;
    }
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    @media(min-width: 992px) {
        gap: 15px;
    }
}

.option-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 36px;
    background-color: #F3E9FF;
    font-family: var(--ternaryFont);
    font-size: 1.4rem;
    font-weight: 500;
    border: 1px solid transparent;
    width: 100%;

    @media(min-width: 992px) {
        width: 100px;
    }
}

.checkbox-grid .option-card {
    display: flex;
    flex-wrap: wrap;
    width: auto;

    @media(min-width: 992px) {
        width: auto;
    }
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-card:has(input:checked) {
    border-color: var(--mainColor);
}

.option-text {
    text-align: center;
    transition: all 0.2s;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;

    @media(min-width: 992px) {
        min-height: 500px;
        justify-content: center;
    }
}

.contact .contact_header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;

    @media(min-width: 992px) {
        flex-direction: row;
        margin-block-end: 32px;
    }
}

.contact .contact_header .question-block_title {
    @media(min-width: 992px) {
        margin-block-end: 0;
    }
}