html {
    --bg: #ffffff;
    --surface: #f7f8fa;
    --surface-2: #eef1f4;
    --border: #e1e5e9;
    --border-strong: #cfd5db;
    --text: #0b0d0f;
    --muted: #707983;
    --inverse: #0b0d0f;
    --inverse-text: #ffffff;
    --accent: #0788ff;
    --accent-strong: #0074df;
    --accent-soft: rgba(7, 136, 255, 0.09);
    --accent-line: rgba(7, 136, 255, 0.32);
    --success: #18a86b;
    --success-soft: rgba(24, 168, 107, 0.10);
    --danger: #d84a4a;
    --danger-soft: rgba(216, 74, 74, 0.08);
    --shadow-xs:
        0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-sm:
        0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-md:
        0 18px 50px rgba(0, 0, 0, 0.08);
    --shadow-lg:
        0 30px 90px rgba(0, 0, 0, 0.12);
    --content: 1180px;
    --content-wide: 1240px;
    --radius-xs: 7px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition:
        180ms cubic-bezier(.2, .7, .2, 1);
    scroll-behavior: smooth;
}

html[data-theme="dark"] {
    --bg: #080a0c;
    --surface: #101317;
    --surface-2: #171b20;
    --border: #252b32;
    --border-strong: #343b43;
    --text: #f3f6f8;
    --muted: #99a3ad;
    --inverse: #ffffff;
    --inverse-text: #090b0d;
    --accent: #42b4ff;
    --accent-strong: #20a1f5;
    --accent-soft: rgba(66, 180, 255, 0.13);
    --accent-line: rgba(66, 180, 255, 0.38);
    --success: #39c987;
    --success-soft: rgba(57, 201, 135, 0.12);
    --danger: #ff6666;
    --danger-soft: rgba(255, 102, 102, 0.10);
    --shadow-xs:
        0 2px 8px rgba(0, 0, 0, 0.18);
    --shadow-sm:
        0 10px 30px rgba(0, 0, 0, 0.24);
    --shadow-md:
        0 20px 60px rgba(0, 0, 0, 0.32);
    --shadow-lg:
        0 30px 100px rgba(0, 0, 0, 0.46);
}


@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        --bg: #080a0c;
        --surface: #101317;
        --surface-2: #171b20;
        --border: #252b32;
        --border-strong: #343b43;
        --text: #f3f6f8;
        --muted: #99a3ad;
        --inverse: #ffffff;
        --inverse-text: #090b0d;
        --accent: #42b4ff;
        --accent-strong: #20a1f5;
        --accent-soft: rgba(66, 180, 255, 0.13);
        --accent-line: rgba(66, 180, 255, 0.38);
        --success: #39c987;
        --success-soft: rgba(57, 201, 135, 0.12);
        --danger: #ff6666;
        --danger-soft: rgba(255, 102, 102, 0.10);
        --shadow-xs:
            0 2px 8px rgba(0, 0, 0, 0.18);
        --shadow-sm:
            0 10px 30px rgba(0, 0, 0, 0.24);
        --shadow-md:
            0 20px 60px rgba(0, 0, 0, 0.32);
        --shadow-lg:
            0 30px 100px rgba(0, 0, 0, 0.46);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}


body {
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition:
        background-color 180ms ease,
        color 180ms ease;
}


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


button,
input,
select,
textarea {
    font: inherit;
}


button {
    cursor: pointer;
}


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


h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}


::selection {
    background: var(--accent);
    color: #ffffff;
}


:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}


[hidden] {
    display: none !important;
}

main {
    min-width: 0;
}

.container {
    width: min(
        var(--content),
        calc(100% - 40px)
    );
    margin-inline: auto;
}


.section {
    width: min(
        var(--content),
        calc(100% - 40px)
    );
    margin-inline: auto;
    padding: 110px 0;
}


.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}


.eyebrow::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow:
        0 0 0 4px var(--accent-soft);
}


.muted {
    color: var(--muted);
}


.small {
    font-size: 12px;
}


.title {
    letter-spacing: -.045em;
}


.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition:
        transform var(--transition),
        border-color var(--transition),
        background-color var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}


.btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-line);
    box-shadow:
        0 8px 24px var(--accent-soft);
}


.btn.dark {
    background: #e5e7eb;
    color: #111827;
    border-color: #e5e7eb;
}


.btn.dark:hover {
    border-color: var(--accent);
    box-shadow:
        0 10px 30px var(--accent-soft);
}


.btn.full {
    width: 100%;
}



.btn:active {
    transform: translateY(0);
}


.nav {
    width: min(
        var(--content),
        calc(100% - 40px)
    );
    min-height: 72px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid var(--border);
}


.brand {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.045em;
    white-space: nowrap;
}


.nav nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}


.nav nav a {
    position: relative;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    transition:
        color var(--transition);
}


.nav nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition:
        transform var(--transition);
}


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


.nav nav a:hover::after {
    transform: scaleX(1);
}


.actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
}


.actions > a:not(.btn) {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    transition:
        color var(--transition);
}


.actions > a:not(.btn):hover {
    color: var(--text);
}


.actions > button,
.nav > .actions > button {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg);
    color: var(--muted);
    transition:
        color var(--transition),
        border-color var(--transition),
        background-color var(--transition);
}


.actions > button:hover {
    color: var(--text);
    border-color: var(--accent-line);
    background: var(--surface);
}


/* =========================================================
   06. HERO
   ========================================================= */

.hero {
    width: min(
        var(--content),
        calc(100% - 40px)
    );
    min-height:
        calc(100svh - 72px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    padding: 48px 0 58px;
    position: relative;
    border-bottom: 1px solid var(--border);
}


.hero-content {
    width: 100%;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(390px, .82fr);
    align-items: center;
    gap: 70px;
}


.hero-copy {
    max-width: 650px;
}


.hero-copy h1 {
    max-width: 690px;
    margin: 18px 0 24px;
    font-size:
        clamp(44px, 5vw, 68px);
    line-height: .99;
    letter-spacing: -.065em;
    font-weight: 700;
}


.hero-copy h1 em {
    color: var(--muted);
    font-style: normal;
}


.hero-lead {
    max-width: 610px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}


.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
}


.hero-note {
    max-width: 550px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}


.hero-note-mark {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   07. HERO VISUAL
   ========================================================= */

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 470px;
    margin-left: auto;
    isolation: isolate;
}


.hero-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            var(--accent-soft),
            transparent 68%
        );
    filter: blur(18px);
    z-index: -2;
    animation:
        heroGlow 6s ease-in-out infinite;
}


.hero-mock {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            var(--surface),
            var(--bg)
        );
    box-shadow:
        var(--shadow-lg);
    transform:
        perspective(1200px)
        rotateY(-3deg)
        rotateX(2deg);
    transition:
        transform 500ms cubic-bezier(.2,.8,.2,1),
        box-shadow 400ms ease;
    animation:
        heroFloat 7s ease-in-out infinite;
}


.hero-mock:hover {
    transform:
        perspective(1200px)
        rotateY(0deg)
        rotateX(0deg)
        translateY(-6px);
    box-shadow:
        0 35px 100px rgba(0, 0, 0, .15);
}


.hero-mock::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .35;
    background-image:
        linear-gradient(
            var(--border) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            var(--border) 1px,
            transparent 1px
        );
    background-size: 28px 28px;
    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 70%
        );
}


.mock-top {
    position: relative;
    z-index: 2;
    min-height: 54px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background:
        color-mix(
            in srgb,
            var(--surface) 88%,
            transparent
        );
}


.mock-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
}


.mock-brand-mark {
    width: 23px;
    height: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--inverse);
    color: var(--inverse-text);
    font-size: 11px;
}


.mock-status {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 9px;
}


.mock-body {
    position: relative;
    z-index: 2;
    padding: 17px;
}


.mock-step {
    min-height: 68px;
    display: grid;
    grid-template-columns:
        32px
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 12px;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 13px;
    transition:
        border-color var(--transition),
        background-color var(--transition),
        transform var(--transition);
}


.mock-step:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    transform: translateX(3px);
}


.mock-step.active {
    border-color: var(--accent-line);
    background:
        linear-gradient(
            90deg,
            var(--accent-soft),
            transparent
        );
}


.mock-step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}


.mock-step.active .mock-step-number {
    background: var(--accent);
    color: #fff;
}


.mock-step > div:nth-child(2) {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}


.mock-step strong {
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.mock-step small {
    color: var(--muted);
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.mock-label {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}


.mock-check,
.mock-arrow {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    font-size: 10px;
    font-weight: 700;
}


.mock-arrow {
    background: var(--accent-soft);
    color: var(--accent);
}


.mock-divider {
    width: 1px;
    height: 15px;
    margin: -1px 0 -1px 25px;
    background: var(--border);
}


.mock-data {
    margin-top: 12px;
    padding: 13px;
    border-top: 1px solid var(--border);
}


.mock-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 8px;
}


.mock-tags span {
    padding: 5px 8px;

    border: 1px solid var(--border);

    border-radius: 999px;

    background: var(--bg);

    color: var(--muted);

    font-size: 9px;

    transition:
        color var(--transition),
        border-color var(--transition),
        background-color var(--transition);
}


.mock-tags span:hover {
    color: var(--accent);
    border-color: var(--accent-line);
    background: var(--accent-soft);
}


.mock-generator {
    margin-top: 12px;

    padding: 13px;

    border: 1px solid var(--border);

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--surface),
            var(--bg)
        );
}


.generator-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 600;
}


.generator-head strong {
    color: var(--accent);
}


.generator-line {
    height: 4px;

    overflow: hidden;

    border-radius: 999px;

    background: var(--surface-2);
}


.generator-line span {
    display: block;

    width: 78%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--accent-strong),
            var(--accent)
        );

    box-shadow:
        0 0 12px var(--accent-soft);

    animation:
        progressPulse 2.8s ease-in-out infinite;
}


.generator-status {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-top: 8px;

    color: var(--muted);

    font-size: 9px;
}


.status-pulse,
.floating-dot {
    width: 6px;
    height: 6px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 0 4px var(--accent-soft);

    animation:
        statusPulse 2s ease-in-out infinite;
}


.mock-footer {
    position: relative;
    z-index: 2;

    min-height: 40px;

    padding: 0 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 9px;
}


.hero-floating {
    position: absolute;

    z-index: 5;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 8px 11px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background:
        color-mix(
            in srgb,
            var(--bg) 92%,
            transparent
        );

    box-shadow: var(--shadow-sm);

    backdrop-filter: blur(12px);

    color: var(--muted);

    font-size: 9px;
    font-weight: 600;

    white-space: nowrap;
}


.hero-floating-top {
    top: 12%;
    right: -18px;

    animation:
        floatingTop 5s ease-in-out infinite;
}


.hero-floating-bottom {
    left: -24px;
    bottom: 12%;

    color: var(--success);

    animation:
        floatingBottom 6s ease-in-out infinite;
}


.hero-floating-bottom span {
    width: 16px;
    height: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--success-soft);

    font-size: 8px;
}


/* =========================================================
   08. VALUE BAR
   ========================================================= */

.value-bar {
    width: min(
        var(--content),
        calc(100% - 40px)
    );

    margin-inline: auto;

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


.value-bar-inner {
    min-height: 82px;

    display: grid;

    grid-template-columns:
        1fr
        1px
        1fr
        1px
        1fr;

    align-items: center;

    gap: 26px;
}


.value-item {
    display: flex;
    align-items: center;
    gap: 11px;
}


.value-icon {
    width: 29px;
    height: 29px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 8px;

    color: var(--accent);

    font-size: 8px;
    font-weight: 700;
}


.value-item div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}


.value-item strong {
    font-size: 12px;
}


.value-item span:not(.value-icon) {
    color: var(--muted);

    font-size: 10px;
}


.value-line {
    width: 1px;
    height: 24px;

    background: var(--border);
}


/* =========================================================
   09. SECTION HEADINGS
   ========================================================= */

.section-heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, .7fr);

    align-items: end;

    gap: 70px;

    margin-bottom: 52px;
}


.section-heading h2,
.flow-header h2 {
    max-width: 650px;

    margin: 13px 0 0;

    font-size:
        clamp(34px, 4vw, 50px);

    line-height: 1.03;

    letter-spacing: -.055em;
}


.section-heading p,
.flow-header p {
    max-width: 500px;

    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   WHY — RISK WARNING
   ========================================================= */

.risk-warning {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    margin-top: 28px;
    padding-top: 22px;

    border-top: 1px solid var(--border);
}


.risk-warning-mark {
    flex: 0 0 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 26px;
    height: 26px;

    border: 1px solid var(--border);
    border-radius: 50%;

    font-size: 13px;
    font-weight: 700;

    color: var(--text);
}


.risk-warning div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 5px;
}


