:root {
    color-scheme: dark;
    --bg: #111318;
    --bg-strong: #0b0d12;
    --surface: rgba(23, 26, 33, 0.86);
    --surface-solid: #171a21;
    --surface-soft: #20242d;
    --line: #2b313c;
    --text: #f4f4f5;
    --muted: #9aa4b2;
    --faint: #687386;
    --blue: #2688eb;
    --blue-strong: #1f7bdd;
    --green: #10a37f;
    --amber: #f2c94c;
    --rose: #ff6b7d;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    --radius: 8px;
    --max: 1180px;
    --brand-logo-filter: none;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f7f7f4;
    --bg-strong: #ffffff;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-solid: #ffffff;
    --surface-soft: #eef1f5;
    --line: #d9dee7;
    --text: #1f2328;
    --muted: #697383;
    --faint: #8a94a3;
    --shadow: 0 18px 50px rgba(32, 41, 57, 0.13);
    --brand-logo-filter: none;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--blue) 12%, transparent), transparent 580px),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--blue) 58%, white);
    outline-offset: 3px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 20;
    display: flex;
    width: min(calc(100% - 32px), var(--max));
    min-height: 64px;
    transform: translateX(-50%);
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
    background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    overflow: hidden;
    box-shadow: none;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    filter: var(--brand-logo-filter);
}

.brand-name,
.brand-note {
    display: block;
}

.brand-name {
    font-weight: 800;
    line-height: 1;
}

.brand-note {
    margin-top: 3px;
    max-width: 230px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.15;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: var(--muted);
    font-size: 14px;
}

.site-nav a:hover {
    color: var(--text);
}

.header-actions,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button,
.ghost-button,
.primary-button,
.text-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-button {
    width: 42px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.icon-button svg,
.text-link svg {
    width: 18px;
    height: 18px;
}

.ghost-button,
.primary-button {
    padding: 0 18px;
    font-weight: 700;
}

.ghost-button {
    background: color-mix(in srgb, var(--surface-solid) 58%, transparent);
    color: var(--text);
}

.ghost-button.dark {
    background: color-mix(in srgb, var(--bg-strong) 65%, transparent);
}

.primary-button {
    border-color: color-mix(in srgb, var(--blue) 70%, white 8%);
    background: var(--blue);
    color: #fff;
    box-shadow: 0 14px 35px color-mix(in srgb, var(--blue) 32%, transparent);
}

.primary-button.large {
    min-height: 52px;
    padding: 0 24px;
}

.icon-button:hover,
.ghost-button:hover,
.primary-button:hover,
.text-link:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--blue) 55%, var(--line));
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 130px 24px 64px;
    border-bottom: 1px solid var(--line);
}

@media (min-width: 1040px) {
    .hero-section {
        min-height: calc(100vh - 120px);
        display: flex;
        align-items: center;
        padding: 120px 24px 60px;
    }
}

.hero-section::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 72px;
    content: "";
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.42;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, #000 16%, transparent 86%);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(calc(100% - 48px), var(--max));
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 1040px) {
    .hero-container {
        grid-template-columns: 1fr 1.15fr;
        gap: 48px;
        align-items: center;
    }
}

.hero-product-visual {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
    justify-self: end;
    transform: perspective(1200px) rotateX(4deg) rotateY(-8deg);
    transform-origin: center right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    opacity: 0.96;
}

.hero-product-visual:hover {
    transform: perspective(1200px) rotateX(1deg) rotateY(-3deg) translateY(-2px);
}

.visual-shell {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-solid) 94%, #000 10%);
    box-shadow: var(--shadow);
}

.visual-topbar {
    display: flex;
    height: 42px;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.visual-topbar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rose);
}

.visual-topbar span:nth-child(2) {
    background: var(--amber);
}

.visual-topbar span:nth-child(3) {
    background: var(--green);
}

.visual-topbar strong {
    margin-left: auto;
    color: var(--muted);
    font-weight: 600;
}

.visual-body {
    display: grid;
    min-height: 420px;
    grid-template-columns: 170px minmax(260px, 1fr) 170px;
}

