/* ============================================
   AI-AUDIT LANDING — KeyClient Brand
   Font: Onest | Colors from brand guideline
   ============================================ */

/* --- VARIABLES --- */
:root {
    /* Brand colors from guideline */
    --primary: #4EA0D2;
    --primary-hover: #4B95C3;
    --primary-dark: #3A7CAA;
    --text: #050A32;
    --text-secondary: #747986;
    --bg: #F9FAFB;
    --bg-block-1: #84E1FD;
    --bg-block-2: #4EA0D2;
    --white: #FFFFFF;
    --surface: #EFF6FF;

    /* Semantic */
    --success: #16A34A;
    --warning: #EA580C;
    --error: #DC2626;
    --info: #4EA0D2;
    --paid-accent: #D97706;

    /* Spacing */
    --section-gap: 80px;
    --container-max: 1120px;
    --content-max: 680px;
    --radius: 12px;
    --radius-sm: 8px;

    /* Shadows */
    --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 2px 8px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
    --shadow-btn: 0 2px 8px rgba(78,160,210,0.25);
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(78,160,210,0.35);
    color: var(--white);
}

.btn--secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn--secondary:hover {
    background: var(--surface);
    color: var(--primary);
}

.btn--white {
    background: var(--white);
    color: var(--primary);
}

.btn--white:hover {
    background: #F0F7FF;
    color: var(--primary-hover);
}

.btn--large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn--full {
    width: 100%;
}

/* --- PROMO BAR --- */
.promo-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    height: 46px;
    background: #059669;
    color: #fff;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    padding: 0 48px 0 16px;
    overflow: hidden;
}
html.has-promo .promo-bar {
    display: flex;
}
html.has-promo .header {
    top: 46px;
}
html.has-promo body {
    padding-top: 46px;
}
.promo-bar__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.promo-bar__btn {
    flex-shrink: 0;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s;
}
.promo-bar__btn:hover {
    background: rgba(255,255,255,0.35);
    color: #fff;
}
.promo-bar__close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 4px 6px;
}
.promo-bar__close:hover {
    color: #fff;
}
@media (max-width: 640px) {
    .promo-bar {
        height: 80px;
        padding: 6px 36px 6px 12px;
        gap: 4px;
        justify-content: flex-start;
        flex-wrap: wrap;
        align-content: center;
        font-size: 12px;
    }
    .promo-bar__text {
        white-space: normal;
        width: 100%;
        line-height: 1.3;
        font-size: 13px;
    }
    .promo-bar__btn {
        padding: 3px 8px;
        font-size: 12px;
    }
    html.has-promo .header {
        top: 80px;
    }
    html.has-promo body {
        padding-top: 80px;
    }
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}

.header--scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 64px;
}

.header__logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__logo-img {
    height: 28px;
    width: auto;
}

.header__logo-mini {
    display: none;
    height: 32px;
    width: auto;
}

.header__logo-sub {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.header__tagline {
    font-size: 12px;
    line-height: 1.4;
    color: #6B7280;
    font-weight: 400;
    border-left: 1px solid #E5E7EB;
    padding-left: 10px;
    margin-left: 2px;
}

.header__nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    margin-right: 20px;
}

.header__link {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.header__link:hover,
.header__link.active {
    color: var(--primary);
}

.header__cta {
    padding: 7px 18px;
    font-size: 15px;
    margin-right: 20px;
}

.header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: 2px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 10;
}

.header__burger span {
    display: block;
    width: 9px;
    height: 9px;
    background: #6B7280;
    border-radius: 2px;
    pointer-events: none;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                background-color 0.3s ease,
                border-radius 0.3s ease;
}

/* Burger → X animation (mobile) */
.header__burger.open span:nth-child(1) {
    transform: translate(6.5px, 6.5px) rotate(45deg) scaleX(2.4) scaleY(0.2);
    background: #4EA0D2;
    border-radius: 1px;
}
.header__burger.open span:nth-child(2) {
    transform: translate(-6.5px, 6.5px) rotate(-45deg) scaleX(2.4) scaleY(0.2);
    background: #4EA0D2;
    border-radius: 1px;
}
.header__burger.open span:nth-child(3) {
    transform: translate(6.5px, -6.5px) scale(0);
    opacity: 0;
}
.header__burger.open span:nth-child(4) {
    transform: translate(-6.5px, -6.5px) scale(0);
    opacity: 0;
}

/* ── Mobile nav extras (hidden on desktop) ──────────────────── */
.header__nav-mobile-extras {
    display: none;
}

.header__link--mobile-only {
    display: none;
}