.risk-warning strong {
    font-size: 13px;
    line-height: 1.4;
}


.risk-warning span {
    color: var(--muted);

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   10. WHY
   ========================================================= */

.why-section {
    padding-top: 100px;
}


.risk-layout {
    display: grid;

    grid-template-columns:
        minmax(0, .85fr)
        minmax(0, 1.15fr);

    gap: 18px;
}


.risk-main {
    position: relative;

    min-height: 330px;

    padding: 30px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background:
        radial-gradient(
            circle at 90% 10%,
            var(--accent-soft),
            transparent 38%
        ),
        var(--surface);
}


.risk-main::after {
    content: "152";

    position: absolute;

    right: -10px;
    bottom: -48px;

    color: var(--border);

    font-size: 190px;
    font-weight: 700;

    letter-spacing: -.1em;

    line-height: 1;

    pointer-events: none;
}


.risk-main > * {
    position: relative;
    z-index: 1;
}


.risk-main-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.risk-number {
    color: var(--accent);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .1em;
}


.risk-label {
    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;
    letter-spacing: .1em;
}


.risk-main h3 {
    max-width: 440px;

    margin: 55px 0 14px;

    font-size: 25px;
    line-height: 1.15;

    letter-spacing: -.035em;
}


.risk-main p {
    max-width: 470px;

    margin: 0;

    color: var(--muted);

    font-size: 13px;
}


.risk-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}


.risk-item {
    min-width: 0;

    padding: 20px;

    display: grid;

    grid-template-columns: 28px 1fr;

    gap: 12px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--bg);

    transition:
        transform var(--transition),
        border-color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}


.risk-item:hover {
    transform: translateY(-3px);

    border-color: var(--accent-line);

    background: var(--surface);

    box-shadow: var(--shadow-sm);
}


.risk-item > span {
    color: var(--accent);

    font-size: 10px;
    font-weight: 700;
}


.risk-item strong {
    display: block;

    margin-bottom: 6px;

    font-size: 13px;
}


.risk-item p {
    margin: 0;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.55;
}


/* =========================================================
   11. PRODUCT FLOW
   ========================================================= */

.flow-section {
    padding: 105px 0 115px;

    background:
        linear-gradient(
            180deg,
            var(--surface),
            var(--bg)
        );

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


.flow-header {
    width: min(
        var(--content),
        calc(100% - 40px)
    );

    margin-inline: auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, .7fr);

    gap: 70px;

    align-items: end;

    margin-bottom: 50px;
}


.flow {
    width: min(
        var(--content),
        calc(100% - 40px)
    );

    margin-inline: auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        40px
        minmax(0, 1fr)
        40px
        minmax(0, 1fr);

    align-items: center;

    gap: 10px;
}


.flow-card {
    min-height: 300px;

    padding: 24px;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--bg);

    transition:
        transform 300ms cubic-bezier(.2,.8,.2,1),
        border-color var(--transition),
        box-shadow var(--transition);
}


.flow-card:hover {
    transform: translateY(-7px);

    border-color: var(--accent-line);

    box-shadow: var(--shadow-md);
}


.flow-card.featured {
    border-color: var(--accent-line);

    background:
        radial-gradient(
            circle at 100% 0,
            var(--accent-soft),
            transparent 45%
        ),
        var(--bg);

    box-shadow:
        0 20px 60px var(--accent-soft);
}


.flow-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 40px;
}


.flow-number {
    color: var(--accent);

    font-size: 11px;
    font-weight: 700;
}


.flow-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 9px;

    color: var(--muted);

    font-size: 13px;

    transition:
        color var(--transition),
        border-color var(--transition),
        background-color var(--transition);
}


.flow-card:hover .flow-icon {
    color: var(--accent);

    border-color: var(--accent-line);

    background: var(--accent-soft);
}


.flow-label {
    margin-bottom: 7px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .14em;
}


.flow-card h3 {
    margin-bottom: 9px;

    font-size: 23px;

    letter-spacing: -.04em;
}


.flow-card p {
    max-width: 280px;

    margin-bottom: auto;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.6;
}


.flow-mini {
    align-self: flex-start;

    padding: 7px 9px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: var(--surface);

    color: var(--muted);

    font-size: 9px;
}


.flow-connector {
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--accent);

    font-size: 20px;

    opacity: .8;

    animation:
        connectorPulse 2.5s ease-in-out infinite;
}


/* =========================================================
   12. DIFFERENCE
   ========================================================= */

.difference-section {
    padding-bottom: 105px;
}


.difference-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}


.difference-card {
    min-height: 220px;

    padding: 22px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--bg);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.difference-card:hover {
    transform: translateY(-5px);

    border-color: var(--accent-line);

    box-shadow: var(--shadow-sm);
}


.difference-number {
    color: var(--accent);

    font-size: 10px;
    font-weight: 700;
}


.difference-card h3 {
    margin: 65px 0 8px;

    font-size: 17px;

    letter-spacing: -.025em;
}


.difference-card p {
    margin: 0;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.6;
}


.difference-bottom {
    margin-top: 12px;

    padding: 20px 22px;

    display: flex;
    align-items: center;

    gap: 15px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--surface);
}


.difference-arrow {
    width: 30px;
    height: 30px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--accent-soft);

    color: var(--accent);

    font-size: 14px;
}


.difference-bottom strong,
.difference-bottom span {
    display: block;
}


.difference-bottom strong {
    margin-bottom: 2px;

    font-size: 12px;
}


.difference-bottom span {
    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   13. COMPANY
   ========================================================= */

.company-section {
    padding: 110px 0;

    background: var(--surface);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


.company-layout {
    width: min(
        var(--content),
        calc(100% - 40px)
    );

    margin-inline: auto;

    display: grid;

    grid-template-columns:
        minmax(0, .8fr)
        minmax(0, 1fr);

    gap: 90px;

    align-items: center;
}


.company-copy {
    max-width: 520px;
}


.company-copy h2 {
    margin: 14px 0 18px;

    font-size:
        clamp(34px, 4vw, 49px);

    line-height: 1.02;

    letter-spacing: -.055em;
}


.company-copy > p {
    max-width: 470px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.7;
}


.company-points {
    display: grid;

    gap: 9px;

    margin-top: 25px;
}


.company-points div {
    display: flex;
    align-items: center;

    gap: 9px;

    color: var(--muted);

    font-size: 12px;
}


.company-points span {
    width: 19px;
    height: 19px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--success-soft);

    color: var(--success);

    font-size: 9px;
    font-weight: 700;
}


.company-demo {
    position: relative;
}


.demo-window {
    position: relative;

    overflow: hidden;

    padding: 0 24px 20px;

    border: 1px solid var(--border);

    border-radius: 22px;

    background: var(--bg);

    box-shadow: var(--shadow-md);

    transition:
        transform 400ms cubic-bezier(.2,.8,.2,1),
        box-shadow 400ms ease;
}


.demo-window:hover {
    transform: translateY(-5px) rotate(.3deg);

    box-shadow: var(--shadow-lg);
}


.demo-window-top {
    min-height: 48px;

    margin: 0 -24px 25px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);

    color: var(--muted);

    font-size: 9px;
}


.demo-label {
    margin-bottom: 7px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;
}


.demo-search {
    min-height: 48px;

    padding: 0 13px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);

    font-size: 12px;
}


.demo-search strong {
    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: var(--inverse);
    color: var(--inverse-text);

    transition:
        background-color var(--transition),
        color var(--transition);
}


.demo-search:hover strong {
    background: var(--accent);
    color: #fff;
}


.demo-result {
    margin-top: 9px;

    padding: 13px;

    display: grid;

    grid-template-columns: 28px 1fr;

    gap: 11px;

    border: 1px solid var(--accent-line);

    border-radius: 11px;

    background: var(--accent-soft);

    transition:
        transform var(--transition);
}


.demo-result:hover {
    transform: translateX(4px);
}


.demo-check {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--accent);

    color: #fff;

    font-size: 10px;
    font-weight: 700;
}


.demo-result strong,
.demo-result span {
    display: block;
}


.demo-result strong {
    margin-bottom: 2px;

    font-size: 12px;
}


.demo-result span {
    color: var(--muted);

    font-size: 9px;
}


.demo-fields {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 7px;

    margin-top: 9px;
}


.demo-fields div {
    min-width: 0;

    padding: 10px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: var(--surface);
}


.demo-fields span,
.demo-fields strong {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.demo-fields span {
    margin-bottom: 3px;

    color: var(--muted);

    font-size: 8px;
}


.demo-fields strong {
    font-size: 9px;
}


.demo-caption {
    margin-top: 12px;

    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--muted);

    font-size: 9px;
}


/* =========================================================
   14. DOCUMENTS
   ========================================================= */

.documents-section {
    padding-top: 110px;
}


.documents-list {
    display: grid;

    gap: 8px;
}


.document-row {
    min-width: 0;

    padding: 21px 23px;

    display: grid;

    grid-template-columns:
        45px
        minmax(0, 1fr)
        30px;

    align-items: center;

    gap: 20px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--bg);

    transition:
        transform var(--transition),
        border-color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}


.document-row:hover {
    transform: translateX(5px);

    border-color: var(--accent-line);

    background: var(--surface);

    box-shadow: var(--shadow-xs);
}


.document-number {
    color: var(--accent);

    font-size: 10px;
    font-weight: 700;
}


.document-info {
    min-width: 0;
}


.document-info h3 {
    margin: 0 0 5px;

    font-size: 14px;

    letter-spacing: -.02em;

    overflow-wrap: anywhere;
}


.document-info p {
    max-width: 700px;

    margin: 0;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.55;
}


.document-arrow {
    color: var(--muted);

    font-size: 19px;

    transition:
        color var(--transition),
        transform var(--transition);
}


.document-row:hover .document-arrow {
    color: var(--accent);

    transform: translateX(4px);
}


/* =========================================================
   15. HOW
   ========================================================= */

.how-section {
    padding-top: 110px;
}


.steps {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;
}


.step {
    position: relative;

    min-height: 250px;

    padding: 23px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--bg);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.step:hover {
    transform: translateY(-5px);

    border-color: var(--accent-line);

    box-shadow: var(--shadow-sm);
}


.step-top {
    display: flex;
    align-items: center;

    margin-bottom: 40px;
}


.step-number {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 8px;

    background: var(--accent-soft);

    color: var(--accent);

    font-size: 9px;
    font-weight: 700;
}


.step-line {
    flex: 1;

    height: 1px;

    margin-left: 10px;

    background:
        linear-gradient(
            90deg,
            var(--accent-line),
            var(--border)
        );
}


.step-label {
    display: block;

    margin-bottom: 8px;

    color: var(--muted);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: .14em;
}


.step h3 {
    margin-bottom: 8px;

    font-size: 19px;

    letter-spacing: -.035em;
}


.step p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   16. OBJECTIONS
   ========================================================= */

.objections-section {
    padding-bottom: 110px;
}


.objections {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;
}


.objection {
    padding: 20px 22px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--bg);

    transition:
        border-color var(--transition),
        background-color var(--transition),
        transform var(--transition);
}


.objection:hover {
    transform: translateY(-3px);

    border-color: var(--accent-line);

    background: var(--surface);
}


.objection-question {
    position: relative;

    padding-right: 28px;

    font-size: 13px;
    font-weight: 600;
}


.objection-question::after {
    content: "+";

    position: absolute;

    right: 0;
    top: -3px;

    color: var(--accent);

    font-size: 18px;
    font-weight: 400;
}


.objection-answer {
    margin-top: 10px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   17. FINAL CTA
   ========================================================= */

.final-cta {
    width: min(
        var(--content),
        calc(100% - 40px)
    );

    margin: 0 auto 110px;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: var(--radius-xl);

    background:
        radial-gradient(
            circle at 90% 10%,
            var(--accent-soft),
            transparent 35%
        ),
        var(--inverse);

    color: var(--inverse-text);

    box-shadow: var(--shadow-md);
}


.final-cta-inner {
    min-height: 310px;

    padding: 48px 55px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 60px;
}


.final-cta-copy {
    max-width: 680px;
}


.final-cta .eyebrow {
    color: var(--accent);
}


.final-cta h2 {
    margin: 13px 0 16px;

    font-size:
        clamp(36px, 4vw, 55px);

    line-height: 1;

    letter-spacing: -.06em;
}


.final-cta p {
    max-width: 570px;

    margin: 0;

    color:
        color-mix(
            in srgb,
            var(--inverse-text) 62%,
            transparent
        );

    font-size: 13px;
    line-height: 1.65;
}


.final-cta-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 9px;
}


.final-cta-action .btn.dark {
    min-width: 200px;

    background: var(--inverse-text);
    color: var(--inverse);
}


