/* Гетселлер Landing v2 — Light narrative */

:root {
    --bg: #eef2f9;
    --bg-alt: #e4eaf3;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-surface: #e8edf5;
    --border: #d4dce8;
    --border-light: #b8c2d2;
    --text: #0f172a;
    --text-dim: #475569;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.14);
    --accent-dark: #1d4ed8;
    --accent-soft: rgba(37, 99, 235, 0.10);
    --red: #ef4444;
    --red-dim: #fef2f2;
    --green-dim: #eff6ff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 0.75rem;
    --radius-lg: 1.25rem;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
    --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: var(--text);
    color: #fff;
    border-radius: 0 0 var(--radius) 0;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > main { flex: 1 0 auto; }
body > .footer { flex-shrink: 0; }

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 1000px 560px at 50% 0, rgba(37, 99, 235, 0.18) 0%, transparent 70%),
        linear-gradient(180deg, #dde4f0 0px, transparent 700px);
    pointer-events: none;
    z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn--accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 6px 20px var(--accent-glow);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-light);
}
.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--ghost {
    background: transparent;
    color: var(--text-dim);
    border-color: transparent;
}
.btn--ghost:hover { color: var(--text); }

.btn--lg { font-size: 1.0625rem; padding: 1rem 2rem; }
.btn--block { width: 100%; }

/* --- Header --- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(238, 242, 249, 0.75);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(15, 23, 42, 0.06);
}

.nav {
    display: flex;
    align-items: center;
    height: 4rem;
    position: relative;
}

.nav__logo { margin-right: auto; }

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav__logo img { height: 1.5rem; width: auto; }
.nav__logo-text {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav__menu {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color var(--transition);
}
.nav__link:hover { color: var(--text); }

.nav__actions { display: flex; gap: 0.75rem; align-items: center; }
.nav__actions .btn { font-size: 0.875rem; font-weight: 500; padding: 0.55rem 1.1rem; }

.nav__menu-actions { display: none; }

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav__burger span {
    width: 20px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Section labels --- */
.section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-heading {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    text-align: center;
    margin-bottom: 2.5rem;
}

/* --- Role tabs (sub-nav) --- */
.role-tabs {
    background: transparent;
    padding-top: 4rem;
}
.role-tabs__inner {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.role-tabs__inner::-webkit-scrollbar { display: none; }

@media (max-width: 768px) {
    .role-tabs__inner { justify-content: flex-start; }
}

.role-tab {
    flex-shrink: 0;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.role-tab:hover { color: var(--text); }
.role-tab.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 1rem 0 4rem;
    text-align: center;
    overflow: hidden;
}

.hero--split { text-align: left; padding: 1.5rem 0 1.5rem; }

.hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: stretch;
}

.hero__col--text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.75rem;
    min-height: 480px;
    padding: 1rem 0;
}

.hero__col--demo {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 1rem 0;
    min-height: 480px;
}
.hero__demo-title { text-align: center; }

.hero__lead,
.hero__demo-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.hero--split .hero__col--text .hero__perks { margin-top: 0; }
.hero--split .hero__col--text .hero__subtitle { margin: 0; }

.hero__cta-block {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.hero__cta-block .hero__cta-note { margin-top: 0; }

.hero--split .hero__badges,
.hero--split .hero__cta { justify-content: flex-start; }
.hero--split .hero__title { font-size: clamp(1.75rem, 3.2vw, 2.75rem); margin-bottom: 1rem; }
.hero--split .hero__subtitle { margin: 0 0 1.5rem; max-width: none; font-size: 1.125rem; line-height: 1.6; }
.hero--split .hero__col--text .hero__perks { font-size: 1rem; flex-direction: column; flex-wrap: nowrap; gap: 0.75rem; }
.hero--split .hero__col--text .hero__perks svg { width: 1.125rem; height: 1.125rem; }
.hero--split .hero__col--text .hero__cta-note { font-size: 0.9375rem; }
.hero--split .hero__perks { justify-content: flex-start; margin-top: 2rem; }
.hero--split .hero__perks--top { margin-top: 0; margin-bottom: 1.25rem; }
.hero--split .hero__cta-note { text-align: left; }

.hero__title--full {
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    margin: 3rem 0 3.5rem;
    text-align: center;
}
.hero--split .hero__title--full {
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    margin: 1rem 0 1rem;
    text-align: center;
}

.hero__tagline {
    margin: 0 auto 3rem;
    max-width: 50rem;
    text-align: center;
    font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: -0.005em;
}

.hero__badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dim);
    border: 1px solid var(--border);
    background: var(--bg-surface);
}