@media (max-width: 640px) {
    .visual-body {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .visual-sidebar,
    .visual-panel {
        display: none;
    }
}

.visual-sidebar,
.visual-panel,
.visual-chat {
    padding: 18px;
}

.visual-sidebar,
.visual-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-color: var(--line);
    color: var(--muted);
    font-size: 12px;
}

.visual-sidebar {
    border-right: 1px solid var(--line);
}

.visual-panel {
    border-left: 1px solid var(--line);
}

.visual-new-chat,
.visual-sidebar span,
.visual-panel span {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: color-mix(in srgb, var(--surface-soft) 55%, transparent);
}

.visual-new-chat {
    background: var(--blue);
    color: #fff;
    font-weight: 700;
}

.visual-panel b {
    font-size: 16px;
    color: var(--text);
}

.visual-chat {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.visual-message {
    max-width: 82%;
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.45;
}

.visual-message p {
    margin: 8px 0 0;
    color: var(--muted);
}

.visual-message.user {
    align-self: flex-end;
    background: var(--blue);
    color: #fff;
}

.visual-message.ai {
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-soft) 70%, transparent);
}

.visual-models {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.visual-models span {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 9px 6px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(52px, 8.5vw, 116px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    font-weight: 850;
}

h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 62px);
    line-height: 0.98;
    letter-spacing: 0;
}

h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.16;
}

.hero-lead {
    max-width: 620px;
    margin: 28px 0 30px;
    color: var(--muted);
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.45;
}

.text-link {
    border-color: transparent;
    color: var(--text);
    font-weight: 750;
}

.proof-strip {
    position: relative;
    z-index: 3;
    display: grid;
    width: min(calc(100% - 48px), var(--max));
    margin: -34px auto 0;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.proof-strip div {
    min-width: 0;
    padding: 22px;
    border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
    border-right: 0;
}

.proof-strip strong,
.proof-strip span {
    display: block;
}

.proof-strip strong {
    font-size: 28px;
    line-height: 1;
}

.proof-strip span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.section {
    width: min(calc(100% - 48px), var(--max));
    margin: 0 auto;
    padding: 108px 0 0;
}

.section-heading {
    display: block;
    max-width: 980px;
    margin-bottom: 40px;
}

.section-heading.narrow {
    max-width: 820px;
}

.problem-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
}

.problem-copy {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 46px);
    background: var(--surface-solid);
}

.problem-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.55;
}

.problem-copy p + p {
    margin-top: 22px;
}

.friction-list {
    display: grid;
    gap: 12px;
}

.friction-list div,
.feature-stack div,
.outcome-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
}

.friction-list div {
    display: flex;
    min-height: 86px;
    align-items: center;
    gap: 14px;
    padding: 18px;
    color: var(--text);
}

.friction-list svg,
.outcome-grid svg,
.feature-stack svg,
.pain-solution-grid svg {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    color: var(--blue);
}

.pain-solution-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pain-solution-grid article {
    display: flex;
    min-height: 330px;
    flex-direction: column;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--blue) 9%, transparent), transparent 46%),
        color-mix(in srgb, var(--surface-solid) 88%, transparent);
    padding: 26px;
}

.pain-solution-grid h3 {
    max-width: 95%;
}

.pain-solution-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.pain-solution-grid strong {
    display: block;
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

.outcome-grid p,
.platform-copy p {
    color: var(--muted);
    line-height: 1.55;
}

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

.outcome-grid article {
    min-height: 270px;
    padding: 28px;
}

.outcome-grid h3 {
    margin-top: 28px;
}

.platform-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
    gap: 56px;
    align-items: center;
}

.platform-copy p {
    max-width: 560px;
    margin: 24px 0 26px;
    font-size: 18px;
}

.feature-stack {
    display: grid;
    gap: 12px;
}

.feature-stack div {
    display: grid;
    min-height: 92px;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.pricing-section {
    scroll-margin-top: 104px;
}

.pricing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 18px;
    align-items: stretch;
}

.pricing-card,
.commerce-details article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-solid);
}

.pricing-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(26px, 4vw, 46px);
    box-shadow: var(--shadow);
}

.pricing-label {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    font-weight: 750;
}

.pricing-value {
    margin: 14px 0 0;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 900;
    line-height: 1;
}

.pricing-value span {
    color: var(--muted);
    font-size: 18px;
    font-weight: 650;
}