.final-cta-action .btn.dark:hover {
    border-color: var(--accent);
    color: var(--inverse);
}


.final-cta-action > span {
    color:
        color-mix(
            in srgb,
            var(--inverse-text) 45%,
            transparent
        );

    font-size: 10px;
}


/* =========================================================
   18. FOOTER
   ========================================================= */

.site-footer {
    border-top: 1px solid var(--border);
}


.footer-main {
    width: min(
        var(--content),
        calc(100% - 40px)
    );

    margin-inline: auto;

    padding: 58px 0 44px;

    display: grid;

    grid-template-columns:
        minmax(180px, .7fr)
        minmax(0, 1.3fr);

    gap: 60px;
}


/* =========================================================
   BRAND
   ========================================================= */

.footer-brand {
    min-width: 0;
}


.footer-logo {
    display: inline-block;

    margin-bottom: 12px;

    font-size: 18px;
    font-weight: 700;

    letter-spacing: -.045em;
}


.footer-brand p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   LINKS
   ========================================================= */

.footer-links {
    min-width: 0;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;
}


.footer-column {
    min-width: 0;

    display: grid;

    align-content: start;

    gap: 8px;
}


.footer-column > span {
    margin-bottom: 3px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .14em;
    text-transform: uppercase;
}


.footer-column a {
    max-width: 100%;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.5;

    overflow-wrap: anywhere;

    transition:
        color var(--transition);
}


.footer-column a:hover {
    color: var(--accent);
}


/* =========================================================
   COMPANY DATA
   ========================================================= */

.footer-company strong {
    display: block;

    max-width: 190px;

    color: var(--text);

    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;

    overflow-wrap: anywhere;
}


.footer-company small {
    display: block;

    color: var(--muted);

    font-size: 10px;
    line-height: 1.5;

    overflow-wrap: anywhere;
}


.footer-company a {
    margin-top: 2px;
}


/* =========================================================
   BOTTOM
   ========================================================= */

.footer-bottom {
    width: min(
        var(--content),
        calc(100% - 40px)
    );

    min-height: 60px;

    margin-inline: auto;

    display: flex;
    align-items: center;

    gap: 18px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 10px;
}


.footer-top {
    margin-left: auto;

    color: var(--text);

    transition:
        color var(--transition);
}


.footer-top:hover {
    color: var(--accent);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
    .mobile-home {
        display: inline-flex;
        align-items: center;
    }

    .footer-main {
        grid-template-columns:
            minmax(160px, .6fr)
            minmax(0, 1.4fr);

        gap: 40px;
    }

    .footer-links {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 30px 24px;
    }
}


@media (max-width: 700px) {
    .mobile-home {
        display: inline-flex;
        align-items: center;
    }

    .footer-main {
        grid-template-columns: 1fr;

        gap: 40px;

        padding: 48px 0 40px;
    }

    .footer-links {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 30px 20px;
    }

    .footer-bottom {
        min-height: auto;

        padding: 18px 0;

        flex-wrap: wrap;
    }
}


@media (max-width: 480px) {
    .mobile-home {
        display: inline-flex;
        align-items: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .footer-top {
        margin-left: 0;
    }
}


/* =========================================================
   19. DASHBOARD / APP SHELL
   ========================================================= */

/* =========================================================
   DASHBOARD / APP SHELL
   ========================================================= */

.shell {
    width: 100%;
    height: 100vh;

    display: grid;

    grid-template-columns:
        225px
        minmax(0, 1fr);

    overflow: hidden;
}

.side {
    width: 225px;
    height: 100vh;

    min-width: 0;

    padding: 23px 17px;

    display: flex;
    flex-direction: column;

    border-right: 1px solid var(--border);

    background: var(--bg);

    overflow: hidden;
}

.dash {
    width: min(
        1120px,
        calc(100% - 70px)
    );

    margin-inline: auto;

    min-width: 0;
    min-height: 0;

    padding: 44px 0 90px;

    overflow-y: auto;
    overflow-x: hidden;
}

.side .brand {
    margin: 0 7px 34px;
}


.side nav {
    min-width: 0;

    display: grid;

    gap: 3px;
}


.side nav a {
    min-width: 0;

    padding: 9px 10px;

    display: block;

    border-radius: 8px;

    color: var(--muted);

    font-size: 12px;
    font-weight: 500;

    line-height: 1.35;

    overflow-wrap: anywhere;
    word-break: break-word;

    transition:
        color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}


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

    background: var(--surface);
}


.side nav a.active {
    color: var(--text);

    background: var(--surface-2);

    box-shadow:
        inset 2px 0 var(--accent);
}


.side .bottom {
    margin-top: auto;

    display: grid;

    gap: 3px;
}


.side .bottom a,
.side .bottom button {
    width: 100%;

    min-height: 36px;

    padding: 0 10px;

    display: flex;
    align-items: center;

    border: 0;

    border-radius: 8px;

    background: transparent;
    color: var(--muted);

    font-size: 11px;

    text-align: left;

    transition:
        color var(--transition),
        background-color var(--transition);
}


.side .bottom a:hover,
.side .bottom button:hover {
    color: var(--text);

    background: var(--surface);
}


.dash {
    width: min(
        1120px,
        calc(100% - 70px)
    );

    margin-inline: auto;

    min-width: 0;

    padding: 44px 0 90px;
}


.dashhead {
    margin-top: 18px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
    overflow: visible !important;
}


.dashhead h1 {
    margin: 10px 0 5px;

    font-size: 38px;

    line-height: 1;

    letter-spacing: -.055em;
}


.dashhead p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}


.stats {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 9px;

    margin: 30px 0;
}


.stats > div {
    padding: 18px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--bg);
}


.stats strong {
    display: block;

    margin-bottom: 3px;

    font-size: 25px;

    letter-spacing: -.04em;
}


.stats span {
    color: var(--muted);

    font-size: 10px;
}


/* =========================================================
   20. DASHBOARD SITES
   ========================================================= */

.sites {
    display: grid;

    gap: 9px;
}


.sites .site {
    min-width: 0;

    padding: 18px 20px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        auto;

    align-items: center;

    gap: 20px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--bg);

    transition:
        transform var(--transition),
        border-color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}


.sites .site:hover {
    transform: translateY(-2px);

    border-color: var(--accent-line);

    background: var(--surface);

    box-shadow: var(--shadow-sm);
}


.sites .site > div {
    min-width: 0;
}


.sites .site h3 {
    margin: 0 0 3px;

    font-size: 14px;

    overflow-wrap: anywhere;
}


.sites .site code {
    display: block;

    color: var(--muted);

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;

    font-size: 10px;

    overflow-wrap: anywhere;
}


.sites .site > span {
    padding: 5px 8px;

    border: 1px solid var(--border);

    border-radius: 999px;

    color: var(--muted);

    font-size: 9px;

    white-space: nowrap;
}


.sites .site > strong {
    color: var(--muted);

    font-size: 18px;

    transition:
        color var(--transition),
        transform var(--transition);
}


.sites .site:hover > strong {
    color: var(--accent);

    transform: translateX(3px);
}


/* =========================================================
   21. "MY SITES" LIST
   IMPORTANT:
   scoped to .list > a.site
   so it doesn't conflict with .sites .site
   ========================================================= */

.list {
    width: 100%;

    min-width: 0;

    display: grid;

    gap: 9px;

    margin-top: 18px;
}


.list > a.site {
    width: 100%;

    min-width: 0;

    padding: 18px 20px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(100px, auto)
        28px;

    align-items: center;

    gap: 20px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--bg);

    color: var(--text);

    transition:
        transform var(--transition),
        border-color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}


.list > a.site:hover {
    transform: translateY(-2px);

    border-color: var(--accent-line);

    background: var(--surface);

    box-shadow: var(--shadow-sm);
}


.list > a.site > div {
    min-width: 0;
}


.list > a.site h3 {
    min-width: 0;

    margin: 0 0 4px;

    font-size: 15px;
    line-height: 1.35;

    overflow-wrap: anywhere;
    word-break: break-word;
}


.list > a.site code {
    display: block;

    min-width: 0;

    color: var(--muted);

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;

    font-size: 10px;

    overflow-wrap: anywhere;
    word-break: break-word;
}


.list > a.site > span {
    justify-self: start;

    padding: 6px 9px;

    border: 1px solid var(--border);

    border-radius: 999px;

    color: var(--muted);

    font-size: 9px;

    line-height: 1;

    white-space: nowrap;
}


.list > a.site > strong {
    justify-self: end;

    color: var(--muted);

    font-size: 19px;

    transition:
        color var(--transition),
        transform var(--transition);
}


.list > a.site:hover > strong {
    color: var(--accent);

    transform: translateX(4px);
}


/* =========================================================
   22. TABS
   ========================================================= */

.tabs {
    margin-top: 32px;

    display: flex;
    align-items: center;

    gap: 3px;

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


.tabs a,
.tabs span {
    position: relative;

    padding: 10px 12px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 500;
}


.tabs .active {
    color: var(--text);
}


.tabs .active::after {
    content: "";

    position: absolute;

    left: 10px;
    right: 10px;
    bottom: -1px;

    height: 2px;

    background: var(--accent);
}


/* =========================================================
   23. EMPTY
   ========================================================= */

.empty {
    min-height: 180px;

    padding: 32px;

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 7px;

    text-align: center;

    border: 1px dashed var(--border);

    border-radius: var(--radius-md);

    color: var(--muted);
}


.empty > * {
    margin: 0 !important;
}


.empty h3 {
    color: var(--text);
}


.empty p {
    max-width: 480px;

    font-size: 12px;
}


.empty h3[style],
.empty p[style] {
    opacity: 1 !important;
}


/* =========================================================
   24. GENERATOR
   ========================================================= */

.generator {
    margin-top: 34px;

    padding: 26px;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--surface);
}


.generator h2 {
    margin: 9px 0 7px;

    font-size: 23px;

    letter-spacing: -.04em;
}


.generator > p {
    margin-bottom: 22px;

    color: var(--muted);

    font-size: 12px;
}


.generator form {
    display: grid;

    gap: 8px;
}


.generator label {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 11px 12px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: var(--bg);

    color: var(--text);

    font-size: 12px;

    cursor: pointer;

    transition:
        border-color var(--transition),
        background-color var(--transition);
}


.generator label:hover {
    border-color: var(--accent-line);

    background: var(--accent-soft);
}


/* =========================================================
   25. GENERIC FORMS
   ========================================================= */

label {
    color: var(--text);
}


input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;

    min-height: 44px;

    padding: 10px 12px;

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);

    outline: none;

    background: var(--bg);
    color: var(--text);

    font-size: 13px;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background-color var(--transition);
}


textarea {
    min-height: 110px;

    resize: vertical;
}


input::placeholder,
textarea::placeholder {
    color: var(--muted);
}


input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px var(--accent-soft);
}


input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--accent);

    margin-top: 2px;
}


.field,
.question {
    display: grid;

    gap: 7px;
}


.field > span,
.question > span {
    color: var(--muted);

    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   26. CHECKBOX / RADIO
   ========================================================= */

.checkbox-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 7px;
}


.checkbox-grid > label,
.checkbox {
    min-width: 0;

    padding: 12px;

    display: flex;
    align-items: flex-start;

    gap: 9px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: var(--bg);

    font-size: 11px;

    cursor: pointer;

    transition:
        border-color var(--transition),
        background-color var(--transition);
}


.checkbox-grid > label:hover,
.checkbox:hover {
    border-color: var(--accent-line);

    background: var(--accent-soft);
}


.radio {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 10px 12px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: var(--bg);

    font-size: 11px;

    cursor: pointer;
}


/* =========================================================
   27. SWITCHES
   ========================================================= */

.switch-list {
    display: grid;

    gap: 7px;
}


.switch-row {
    min-height: 52px;

    padding: 10px 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--bg);

    font-size: 11px;
}


.switch-row > span,
.switch-row > label {
    min-width: 0;
}


.switch-row input[type="checkbox"] {
    appearance: none;

    position: relative;

    width: 40px;
    height: 23px;

    flex: 0 0 auto;

    margin: 0;

    border: 1px solid var(--border);

    border-radius: 999px;

    background: var(--surface-2);

    cursor: pointer;

    transition:
        background-color var(--transition),
        border-color var(--transition);
}


.switch-row input[type="checkbox"]::after {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 15px;
    height: 15px;

    border-radius: 50%;

    background: var(--muted);

    transition:
        transform var(--transition),
        background-color var(--transition);
}


.switch-row input[type="checkbox"]:checked {
    border-color: var(--accent);

    background: var(--accent);
}


.switch-row input[type="checkbox"]:checked::after {
    transform: translateX(17px);

    background: #fff;
}


/* =========================================================
   28. NEW SITE MODAL
   ========================================================= */