/* ── Header user avatar (ЛК) ────────────────────────────────── */
.header__user {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.header__user-details {
    position: relative;
}
.header__user-details summary { list-style: none; }
.header__user-details summary::-webkit-details-marker { display: none; }
.header__user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #f3f4f6;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    transition: border-color .2s;
    text-decoration: none;
}
.header__user-btn:hover { border-color: #4EA0D2; }
.header__user-btn img { width: 100%; height: 100%; object-fit: cover; }
.header__user-btn svg { color: #9ca3af; }

.header__user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    min-width: 180px;
    z-index: 1000;
    padding: 6px 0;
}
details.header__user-details[open] .header__user-dropdown { display: block; }
.header__user-dropdown a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
}
.header__user-dropdown a svg { flex-shrink: 0; color: #9CA3AF; }
.header__user-dropdown a:hover { background: #f9fafb; }
.header__user-dropdown a:hover svg { color: #22C55E; }
.header__user-dropdown a.logout { color: #dc2626; }
.header__user-dropdown a.logout svg { color: #dc2626; }
.header__user-dropdown hr { margin: 4px 0; border: none; border-top: 1px solid #f3f4f6; }

.header__balance {
    font-size: 14px;
    font-weight: 600;
    color: #0bb35c;
    margin-right: 10px;
    white-space: nowrap;
}

.header__login-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border: 1.5px solid #4EA0D2;
    border-radius: 12px;
    color: #4EA0D2;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.header__login-btn:hover { background: #4EA0D2; color: #fff; }

/* --- SECTIONS --- */
.section {
    padding: var(--section-gap) 0;
}

.section--light {
    background: var(--bg);
}

.section--white {
    background: var(--white);
}

.section--cta {
    background: var(--primary);
    text-align: center;
    padding: 80px 0;
}

.section__title {
    text-align: center;
    margin-bottom: 20px;
}

.section__title--white {
    color: var(--white);
}

.section__subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    max-width: var(--content-max);
    margin: 0 auto 48px;
    line-height: 1.5;
}

.section__subtitle--white {
    color: rgba(255,255,255,0.85);
}

.section__micro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 32px;
}

.section__cta-wrap {
    text-align: center;
    margin-top: 48px;
}

/* --- HERO --- */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: var(--white);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.hero__title {
    font-size: 50px;
    line-height: 1.12;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero__tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--surface);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(78,160,210,0.2);
}

.hero__cta {
    margin-bottom: 12px;
}

.hero__micro {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Hero mock */
.hero__mock {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card-hover);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

.hero__mock-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #F1F5F9;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.hero__mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.hero__mock-dot--red { background: #FF5F56; }
.hero__mock-dot--yellow { background: #FFBD2E; }
.hero__mock-dot--green { background: #27C93F; }

.hero__mock-url {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.hero__mock-body {
    padding: 24px;
}

.hero__mock-score {
    text-align: center;
    margin-bottom: 20px;
}

.hero__mock-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero__mock-line {
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__mock-line--red {
    background: #FEF2F2;
    color: var(--error);
}

.hero__mock-line--orange {
    background: #FFF7ED;
    color: var(--warning);
}

.hero__mock-line--green {
    background: #F0FDF4;
    color: var(--success);
}

.hero__mock-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Hero visual animations */
@keyframes heroVisualFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-14px); }
}
@keyframes heroLineFadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero__visual {
    animation: heroVisualFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__mock {
    animation: heroFloat 7s ease-in-out infinite;
}

.hero__mock-line:nth-child(1) {
    animation: heroLineFadeIn 0.45s ease 0.9s both;
}
.hero__mock-line:nth-child(2) {
    animation: heroLineFadeIn 0.45s ease 1.3s both;
}
.hero__mock-line:nth-child(3) {
    animation: heroLineFadeIn 0.45s ease 1.7s both;
}

/* Score ring pulse for demo */
.score-ring--demo .score-ring__value {
    animation: heroLineFadeIn 0.5s ease 0.5s both;
}

/* Score ring (demo in hero) */
.score-ring--demo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--warning);
    background: #FFF7ED;
}

.score-ring--demo .score-ring__value {
    font-size: 28px;
    font-weight: 700;
    color: var(--warning);
    line-height: 1;
}

.score-ring--demo .score-ring__max {
    font-size: 12px;
    color: var(--text-secondary);
}

/* --- BENEFITS GRID --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.benefit-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s, transform 0.3s;
}

.benefit-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.benefit-card--accent {
    background: var(--surface);
    border: 2px solid var(--primary);
}

.benefit-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 16px;
}

.benefit-card__icon--red {
    background: #FEF2F2;
    color: var(--error);
}

.benefit-card__icon--accent {
    background: var(--primary);
    color: var(--white);
}

.benefit-card__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.benefit-card__text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Уменьшенный нижний отступ subtitle в форме запуска */
#start .section__subtitle {
    margin-bottom: 20px;
}

/* --- AUDIT FORM --- */
.audit-form-wrapper {
    max-width: 680px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow-card-hover);
    border: 2px solid rgba(78,160,210,0.15);
}

.audit-form {
    margin-top: 32px;
}

.audit-form__field {
    margin-bottom: 24px;
}

.audit-form__label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.audit-form__input,
.audit-form__select {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 16px;
    border: 1.5px solid #E2E8F0;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

.audit-form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23747986' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.audit-form__input:focus,
.audit-form__select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78,160,210,0.15);
}

.audit-form__input.error,
.audit-form__select.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.audit-form__hint {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.audit-form__error {
    display: block;
    font-size: 13px;
    color: var(--error);
    margin-top: 6px;
    min-height: 18px;
}

.required {
    color: var(--error);
}

/* Chips */
.audit-form__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    cursor: pointer;
}

.chip__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip__label {
    display: inline-block;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid #E2E8F0;
    border-radius: 100px;
    color: var(--text-secondary);
    transition: all 0.2s;
    user-select: none;
}

.chip__label:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chip__input:checked + .chip__label {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Consent checkbox */
.audit-form__consent {
    margin-bottom: 20px;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.consent__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consent__check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid #CBD5E1;
    border-radius: 4px;
    background: var(--white);
    position: relative;
    transition: all 0.2s;
    margin-top: 1px;
}

.consent__check::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
}

.consent__input:checked + .consent__check {
    background: var(--primary);
    border-color: var(--primary);
}

.consent__input:checked + .consent__check::after {
    opacity: 1;
}

.consent__input:focus-visible + .consent__check {
    box-shadow: 0 0 0 3px rgba(78,160,210,0.2);
}

.consent__text {
    color: var(--text-secondary);
}

.consent__text a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent__text a:hover {
    color: var(--primary-hover);
}

.audit-form__submit {
    width: 100%;
    margin-top: 8px;
}

.audit-form__micro {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* --- PROGRESS --- */
.progress-wrapper {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 0;
}

.progress-visual {
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-spinner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--surface);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

.progress-countdown {
    font-size: 19px;
    font-weight: 700;
    color: #16a34a;
    position: relative;
    z-index: 1;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.progress-countdown--overtime {
    color: #dc2626;
}

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

.progress__title {
    font-size: 24px;
    margin-bottom: 24px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--bg-block-1));
    border-radius: 4px;
    transition: width 0.8s ease-out;
}

.progress__step {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 8px;
}

.progress__hint {
    font-size: 13px;
    color: var(--text-secondary);
}

/* --- RESULT --- */
.result {
    max-width: 800px;
    margin: 0 auto;
}

.result__header {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin-bottom: 32px;
}

/* Score ring (SVG) */
.score-ring--large {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.score-ring__svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.score-ring__bg {
    fill: none;
    stroke: #E2E8F0;
    stroke-width: 8;
}

.score-ring__progress {
    fill: none;
    stroke: var(--warning);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.5s ease;
}

.score-ring--large .score-ring__value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 36px;
    font-weight: 700;
}

.score-ring--large .score-ring__max {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 60%);
    font-size: 14px;
    color: var(--text-secondary);
}