.hero__title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero__title-accent {
    color: var(--accent);
}

.hero__subtitle {
    font-size: 1.1875rem;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.hero__cta-note {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.hero__perks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-dim);
}
.hero__perks li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.hero__perks svg {
    width: 1rem;
    height: 1rem;
    color: var(--accent);
    flex-shrink: 0;
}

.hero__glow { display: none; }


/* --- Roles cross-link --- */
.roles-cross { padding: 3rem 0; border-top: 1px solid var(--border); }

.roles-cross__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.role-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.role-card {
    box-shadow: var(--shadow-sm);
}
.role-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.role-card__icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--accent-glow);
    color: var(--accent);
    margin-bottom: 1rem;
}

.role-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.role-card__lead {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.role-card__text {
    font-size: 0.875rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.role-card__list {
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.role-card__list li {
    font-size: 0.8125rem;
    color: var(--text-dim);
    line-height: 1.45;
    padding-left: 1.25rem;
    position: relative;
}

.role-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    background: var(--accent);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
}

.role-card__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap var(--transition);
}
.role-card:hover .role-card__link { gap: 0.55rem; }

/* --- Audiences (legacy) --- */
.audiences { padding: 4rem 0 3rem; }

.audiences__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.audience {
    position: relative;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), transform var(--transition), background var(--transition);
    display: flex;
    flex-direction: column;
}
.audience {
    box-shadow: var(--shadow-sm);
}
.audience:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.audience__icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    background: var(--accent-glow);
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.audience__badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.audience__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.audience__lead {
    font-size: 0.9375rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.audience__list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: auto;
}

.audience__list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-dim);
    line-height: 1.55;
}

.audience__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 14px;
    height: 14px;
    background: var(--accent);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* --- AI text section --- */
.ai-text { padding: 1.5rem 0 3rem; }

.ai-text__lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-dim);
    text-align: center;
    max-width: 38rem;
    margin: -1.5rem auto 3rem;
}

.ai-text__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.ai-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.ai-card {
    box-shadow: var(--shadow-sm);
}
.ai-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ai-card__icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--accent-glow);
    color: var(--accent);
    margin-bottom: 1rem;
}

.ai-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.ai-card__text {
    font-size: 0.875rem;
    color: var(--text-dim);
    line-height: 1.55;
}

.ai-text__foot {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 42rem;
    margin: 2.5rem auto 0;
    line-height: 1.6;
}

/* --- AI assistant (legacy split section, used by role pages) --- */
.ai { padding: 3rem 0 4rem; }

.ai__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.ai__label {
    text-align: left;
    margin-bottom: 1rem;
}

.ai__title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.ai__lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-dim);
    margin-bottom: 1.75rem;
    max-width: 32rem;
}

.ai__perks {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.ai__perks li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-dim);
}
.ai__perks b { color: var(--text); font-weight: 600; }

.ai__perk-icon {
    flex-shrink: 0;
    width: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.35rem;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.8rem;
    line-height: 1;
    margin-top: 1px;
}

.ai__cta { margin-top: 0.5rem; }

/* --- Chat demo (mock AI widget) --- */
.ai__demo {
    position: relative;
}