dialog#newSite {
    width: min(
        860px,
        calc(100vw - 32px)
    );

    max-height:
        min(
            90vh,
            900px
        );

    padding: 0;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 20px;

    background: var(--bg);
    color: var(--text);

    box-shadow:
        0 40px 120px rgba(0, 0, 0, .25);
}


dialog#newSite::backdrop {
    background: rgba(0, 0, 0, .55);

    backdrop-filter: blur(7px);
}


.site-form {
    max-height: 90vh;

    overflow-y: auto;

    padding: 30px;
}


.close {
    position: absolute;

    top: 17px;
    right: 17px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: var(--bg);
    color: var(--muted);

    transition:
        color var(--transition),
        border-color var(--transition);
}


.close:hover {
    color: var(--text);

    border-color: var(--accent-line);
}


.form-intro {
    max-width: 680px;

    padding-right: 45px;

    margin-bottom: 34px;
}


.form-intro h2 {
    margin: 8px 0;

    font-size: 28px;

    letter-spacing: -.045em;
}


.form-intro p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
}


.form-section {
    padding: 26px 0;

    border-top: 1px solid var(--border);
}


.section-title {
    display: grid;

    grid-template-columns: 35px 1fr;

    gap: 12px;

    margin-bottom: 18px;
}


.section-title > span {
    color: var(--accent);

    font-size: 10px;
    font-weight: 700;
}


.section-title h3 {
    margin: 0 0 4px;

    font-size: 15px;

    letter-spacing: -.02em;
}


.section-title p {
    margin: 0;

    color: var(--muted);

    font-size: 10px;
}


.company-search {
    display: flex;

    gap: 8px;
}


.company-search input {
    min-width: 0;
}


.search-company-btn {
    min-width: 95px;

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);

    background: var(--inverse);
    color: var(--inverse-text);

    font-size: 11px;
    font-weight: 600;

    transition:
        border-color var(--transition),
        background-color var(--transition);
}


.search-company-btn:hover {
    border-color: var(--accent);

    background: var(--accent);
    color: #fff;
}


.company-results {
    display: grid;

    gap: 7px;

    margin-top: 9px;
}


.company-result {
    width: 100%;

    padding: 12px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 12px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: var(--bg);

    color: var(--text);

    text-align: left;

    cursor: pointer;

    transition:
        border-color var(--transition),
        background-color var(--transition),
        transform var(--transition);
}


.company-result:hover {
    transform: translateX(3px);

    border-color: var(--accent-line);

    background: var(--accent-soft);
}


.company-result.selected {
    border-color: var(--accent);
}


.company-data {
    margin-top: 13px;

    padding: 14px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--surface);
}


.company-data-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 12px;
}


.company-card {
    padding: 14px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--bg);
}


.company-main {
    font-size: 13px;
    font-weight: 600;
}


.company-details {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;

    margin-top: 10px;
}


.company-details > div {
    min-width: 0;

    padding: 9px;

    border: 1px solid var(--border);

    border-radius: 8px;
}


.company-details span,
.company-details strong {
    display: block;
}


.company-details span {
    color: var(--muted);

    font-size: 8px;
}


.company-details strong {
    margin-top: 2px;

    font-size: 10px;

    overflow-wrap: anywhere;
}


.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.field-wide {
    grid-column: 1 / -1;
}


.form-submit {
    margin-top: 25px;

    padding-top: 22px;

    border-top: 1px solid var(--border);
}


/* =========================================================
   29. SITE DATA
   ========================================================= */

.site-data-form {
    display: grid;

    gap: 12px;

    margin-top: 30px;
}


.data-section {
    padding: 24px;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--bg);
}


.data-section-head {
    display: grid;

    grid-template-columns: 35px 1fr;

    gap: 12px;

    margin-bottom: 20px;
}


.data-section-head .eyebrow {
    align-self: start;
}


.data-section-head h2 {
    margin: 5px 0 5px;

    font-size: 18px;

    letter-spacing: -.03em;
}


.data-section-head p {
    margin: 0;

    color: var(--muted);

    font-size: 11px;
}


.data-form-actions {
    display: flex;
    justify-content: flex-end;

    gap: 8px;

    padding-top: 12px;
}


/* =========================================================
   30. DOCUMENT PAGE
   ========================================================= */

.document {
    min-width: 0;

    padding: 42px clamp(20px, 4vw, 50px) 90px;
}


.toolbar {
    width: min(
        1100px,
        100%
    );

    margin-inline: auto;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 28px;
}


.toolbar h1 {
    max-width: 650px;

    margin: 10px 0 5px;

    font-size: 31px;
    line-height: 1.1;

    letter-spacing: -.05em;

    overflow-wrap: anywhere;
}


.document-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 7px;
}


.paper {
    width: min(
        820px,
        100%
    );

    margin-inline: auto;

    padding:
        clamp(30px, 5vw, 65px);

    overflow-wrap: anywhere;

    border: 1px solid var(--border);

    border-radius: 18px;

    background: var(--bg);

    box-shadow: var(--shadow-sm);

    font-size: 14px;
    line-height: 1.75;
}


.paper h1,
.paper h2,
.paper h3 {
    line-height: 1.2;

    letter-spacing: -.03em;
}


.paper h1 {
    font-size: 28px;
}


.paper h2 {
    margin-top: 34px;

    font-size: 20px;
}


.paper h3 {
    font-size: 16px;
}


.paper p {
    margin-bottom: 16px;
}


.paper table {
    width: 100%;

    border-collapse: collapse;

    margin: 25px 0;
}


.paper th,
.paper td {
    padding: 9px;

    border: 1px solid var(--border);

    text-align: left;

    vertical-align: top;
}


.paper th {
    background: var(--surface);
}


/* =========================================================
   31. LEGAL
   ========================================================= */

.legal-page {
    width: min(
        900px,
        calc(100% - 40px)
    );

    margin-inline: auto;

    padding: 70px 0 110px;
}


.legal-header {
    padding-bottom: 35px;

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


.legal-back {
    display: inline-block;

    margin-bottom: 25px;

    color: var(--muted);

    font-size: 11px;
}


.legal-header h1 {
    max-width: 800px;

    margin: 10px 0 15px;

    font-size:
        clamp(38px, 5vw, 58px);

    line-height: 1;

    letter-spacing: -.06em;
}


.legal-intro {
    max-width: 680px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.7;
}


.legal-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;
}


.legal-meta span {
    padding: 6px 9px;

    border: 1px solid var(--border);

    border-radius: 999px;

    color: var(--muted);

    font-size: 9px;
}


.legal-content {
    padding-top: 45px;
}


.legal-section {
    display: grid;

    grid-template-columns: 55px minmax(0, 1fr);

    gap: 20px;

    padding: 30px 0;

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


.legal-section-number {
    color: var(--accent);

    font-size: 10px;
    font-weight: 700;
}


.legal-section-content h2 {
    margin: 0 0 12px;

    font-size: 21px;

    letter-spacing: -.035em;
}


.legal-section-text {
    color: var(--muted);

    font-size: 13px;
    line-height: 1.75;
}


.legal-section-text p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   32. AUTH
   ========================================================= */

.auth {
    min-height: 100vh;

    padding: 30px 20px;

    display: flex;
    flex-direction: column;

    align-items: center;
}


.auth > .brand {
    align-self: flex-start;

    margin-bottom: auto;
}


.auth-card {
    width: min(
        400px,
        100%
    );

    margin: auto;

    padding: 32px;

    border: 1px solid var(--border);

    border-radius: 18px;

    background: var(--bg);

    box-shadow: var(--shadow-sm);
}


.auth-card h1 {
    margin: 10px 0 8px;

    font-size: 32px;

    line-height: 1;

    letter-spacing: -.055em;
}


.auth-card > p {
    margin-bottom: 25px;

    color: var(--muted);

    font-size: 12px;
}


.auth-card form {
    display: grid;

    gap: 13px;
}


.auth-card form > label {
    display: grid;

    gap: 7px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 600;
}


.auth-card form > label input {
    color: var(--text);
}


.auth-card small {
    display: block;

    margin-top: 18px;

    color: var(--muted);

    font-size: 10px;
}


.auth-card small a {
    color: var(--accent);

    font-weight: 600;
}


.alert {
    margin-bottom: 15px;

    padding: 10px 12px;

    border: 1px solid var(--danger);

    border-radius: 9px;

    background: var(--danger-soft);

    color: var(--danger);

    font-size: 11px;
}


/* =========================================================
   33. DELETE SITE
   ========================================================= */

.delete-site-form {
    margin-top: 20px;
}


.delete-site-btn {
    min-height: 36px;

    padding: 0 12px;

    border: 1px solid var(--danger);

    border-radius: 8px;

    background: transparent;

    color: var(--danger);

    font-size: 10px;

    cursor: pointer;

    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition);
}


.delete-site-btn:hover {
    background: var(--danger-soft);
}


/* =========================================================
   34. RESPONSIVE — 1100
   ========================================================= */

@media (max-width: 1100px) {

    .hero-content {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(340px, .78fr);

        gap: 45px;
    }


    .hero-copy h1 {
        font-size:
            clamp(42px, 5vw, 58px);
    }


    .company-layout {
        gap: 50px;
    }


    .section-heading,
    .flow-header {
        gap: 45px;
    }


    .footer-main {
        gap: 50px;
    }

}


/* =========================================================
   35. RESPONSIVE — 900
   ========================================================= */