.pricing-summary,
.pricing-warning,
.pricing-fineprint,
.commerce-details p {
    color: var(--muted);
    line-height: 1.55;
}

.pricing-summary {
    max-width: 720px;
    margin: 20px 0 0;
    font-size: 18px;
}

.pricing-features {
    display: grid;
    gap: 13px;
    margin: 28px 0;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    list-style: none;
}

.pricing-features li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px;
    align-items: start;
    line-height: 1.45;
}

.pricing-features svg,
.commerce-details svg {
    width: 22px;
    color: var(--blue);
}

.pricing-warning {
    margin: 0 0 24px;
    padding: 14px 16px;
    border-left: 3px solid var(--amber);
    background: color-mix(in srgb, var(--amber) 8%, transparent);
}

.pricing-warning strong {
    color: var(--text);
}

.pricing-action {
    align-self: flex-start;
}

.pricing-fineprint {
    margin: 14px 0 0;
    font-size: 13px;
}

.commerce-details {
    display: grid;
    gap: 12px;
}

.commerce-details article {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 14px;
    padding: 24px;
}

.commerce-details h3,
.commerce-details p {
    margin: 0;
}

.commerce-details p + p {
    margin-top: 10px;
}

.commerce-details a,
.commerce-details address a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.commerce-details address {
    margin-top: 10px;
    color: var(--muted);
    font-style: normal;
    line-height: 1.65;
}

.cta-section {
    width: min(calc(100% - 48px), 940px);
    margin: 110px auto 0;
    padding: 56px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--blue) 18%, transparent), transparent 54%),
        var(--surface-solid);
    text-align: center;
    box-shadow: var(--shadow);
}

.cta-section p:not(.eyebrow) {
    max-width: 620px;
    margin: 20px auto 30px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.5;
}

.centered {
    justify-content: center;
}

.site-footer {
    display: grid;
    width: min(calc(100% - 48px), var(--max));
    margin: 80px auto 0;
    padding: 28px 0 42px;
    grid-template-columns: 0.65fr 1.6fr auto;
    gap: 28px;
    align-items: start;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.site-footer strong,
.site-footer span {
    display: block;
}

.site-footer strong {
    color: var(--text);
    font-weight: 900;
}

.site-footer address {
    font-style: normal;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--text);
    text-decoration: underline;
}

.auth-consents {
    display: grid;
    gap: 6px;
    margin: 2px 0 0;
    padding: 10px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.auth-form .auth-consents > label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-height: auto;
    padding: 2px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    cursor: pointer;
}

.auth-form .auth-consents input[type="checkbox"] {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--blue);
    cursor: pointer;
}

.auth-form .auth-consents > label > span { min-width: 0; font-size: 12px; line-height: 1.35; }
.auth-consents a { color: var(--blue); }

.hidden {
    display: none !important;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.auth-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

body.has-auth-modal .cookie-banner,
body.has-auth-modal .cookie-modal-overlay,
body:has(.auth-modal.is-open) .cookie-banner,
body:has(.auth-modal.is-open) .cookie-modal-overlay {
    display: none !important;
}

.auth-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.74);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-dialog {
    position: relative;
    width: min(100%, 460px);
    max-height: min(92vh, 92dvh);
    margin: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-solid);
    box-shadow: var(--shadow);
    padding: 20px 22px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.auth-dialog::-webkit-scrollbar {
    width: 5px;
}

.auth-dialog::-webkit-scrollbar-track {
    background: transparent;
}

.auth-dialog::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 3px;
}

.auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
}

.auth-close svg {
    width: 18px;
    height: 18px;
}

.auth-dialog-head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-right: 38px;
}

.auth-dialog-head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
}

.auth-dialog-head p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 14px 0 16px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--bg-strong) 58%, transparent);
}

.auth-tab {
    min-height: 36px;
    padding: 6px 12px;
    border: 0;
    border-radius: calc(var(--radius) - 2px);
    background: transparent;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 700;
}

.auth-tab.is-active {
    background: var(--blue);
    color: #fff;
}

.auth-form {
    display: grid;
    gap: 11px;
}

.auth-form label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 13px;
}

.auth-form input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--bg-strong) 72%, transparent);
    color: var(--text);
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}

.auth-form input:focus {
    border-color: var(--blue);
}