.chat {
    position: relative;
    --chat-accent: #2563eb;
    --chat-accent-soft: rgba(37, 99, 235, 0.10);
    --chat-bg: #ffffff;
    --chat-fg: #1e293b;
    --chat-muted: #64748b;
    --chat-border: #e2e8f0;
    --chat-soft: #f8fafc;
    --chat-pos: #22c55e;
    --chat-neg: #ef4444;
}

.chat__frame {
    position: relative;
    height: 480px;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, rgba(37, 99, 235, 0) 55%),
        var(--chat-bg);
    border: 1px solid var(--chat-border);
    border-radius: 1rem;
    overflow: hidden;
    color: var(--chat-fg);
}

.chat__glow { display: none; }

.chat__header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--chat-border);
    background: #f8fafc;
    z-index: 4;
}

.chat__back {
    background: none;
    border: 0;
    padding: 0.25rem;
    color: var(--chat-muted);
    cursor: pointer;
    border-radius: 0.35rem;
    display: inline-flex;
}
.chat__back:hover { background: var(--chat-soft); color: var(--chat-fg); }

.chat__title-wrap { flex: 1 1 auto; min-width: 0; }

.chat__title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--chat-fg);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat__subtitle {
    font-size: 0.75rem;
    color: var(--chat-muted);
    line-height: 1.2;
    margin-top: 0.15rem;
}

.chat__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--chat-accent);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
    animation: chat-pulse 1.6s ease-out infinite;
    flex-shrink: 0;
}

@keyframes chat-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.chat__actions {
    display: flex;
    gap: 0.15rem;
    margin-right: 0.25rem;
}
.chat__actions[hidden] { display: none; }

.chat__icon {
    position: relative;
    background: transparent;
    border: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--chat-muted);
    cursor: pointer;
    border-radius: 0.4rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.chat__icon:hover { background: var(--chat-soft); color: var(--chat-fg); }
.chat__icon.is-open { background: var(--chat-accent-soft); color: var(--chat-accent); }

.chat__icon-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--chat-accent);
    box-shadow: 0 0 0 2px var(--chat-bg);
}
.chat__icon-badge[hidden] { display: none; }
.chat__icon-badge.is-pulsing {
    animation: chat-badge-pulse 1.4s ease-out 2;
}
@keyframes chat-badge-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55), 0 0 0 2px var(--chat-bg); }
    70%  { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0),  0 0 0 2px var(--chat-bg); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0),    0 0 0 2px var(--chat-bg); }
}

/* Drawers */
.chat__drawer {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, rgba(37, 99, 235, 0) 60%),
        var(--chat-bg);
    animation: chat-drawer-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chat__drawer[hidden] { display: none; }

@keyframes chat-drawer-in {
    from { transform: translateY(8px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

.chat__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--chat-border);
    background: #f8fafc;
}

.chat__drawer-title {
    font-weight: 600;
    color: var(--chat-fg);
    font-size: 0.9375rem;
}

.chat__drawer-close {
    width: 1.85rem;
    height: 1.85rem;
    line-height: 1;
    background: transparent;
    border: 0;
    color: var(--chat-muted);
    font-size: 1.4rem;
    cursor: pointer;
    border-radius: 0.35rem;
}
.chat__drawer-close:hover { background: var(--chat-soft); color: var(--chat-fg); }

.chat__drawer-meta {
    padding: 0.55rem 0.85rem;
    font-size: 0.8125rem;
    color: var(--chat-muted);
    border-bottom: 1px solid var(--chat-border);
}

.chat__drawer-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.6rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat__drawer-empty {
    text-align: center;
    color: var(--chat-muted);
    font-size: 0.8125rem;
    padding: 1.25rem 0.5rem;
}

/* Schedule and prompt cards */
.chat__sched,
.chat__prompt {
    background: var(--chat-soft);
    border: 1px solid var(--chat-border);
    border-radius: 0.55rem;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: var(--chat-fg);
}
.chat__sched.is-fresh,
.chat__prompt.is-fresh {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.35);
    animation: chat-fresh 1s ease-out;
}
@keyframes chat-fresh {
    0%   { transform: translateY(-4px); opacity: 0; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35); }
    50%  { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.14); }
    100% { transform: none; opacity: 1; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.chat__sched-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat__sched-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--chat-fg);
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat__sched-status {
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
    border-radius: 0.35rem;
    background: rgba(37, 99, 235, 0.14);
    color: var(--chat-accent);
    font-weight: 600;
    flex-shrink: 0;
}