@media (max-width: 900px) {

    .nav {
        grid-template-columns: auto 1fr;
    }


    .nav nav {
        display: none;
    }


    .actions {
        grid-column: 2;

        grid-row: 1;
    }


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


    .side {
        display: none;
    }


    .dash {
        width: min(
            100%,
            calc(100% - 40px)
        );

        padding-top: 35px;
    }


    .hero {
        min-height: auto;

        padding: 65px 0 70px;
    }


    .hero-content {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .hero-copy {
        max-width: 700px;
    }


    .hero-visual {
        margin-inline: auto;
    }


    .section-heading,
    .flow-header {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .risk-layout {
        grid-template-columns: 1fr;
    }


    .risk-main {
        min-height: 280px;
    }


    .flow {
        grid-template-columns: 1fr;

        gap: 8px;
    }


    .flow-connector {
        height: 24px;

        transform: rotate(90deg);
    }


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


    .company-layout {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    .company-copy {
        max-width: 650px;
    }


    .footer-main {
        grid-template-columns: 1fr;

        gap: 40px;
    }

}


/* =========================================================
   36. RESPONSIVE — 760
   ========================================================= */

@media (max-width: 760px) {

    .nav {
        width: min(
            100%,
            calc(100% - 28px)
        );

        min-height: 64px;
    }


    .actions > a:not(.btn) {
        display: none;
    }


    .actions {
        gap: 7px;
    }


    .actions .btn {
        min-height: 38px;

        padding-inline: 12px;

        font-size: 11px;
    }


    .hero {
        width: min(
            100%,
            calc(100% - 28px)
        );

        padding: 45px 0 50px;
    }


    .hero-copy h1 {
        margin-top: 15px;

        font-size:
            clamp(39px, 11vw, 52px);
    }


    .hero-lead {
        font-size: 14px;
    }


    .hero-floating {
        display: none;
    }


    .hero-mock {
        transform: none;

        animation: none;
    }


    .hero-mock:hover {
        transform: translateY(-3px);
    }


    .value-bar {
        width: min(
            100%,
            calc(100% - 28px)
        );
    }


    .value-bar-inner {
        grid-template-columns: 1fr;

        gap: 0;

        padding: 8px 0;
    }


    .value-line {
        width: 100%;
        height: 1px;
    }


    .value-item {
        padding: 12px 0;
    }


    .section {
        width: min(
            100%,
            calc(100% - 28px)
        );

        padding: 75px 0;
    }


    .flow-section {
        padding: 75px 0;
    }


    .flow,
    .flow-header {
        width: min(
            100%,
            calc(100% - 28px)
        );
    }


    .section-heading h2,
    .flow-header h2,
    .company-copy h2 {
        font-size: 36px;
    }


    .risk-list {
        grid-template-columns: 1fr;
    }


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


    .difference-card {
        min-height: 170px;
    }


    .difference-card h3 {
        margin-top: 42px;
    }


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


    .step {
        min-height: 190px;
    }


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


    .final-cta {
        width: min(
            100%,
            calc(100% - 28px)
        );

        margin-bottom: 75px;
    }


    .final-cta-inner {
        padding: 35px 25px;

        grid-template-columns: 1fr;

        gap: 30px;
    }


    .final-cta-action {
        align-items: flex-start;
    }


    .final-cta-action .btn {
        min-width: 0;

        width: 100%;
    }


    .footer-main,
    .footer-bottom {
        width: min(
            100%,
            calc(100% - 28px)
        );
    }


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


    .footer-bottom {
        min-height: auto;

        padding: 18px 0;

        flex-wrap: wrap;
    }


    .footer-top {
        margin-left: 0;
    }


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


    .dashhead {
        align-items: flex-start;
        flex-direction: column;
    }


    .list > a.site {
        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 10px 15px;
    }


    .list > a.site > span {
        grid-column: 1;

        justify-self: start;
    }


    .list > a.site > strong {
        grid-column: 2;

        grid-row: 1 / 3;
    }


    .sites .site {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
    }


    .sites .site > span {
        grid-column: 1;
        justify-self: start;
    }


    .sites .site > strong {
        grid-column: 2;
        grid-row: 1 / 3;
    }


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


    .field-wide {
        grid-column: auto;
    }


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


    .company-details {
        grid-template-columns: 1fr;
    }


    .toolbar {
        flex-direction: column;
    }


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


    .paper {
        padding: 27px 20px;

        border-radius: 12px;
    }


    .legal-page {
        padding: 50px 0 75px;
    }


    .legal-section {
        grid-template-columns: 1fr;

        gap: 8px;
    }


    .legal-section-number {
        margin-bottom: 4px;
    }


    .auth-card {
        padding: 25px;
    }

}


/* =========================================================
   37. RESPONSIVE — 520
   ========================================================= */

@media (max-width: 520px) {

    .brand {
        font-size: 17px;
    }


    .actions .btn {
        max-width: 150px;

        overflow: hidden;

        text-overflow: ellipsis;
    }


    .hero-copy h1 {
        font-size: 38px;
    }


    .hero-actions {
        display: grid;

        grid-template-columns: 1fr;
    }


    .hero-actions .btn {
        width: 100%;
    }


    .hero-note {
        font-size: 11px;
    }


    .mock-body {
        padding: 11px;
    }


    .mock-step {
        grid-template-columns:
            27px
            minmax(0, 1fr)
            auto;

        gap: 8px;

        padding: 8px;
    }


    .mock-step-number {
        width: 25px;
        height: 25px;
    }


    .mock-step strong {
        font-size: 11px;
    }


    .mock-step small {
        font-size: 8px;
    }


    .mock-tags span {
        font-size: 8px;
    }


    .mock-footer {
        padding-inline: 12px;
    }


    .section-heading h2,
    .flow-header h2,
    .company-copy h2 {
        font-size: 31px;
    }


    .risk-main {
        padding: 22px;
    }


    .risk-main h3 {
        margin-top: 40px;

        font-size: 21px;
    }


    .document-row {
        grid-template-columns:
            32px
            minmax(0, 1fr)
            20px;

        gap: 10px;

        padding: 17px;
    }


    .document-info h3 {
        font-size: 12px;
    }


    .document-info p {
        font-size: 10px;
    }


    .demo-window {
        padding-inline: 15px;
    }


    .demo-window-top {
        margin-inline: -15px;
    }


    .demo-fields {
        grid-template-columns: 1fr;
    }


    .footer-links {
        grid-template-columns: 1fr;
    }


    .footer-bottom span:nth-child(2) {
        display: none;
    }


    .site-form {
        padding: 22px 18px;
    }


    .company-search {
        flex-direction: column;
    }


    .search-company-btn {
        min-height: 42px;
    }


    .data-section {
        padding: 19px;
    }


    .data-section-head {
        grid-template-columns: 1fr;
    }


    .data-form-actions {
        display: grid;

        grid-template-columns: 1fr;
    }


    .data-form-actions .btn {
        width: 100%;
    }

}


/* =========================================================
   38. PRINT
   ========================================================= */

@media print {

    html,
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }


    .side,
    .toolbar,
    .nav,
    .site-footer {
        display: none !important;
    }


    .shell {
        display: block;
    }


    .document {
        padding: 0;
    }


    .paper {
        width: 100%;

        padding: 0;

        border: 0;

        border-radius: 0;

        box-shadow: none;

        background: #ffffff;

        color: #000000;
    }


    .paper a {
        color: #000000;
    }
}


/* =========================================================
   39. ANIMATIONS
   ========================================================= */

@keyframes heroFloat {

    0%,
    100% {
        transform:
            perspective(1200px)
            rotateY(-3deg)
            rotateX(2deg)
            translateY(0);
    }

    50% {
        transform:
            perspective(1200px)
            rotateY(-2deg)
            rotateX(1deg)
            translateY(-7px);
    }
}


@keyframes heroGlow {

    0%,
    100% {
        opacity: .65;

        transform:
            translate(-50%, -50%)
            scale(1);
    }

    50% {
        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1.12);
    }
}


@keyframes floatingTop {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


@keyframes floatingBottom {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}


@keyframes progressPulse {

    0% {
        width: 68%;
    }

    50% {
        width: 84%;
    }

    100% {
        width: 78%;
    }
}


@keyframes statusPulse {

    0%,
    100% {
        opacity: .5;

        box-shadow:
            0 0 0 3px var(--accent-soft);
    }

    50% {
        opacity: 1;

        box-shadow:
            0 0 0 6px transparent;
    }
}


@keyframes connectorPulse {

    0%,
    100% {
        opacity: .35;

        transform: translateX(0);
    }

    50% {
        opacity: 1;

        transform: translateX(3px);
    }
}


/* =========================================================
   40. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }
}


/* =========================================================
   DOCUMENT LIST
   Страница проекта /sites/<id>
   ========================================================= */

.list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* ---------------------------------------------------------
   Один документ
   --------------------------------------------------------- */

.list > a:not(.site) {
    position: relative;

    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto 34px;
    align-items: center;

    min-height: 78px;

    padding: 14px 18px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);

    color: var(--text);
    text-decoration: none;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}


/* ---------------------------------------------------------
   Иконка документа
   --------------------------------------------------------- */

.list > a:not(.site) > small {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--surface-2);

    color: var(--muted);

    font-size: 15px;
    line-height: 1;

    flex-shrink: 0;
}


/* ---------------------------------------------------------
   Название документа
   --------------------------------------------------------- */

.list > a:not(.site) > b {
    min-width: 0;

    display: block;

    margin: 0;
    padding: 0 18px 0 2px;

    color: var(--text);

    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* ---------------------------------------------------------
   Версия + статус
   --------------------------------------------------------- */

.list > a:not(.site) > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding: 5px 10px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface-2);

    color: var(--muted);

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   Статус "Актуален"
   --------------------------------------------------------- */

.list > a:not(.site) > span {
    color: var(--muted);
}


/* ---------------------------------------------------------
   Стрелка
   --------------------------------------------------------- */

.list > a:not(.site) > strong {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: 4px;

    border-radius: 8px;

    color: var(--muted);

    font-size: 18px;
    font-weight: 600;
    line-height: 1;

    transition:
        color .18s ease,
        background .18s ease,
        transform .18s ease;
}


/* ---------------------------------------------------------
   Hover
   --------------------------------------------------------- */

.list > a:not(.site):hover {
    border-color: var(--accent-line);

    background:
        linear-gradient(
            135deg,
            var(--surface),
            var(--accent-soft)
        );

    transform: translateY(-1px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .05);
}

.list > a:not(.site):hover > small {
    border-color: var(--accent-line);

    color: var(--accent);

    background: var(--accent-soft);
}

.list > a:not(.site):hover > strong {
    color: var(--accent);

    background: var(--accent-soft);

    transform: translateX(3px);
}


/* ---------------------------------------------------------
   Focus
   --------------------------------------------------------- */

.list > a:not(.site):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}


/* =========================================================
   EMPTY
   ========================================================= */

.list > .empty {
    min-height: 180px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 32px;

    border: 1px dashed var(--border);
    border-radius: 14px;

    text-align: center;
}

.list > .empty h3 {
    margin: 0;

    color: var(--text);

    font-size: 16px;
    font-weight: 650;
}

.list > .empty h3[style*="opacity"] {
    opacity: 1 !important;
}

.list > .empty p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   СТРАНИЦА «МОИ САЙТЫ»
   ВАЖНО:
   .site здесь НЕ пересекается с документами
   ========================================================= */

.list > a.site {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, max-content) 30px;
    align-items: center;

    gap: 22px;

    min-height: 78px;

    padding: 15px 18px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);

    color: var(--text);
    text-decoration: none;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.list > a.site h3 {
    margin: 0 0 5px;

    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.list > a.site code {
    display: block;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.4;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.list > a.site > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding: 5px 10px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface-2);

    color: var(--muted);

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}

.list > a.site > strong {
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--muted);

    font-size: 18px;

    transition:
        color .18s ease,
        transform .18s ease;
}

.list > a.site:hover {
    border-color: var(--accent-line);

    background:
        linear-gradient(
            135deg,
            var(--surface),
            var(--accent-soft)
        );

    transform: translateY(-1px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .05);
}

.list > a.site:hover > strong {
    color: var(--accent);
    transform: translateX(3px);
}


/* =========================================================
   DARK MODE — немного мягче тени
   ========================================================= */

html[data-theme="dark"] .list > a:not(.site):hover,
html[data-theme="dark"] .list > a.site:hover {
    box-shadow:
        0 14px 36px rgba(0, 0, 0, .25);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .list > a:not(.site):hover,
    html[data-theme="system"] .list > a.site:hover {
        box-shadow:
            0 14px 36px rgba(0, 0, 0, .25);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .list > a:not(.site) {
        grid-template-columns: 38px minmax(0, 1fr) 30px;

        min-height: 72px;

        padding: 12px 14px;

        gap: 12px;
    }

    .list > a:not(.site) > small {
        width: 32px;
        height: 32px;
    }

    .list > a:not(.site) > b {
        padding-right: 0;

        font-size: 14px;
    }

    .list > a:not(.site) > span {
        grid-column: 2;

        justify-self: start;

        margin-top: -4px;
    }

    .list > a:not(.site) > strong {
        grid-column: 3;
        grid-row: 1 / span 2;
    }


    .list > a.site {
        grid-template-columns: minmax(0, 1fr) 30px;

        gap: 8px 12px;

        min-height: 74px;

        padding: 13px 14px;
    }

    .list > a.site > span {
        grid-column: 1;

        justify-self: start;
    }

    .list > a.site > strong {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 430px) {

    .list > a:not(.site) {
        grid-template-columns: 34px minmax(0, 1fr) 26px;

        gap: 10px;

        padding: 11px 12px;
    }

    .list > a:not(.site) > small {
        width: 30px;
        height: 30px;

        font-size: 13px;
    }

    .list > a:not(.site) > b {
        font-size: 13px;
    }

    .list > a:not(.site) > span {
        font-size: 11px;
    }

    .list > a:not(.site) > strong {
        font-size: 17px;
    }
}

/* =========================================================
   OFFER
   ========================================================= */

.offer-section {
    width: min(var(--content), calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0;
}


.offer-card {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 48px;

    padding: 34px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--surface);

    box-shadow: var(--shadow);
}


/* LEFT */

.offer-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


.offer-price {
    display: flex;
    align-items: baseline;
    gap: 10px;

    margin: 22px 0 14px;
}


.offer-price strong {
    font-size: 52px;
    line-height: 1;

    letter-spacing: -0.045em;
}


.offer-price span {
    color: var(--muted);
    font-size: 14px;
}


.offer-info h2 {
    margin: 0 0 16px;

    font-size: 34px;
    line-height: 1.08;

    letter-spacing: -0.035em;
}


.offer-info > p {
    max-width: 480px;

    margin: 0;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.6;
}


.offer-action {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;

    margin-top: 26px;
}


.offer-action > span {
    color: var(--muted);

    font-size: 12px;
}


/* DOCUMENTS */

.offer-documents {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: var(--bg);
}


.offer-document {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    align-items: center;

    gap: 14px;

    min-width: 0;

    padding: 17px 18px;

    color: inherit;
    text-decoration: none;

    border-bottom: 1px solid var(--border);

    transition:
        background 0.18s ease,
        padding 0.18s ease;
}


.offer-document:last-child {
    border-bottom: 0;
}


.offer-document:hover {
    background: var(--surface);

    padding-left: 22px;
}


.offer-number {
    align-self: start;

    padding-top: 2px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.04em;
}


.offer-document-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 4px;
}


.offer-document-content strong {
    min-width: 0;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;

    overflow-wrap: anywhere;
}


.offer-document-content small {
    color: var(--muted);

    font-size: 12px;
    line-height: 1.4;
}


.offer-arrow {
    color: var(--muted);

    font-size: 17px;
    text-align: right;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}


.offer-document:hover .offer-arrow {
    color: var(--text);
    transform: translateX(3px);
}


/* =========================================================
   OFFER — MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .offer-card {
        grid-template-columns: 1fr;
        gap: 32px;

        padding: 28px;
    }

}


@media (max-width: 600px) {

    .offer-section {
        width: min(var(--content), calc(100% - 28px));
        padding: 44px 0;
    }


    .offer-card {
        gap: 26px;

        padding: 22px;

        border-radius: 15px;
    }


    .offer-price {
        margin-top: 18px;
    }


    .offer-price strong {
        font-size: 44px;
    }


    .offer-info h2 {
        font-size: 28px;
    }


    .offer-action {
        align-items: flex-start;
        flex-direction: column;
    }


    .offer-document {
        grid-template-columns: 28px minmax(0, 1fr) 20px;

        gap: 10px;

        padding: 15px;
    }


    .offer-document:hover {
        padding-left: 15px;
    }


}


/* =========================================================
   BTN2
   ========================================================= */

.btn2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 20px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--bg);
    color: var(--text);

    font: inherit;
    font-size: 14px;
    font-weight: 500;

    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}