.result__summary {
    flex: 1;
}

.result__title {
    font-size: 24px;
    margin-bottom: 4px;
}

.result__url {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 8px;
}

.result__text {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Issues */
.result__issues {
    margin-bottom: 32px;
}

.issue-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-card);
    border-left: 4px solid transparent;
}

.issue-item--critical { border-left-color: var(--error); }
.issue-item--warning { border-left-color: var(--warning); }
.issue-item--good { border-left-color: var(--success); }
.issue-item--info { border-left-color: var(--info); }

.issue-item__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.issue-item__badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.issue-item__badge--critical { background: #FEF2F2; color: var(--error); }
.issue-item__badge--warning { background: #FFF7ED; color: var(--warning); }
.issue-item__badge--good { background: #F0FDF4; color: var(--success); }
.issue-item__badge--locked { background: #F3F4F6; color: #6B7280; }

.issue-item__title {
    font-size: 16px;
    font-weight: 600;
}

.issue-item__category {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--surface);
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.issue-item__url {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 6px;
    word-break: break-all;
    opacity: 0.8;
}

.issue-item__text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.issue-item__comparison {
    margin-top: 12px;
    background: var(--surface);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.6;
}

.issue-item__current {
    color: var(--error);
    margin-bottom: 4px;
}

.issue-item__arrow {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.issue-item__recommended {
    color: var(--success);
}

.issue-item__label {
    font-weight: 600;
    color: var(--text);
}

.issue-item__rec {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text);
}

/* Quick Wins */
.result__page-analysis {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
}

.page-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.page-analysis-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    background: var(--bg);
}

.page-analysis-card__url {
    font-size: 12px;
    color: var(--primary);
    word-break: break-all;
    margin-bottom: 6px;
    font-family: monospace;
}

.page-analysis-card__title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-analysis-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.page-analysis-card__badge--ok {
    background: rgba(22,163,74,0.1);
    color: #16A34A;
}

.page-analysis-card__badge--warn {
    background: rgba(234,88,12,0.1);
    color: #EA580C;
}

.page-analysis-card__badge--critical {
    background: rgba(220,38,38,0.1);
    color: #DC2626;
}

.page-analysis-card__issue {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.result__quickwins {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
}

.result__section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--primary);
}

.result__section-title--center {
    justify-content: center;
}

.quickwin-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 8px;
    font-size: 15px;
    border-left: 3px solid var(--primary);
}

.quickwin-item__title {
    font-weight: 600;
    margin-bottom: 4px;
}

.quickwin-item__text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Categories navigation row */
.categories-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.cat-score-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    min-height: 32px;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.cat-score-badge:hover { opacity: 0.8; }
.cat-score-badge--good    { background: #F0FDF4; color: var(--success); }
.cat-score-badge--warning { background: #FFF7ED; color: var(--warning); }
.cat-score-badge--critical { background: #FEF2F2; color: var(--error); }
.cat-score-badge--locked  { background: #F3F4F6; color: #6B7280; }

/* Category titles + descriptions (paid audit) */
.category-title {
    margin: 32px 0 4px;
    font-size: 18px;
}
.category-title--locked { color: #9CA3AF; font-size: 16px; }
.category-title--locked .cat-lock-icon { font-size: 14px; }

.category-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Issue impact & fix blocks */
.issue-item__impact {
    margin-top: 10px;
    padding: 10px 14px;
    background: #FFF8E1;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

.issue-item__fix {
    margin-top: 8px;
    padding: 10px 14px;
    background: #E8F5E9;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

/* Promo row (input + button) */
.promo-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.promo-row .audit-form__input {
    flex: 1;
}

/* Print footer (visible only in print) */
.print-footer {
    display: none;
}

/* Ephemeral notice (report only available in this window) */
.result__ephemeral-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFF7ED;
    border: 1px solid rgba(234,88,12,0.25);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #92400E;
    margin: 24px 0 8px;
}

/* Action buttons row (PDF + New Audit) */
.result__actions-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 8px 0 32px;
    flex-wrap: wrap;
}

/* Share section at bottom */
.result__share-section {
    margin-top: 40px;
    text-align: center;
}
.result__share-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Inline plans */
.result__plans {
    margin-top: 48px;
    text-align: center;
    /* Break out of .result max-width:800px to give pricing table full room */
    --plans-width: min(1000px, calc(100vw - 48px));
    width: var(--plans-width);
    margin-left: calc((100% - var(--plans-width)) / 2);
    margin-right: calc((100% - var(--plans-width)) / 2);
}

.result__plans-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.result__plans-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Plans grid */
.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto 32px;
    padding-top: 16px;
}

.plan-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    text-align: left;
}

.plan-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.plan-card--selected {
    border-color: var(--primary);
    box-shadow: var(--shadow-card-hover), 0 0 0 3px rgba(78,160,210,0.15);
}

.plan-card--standard {
    border-color: var(--primary);
    overflow: visible;
}

.plan-card--premium {
    border-color: var(--paid-accent);
    overflow: visible;
}

.plan-card--premium.plan-card--selected {
    border-color: var(--paid-accent);
    box-shadow: var(--shadow-card-hover), 0 0 0 3px rgba(217,119,6,0.15);
}

.plan-card__popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #16a34a;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
    z-index: 1;
}

.plan-card__header {
    margin-bottom: 20px;
}

.plan-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.plan-card__price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.plan-card--premium .plan-card__price {
    color: var(--paid-accent);
}

.plan-card__features {
    margin-bottom: 20px;
}

.plan-card__features li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0 4px 22px;
    position: relative;
    line-height: 1.5;
}

.plan-card__features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.plan-card__btn {
    width: 100%;
}


/* Rating section */
.result__rating {
    margin-top: 48px;
    text-align: center;
}

/* Founder block */
.founder-block {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 32px;
    text-align: left;
}
.founder-block__author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: 120px;
}
.founder-block__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #E2E8F0;
    display: block;
}
.founder-block__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 150px;
}
.founder-block__name {
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    color: #1E293B;
    white-space: nowrap;
    text-align: center;
    line-height: 1.3;
}
.founder-block__title {
    font-size: 14px;
    font-style: italic;
    color: #64748B;
    white-space: nowrap;
    text-align: center;
    line-height: 1.3;
}
.founder-block__letter {
    font-size: 18px;
    line-height: 1.65;
    color: #374151;
    margin: 0;
    padding: 0 20px;
    align-self: center;
}
@media (max-width: 680px) {
    .founder-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }
    .founder-block__author {
        width: auto;
        flex-direction: row;
        gap: 14px;
    }
    .founder-block__avatar {
        width: 80px;
        height: 80px;
    }
    .founder-block__info {
        width: auto;
        align-items: flex-start;
        text-align: left;
    }
    .founder-block__letter {
        text-align: center;
        padding: 0;
        font-size: 16px;
    }
}