.chat__sched-when,
.chat__sched-channel {
    font-size: 0.75rem;
    color: var(--chat-muted);
}

.chat__prompt-text {
    font-size: 0.8125rem;
    color: var(--chat-fg);
    line-height: 1.5;
}
.chat__prompt-meta {
    font-size: 0.7rem;
    color: var(--chat-muted);
}

.chat__body {
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 0;
}

.chat__screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}
.chat__screen[hidden] { display: none; }

.chat__screen--list {
    padding: 1rem 1rem 0;
    overflow-y: auto;
    gap: 0.55rem;
}

.role {
    text-align: left;
    width: 100%;
    background: var(--chat-soft);
    border: 1px solid var(--chat-border);
    border-radius: 0.6rem;
    padding: 0.7rem 0.85rem;
    cursor: pointer;
    color: var(--chat-fg);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    margin-bottom: 0.55rem;
}

.role:hover,
.role.is-target {
    background: var(--chat-accent-soft);
    border-color: rgba(37, 99, 235, 0.4);
}
.role.is-target {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.role__name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--chat-fg);
    margin-bottom: 0.15rem;
}

.role__desc {
    font-size: 0.8125rem;
    color: var(--chat-muted);
    line-height: 1.4;
}

.role__foot {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--chat-muted);
    padding: 0.65rem 0.5rem;
    border-top: 1px dashed var(--chat-border);
    margin-top: 0.35rem;
}

.chat__messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.85rem 0.85rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.15) transparent;
}
.chat__messages::-webkit-scrollbar { width: 6px; }
.chat__messages::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.15); border-radius: 3px; }

.chat__msg {
    max-width: 86%;
    padding: 0.55rem 0.8rem;
    border-radius: 0.85rem;
    font-size: 0.875rem;
    line-height: 1.5;
    word-break: break-word;
    animation: chat-pop-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chat__msg p { margin: 0 0 0.4rem; }
.chat__msg p:last-child { margin-bottom: 0; }
.chat__msg b { font-weight: 600; color: var(--chat-fg); }

.chat__msg--user {
    align-self: flex-end;
    background: var(--chat-accent);
    color: #fff;
    border-bottom-right-radius: 0.25rem;
}
.chat__msg--user b { color: #fff; }

.chat__msg--ai {
    align-self: flex-start;
    background: var(--chat-soft);
    border: 1px solid var(--chat-border);
    color: var(--chat-fg);
    border-bottom-left-radius: 0.25rem;
    max-width: 92%;
}

.chat__pos { color: var(--chat-pos); font-weight: 600; }
.chat__neg { color: var(--chat-neg); font-weight: 600; }

.chat__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}
.chat__table th,
.chat__table td {
    padding: 0.3rem 0.4rem;
    text-align: left;
    border-bottom: 1px solid var(--chat-border);
}
.chat__table th {
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--chat-muted);
}
.chat__table tbody tr:last-child td { border-bottom: 0; }
.chat__table td:nth-child(n+2),
.chat__table th:nth-child(n+2) { text-align: right; }

.chat__list {
    margin: 0.3rem 0;
    padding: 0;
    font-size: 0.8125rem;
}
.chat__list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0.1rem;
    border-bottom: 1px solid var(--chat-border);
}
.chat__list li:last-child { border-bottom: 0; }