.btn2:hover {
    background: var(--surface);
    border-color: var(--text);
    transform: translateY(-1px);
}


.btn2.dark {
    border-color: var(--inverse);
    background: var(--inverse);
    color: var(--inverse-text);
}


.btn2.dark:hover {
    opacity: 0.88;
    border-color: var(--inverse);
    transform: translateY(-1px);
}


.btn2:active {
    transform: translateY(0);
}


/* =========================================================
   DASHBOARD — DOCUMENT ROW
   ========================================================= */

.documents-list .document-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto 24px;
    align-items: center;
    gap: 18px;

    width: 100%;
    min-width: 0;

    padding: 18px 20px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--bg);
    color: var(--text);

    text-decoration: none;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}


.documents-list .document-row:hover {
    background: var(--surface);
    border-color: var(--text);
    transform: translateY(-1px);
}


/* Номер */

.documents-list .document-number {
    width: 32px;

    color: var(--muted);

    font-size: 12px;
    font-weight: 600;
}


/* Основная информация */

.documents-list .document-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 5px;
}


.documents-list .document-info h3 {
    margin: 0;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;

    overflow-wrap: anywhere;
}


.documents-list .document-info > span {
    color: var(--muted);

    font-size: 12px;
    line-height: 1.4;

    overflow-wrap: anywhere;
}


/* =========================================================
   DOCUMENT META
   ========================================================= */

.documents-list .document-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    min-width: max-content;
}


.documents-list .document-meta > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;
    padding: 0 9px;

    border: 1px solid var(--border);
    border-radius: 7px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1;

    white-space: nowrap;
}


/* Статус */

.documents-list .document-meta .document-status {
    color: var(--text);

    background: var(--surface);
}


/* Стрелка */

.documents-list .document-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    width: 24px;

    color: var(--muted);

    font-size: 18px;
    font-weight: 400;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}


.documents-list .document-row:hover .document-arrow {
    color: var(--text);
    transform: translateX(3px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .documents-list .document-row {
        grid-template-columns: 34px minmax(0, 1fr) 24px;
        gap: 14px;
    }


    .documents-list .document-meta {
        grid-column: 2;
        justify-content: flex-start;
    }


    .documents-list .document-arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .documents-list .document-row {
        grid-template-columns: 30px minmax(0, 1fr) 20px;
        gap: 10px;

        padding: 15px;
    }


    .documents-list .document-meta {
        flex-wrap: wrap;
        gap: 6px;
    }


    .documents-list .document-meta > span {
        min-height: 25px;
        padding: 0 7px;

        font-size: 10px;
    }

}

/* =========================================================
   FOOTER COMPANY
   ========================================================= */

.footer-company {
    min-width: 0;
}

.footer-company strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.footer-company small {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.footer-company a {
    display: block;
    margin-top: 8px;
    overflow-wrap: anywhere;
}

.footer-company a:first-of-type {
    margin-top: 12px;
}


/* =========================================================
   CHANGE COMPANY
   ========================================================= */

#changeCompany {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    padding: 0;

    border: 0;
    background: transparent;

    color: var(--muted);

    font: inherit;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 500;

    text-decoration: none;

    cursor: pointer;

    transition:
        color var(--transition);
}

#changeCompany:hover {
    color: var(--text);
}

#changeCompany:focus-visible {
    outline: 1px solid var(--text);
    outline-offset: 4px;
}


.site-form > .form-section > label {
    color: var(--text);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .01em;
    opacity: .82;
}
/* =========================================================
   FINAL MOBILE REFINEMENT
   ПОРЯДОК — финальные исправления адаптива
   ========================================================= */

/* Общая защита от горизонтального переполнения */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

/* ---------------------------------------------------------
   PUBLIC / MAIN PAGE
   --------------------------------------------------------- */