/* Share bar */
.share-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.share-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.share-bar__btn:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
}

.share-bar__popup-wrap {
    position: relative;
}

.share-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
    z-index: 100;
}

.share-popup__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: background 0.15s;
}

.share-popup__item:hover {
    background: #F1F5F9;
}

.share-popup__item--tg { color: #0088cc; }
.share-popup__item--wa { color: #25D366; }

.bookmark-hint {
    text-align: center;
    font-size: 13px;
    color: #374151;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
}

.bookmark-hint kbd {
    background: #E2E8F0;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 12px;
    font-family: monospace;
}

@media (max-width: 600px) {
    .share-bar { gap: 8px; }
    .share-bar__btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        font-size: 13px;
        padding: 8px 10px;
    }
    .share-popup {
        left: auto;
        right: 0;
        transform: none;
    }
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
}

.rating__face {
    font-size: 24px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.rating__face--sad { color: var(--error); }
.rating__face--happy { color: var(--success); }

.rating__buttons {
    display: flex;
    gap: 4px;
}

.rating__btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid #E2E8F0;
    background: var(--white);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.rating__btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--surface);
}

.rating__btn--selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.rating__btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.rating__btn--selected.rating__btn--disabled {
    opacity: 1;
}

.rating__thanks {
    margin-top: 16px;
    padding: 16px;
    background: #F0FDF4;
    border-radius: 8px;
    color: var(--success);
    font-weight: 600;
}

.rating__feedback {
    margin-top: 16px;
    text-align: left;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    animation: feedbackSlideDown 0.3s ease;
}
@keyframes feedbackSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rating__feedback-label {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
}

.rating__textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    border: 1.5px solid #E2E8F0;
    border-radius: var(--radius-sm);
    resize: vertical;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.rating__textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78,160,210,0.15);
}

.rating__submit {
    width: 100%;
}