.chat__quote {
    font-style: italic;
    color: var(--chat-fg);
    background: var(--chat-soft);
    padding: 0.55rem 0.7rem;
    border-radius: 0.5rem;
    border-left: 2px solid var(--chat-accent);
}

.chat__typing {
    align-self: flex-start;
    background: var(--chat-soft);
    border: 1px solid var(--chat-border);
    padding: 0.55rem 0.85rem;
    border-radius: 0.85rem;
    border-bottom-left-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    animation: chat-pop-in 0.25s ease-out;
}
.chat__typing span {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--chat-muted);
    animation: chat-blink 1.2s ease-in-out infinite;
}
.chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.chat__typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chat-blink {
    0%, 80%, 100% { opacity: 0.25; }
    40% { opacity: 1; }
}

@keyframes chat-pop-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.chat__input {
    flex-shrink: 0;
    display: flex;
    gap: 0.4rem;
    padding: 0.55rem 0.65rem 0.65rem;
    border-top: 1px solid var(--chat-border);
    background: #f8fafc;
}
.chat__input input {
    flex: 1 1 auto;
    border: 1px solid var(--chat-border);
    background: #fff;
    color: var(--chat-fg);
    border-radius: 0.55rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.875rem;
    outline: none;
    font-family: inherit;
}
.chat__input input::placeholder { color: var(--chat-muted); }
.chat__input button {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: var(--chat-accent);
    color: #fff;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat__cursor {
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    pointer-events: none;
    transform: translate(40px, 60px);
    transition: transform 0.65s cubic-bezier(0.4, 0.05, 0.25, 1), opacity 0.3s ease;
    z-index: 50;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.18));
}

.chat--manual .chat__cursor { opacity: 0; }
.chat--manual .chat__dot { display: none; }

.chat__ripple {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.45);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.4);
    animation: chat-ripple 0.55s ease-out forwards;
    z-index: 49;
}

@keyframes chat-ripple {
    to {
        transform: translate(-50%, -50%) scale(2.6);
        opacity: 0;
        background: rgba(37, 99, 235, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat__cursor { transition: none; }
    .chat__msg, .chat__typing { animation: none !important; }
    .chat__dot { animation: none; }
}

/* --- Scenarios (Before/After) --- */
.scenarios {
    padding: 4rem 0;
}

.scenario {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.scenario:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.scenario__number {
    flex-shrink: 0;
    font-size: 3rem;
    font-weight: 900;
    color: var(--border-light);
    line-height: 1;
    padding-top: 0.25rem;
}

.scenario__content { flex: 1; }

.scenario__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.scenario__compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.scenario__before,
.scenario__after {
    padding: 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-dim);
}

.scenario__before {
    background: var(--red-dim);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.scenario__after {
    background: var(--green-dim);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.scenario__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.scenario__tag--before { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.scenario__tag--after { background: rgba(37, 99, 235, 0.12); color: var(--accent); }

/* --- Stats --- */
.stats {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats__grid {
    display: flex;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.stats__item { text-align: center; }

.stats__value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1.1;
}

.stats__value--hours {
    color: var(--accent);
}

.stats__label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* --- Features --- */
.features {
    padding: 4rem 0;
}

.features__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-card);
    transition: background var(--transition);
}

.feature:hover {
    background: var(--bg-card-hover);
}

.feature__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--accent-glow);
    color: var(--accent);
}

.feature__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.feature__text {
    font-size: 0.875rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* --- Pricing --- */
.pricing {
    padding: 4rem 0;
}

.pricing__note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pricing__grid--single {
    max-width: 32rem;
    margin: 0 auto;
    grid-template-columns: 1fr;
}

.pricing__card--wide { padding: 2.5rem; }

.pricing__card {
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.pricing__card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.pricing__card--featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, var(--bg-card) 100%);
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.14);
}

.pricing__badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 999px;
}

.pricing__name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
}

.pricing__desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
}

