/* Лендинг jotline — самодостаточный файл: переменные дублируют палитру app.css,
   чтобы страница не тянула стили приложения. */

:root {
    --bg: #ffffff;
    --bg-alt: #f7f7f8;
    --border: #e3e3e6;
    --text: #1c1c1e;
    --text-muted: #5f5f66;
    --accent: #2b5fd9;
    --accent-soft: rgba(43, 95, 217, 0.1);
    --hover: #eef0f5;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #17181a;
        --bg-alt: #101113;
        --border: #2c2d30;
        --text: #ececed;
        --text-muted: #9a9aa0;
        --accent: #7aa0ff;
        --accent-soft: rgba(122, 160, 255, 0.14);
        --hover: #232427;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.45);
    }
}

:root[data-theme="dark"] {
    --bg: #17181a;
    --bg-alt: #101113;
    --border: #2c2d30;
    --text: #ececed;
    --text-muted: #9a9aa0;
    --accent: #7aa0ff;
    --accent-soft: rgba(122, 160, 255, 0.14);
    --hover: #232427;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    /* якорь #features не должен уезжать под липкую шапку */
    scroll-padding-top: 84px;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-wrap: break-word;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    line-height: 1.25;
    margin: 0;
    overflow-wrap: break-word;
}

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

.wrap {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Кнопки --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.92;
}

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

.btn-ghost:hover {
    background: var(--hover);
}

.btn-sm {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 14px;
}

/* --- Шапка --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
}

.brand {
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
    margin-right: auto;
}

.brand:hover {
    text-decoration: none;
}

.brand-dot {
    color: var(--accent);
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

/* --- Hero --- */

.hero {
    padding: 64px 0 40px;
}

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

.hero h1 {
    font-size: 42px;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.hero-lead {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0 0 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 16px;
}

.hero-note {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.eyebrow {
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
}

/* --- Мокап интерфейса --- */

.mock {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    box-shadow: var(--shadow);
    overflow: hidden;
    font-size: 14px;
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.mock-title {
    margin-left: 6px;
    color: var(--text-muted);
    font-size: 13px;
}

.mock-body {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 260px;
}

.mock-side {
    background: var(--bg-alt);
    border-right: 1px solid var(--border);
    padding: 12px 8px;
}

.mock-nav {
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--text);
}

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

.mock-label {
    margin: 12px 8px 4px;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.mock-main {
    padding: 14px 16px;
}

.mock-h {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

.mock-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}

.mock-box {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    margin-top: 3px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.mock-box.is-done {
    background: var(--accent);
    border-color: var(--accent);
}

.mock-row.is-done span {
    color: var(--text-muted);
    text-decoration: line-through;
}

.mock-tag {
    color: var(--accent);
    font-size: 13px;
}

.mock-note {
    color: var(--text-muted);
    font-style: italic;
}

.mock-add {
    margin-top: 12px;
    color: var(--text-muted);
}

/* --- Секции --- */

.section {
    padding: 56px 0;
    border-top: 1px solid var(--border);
}

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

.section-head {
    max-width: 640px;
    margin-bottom: 32px;
}

.section-head h2 {
    font-size: 30px;
    font-weight: 650;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.section-head p {
    font-size: 17px;
    color: var(--text-muted);
    margin: 0;
}

/* --- Карточки возможностей --- */

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

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

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

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 18px;
    line-height: 1;
}

.card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.card p {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
}

/* --- Шаги --- */

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

.step {
    padding: 20px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    background: var(--bg);
}

.step-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.step p {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
}

/* --- Преимущества (список) --- */

.perks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.perks li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 16px;
}

.perks b {
    font-weight: 600;
}

.perks .tick {
    flex-shrink: 0;
    color: var(--accent);
    font-weight: 700;
    line-height: 1.5;
}

.perks span.txt {
    color: var(--text-muted);
}

/* --- Горячие клавиши --- */

.keys {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.keys li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--text-muted);
}

kbd {
    flex-shrink: 0;
    display: inline-block;
    min-width: 28px;
    padding: 2px 7px;
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    text-align: center;
}

/* --- Финальный призыв --- */

.cta {
    text-align: center;
    padding: 64px 0;
    border-top: 1px solid var(--border);
}

.cta h2 {
    font-size: 30px;
    font-weight: 650;
    margin-bottom: 12px;
}

.cta p {
    font-size: 17px;
    color: var(--text-muted);
    margin: 0 auto 24px;
    max-width: 520px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
}

/* --- Подвал --- */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    padding: 24px 0;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Адаптив --- */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

@media (max-width: 640px) {
    .hero {
        padding: 40px 0 32px;
    }

    .hero h1 {
        font-size: 30px;
    }

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

    .section {
        padding: 40px 0;
    }

    .section-head h2,
    .cta h2 {
        font-size: 24px;
    }

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

    .mock-body {
        grid-template-columns: 116px 1fr;
    }

    .mock {
        font-size: 13px;
    }

    .hero-actions .btn,
    .cta-actions .btn {
        flex: 1 1 160px;
    }
}