@media (max-width: 520px) {
    .rating {
        gap: 4px;
    }
    .rating__face {
        font-size: 18px;
    }
    .rating__btn {
        width: 40px;
        height: 40px;
        font-size: 12px;
        border-radius: 6px;
    }
    .rating__buttons {
        gap: 3px;
    }
}
@media (max-width: 420px) {
    .rating__face {
        display: none;
    }
    .rating__buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        max-width: 260px;
    }
    .rating__btn {
        width: 44px;
        height: 36px;
        font-size: 13px;
        border-radius: 8px;
    }
}

/* New audit button */
.result__new-audit {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #E2E8F0;
}

/* --- STEPS --- */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
}

.step {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.step__number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step__title {
    font-size: 18px;
    margin-bottom: 12px;
}

.step__text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step__arrow {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    padding-top: 60px;
}

/* --- REPORT MOCK --- */
.report-mock {
    max-width: 600px;
    margin: 0 auto 48px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card-hover);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

.report-mock__header {
    padding: 20px 24px;
    border-bottom: 1px solid #E2E8F0;
}

.report-mock__top {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.report-mock__badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--surface);
    color: var(--primary);
    text-transform: uppercase;
}

.report-mock__score-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-ring--small {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.score-ring--warning {
    border: 3px solid var(--warning);
    background: #FFF7ED;
}

.score-ring--small .score-ring__value {
    font-size: 16px;
    font-weight: 700;
    color: var(--warning);
}

.report-mock__score-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.report-mock__toc {
    padding: 16px 24px;
}

.report-mock__toc-item {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid #F1F5F9;
}

.report-mock__toc-item--warn {
    color: var(--warning);
    font-weight: 500;
}

.report-mock__badge-warn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFF7ED;
    color: var(--warning);
    font-size: 12px;
    font-weight: 700;
    margin-left: 4px;
}

.report-mock__toc-item--star {
    color: var(--primary);
    font-weight: 500;
}

.report-mock__divider {
    border-top: 2px dashed #E2E8F0;
    margin: 8px 0;
}

.report-mock__toc-item--locked {
    color: var(--text-secondary);
    opacity: 0.6;
    padding-left: 24px;
    position: relative;
}

.report-mock__toc-item--locked::before {
    content: "\1F512";
    position: absolute;
    left: 0;
    font-size: 12px;
}

/* --- EXAMPLE CARDS --- */
.example-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.example-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
    border-top: 4px solid transparent;
}

.example-card--critical { border-top-color: var(--error); }
.example-card--warning { border-top-color: var(--warning); }
.example-card--quickwin { border-top-color: var(--primary); }

.example-card__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.example-card__badge--red { background: #FEF2F2; color: var(--error); }
.example-card__badge--orange { background: #FFF7ED; color: var(--warning); }
.example-card__badge--blue { background: var(--surface); color: var(--primary); }

.example-card__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.example-card__note {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.example-card__current,
.example-card__rec {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.example-card__rec {
    color: var(--text);
}

/* --- TOOLTIPS --- */
.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #E2E8F0;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: help;
    position: relative;
    vertical-align: middle;
    margin-left: 4px;
    flex-shrink: 0;
    line-height: 1;
}

.tooltip-trigger::before {
    content: "?";
}

.tooltip-popup {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--text);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    max-width: 240px;
    min-width: 180px;
    width: max-content;
    z-index: 50;
    text-align: left;
    pointer-events: none;
}

.tooltip-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--white);
}

/* Desktop: hover */
@media (hover: hover) {
    .tooltip-trigger:hover .tooltip-popup {
        display: block;
    }
}

/* Mobile: click-activated via JS class */
.tooltip-trigger.active .tooltip-popup {
    display: block;
    pointer-events: auto;
}

/* --- STRIKETHROUGH PRICES & DISCOUNT BADGES --- */
.price-old {
    display: inline-block;
    text-decoration: line-through;
    color: #bbb;
    font-size: 0.5em;
    font-weight: 400;
    margin-right: 6px;
    vertical-align: middle;
}

.price-badge {
    display: inline-block;
    background: #DC2626;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}

/* price-badge--gold removed — all badges now red */

/* --- PRICING TABLE --- */
.pricing-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 0 auto 48px;
    padding-top: 20px; /* room for popular badge on all variants */
}

.pricing-table--three {
    /* inherits flex layout */
}

.pricing-table--four {
    /* inherits flex layout */
}

.pricing-col {
    width: 246px;
    flex-shrink: 0;
}

.pricing-col--lite {
    border: 1.5px solid #E5E7EB;
}

.pricing-col--lite .pricing-col__price {
    color: var(--primary);
}

.pricing-col {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: visible;
    position: relative;
}

.pricing-col--paid {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-card-hover);
    overflow: visible;
}

.pricing-col--premium {
    border: 2px solid var(--paid-accent);
    box-shadow: var(--shadow-card-hover);
    overflow: visible;
}

.pricing-col__popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #16a34a;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
    z-index: 1;
}

.pricing-col--premium .pricing-col__header {
    background: #FFFBEB;
    border-bottom-color: rgba(217,119,6,0.15);
    border-radius: 10px 10px 0 0;
}

.pricing-col--premium .pricing-col__price {
    color: var(--paid-accent);
}

.pricing-col--premium .pricing-col__badge {
    color: var(--paid-accent);
    background: rgba(217,119,6,0.1);
}

.pricing-col--premium .pricing-col__badge--discount {
    color: #fff;
    background: #E53E3E;
}