.pricing__price {
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    color: var(--text-dim);
}

.pricing__amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
}

.pricing__amount--custom {
    font-size: 1.375rem;
}

.pricing__features {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
}

.pricing__addons {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 1.25rem;
    padding-top: 0.875rem;
    border-top: 1px dashed var(--border);
}

.pricing__features li {
    font-size: 0.875rem;
    color: var(--text-dim);
    padding-left: 1.5rem;
    position: relative;
}

.pricing__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 14px;
    height: 14px;
    background: var(--accent);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* --- FAQ --- */
.faq {
    padding: 4rem 0;
}

.faq__list {
    max-width: 44rem;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--border);
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq__item[open] .faq__q::after { content: '\2212'; color: var(--accent); }

.faq__a {
    padding-bottom: 1.25rem;
}

.faq__a p {
    font-size: 0.9375rem;
    color: var(--text-dim);
    line-height: 1.7;
}

/* --- Final CTA --- */
.cta-final {
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-final__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
}

.cta-final__text {
    font-size: 1.0625rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    position: relative;
}

/* --- Footer --- */
.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.footer__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.footer__logo img { height: 1.25rem; width: auto; }

.footer__tagline {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer__links--legal {
    margin-top: 0.75rem;
    gap: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    max-width: 56rem;
}
.footer__links--legal a { font-size: 0.8125rem; }
.footer__links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer__links a:hover { color: var(--text); }

.footer__bottom {
    padding-top: 1.5rem;
    text-align: center;
}
.footer__bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.footer__legal-info { margin-bottom: 0.375rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .section-heading { font-size: 1.875rem; }
    .scenario__compare { grid-template-columns: 1fr; }
    .features__list { grid-template-columns: 1fr; }
    .pricing__grid { grid-template-columns: repeat(2, 1fr); }
    .ai__layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .ai__title { font-size: 1.75rem; }
    .audiences__grid { grid-template-columns: repeat(2, 1fr); }
    .chat__frame { max-width: 28rem; margin: 0 auto; }
    .hero__layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero--split { text-align: center; padding-top: 0.5rem; }
    .hero--split .hero__badges,
    .hero--split .hero__cta { justify-content: center; }
    .hero--split .hero__subtitle { margin: 0 auto 2rem; max-width: 38rem; }
    .hero--split .hero__perks { justify-content: center; }
    .hero--split .hero__cta-note { text-align: center; }
    .roles-cross__grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .ai-text__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav__menu, .nav__actions { display: none; }
    .nav__menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 4rem; left: 0; right: 0;
        transform: none;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
        gap: 1rem;
    }
    .nav__menu.active .nav__menu-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
    }
    .nav__burger { display: flex; }

    .hero { padding: 0.5rem 0 3rem; }
    .hero__title { font-size: 2rem; }
    .hero__badges { flex-wrap: wrap; }
    .hero__perks { flex-direction: column; align-items: flex-start; gap: 0.75rem; max-width: 22rem; margin-left: auto; margin-right: auto; }

    .audiences__grid { grid-template-columns: 1fr; }
    .audiences { padding: 4rem 0 2rem; }

    .ai { padding: 3rem 0 4rem; }
    .ai__title { font-size: 1.5rem; }
    .chat__frame { height: 480px; }

    .scenario { flex-direction: column; gap: 1rem; }
    .scenario__number { font-size: 2rem; }

    .stats__grid { gap: 2.5rem; }
    .stats__value { font-size: 2.25rem; }

    .pricing__grid { grid-template-columns: 1fr; }
    .pricing__card--featured { transform: none; }

    .section-heading { font-size: 1.5rem; margin-bottom: 2rem; }

    .cta-final__title { font-size: 1.75rem; }

    .footer__inner { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer__links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero__title { font-size: 1.625rem; }
    .hero__subtitle { font-size: 1rem; }
    .hero__cta { flex-direction: column; width: 100%; }
    .hero__cta .btn { width: 100%; }
    .stats__grid { flex-direction: column; gap: 1.5rem; }
    .chat__frame { height: 440px; }
}