@media (max-width: 760px) {

    .nav,
    .hero,
    .value-bar,
    .section,
    .flow,
    .flow-header,
    .company-layout,
    .offer-section,
    .final-cta,
    .footer-main,
    .footer-bottom {
        width: calc(100% - 28px);
        max-width: calc(100vw - 28px);
    }

    .hero-content,
    .hero-copy,
    .hero-visual,
    .hero-mock,
    .offer-card,
    .offer-info,
    .offer-documents,
    .company-layout,
    .company-copy,
    .company-demo,
    .demo-window,
    .final-cta-inner,
    .risk-layout,
    .risk-main,
    .risk-list,
    .difference-grid,
    .steps,
    .objections {
        min-width: 0;
        max-width: 100%;
    }

    .hero-content {
        gap: 36px;
    }

    .hero-visual {
        width: 100%;
    }

    .hero-mock {
        width: 100%;
        transform: none;
    }

    .mock-top,
    .mock-body,
    .mock-footer,
    .mock-step,
    .mock-generator,
    .mock-tags {
        min-width: 0;
        max-width: 100%;
    }

    .mock-step > div,
    .mock-step strong,
    .mock-step small {
        min-width: 0;
        max-width: 100%;
    }

    .mock-step strong,
    .mock-step small {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .value-bar-inner {
        width: 100%;
        min-width: 0;
    }

    .value-item {
        min-width: 0;
    }

    .value-item > * {
        min-width: 0;
    }

    .risk-main,
    .difference-card,
    .step,
    .objection {
        overflow: hidden;
    }

    .difference-bottom {
        min-width: 0;
    }

    .difference-bottom > * {
        min-width: 0;
    }

    .offer-card {
        width: 100%;
    }

    .offer-document-content {
        min-width: 0;
    }

    .offer-document-content strong,
    .offer-document-content small {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .final-cta-inner {
        width: 100%;
    }

    .final-cta-action,
    .final-cta-action .btn {
        min-width: 0;
        max-width: 100%;
    }

    .footer-column {
        min-width: 0;
    }

    .footer-column a,
    .footer-company strong,
    .footer-company small {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}


@media (max-width: 520px) {

    .nav,
    .hero,
    .value-bar,
    .section,
    .flow,
    .flow-header,
    .company-layout,
    .offer-section,
    .final-cta,
    .footer-main,
    .footer-bottom {
        width: calc(100% - 24px);
        max-width: calc(100vw - 24px);
    }

    .hero {
        padding-top: 38px;
        padding-bottom: 42px;
    }

    .hero-copy h1 {
        max-width: 100%;
        font-size: clamp(36px, 10.5vw, 44px);
    }

    .hero-lead {
        max-width: 100%;
    }

    .hero-actions .btn,
    .hero-actions .btn2 {
        width: 100%;
        max-width: 100%;
    }

    .hero-note {
        max-width: 100%;
    }

    .section {
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .section-heading h2,
    .flow-header h2,
    .company-copy h2 {
        max-width: 100%;
        font-size: 29px;
        line-height: 1.06;
    }

    .risk-main {
        min-height: 0;
        padding: 20px;
    }

    .risk-main h3 {
        margin-top: 30px;
    }

    .difference-card h3 {
        margin-top: 38px;
    }

    .final-cta-inner {
        padding: 28px 20px;
    }

    .final-cta h2 {
        font-size: 34px;
    }

    .offer-section {
        padding: 38px 0;
    }

    .offer-card {
        padding: 20px;
        border-radius: 14px;
    }

    .offer-price strong {
        font-size: 42px;
    }

    .offer-info h2 {
        font-size: 27px;
    }
}


/* ---------------------------------------------------------
   DASHBOARD / APP
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .dash {
        width: calc(100% - 40px);
        max-width: calc(100vw - 40px);
        min-width: 0;
    }

    .dashhead,
    .stats,
    .sites,
    .list,
    .documents-list {
        min-width: 0;
        max-width: 100%;
    }
}


@media (max-width: 760px) {

    .dash {
        width: calc(100% - 28px);
        max-width: calc(100vw - 28px);
        padding-top: 28px;
        padding-bottom: 60px;
    }

    .dashhead {
        gap: 20px;
        margin-top: 8px;
    }

    .dashhead h1 {
        font-size: clamp(29px, 8vw, 36px);
        line-height: 1.05;
    }

    .dashhead .btn,
    .dashhead .btn2 {
        width: 100%;
        max-width: 100%;
    }

    .stats {
        gap: 7px;
        margin: 24px 0;
    }

    .stats > div {
        padding: 15px;
    }

    .sites .site {
        min-width: 0;
        grid-template-columns: minmax(0, 1fr) 24px;
        gap: 8px 12px;
        padding: 14px;
    }

    .sites .site > div,
    .sites .site h3,
    .sites .site code,
    .sites .site small {
        min-width: 0;
        max-width: 100%;
    }

    .sites .site h3,
    .sites .site code,
    .sites .site small {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .sites .site > span {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .sites .site > b,
    .sites .site > strong {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }
}


/* ---------------------------------------------------------
   NEW SITE MODAL
   --------------------------------------------------------- */

@media (max-width: 900px) {

    dialog#newSite {
        width: min(860px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        max-height: calc(100svh - 24px);
        margin: auto;
        border-radius: 16px;
    }

    .site-form {
        min-width: 0;
        max-width: 100%;
        max-height: calc(100svh - 24px);
        overflow-x: hidden;
    }

    .site-form * {
        min-width: 0;
        max-width: 100%;
    }
}


@media (max-width: 600px) {

    dialog#newSite {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        max-height: calc(100svh - 16px);
        border-radius: 14px;
    }

    .site-form {
        padding: 22px 17px;
        max-height: calc(100svh - 16px);
    }

    .site-form > h2 {
        max-width: calc(100% - 38px);
        font-size: 27px;
    }

    .form-intro {
        max-width: 100%;
        padding-right: 35px;
        overflow-wrap: anywhere;
    }

    .form-section {
        min-width: 0;
    }

    .section-title {
        grid-template-columns: 27px minmax(0, 1fr);
        gap: 10px;
    }

    .section-title h3,
    .section-title p {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    /* Поиск компании */
    .company-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
    }

    .company-search input,
    .search-company-btn {
        width: 100%;
        min-width: 0;
    }

    .search-company-btn {
        min-height: 42px;
    }

    /* Список найденных организаций */
    .company-results {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .company-result {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 13px;
        overflow: hidden;

        appearance: none;
        -webkit-appearance: none;

        font: inherit;
        color: var(--text);
    }

    .company-result strong,
    .company-result span,
    .company-result small {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;

        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .company-result strong {
        margin-bottom: 5px;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.4;
    }

    .company-result span {
        margin-bottom: 5px;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.45;
    }

    .company-result small {
        color: var(--muted);
        font-size: 10px;
        line-height: 1.5;
    }

    .company-result:hover {
        transform: none;
    }

    /* Найденная компания */
    .company-data {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        padding: 12px;
    }

    .company-data-head {
        align-items: flex-start;
        gap: 10px;
    }

    .company-data-head > span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .company-details {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .company-details > div,
    .company-details strong {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* Вопросы Да / Нет */
    .question {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px;
    }

    .question > span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .radio {
        white-space: nowrap;
    }

    /* Чекбоксы */
    .checkbox-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .checkbox {
        min-width: 0;
    }

    .checkbox span,
    .checkbox label {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    /* Кнопка изменения компании */
    #changeCompany {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}


@media (max-width: 430px) {

    dialog#newSite {
        width: calc(100vw - 10px);
        max-width: calc(100vw - 10px);
        max-height: calc(100svh - 10px);
        border-radius: 12px;
    }

    .site-form {
        padding: 20px 14px;
        max-height: calc(100svh - 10px);
    }

    .site-form > h2 {
        font-size: 25px;
    }

    .form-section {
        padding: 22px 0;
    }

    .section-title {
        margin-bottom: 16px;
    }

    .question {
        grid-template-columns: 1fr auto auto;
    }

    .radio {
        font-size: 10px;
    }

    .company-result {
        padding: 12px;
    }
}


/* ---------------------------------------------------------
   DOCUMENTS / LISTS — MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {

    .list > a:not(.site),
    .list > a.site,
    .documents-list .document-row {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .list > a:not(.site) > b,
    .list > a:not(.site) > strong,
    .list > a.site > strong,
    .documents-list .document-arrow {
        flex: 0 0 auto;
    }

    .list > a:not(.site) > b,
    .list > a:not(.site) > span,
    .list > a.site > span,
    .documents-list .document-meta {
        max-width: 100%;
    }

    .list > a:not(.site) > b,
    .list > a:not(.site) > span,
    .list > a.site > span,
    .documents-list .document-meta > span {
        white-space: nowrap;
    }

    .list > a:not(.site) > b,
    .list > a:not(.site) > strong,
    .list > a.site > strong,
    .documents-list .document-arrow {
        align-self: center;
    }

    .list > a:not(.site) > b,
    .list > a.site > b {
        min-width: 0;
    }
}


/* ---------------------------------------------------------
   FOOTER — MOBILE
   --------------------------------------------------------- */

@media (max-width: 520px) {

    .footer-main {
        padding: 40px 0 34px;
        gap: 32px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-bottom {
        padding: 16px 0 20px;
        gap: 8px;
    }
}


/* =========================================================
DASHBOARD ONBOARDING
========================================================= */

.onboarding[hidden] {
display: none;
}


.onboarding-card h3 {
margin: 0 30px 9px 0;
font-size: 17px;
font-weight: 600;
line-height: 1.3;
letter-spacing: -0.02em;

}


.onboarding-card p {
margin: 0;
color: var(--muted);
font-size: 13px;
line-height: 1.55;
}



@media (max-width: 700px) {
}


/* =========================================================
ONBOARDING / ПОДСКАЗКИ
========================================================= */


/* =========================================================
ФОН
========================================================= */

/* =========================================================
КАРТОЧКА
========================================================= */


/* =========================================================
ШАГ
========================================================= */


/* =========================================================
ИКОНКА / НОМЕР
========================================================= */


/* =========================================================
ЗАГОЛОВОК
========================================================= */

.onboarding-card h3 {
margin: 0 0 10px;


color: var(--text);

font-size: 20px;
font-weight: 600;

line-height: 1.25;


}

/* =========================================================
ТЕКСТ
========================================================= */

.onboarding-card p {
margin: 0;


color: var(--muted);

font-size: 13px;
line-height: 1.6;


}

.onboarding-card p strong {
color: var(--text);
font-weight: 600;
}

/* =========================================================
КНОПКИ
========================================================= */



/* =========================================================
БЛОКИРОВКА СКРОЛЛА
========================================================= */




/* =========================================================
МОБИЛЬНЫЕ
========================================================= */

@media (max-width: 600px) {





.onboarding-card h3 {
    font-size: 18px;
}


.onboarding-card p {
    font-size: 12px;
    line-height: 1.55;
}




}


/* =========================================================
   DOCUMENT PAGE
   ========================================================= */

.document {
    flex: 1;
    min-width: 0;
    padding: 32px 42px 60px;
    overflow-x: hidden;
}


/* =========================================================
   DOCUMENT TOOLBAR
   ========================================================= */

.document .toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;

    max-width: 1180px;
    margin: 0 auto 28px;
}

.document .toolbar > div:first-child {
    min-width: 0;
}

.document .toolbar h1 {
    margin: 8px 0 7px;

    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.025em;

    color: var(--text);
}

.document .muted {
    color: var(--muted);
}

.document .toolbar > div:first-child > .muted:first-child {
    display: inline-flex;
    align-items: center;

    font-size: 14px;
    line-height: 1.4;

    text-decoration: none;
    transition: color .15s ease;
}

.document .toolbar > div:first-child > .muted:first-child:hover {
    color: var(--text);
}


/* =========================================================
   DOCUMENT ACTIONS
   ========================================================= */

.document-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.document-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 0 14px;

    white-space: nowrap;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}


/* =========================================================
   PAPER
   ========================================================= */

.document .paper {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;

    padding: 52px 64px 72px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 14px;

    color: var(--text);

    font-size: 15px;
    line-height: 1.7;

    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}


/* =========================================================
   DOCUMENT CONTENT
   ========================================================= */

.document .paper h1,
.document .paper h2,
.document .paper h3,
.document .paper h4 {
    color: var(--text);
}

.document .paper h1 {
    margin: 0 0 28px;

    font-size: 27px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.02em;
}

.document .paper h2 {
    margin: 38px 0 16px;

    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -.015em;
}

.document .paper h3 {
    margin: 30px 0 12px;

    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}

.document .paper h4 {
    margin: 24px 0 10px;

    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.document .paper p {
    margin: 0 0 16px;
}

.document .paper p:last-child {
    margin-bottom: 0;
}

.document .paper strong {
    font-weight: 700;
}

.document .paper em {
    font-style: italic;
}

.document .paper ul,
.document .paper ol {
    margin: 0 0 18px;
    padding-left: 26px;
}

.document .paper li {
    margin: 5px 0;
}

.document .paper a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.document .paper blockquote {
    margin: 24px 0;
    padding: 14px 18px;

    border-left: 3px solid var(--border);

    color: var(--muted);
}


/* =========================================================
   TABLES
   ========================================================= */

.document .paper table {
    width: 100%;
    margin: 24px 0;

    border-collapse: collapse;

    font-size: 14px;
}

.document .paper th,
.document .paper td {
    padding: 11px 12px;

    border: 1px solid var(--border);

    text-align: left;
    vertical-align: top;
}

.document .paper th {
    font-weight: 600;
    background: var(--bg);
}


/* =========================================================
   CODE / PRE
   ========================================================= */

.document .paper code {
    padding: 2px 5px;

    border-radius: 5px;

    background: var(--bg);

    font-size: .9em;
}

.document .paper pre {
    max-width: 100%;
    overflow-x: auto;

    margin: 20px 0;
    padding: 16px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--bg);

    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   IMAGES
   ========================================================= */

.document .paper img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 24px auto;

    border-radius: 8px;
}


/* =========================================================
   HORIZONTAL RULE
   ========================================================= */

.document .paper hr {
    margin: 32px 0;

    border: 0;
    border-top: 1px solid var(--border);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1000px) {

    .document {
        padding: 26px 24px 50px;
    }

    .document .toolbar {
        gap: 20px;
    }

    .document .paper {
        padding: 42px 44px 58px;
    }

}


@media (max-width: 800px) {

    .document {
        padding: 22px 16px 40px;
    }

    .document .toolbar {
        flex-direction: column;
        align-items: stretch;

        margin-bottom: 20px;
    }

    .document .toolbar h1 {
        font-size: 24px;
    }

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

    .document .paper {
        padding: 32px 26px 46px;

        border-radius: 10px;
    }

}


@media (max-width: 560px) {

    .document {
        padding: 18px 12px 30px;
    }

    .document .toolbar h1 {
        font-size: 22px;
    }

    .document-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .document-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .document .paper {
        padding: 26px 20px 38px;

        font-size: 14px;
        line-height: 1.65;
    }

    .document .paper h1 {
        font-size: 23px;
    }

    .document .paper h2 {
        font-size: 19px;
        margin-top: 32px;
    }

    .document .paper h3 {
        font-size: 16px;
    }

    .document .paper table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

    html,
    body {
        background: #fff !important;
    }

    .side,
    .toolbar {
        display: none !important;
    }

    .document {
        padding: 0 !important;
        margin: 0 !important;
    }

    .document .paper {
        max-width: none;

        padding: 0;

        border: 0;
        border-radius: 0;

        box-shadow: none;

        color: #000;
        background: #fff;
    }

    .document .paper a {
        color: #000;
        text-decoration: none;
    }

    .document .paper h1,
    .document .paper h2,
    .document .paper h3,
    .document .paper h4 {
        color: #000;
    }

    .document .paper table {
        break-inside: avoid;
    }

    .document .paper tr {
        break-inside: avoid;
    }

}

/* =========================================================
   DOCUMENT PUBLISH — FINAL
   ========================================================= */

.document-publish {
    width: 100%;
    max-width: 1180px;

    margin: 18px auto 0;
    padding: 20px 22px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface);
}

.document-publish-header {
    margin-bottom: 16px;
}

.document-publish-header h2 {
    margin: 0 0 4px;

    font-size: 17px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -.02em;
}

.document-publish-header p {
    margin: 0;

    font-size: 12px;
    line-height: 1.5;
}

.publish-block {
    padding: 14px 0;

    border-top: 1px solid var(--border);
}

.publish-block:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.publish-block:last-child {
    padding-bottom: 0;
}

.publish-label {
    margin-bottom: 7px;

    color: var(--text);

    font-size: 11px;
    font-weight: 600;
}

.code-box {
    width: 100%;
}

.code-box textarea {
    display: block;

    width: 100%;
    min-height: 96px;
    max-height: 180px;

    padding: 11px 12px;

    resize: vertical;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--bg);
    color: var(--muted);

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 11px;
    line-height: 1.5;

    outline: none;

    transition:
        border-color var(--transition),
        background-color var(--transition);
}

.code-box textarea:focus {
    border-color: var(--accent-line);
    background: var(--bg);
}

.publish-actions {
    display: flex;
    align-items: center;

    margin-top: 8px;
}

.publish-actions .btn {
    min-height: 34px;

    padding: 0 12px;

    font-size: 12px;
}

.public-url-row {
    display: grid;

    grid-template-columns: minmax(0, 1fr) auto;

    gap: 8px;
}

.public-url-row input {
    width: 100%;
    min-width: 0;
    height: 38px;

    padding: 0 11px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--bg);
    color: var(--text);

    font-size: 12px;

    outline: none;

    transition:
        border-color var(--transition),
        background-color var(--transition);
}

.public-url-row input:focus {
    border-color: var(--accent-line);
}

.public-url-row .btn {
    min-height: 38px;
    padding: 0 13px;

    font-size: 12px;
}

.publish-hint {
    margin: 7px 0 0;

    font-size: 11px;
    line-height: 1.45;
}


/* =========================================================
   DOCUMENT PUBLISH — MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .document-publish {
        margin-top: 14px;
        padding: 17px;
        border-radius: 10px;
    }

    .document-publish-header {
        margin-bottom: 13px;
    }

    .publish-block {
        padding: 12px 0;
    }

}


@media (max-width: 560px) {

    .document-publish {
        margin-top: 12px;
        padding: 15px;

        border-radius: 9px;
    }

    .document-publish-header h2 {
        font-size: 16px;
    }

    .document-publish-header p {
        font-size: 11px;
    }

    .code-box textarea {
        min-height: 90px;
        padding: 10px;

        font-size: 10px;
    }

    .publish-actions {
        margin-top: 7px;
    }

    .publish-actions .btn {
        width: 100%;
    }

    .public-url-row {
        grid-template-columns: 1fr;
    }

    .public-url-row .btn {
        width: 100%;
    }

}


/* =========================================================
   DOCUMENT PREVIEW / BLUR
   ========================================================= */

.document-preview-wrapper {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.document-preview-wrapper .paper {
    margin: 0;
}

/* Размываем только содержимое документа */
.document-preview-wrapper.document-locked .paper {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

/* Дополнительное затемнение */
.document-preview-wrapper.document-locked::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;

    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.72)
    );

    border-radius: 14px;
    pointer-events: none;
}

/* Карточка поверх документа */
.document-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
}

/* Само окно оплаты */
.document-lock-card {
    width: min(390px, 100%);
    padding: 28px;

    text-align: center;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: 0 12px 40px rgba(0, 0, 0, .10);
}

.document-lock-title {
    margin-bottom: 8px;

    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.document-lock-text {
    margin-bottom: 18px;

    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.document-lock-price {
    margin-bottom: 16px;

    color: var(--text);
    font-size: 22px;
    font-weight: 700;
}

.document-lock-card form {
    margin: 0;
}

.document-lock-card .btn {
    width: 100%;
    min-height: 42px;
    justify-content: center;
}

/* Dark theme */
html[data-theme="dark"] .document-preview-wrapper.document-locked::after {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0.68)
    );
}

@media (max-width: 700px) {

    .document-preview-wrapper.document-locked .paper {
        filter: blur(4px);
    }

    .document-lock-overlay {
        padding: 18px;
    }

    .document-lock-card {
        padding: 22px;
    }
}


/* =========================================================
   MOBILE HOME LINK
   ========================================================= */

.mobile-home {
    display: none;
}

@media (max-width: 800px) {
    .mobile-home {
        display: inline-flex;
        align-items: center;

        margin-bottom: 16px;

        color: var(--muted);
        font-size: 13px;
        line-height: 1;
        text-decoration: none;
    }

    .mobile-home:hover {
        color: var(--text);
    }
}






/* =========================================================
   DOCUMENT BUNDLE
   ========================================================= */

.document-bundle {
    margin: 26px 0 30px;
    padding: 26px 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #0788ff 0%,
            #006fe6 100%
        );

    color: #fff;

    box-shadow:
        0 14px 34px rgba(7, 136, 255, 0.22);
}


/* =========================================================
   LEFT
   ========================================================= */

.document-bundle-info {
    min-width: 0;
}


.document-bundle-label {
    display: inline-flex;

    margin-bottom: 9px;
    padding: 5px 9px;

    border-radius: 6px;

    background: rgba(255, 255, 255, .16);

    color: rgba(255, 255, 255, .92);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .08em;
}


.document-bundle-info h2 {
    margin: 0 0 6px;

    color: #fff;

    font-size: 22px;
    line-height: 1.2;
}


.document-bundle-info p {
    margin: 0;

    max-width: 560px;

    color: rgba(255, 255, 255, .86);

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   RIGHT
   ========================================================= */

.document-bundle-action {
    display: flex;
    align-items: center;

    gap: 22px;

    flex-shrink: 0;
}


.document-bundle-price {
    display: flex;
    flex-direction: column;

    text-align: right;
}


.document-bundle-price strong {
    color: #fff;

    font-size: 28px;
    line-height: 1;

    font-weight: 800;
}


.document-bundle-price span {
    margin-top: 5px;

    color: rgba(255, 255, 255, .72);

    font-size: 11px;
}


/* =========================================================
   BUTTON
   ========================================================= */

.document-bundle-btn {
    min-height: 48px;

    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border: 0;
    border-radius: 10px;

    background: #fff;
    color: #006fce;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    white-space: nowrap;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}


.document-bundle-btn:hover {
    transform: translateY(-1px);

    background: #f5f9ff;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .16);
}


.document-bundle-btn:active {
    transform: translateY(0);
}


.document-bundle-btn span {
    font-size: 17px;
}


/* =========================================================
   PAID
   ========================================================= */

.document-bundle-paid {
    min-height: 48px;

    padding: 0 18px;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    border-radius: 10px;

    background: rgba(255, 255, 255, .16);

    color: #fff;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .document-bundle {
        padding: 22px;

        flex-direction: column;
        align-items: stretch;

        gap: 22px;
    }


    .document-bundle-action {
        justify-content: space-between;
    }


    .document-bundle-price {
        text-align: left;
    }


    .document-bundle-btn {
        flex: 1;
    }

}


@media (max-width: 480px) {

    .document-bundle-action {
        flex-direction: column;
        align-items: stretch;

        gap: 14px;
    }


    .document-bundle-btn {
        width: 100%;
    }
}



/* =========================================================
   DASHBOARD ONBOARDING
   ========================================================= */

.onboarding {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    isolation: isolate;
}

.onboarding[hidden] {
    display: none;
}


/* =========================================================
   BACKDROP
   ========================================================= */

.onboarding-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.42);

    /* Никакого blur */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}