.pricing-col__header {
    padding: 24px 24px 20px;
    text-align: center;
    border-bottom: 1px solid #E2E8F0;
    border-radius: var(--radius) var(--radius) 0 0;
    height: 168px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pricing-col--paid .pricing-col__header {
    background: var(--surface);
    border-bottom-color: rgba(78,160,210,0.15);
}

.pricing-col__header h3 {
    font-size: 20px;
    margin-bottom: 0;
}

.pricing-col__price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    padding-left: 20px;
}

.pricing-col--free {
    border: 1px solid #e2e8f0;
}

.pricing-col--free .pricing-col__price {
    color: var(--text);
    padding-left: 0;
}

.pricing-col__badge--free {
    color: #9ca3af;
    background: #e5e7eb;
}

.pricing-col__badge--lite {
    color: var(--primary);
    background: rgba(78,160,210,0.1);
}

.pricing-col__old-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
}

.pricing-col__old-price {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.pricing-col__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(78,160,210,0.1);
    padding: 4px 12px;
    border-radius: 100px;
}

.pricing-col__badge--discount {
    color: #fff;
    background: #E53E3E;
    font-weight: 700;
    font-size: 13px;
    padding: 2px 8px;
    margin-top: 0;
}

.pricing-col__list {
    padding: 20px 24px;
}

.pricing-col__item {
    padding: 8px 0 8px 28px;
    font-size: 14px;
    position: relative;
    border-bottom: 1px solid #F8FAFC;
    text-align: left;
}

.pricing-col__item--yes::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.pricing-col__item--no::before {
    content: "\2014";
    position: absolute;
    left: 0;
    color: #CBD5E1;
}

.pricing-col__item--no {
    color: var(--text-secondary);
    opacity: 0.6;
}

.pricing-col__btn {
    margin: 16px 24px 24px;
    width: calc(100% - 48px);
}

/* Pricing triggers */
.pricing-triggers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-trigger {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pricing-trigger svg {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 2px;
}

/* --- AUDIENCE GRID --- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.audience-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: box-shadow 0.3s;
}

.audience-card:hover {
    box-shadow: var(--shadow-card);
}

.audience-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 16px;
}

.audience-card__title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}

.audience-card__text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- NOT FOR --- */
.not-for-list {
    max-width: var(--content-max);
    margin: 0 auto;
}

.not-for-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #E2E8F0;
}

.not-for-item:last-child {
    border-bottom: none;
}

.not-for-item__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FEF2F2;
    color: var(--error);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.not-for-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.not-for-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- TRUST GRID --- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.trust-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px 24px;
}

.trust-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 16px;
}

.trust-card__title {
    font-size: 18px;
    margin-bottom: 16px;
}

.trust-card__list li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 6px 0 6px 20px;
    position: relative;
}

.trust-card__list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

/* Trust details (accordion) */
.trust-details {
    max-width: var(--content-max);
    margin: 0 auto;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
}