/* --- Cookie banner (compact) --- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1000;
    max-width: 22rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    padding: 0.875rem 1rem;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
.cookie-banner__text {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-dim);
    margin-bottom: 0.625rem;
}
.cookie-banner__text a { color: var(--accent); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.5rem; }
.cookie-banner__btn {
    flex: 1;
    padding: 0.45rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    font-family: var(--font);
}
.cookie-banner__btn--ghost {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--border-light);
}
.cookie-banner__btn--ghost:hover { color: var(--text); border-color: var(--text-dim); }
.cookie-banner__btn--accept {
    background: var(--accent);
    color: #fff;
}
.cookie-banner__btn--accept:hover { background: var(--accent-dark); }
@media (max-width: 640px) {
    .cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-width: none; }
}

/* --- Legal pages --- */
.legal-page { padding: 7rem 0 4rem; }
.legal-page .legal-back { display: inline-flex; }
.legal-page__heading {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.legal-page__meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2.5rem;
}
.legal-page .legal-content {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
}
.legal-page .legal-content h2 {
    color: var(--text);
    font-size: 1.375rem;
    font-weight: 700;
    margin: 2.25rem 0 0.875rem;
    line-height: 1.3;
}
.legal-page .legal-content h3 {
    color: var(--text);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.75rem 0 0.625rem;
}
.legal-page .legal-content p { margin-bottom: 1rem; }
.legal-page .legal-content ul,
.legal-page .legal-content ol { margin: 0 0 1.25rem 1.25rem; }
.legal-page .legal-content ul { list-style: disc; }
.legal-page .legal-content ol { list-style: decimal; }
.legal-page .legal-content li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.legal-page .legal-content a { color: var(--accent); text-decoration: underline; }
.legal-page .legal-content table {
    width: 100%;
    margin: 1.25rem 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.legal-page .legal-content th,
.legal-page .legal-content td {
    border: 1px solid var(--border);
    padding: 0.625rem 0.875rem;
    text-align: left;
    vertical-align: top;
}
.legal-page .legal-content th { color: var(--text); background: var(--bg-surface); }
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-dim);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}
.legal-back:hover { color: var(--text); }

.legal-page__actions {
    display: flex;
    gap: 0.625rem;
    margin: 0 0 2rem;
    flex-wrap: wrap;
}
.legal-page__actions .btn { font-size: 0.875rem; }

@media print {
    @page { size: A4; margin: 1.5cm; }
    html, body { background: #fff !important; color: #000 !important; }
    .header, .footer, .legal-back, .legal-page__actions, .cookie-banner { display: none !important; }
    .legal-page { padding: 0 !important; }
    .container { padding: 0 !important; max-width: 100% !important; }
    .legal-page__heading { font-size: 1.5rem; }
    .legal-page .legal-content { color: #000; font-size: 0.875rem; line-height: 1.5; }
    .legal-page .legal-content h2 { font-size: 1.125rem; margin-top: 1.25rem; page-break-after: avoid; }
    .legal-page .legal-content h3 { font-size: 1rem; page-break-after: avoid; }
    .legal-page .legal-content a { color: #000 !important; text-decoration: underline; }
    .legal-page .legal-content table { page-break-inside: avoid; font-size: 0.8125rem; }
    .legal-page .legal-content p { orphans: 3; widows: 3; }
}

/* --- Signup form: consent block --- */
.signup-consent { margin: 0.75rem 0 1rem; }
.signup-consent__row {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
    font-size: 12px;
    line-height: 1.45;
    color: #444;
}
.signup-consent__row input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.signup-consent__row a { text-decoration: underline; }
.signup-consent__row.is-required::after { content: ''; }
button[disabled].btn-primary,
.btn-primary[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