/* =========================================================
   CARD
   ========================================================= */

.onboarding-card {
    position: relative;
    z-index: 100000 !important;

    width: min(420px, calc(100% - 40px));
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

@keyframes onboarding-card-in {

    from {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }

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

}


/* =========================================================
   CLOSE
   ========================================================= */

.onboarding-close {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: var(--muted);

    font: inherit;
    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transition:
        background .18s ease,
        color .18s ease;
}

.onboarding-close:hover {
    background: var(--surface);
    color: var(--text);
}


/* =========================================================
   STEP
   ========================================================= */

.onboarding-step {
    display: block;

    margin-bottom: 20px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: .08em;
    text-transform: uppercase;
}


/* =========================================================
   TITLE
   ========================================================= */

.onboarding-card h3 {
    margin: 0 0 10px;

    color: var(--text);

    font-size: 20px;
    font-weight: 600;

    line-height: 1.25;
}


/* =========================================================
   TEXT
   ========================================================= */

.onboarding-card p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.onboarding-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    margin-top: 26px;
}


/* =========================================================
   NEXT BUTTON
   ========================================================= */

.onboarding-next {
    min-height: 40px;

    padding: 0 16px;

    border: 1px solid var(--inverse);
    border-radius: 9px;

    background: var(--inverse);
    color: var(--inverse-text);

    font: inherit;
    font-size: 13px;
    font-weight: 500;

    line-height: 1;

    cursor: pointer;

    transition:
        opacity .18s ease,
        transform .18s ease;
}

.onboarding-next:hover {
    opacity: .88;

    transform: translateY(-1px);
}

.onboarding-next:active {
    transform: translateY(0);
}


/* =========================================================
   HIGHLIGHT
   ========================================================= */

.onboarding-target {
    position: relative !important;
    z-index: 1 !important;

    box-shadow:
        0 0 0 4px var(--bg),
        0 0 0 7px var(--accent),
        0 12px 35px rgba(0, 0, 0, .14) !important;

    border-radius: 10px;
}

#newSiteButton.onboarding-target {
    border-color: var(--accent) !important;
}

#dashboardSites.onboarding-target {
    border-radius: 14px !important;
}


/* =========================================================
   NEW SITE BUTTON
   ========================================================= */

#newSiteButton.onboarding-target {
    border-color: var(--accent) !important;

    box-shadow:
        0 0 0 4px var(--bg),
        0 0 0 7px var(--accent),
        0 10px 30px rgba(0, 0, 0, .16) !important;
}


/* =========================================================
   SITES BLOCK
   ========================================================= */

#dashboardSites.onboarding-target {
    border-radius: 14px;

    box-shadow:
        0 0 0 4px var(--bg),
        0 0 0 7px var(--accent),
        0 12px 40px rgba(0, 0, 0, .12) !important;
}


/* =========================================================
   DARK THEME
   ========================================================= */

html[data-theme="dark"] .onboarding-backdrop {
    background: rgba(0, 0, 0, 0.58);
}

html[data-theme="dark"] .onboarding-card {
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.48);
}

html[data-theme="dark"] .onboarding-target {
    box-shadow:
        0 0 0 4px var(--bg),
        0 0 0 7px var(--accent),
        0 12px 40px rgba(0, 0, 0, .35) !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .onboarding {
        padding: 18px;
    }

    .onboarding-card {
        width: min(
            100%,
            calc(100vw - 36px)
        );

        padding: 24px;

        border-radius: 14px;
    }

    .onboarding-card h3 {
        font-size: 19px;
    }

    .onboarding-card p {
        font-size: 13px;
    }

    .onboarding-target {
        box-shadow:
            0 0 0 3px var(--bg),
            0 0 0 5px var(--accent) !important;
    }

}


/* =========================================================
   SCROLL LOCK
   ========================================================= */

body.onboarding-open {
    overflow: hidden;
}



/* =========================================================
   ONBOARDING — FIX FOR HIGHLIGHT
   ========================================================= */

.onboarding-target {
    position: relative !important;
    z-index: 10000 !important;

    box-shadow:
        0 0 0 4px var(--bg),
        0 0 0 7px var(--accent),
        0 12px 35px rgba(0, 0, 0, .14) !important;

    border-radius: 10px;
}

#newSiteButton.onboarding-target {
    border-color: var(--accent) !important;
}

#dashboardSites.onboarding-target {
    border-radius: 14px !important;
}


/* ВАЖНО:
   родители не должны обрезать голубую обводку
*/
.shell:has(.onboarding-target),
.shell:has(.onboarding-target) .dash {
    overflow: visible !important;
}


/* Сам onboarding поверх всего интерфейса */
.onboarding {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .42);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.onboarding-card {
    position: relative;
    z-index: 10001;
    width: min(420px, calc(100% - 40px));
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

@media (max-width: 600px) {
    .onboarding-card {
        width: calc(100% - 32px);
        padding: 24px;
    }
}



/* =========================================================
   ONBOARDING / ПОДСКАЗКИ
   ========================================================= */

.onboarding {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.onboarding[hidden] {
    display: none;
}


/* Затемнение */

.onboarding-backdrop {
    position: fixed;
    inset: 0;

    z-index: 99990;

    background: rgba(0, 0, 0, .42);
}


/* Карточка подсказки */

.onboarding-card {
    position: fixed;

    z-index: 100000;

    width: min(390px, calc(100vw - 40px));

    padding: 26px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--bg);

    box-shadow:
        0 24px 70px rgba(0, 0, 0, .22);

    transition:
        left .2s ease,
        top .2s ease;
}


/* Подсвечиваемый элемент */

.onboarding-target {
    position: relative !important;

    z-index: 99995 !important;

    box-shadow:
        0 0 0 4px var(--bg),
        0 0 0 7px var(--accent),
        0 12px 35px rgba(0, 0, 0, .14) !important;

    border-radius: 10px;
}


/* Не даём родителям обрезать подсветку */

.shell:has(.onboarding-target),
.shell:has(.onboarding-target) .dash {
    overflow: visible !important;
}


/* Тёмная тема */

html[data-theme="dark"] .onboarding-backdrop {
    background: rgba(0, 0, 0, .58);
}

html[data-theme="dark"] .onboarding-card {
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] .onboarding-target {
    box-shadow:
        0 0 0 4px var(--bg),
        0 0 0 7px var(--accent),
        0 12px 40px rgba(0, 0, 0, .35) !important;
}


/* Страница не прокручивается */

body.onboarding-open {
    overflow: hidden;
}


/* Мобильные устройства */

@media (max-width: 700px) {

    .onboarding-card {
        width: calc(100vw - 32px);

        max-width: 390px;

        padding: 24px;
    }

}


.onboarding-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.onboarding-skip {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    padding: 8px 4px;
    cursor: pointer;
    transition:
        color .18s ease,
        opacity .18s ease;
}

.onboarding-skip:hover {
    color: var(--text);
}

.onboarding-skip:active {
    opacity: .65;
}

.onboarding-skip:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.onboarding-next {
    appearance: none;
    border: 0;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 11px 16px;
    cursor: pointer;
    transition:
        background .18s ease,
        transform .18s ease;
}

.onboarding-next:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.onboarding-next:active {
    transform: translateY(0);
}

.onboarding-next:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}


.form-submit-note {
    margin: 10px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.6;
}





/* =========================================================
   DOKURA — LEGAL PAGES
   Дополнение к существующему разделу 31. LEGAL
   ========================================================= */

.legal-page {
    width: min(820px, calc(100% - 40px));
    padding: 64px 0 90px;
}

/* Верхняя часть */

.legal-page-header {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.legal-page-header .legal-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 12px;
    transition: color var(--transition);
}

.legal-page-header .legal-back:hover {
    color: var(--accent);
}

.legal-page-header .eyebrow {
    margin-bottom: 15px;
}

/* Основной текст */

.legal-content {
    max-width: 760px;
    padding-top: 36px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

/* Главный заголовок */

.legal-content > h1 {
    margin: 0 0 30px;
    max-width: 760px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.055em;
}

/* Заголовки разделов */

.legal-content h2 {
    margin: 42px 0 15px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 21px;
    line-height: 1.3;
    font-weight: 650;
    letter-spacing: -.035em;
}

.legal-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* Подзаголовки */

.legal-content h3 {
    margin: 25px 0 10px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -.02em;
}

/* Абзацы */

.legal-content p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-content strong,
.legal-content b {
    color: var(--text);
    font-weight: 600;
}

/* Списки */

.legal-content ul,
.legal-content ol {
    margin: 12px 0 20px;
    padding-left: 24px;
    color: var(--muted);
}

.legal-content li {
    padding-left: 5px;
    margin-bottom: 9px;
    line-height: 1.75;
}

.legal-content li::marker {
    color: var(--accent);
}

/* Ссылки */

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-line);
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.legal-content a:hover {
    color: var(--accent-strong);
}

/* Нижняя часть */

.legal-page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 55px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
}

.legal-page-footer a {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.04em;
    transition: color var(--transition);
}

.legal-page-footer a:hover {
    color: var(--accent);
}

/* Адаптация под мобильные */

@media (max-width: 600px) {

    .legal-page {
        width: calc(100% - 32px);
        padding: 38px 0 55px;
    }

    .legal-page-header {
        padding-bottom: 24px;
    }

    .legal-page-header .legal-back {
        margin-bottom: 22px;
    }

    .legal-content {
        padding-top: 27px;
        font-size: 13px;
        line-height: 1.8;
    }

    .legal-content > h1 {
        margin-bottom: 24px;
        font-size: 30px;
        line-height: 1.12;
    }

    .legal-content h2 {
        margin-top: 32px;
        padding-top: 20px;
        font-size: 19px;
    }

    .legal-content h3 {
        font-size: 15px;
    }

    .legal-content p {
        font-size: 13px;
        line-height: 1.8;
    }

    .legal-content ul,
    .legal-content ol {
        padding-left: 20px;
    }

    .legal-page-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-top: 40px;
    }
}