.trust-details__summary {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trust-details__summary::-webkit-details-marker {
    display: none;
}

.trust-details__summary::after {
    content: "+";
    font-size: 20px;
    color: var(--primary);
    transition: transform 0.3s;
}

.trust-details[open] .trust-details__summary::after {
    transform: rotate(45deg);
}

.trust-details__content {
    padding: 0 24px 24px;
}

.trust-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.trust-check {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0 6px 20px;
    position: relative;
}

.trust-check::before {
    content: "\2022";
    position: absolute;
    left: 4px;
    color: var(--primary);
}

/* --- FAQ --- */
.faq-list {
    max-width: var(--content-max);
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #E2E8F0;
}

.faq-item__question {
    padding: 20px 32px 20px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 20px;
    font-size: 20px;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item[open] .faq-item__question::after {
    transform: rotate(45deg);
}

.faq-item__answer {
    padding: 0 0 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- FOOTER --- */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 32px;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

.footer__logo-img {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__logo-sub {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
}

.footer__desc {
    font-size: 14px;
    margin-top: 8px;
}

.footer__nav {
    display: flex;
    gap: 24px;
}

.footer__nav a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.footer__nav a:hover {
    color: var(--white);
}

.footer__contacts {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__contact-item {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer__contact-item strong {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.footer__contact-item a {
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer__contact-item a:hover {
    color: var(--white);
}

.footer__support {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__support:hover {
    color: var(--white);
}

.footer__support img {
    display: inline-block;
}

.footer__copy-btn {
    background: none;
    border: none;
    padding: 0 0 0 5px;
    cursor: pointer;
    color: rgba(255,255,255,0.35);
    vertical-align: middle;
    transition: color 0.2s;
    line-height: 1;
}

.footer__copy-btn:hover {
    color: rgba(255,255,255,0.8);
}

.footer__copy-btn.copied {
    color: #4ade80;
}

.footer__disclaimer {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255,255,255,0.28);
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: 16px;
}

.footer__bottom {
    border-top: none;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.footer__legal {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
}

.footer__links {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.footer__links a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer__links a:hover {
    color: var(--white);
}

/* --- STICKY CTA (mobile) --- */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--white);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
    padding: 12px 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.visible {
    transform: translateY(0);
}

/* --- PRINT STYLES --- */
@media print {
    .header,
    .footer,
    .sticky-cta,
    .cookie-banner,
    .result__actions-row,
    .result__ephemeral-notice,
    .result__share-section,
    .result__plans,
    #progressSection,
    #start,
    #hero,
    #free-benefits,
    #how-it-works,
    #example,
    #pricing,
    #for-whom,
    #not-for,
    #trust,
    #faq,
    #final-cta {
        display: none !important;
    }

    .result-section {
        display: block !important;
    }

    body {
        background: white;
        font-size: 14px;
    }

    .result {
        max-width: 100%;
        box-shadow: none;
    }

    .result__header {
        box-shadow: none;
        border: 1px solid #E2E8F0;
    }

    .issue-item {
        box-shadow: none;
        border: 1px solid #E2E8F0;
        break-inside: avoid;
    }

    .result__quickwins {
        break-inside: avoid;
    }

    .print-footer {
        display: block !important;
        margin-top: 40px;
    }

    .print-footer__cta {
        border: 2px solid #4EA0D2;
        border-radius: 8px;
        background: #f5f8fc;
        padding: 24px 28px;
        text-align: center;
    }

    .print-footer__title {
        font-size: 15pt;
        color: #1a1a2e;
        margin: 0 0 8px;
    }

    .print-footer__sub {
        font-size: 11pt;
        color: #444;
        margin-bottom: 14px;
    }

    .print-footer__features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 24px;
        margin: 0 auto 14px;
        text-align: left;
        font-size: 10pt;
        color: #333;
        max-width: 480px;
    }

    .print-footer__contacts {
        font-size: 10pt;
        color: #555;
        margin-bottom: 0;
    }

    .print-footer a {
        color: #4EA0D2;
    }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    width: 352px;
    z-index: 150;
    background: #1E293B;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.28);
    transform: translateY(calc(100% + 40px));
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-banner__text {
    font-size: 13px;
    color: #CBD5E1;
    line-height: 1.55;
}

.cookie-banner__text a {
    color: #4ADE80;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__btn {
    width: 100%;
    padding: 9px 16px;
    font-size: 14px;
}

/* --- ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */

@media (max-width: 1024px) {
    h1 { font-size: 38px; }
    h2 { font-size: 30px; }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__title {
        font-size: 38px;
    }

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

    .example-cards {
        grid-template-columns: 1fr;
    }

    .pricing-triggers {
        grid-template-columns: 1fr;
    }

    .pricing-table--three {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .pricing-table--four {
        grid-template-columns: repeat(4, 1fr);
    }

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

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

.mobile-br { display: none; }

@media (max-width: 768px) {
    .mobile-br { display: block; }

    :root {
        --section-gap: 56px;
    }

    body {
        font-size: 16px;
    }

    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    h3 { font-size: 20px; }

    .container {
        padding: 0 16px;
    }

    /* Header mobile */
    .header__nav {
        display: flex;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 20px 20px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.11);
        border-top: 1px solid #F3F4F6;
        z-index: 200;
        /* Animation: hidden by default */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 0.26s ease, transform 0.26s ease;
    }

    .header__nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Mobile nav extras */
    .header__link--desktop-only { display: none; }
    .header__link--mobile-only { display: block; }

    .header__nav-mobile-extras {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-top: 4px;
    }
    .header__nav-sep {
        border: none;
        border-top: 1px solid #F3F4F6;
        margin: 8px 0;
    }
    .header__nav-section-label {
        font-size: 11px;
        font-weight: 600;
        color: #9CA3AF;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding: 0 4px;
        margin-bottom: 2px;
    }
    .header__link--tool {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: var(--text-secondary);
        padding: 7px 4px;
        border-radius: 8px;
        transition: background 0.15s, color 0.15s;
    }
    .header__link--tool:hover {
        background: #F9FAFB;
        color: var(--primary);
    }
    .header__link--tool svg {
        flex-shrink: 0;
        opacity: 0.6;
    }
    .header__nav-cta {
        display: block;
        text-align: center;
        margin-top: 10px;
        padding: 11px 20px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .header__cta {
        display: none;
    }

    .header__tagline {
        font-size: 11px;
        line-height: 1.3;
        border-left: 1px solid #E5E7EB;
        padding-left: 8px;
        margin-left: 2px;
    }

    .header__logo-img {
        display: none;
    }

    .header__logo-mini {
        display: block;
        height: 28px;
        width: auto;
    }

    .header__user {
        margin-left: auto;
        position: relative;
        z-index: 1;
    }

    .header__burger {
        display: grid;
        grid-template-columns: repeat(2, 9px);
        grid-template-rows: repeat(2, 9px);
        gap: 4px;
        margin-left: 4px;
        align-content: center;
        justify-content: center;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
    }

    /* Hero */
    .hero {
        padding-top: 100px;
        padding-bottom: 48px;
    }

    .hero__title {
        font-size: 30px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .hero__visual {
        display: none;
    }

    .hero__cta {
        width: 100%;
    }

    .hero__micro {
        text-align: center;
    }

    /* Benefits */
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Form */
    .audit-form-wrapper {
        padding: 28px 20px;
    }

    /* Steps */
    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 100%;
    }

    .step__arrow {
        transform: rotate(90deg);
        padding-top: 0;
    }

    /* Pricing — horizontal scroll on mobile, first card + peek of next */
    .pricing-table,
    .pricing-table--three,
    .pricing-table--four {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-top: 20px;
        padding-bottom: 12px;
        padding-right: 20px;
        scrollbar-width: none;
        justify-content: flex-start;
    }
    .pricing-table::-webkit-scrollbar,
    .pricing-table--three::-webkit-scrollbar,
    .pricing-table--four::-webkit-scrollbar {
        display: none;
    }

    .pricing-col {
        width: 78vw;
        min-width: 78vw;
        max-width: 78vw;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    /* Remove fade-in animation on mobile */
    .pricing-col.fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    /* Plans grid (result audit section) — same treatment */
    .plans-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-top: 20px;
        padding-bottom: 12px;
        scrollbar-width: none;
    }
    .plans-grid::-webkit-scrollbar {
        display: none;
    }

    .plan-card {
        min-width: min(82vw, 300px);
        max-width: min(82vw, 300px);
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    /* Audience */
    .audience-grid {
        grid-template-columns: 1fr;
    }

    /* Trust checks */
    .trust-checks {
        grid-template-columns: 1fr;
    }

    /* Result header */
    .result__header {
        flex-direction: column;
        text-align: center;
    }

    /* Footer */
    .footer__top {
        flex-direction: column;
        gap: 24px;
    }

    .footer__nav {
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer__bottom {
        flex-direction: column;
    }

    /* Sticky CTA */
    .sticky-cta {
        display: block;
    }

    /* Popular badge on mobile — more prominent */
    /* No margin-top on individual card in horizontal scroll — use padding-top on container instead */
    .plan-card--standard,
    .pricing-col--paid {
        margin-top: 0;
    }

    .plan-card__popular,
    .pricing-col__popular {
        box-shadow: 0 2px 8px rgba(78,160,210,0.35);
    }

    /* Cookie banner mobile */
    .cookie-banner {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }

    .section__subtitle {
        font-size: 16px;
    }

    .btn--large {
        padding: 16px 24px;
        font-size: 16px;
    }

    /* CTA buttons: full width on small screens */
    .section__cta-wrap .btn {
        width: 100%;
        text-align: center;
    }

    .audit-form__chips {
        gap: 6px;
    }

    .chip__label {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* Pricing price — prevent overflow */
    .pricing-col__price {
        font-size: 28px;
    }

    .plan-card__price {
        font-size: 26px;
    }

    /* Hero title */
    .hero__title {
        font-size: 26px;
    }
}


/* Demo solution highlight */
.issue-field--demo .issue-field__label {
    color: #7c3aed;
    font-weight: 600;
}
.issue-field--demo .issue-field__value {
    background: #faf5ff;
    border-left: 3px solid #7c3aed;
    padding: 12px 14px;
    border-radius: 0 6px 6px 0;
}
.demo-badge {
    display: inline-block;
    background: #7c3aed;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.02em;
}

/* ===== Upsell cards (after free audit) ===== */
.upsell-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}
.upsell-card {
    width: 246px;
    flex-shrink: 0;
}
@media (max-width: 720px) {
    .upsell-card { width: 100%; }
}
.upsell-card {
    position: relative;
    background: #fff;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius);
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.upsell-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-card-hover);
}
.upsell-card--popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-card-hover);
}
.upsell-card__popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.upsell-card__name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}
.upsell-card__price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}
.upsell-card__amount {
    font-size: 26px;
}
.upsell-card__unit {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}
.upsell-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}
.upsell-card__features li {
    font-size: 13px;
    color: #374151;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}
.upsell-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}
.upsell-card__btn {
    margin-top: 4px;
    width: 100%;
    font-size: 14px;
    padding: 10px 16px;
}

/* === Guest counter & conversion block === */
.guest-counter {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.guest-limit-block {
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    border-radius: var(--radius);
    padding: 20px 24px;
    text-align: center;
    margin-bottom: 20px;
}
.guest-limit-block__title {
    font-size: 15px;
    font-weight: 700;
    color: #92400E;
    margin-bottom: 6px;
}
.guest-limit-block__bonus {
    font-size: 13px;
    color: #78350F;
    margin-bottom: 16px;
    line-height: 1.5;
}
.guest-limit-block__btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== PAID AUDIT MODAL ===== */
.pay-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px 40px;
    overflow-y: auto;
}

.pay-modal {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 520px;
    padding: 40px 40px 32px;
    position: relative;
    margin: auto;
}

.pay-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.pay-modal__close:hover { background: #E2E8F0; color: var(--text); }

.pay-modal__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    color: var(--text);
}

.pay-modal__balance-info {
    text-align: center;
    font-size: 13px;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
}
.pay-modal__balance-info--ok {
    color: #374151;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
}
.pay-modal__balance-info--warn {
    color: #92400E;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
}
.pay-modal__balance-info--neutral {
    color: #374151;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
}

.pay-modal__plans {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.pay-modal__plan-tab {
    flex: 1;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    background: var(--white);
    padding: 12px 10px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}
.pay-modal__plan-tab--active {
    border-color: var(--primary);
    background: #EFF6FF;
}
.pay-modal__plan-tab:hover:not(.pay-modal__plan-tab--active) { border-color: #93C5FD; }

.pay-modal__plan-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}
.pay-modal__plan-price {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2px;
}

.pay-modal__form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (max-width: 600px) {
    .pay-modal {
        padding: 32px 20px 24px;
        max-height: calc(100dvh - 48px);
        overflow-y: auto;
    }
    .pay-modal__title {
        font-size: 18px;
    }
    .pay-modal__plan-price {
        font-size: 16px;
    }
}