.auth-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 380px) {
    .auth-form-row-2col {
        grid-template-columns: 1fr;
        gap: 11px;
    }
}

.auth-password-field {
    position: relative;
    display: block;
}

.auth-password-field input {
    padding-right: 44px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    transform: translateY(-50%);
}

.auth-password-toggle:hover {
    color: var(--text);
}

.auth-password-toggle:focus-visible {
    color: var(--text);
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.auth-password-toggle svg {
    width: 16px;
    height: 16px;
}

.auth-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 2px;
    font-size: 14.5px;
    font-weight: 600;
}

.auth-link {
    justify-self: center;
    border: 0;
    background: transparent;
    color: var(--blue);
    font-weight: 700;
}

.auth-hint,
.auth-message {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.auth-message {
    min-height: 18px;
    text-align: center;
}

.auth-message.is-error {
    color: #ff8c9a;
}

.auth-message.is-ok,
.auth-hint.is-ok {
    color: #28c99a;
}

.auth-hint.is-error {
    color: #ff8c9a;
}

@media (max-width: 1080px) {
    .site-nav {
        display: none;
    }

    .problem-layout,
    .platform-section,
    .pricing-layout {
        grid-template-columns: 1fr;
    }

    .pain-solution-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 879px) {
    .hero-section {
        padding: 110px 16px 44px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-copy {
        max-width: 580px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-product-visual {
        transform: none;
        max-width: 540px;
        margin: 0 auto;
        justify-self: center;
        opacity: 1;
    }

    .proof-strip {
        margin: 16px auto 0;
    }
}

@media (max-width: 800px) {
    .site-header {
        top: 10px;
        width: min(calc(100% - 20px), var(--max));
    }

    .brand {
        min-width: auto;
    }

    .brand-note {
        display: block;
        max-width: 180px;
        font-size: 11px;
    }

    .site-header .ghost-button {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .primary-button {
        padding: 0 14px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

.proof-strip,
.outcome-grid,
.pain-solution-grid {
    grid-template-columns: 1fr;
}

    .proof-strip div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .proof-strip div:last-child {
        border-bottom: 0;
    }

    .section,
    .proof-strip,
    .cta-section,
    .site-footer {
        width: min(calc(100% - 28px), var(--max));
    }

    .section {
        padding-top: 78px;
    }

    .section-heading {
        margin-bottom: 28px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 124px 16px 36px;
    }

    .hero-copy {
        text-align: left;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-product-visual {
        max-width: 100%;
    }

    .visual-body {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .visual-sidebar,
    .visual-panel {
        display: none;
    }

    .visual-chat {
        padding: 14px 12px;
        gap: 12px;
    }

    .visual-message {
        max-width: 100%;
        font-size: 13px;
        padding: 10px 12px;
    }

    .visual-models {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .visual-models span {
        padding: 6px 2px;
        font-size: 11px;
    }

    .problem-copy p {
        font-size: 17px;
    }

    .cta-section {
        margin-top: 82px;
        padding: 34px 20px;
    }

    .site-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .footer-links {
        justify-items: start;
    }
}

@media (max-width: 480px) {
    .auth-modal {
        padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    }

    .auth-dialog {
        padding: 16px 14px;
        max-height: calc(100dvh - 16px);
        border-radius: 14px;
    }

    .auth-dialog-head h2 {
        font-size: 22px;
    }

    .auth-tabs {
        margin: 10px 0 12px;
    }

    .auth-form label span {
        font-size: 12.5px;
    }

    .auth-consents label {
        font-size: 11.5px;
    }
}

@media (max-height: 750px) {
    .auth-dialog {
        padding: 14px 18px;
    }

    .auth-dialog-head h2 {
        font-size: 20px;
    }

    .auth-dialog-head p {
        display: none;
    }

    .auth-tabs {
        margin: 8px 0 10px;
    }

    .auth-form {
        gap: 8px;
    }

    .auth-form input:not([type="checkbox"]):not([type="radio"]) {
        min-height: 38px;
        font-size: 13.5px;
    }

    .auth-consents {
        gap: 4px;
        padding-top: 6px;
    }

    .auth-form .auth-consents > label {
        padding: 1px 0;
        font-size: 11.5px;
    }

    .auth-form .auth-consents > label > span {
        font-size: 11.5px;
    }

    .auth-submit {
        min-height: 40px;
    }
}

@media (max-width: 460px) {
    .site-header [data-theme-toggle] {
        display: none;
    }

    .site-header .brand {
        gap: 8px;
    }

    .site-header .brand-note {
        max-width: 150px;
    }

    .site-header .primary-button {
        padding-inline: 8px;
        font-size: 12px;
    }
}

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

/* === Стили 1 этапа: Flash Sale и витрина 3 тарифов === */
.flash-sale-strip {
    margin-bottom: 28px;
    padding: 12px 20px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.14));
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 4px 20px -4px rgba(245, 158, 11, 0.15);
}

.flash-sale-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.flash-sale-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.flash-sale-text {
    flex: 1;
    min-width: 260px;
    font-size: 14.5px;
    font-weight: 600;
}

.flash-sale-timer-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
}

.flash-sale-timer-wrap strong {
    font-family: monospace;
    font-size: 16px;
    color: var(--fg);
    background: var(--surface-solid);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.pricing-subtitle {
    margin: 10px auto 0;
    max-width: 680px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.pricing-grid-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-top: 32px;
}

@media (max-width: 1024px) {
    .pricing-grid-three {
        grid-template-columns: 1fr;
    }
}

.pricing-card.tier-all-in-one.is-featured {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 12px 36px -8px rgba(245, 158, 11, 0.22);
    position: relative;
}

.pricing-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--blue);
    font-size: 12px;
    font-weight: 750;
    margin-bottom: 12px;
}

.pricing-badge.badge-neutral {
    background: rgba(148, 163, 184, 0.15);
    color: var(--muted);
}

.pricing-badge.badge-vip {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-weight: 850;
}

.pricing-title {
    margin: 0;
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.pricing-target {
    margin: 6px 0 14px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.4;
    min-height: 38px;
}

.pricing-period-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: var(--surface-muted, rgba(148, 163, 184, 0.08));
    padding: 3px;
    border-radius: 8px;
    margin: 12px 0 16px;
}

.period-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.period-btn:hover {
    color: var(--fg);
}

.period-btn.is-active {
    background: var(--surface-solid, #fff);
    color: var(--fg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.period-btn small {
    display: block;
    font-size: 10px;
    color: #10b981;
}

.pricing-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 12px 0 4px;
}

.pricing-amount {
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}

.pricing-period {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.pricing-savings-note {
    margin: 4px 0 10px;
    font-size: 12.5px;
    color: var(--muted);
    min-height: 20px;
}

.pricing-savings-note.is-highlight {
    color: var(--blue);
    font-weight: 650;
}

.pricing-savings-note.is-gold {
    color: #d97706;
    font-weight: 750;
}

.pricing-hold-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--blue);
    font-size: 12px;
    font-weight: 650;
    margin-bottom: 8px;
}

.pricing-card-foot {
    margin-top: auto;
    padding-top: 18px;
}

.btn-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 16px -2px rgba(245, 158, 11, 0.4) !important;
}

.btn-gold:hover {
    filter: brightness(1.08);
}

.feature-not-included {
    opacity: 0.72;
    color: var(--muted);
}

.feature-vip-highlight {
    color: var(--fg);
    font-weight: 600;
}

.pricing-diff-banner {
    margin-top: 32px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.08);
}

.pricing-diff-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.pricing-diff-header h4 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 750;
    color: var(--fg);
}

.pricing-diff-header p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.pricing-diff-table-wrap {
    overflow-x: auto;
}

.pricing-diff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.pricing-diff-table th,
.pricing-diff-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.pricing-diff-table th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 700;
    color: var(--fg);
}

.pricing-diff-table th.col-vip,
.pricing-diff-table td.col-vip {
    background: rgba(245, 158, 11, 0.04);
}

.pricing-diff-table td.highlight-cell {
    color: #d97706;
}

.pricing-diff-table tr:last-child td {
    border-bottom: none;
}

.pill-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--surface-solid);
    border: 1px solid var(--line);
}

.pill-badge.is-gold {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #d97706;
}

.pricing-bottom-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 900px) {
    .pricing-bottom-details {
        grid-template-columns: 1fr;
    }
}


