@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #121212;
    color: #e8e8e8;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.light-theme {
    background: #f5f7fb;
    color: #1f2937;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header-inner {
    width: 100%;
    max-width: 800px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

body.light-theme .site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header-logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #e8e8e8;
    letter-spacing: 0.02em;
    text-decoration: none;
    flex-shrink: 0;
}

.site-header-logo:hover {
    color: #fff;
}

body.light-theme .site-header-logo {
    color: #1f2937;
}

body.light-theme .site-header-logo:hover {
    color: #111;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-nav a {
    color: #94a3b8;
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.site-nav a:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
}

.site-nav a.is-active {
    color: #e8e8e8;
    font-weight: 500;
}

body.light-theme .site-nav a {
    color: #64748b;
}

body.light-theme .site-nav a:hover {
    color: #1e293b;
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .site-nav a.is-active {
    color: #1f2937;
}

.site-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-lang-select {
    min-height: 36px;
    padding: 6px 28px 6px 10px;
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 18px;
}

body.light-theme .site-lang-select {
    color: #1e293b;
    background-color: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.12);
}

.site-theme-toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #e8e8e8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.site-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
}

body.light-theme .site-theme-toggle {
    background: rgba(0, 0, 0, 0.06);
    color: #475569;
}

body.light-theme .site-theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.site-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #5b8def;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.site-cta:hover {
    background: #4a7ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(91, 141, 239, 0.35);
}

.site-cta-hero {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(91, 141, 239, 0.25);
}

.site-cta-footer {
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        height: 3rem;
        padding: 0 0.75rem;
    }
    .site-main {
        padding-top: 3rem;
    }
    .site-main h1 {
        margin-top: 1.5rem;
    }
    .site-header-logo {
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        max-width: 55%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .site-nav {
        display: none;
    }
}

/* Main content */
.site-main {
    flex: 1;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

/* Desktop: комфортная ширина и отступы */
@media (min-width: 1024px) {
    .site-header {
        padding: 0 2rem;
    }

    .site-nav {
        gap: 0.25rem;
    }

    .site-nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }

    .site-main {
        max-width: 800px;
        padding: 3rem 2rem 5rem;
    }

    .site-footer {
        padding: 3.5rem 2rem 2.5rem;
    }

    .site-footer-inner {
        max-width: 800px;
    }
}

@media (min-width: 1280px) {
    .site-main {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.site-main h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.site-main h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: #e2e8f0;
    letter-spacing: -0.01em;
}

body.light-theme .site-main h2 {
    color: #334155;
}

.site-main p {
    margin-bottom: 1rem;
}

/* Hero (index) */
.site-hero {
    text-align: center;
    padding: 4rem 0 3rem;
    position: relative;
}

.site-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(91, 141, 239, 0.08) 0%, transparent 55%);
    pointer-events: none;
}

body.light-theme .site-hero::before {
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(79, 124, 255, 0.06) 0%, transparent 55%);
}

.site-hero-tagline {
    font-size: 0.9rem;
    font-weight: 500;
    color: #5b8def;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

body.light-theme .site-hero-tagline {
    color: #4f7cff;
}

.site-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .site-hero-title {
        font-size: 1.9rem;
    }
}

.site-hero-lead {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
}

body.light-theme .site-hero-lead {
    color: #64748b;
}

.site-hero .site-cta {
    margin-bottom: 0.25rem;
}

.site-hero-links {
    margin-top: 1.75rem;
    font-size: 0.95rem;
}

.site-hero-links a {
    color: #5b8def;
    text-decoration: none;
}

.site-hero-links a:hover {
    text-decoration: underline;
}

.site-hero-dot {
    color: #64748b;
    margin: 0 0.35rem;
    pointer-events: none;
}

/* Intro section (index) */
.site-intro {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-theme .site-intro {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.site-intro-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.site-intro-text {
    color: #94a3b8;
    margin-bottom: 1rem;
}

body.light-theme .site-intro-text {
    color: #64748b;
}

.site-intro-links {
    font-size: 0.95rem;
}

.site-intro-links a {
    color: #5b8def;
    text-decoration: none;
}

.site-intro-links a:hover {
    text-decoration: underline;
}

.site-intro-next {
    font-size: 0.95rem;
    margin-top: 1rem;
}

.site-intro-next a {
    color: #5b8def;
    text-decoration: none;
}

.site-intro-next a:hover {
    text-decoration: underline;
}

.site-next-link {
    margin-top: 2rem;
    font-size: 0.95rem;
}

.site-next-link a {
    color: #5b8def;
    text-decoration: none;
}

.site-next-link a:hover {
    text-decoration: underline;
}

body.light-theme .site-intro-next a,
body.light-theme .site-next-link a {
    color: #4f7cff;
}

/* Features list */
.site-features-list {
    list-style: none;
}

.site-features-list li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-theme .site-features-list li {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.site-features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5b8def;
}

.site-features-filters-list li {
    border-bottom: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.site-features-filters-list li:first-child {
    padding-top: 0;
}

.site-features-filters-list li::before {
    top: 0.9em;
}

body.light-theme .site-features-filters-list li {
    border-bottom: none;
}

/* Pricing card */
.site-pricing-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

body.light-theme .site-pricing-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}

.site-pricing-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.site-pricing-desc {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

body.light-theme .site-pricing-desc {
    color: #64748b;
}

.site-pricing-features {
    list-style: none;
}

.site-pricing-features li {
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.site-pricing-cta {
    display: inline-block;
    margin-top: 1.5rem;
}

.site-pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
}

/* FAQ */
.site-faq-list {
    list-style: none;
}

.site-faq-list li {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

body.light-theme .site-faq-list li {
    border-color: rgba(0, 0, 0, 0.08);
}

.site-faq-list summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.site-faq-list summary::-webkit-details-marker {
    display: none;
}

.site-faq-list summary::after {
    content: '+';
    float: right;
    font-weight: 400;
}

.site-faq-list details[open] summary::after {
    content: '−';
}

.site-faq-list .site-faq-answer {
    padding: 0.75rem 1.25rem 1rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-theme .site-faq-list .site-faq-answer {
    color: #64748b;
    border-top-color: rgba(0, 0, 0, 0.06);
}

/* Support */
.site-support-email {
    font-size: 1.1rem;
}

.site-support-email a {
    color: #5b8def;
    text-decoration: none;
}

.site-support-email a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    margin-top: auto;
    padding: 3rem 1.25rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

body.light-theme .site-footer {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.site-footer-inner {
    max-width: 720px;
    margin: 0 auto;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1.25rem;
}

.site-footer-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.site-footer-nav a:hover {
    color: #e2e8f0;
}

body.light-theme .site-footer-nav a {
    color: #64748b;
}

body.light-theme .site-footer-nav a:hover {
    color: #1e293b;
}

.site-footer-copy {
    color: #64748b;
    font-size: 0.85rem;
}

body.light-theme .site-footer-copy {
    color: #94a3b8;
}

/* Main page: app mock (list view) */
.site-app-mock-wrap {
    margin: 2rem 0;
}

.site-app-mock-heading {
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    text-align: center;
}

body.light-theme .site-app-mock-heading {
    color: #64748b;
}

.site-app-mock {
    max-width: 320px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 8px solid #1f1f1f;
}

body.light-theme .site-app-mock {
    border-color: #2d2d2d;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.site-app-mock-screen {
    background: #121212;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

body.light-theme .site-app-mock-screen {
    background: #f5f7fb;
}

.site-app-mock-bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 12px 0 16px;
    background: #121212;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .site-app-mock-bar {
    background: #fff;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.site-app-mock-bar-center {
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-app-mock-bar-name {
    font-size: 17px;
    font-weight: 600;
    color: #e8e8e8;
}

body.light-theme .site-app-mock-bar-name {
    color: #1f2937;
}

.site-app-mock-bar-arrow {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
}

body.light-theme .site-app-mock-bar-arrow {
    color: #64748b;
}

.site-app-mock-bar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-app-mock-bar-icon {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.75);
}

body.light-theme .site-app-mock-bar-icon {
    color: #64748b;
}

.site-app-mock-stats {
    flex-shrink: 0;
    padding: 0 10px;
}

.site-app-mock-stats .landing-stats-panel {
    margin: 0;
    max-width: none;
    width: 100%;
    height: 40px;
}

.site-app-mock-groups {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid #2d2d2d;
    background: #171717;
}

.site-app-mock-groups::-webkit-scrollbar {
    height: 0;
}

body.light-theme .site-app-mock-groups {
    border-bottom-color: #e2e8f0;
    background: #fff;
}

.site-app-mock-group-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
}

.site-app-mock-group-btn .material-icons {
    font-size: 20px;
}

.site-app-mock-group-all {
    width: auto;
    min-width: 32px;
    padding: 6px 12px;
    border-radius: 16px;
}

.site-app-mock-group-btn.is-active {
    background: rgba(91, 141, 239, 0.25);
    color: #fff;
}

body.light-theme .site-app-mock-group-btn {
    color: #334155;
}

body.light-theme .site-app-mock-group-btn.is-active {
    background: rgba(79, 124, 255, 0.15);
    color: #1f2937;
}

.site-app-mock-tiles {
    flex: 1;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
}

.site-app-mock-tiles .landing-why-tile {
    flex-shrink: 0;
}

.site-app-mock-bottom {
    flex-shrink: 0;
    height: 56px;
    border-top: 1px solid #2d2d2d;
    background: #121212;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    padding: 0 4px;
}

body.light-theme .site-app-mock-bottom {
    background: #fff;
    border-top-color: #e2e8f0;
}

.site-app-mock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.site-app-mock-btn .material-icons {
    font-size: 22px;
}

.site-app-mock-btn.is-active {
    color: #5b8def;
}

body.light-theme .site-app-mock-btn {
    color: #64748b;
}

body.light-theme .site-app-mock-btn.is-active {
    color: #4f7cff;
}

/* Features page: landing-style blocks inside site-main */
.site-features-blocks .landing-block {
    margin-left: 0;
    margin-right: 0;
    border: none;
}

.site-features-blocks .landing-example-card + .landing-solution-text {
    margin-top: 1.5rem;
}

.site-features-main .site-features-blocks .site-features-hero + .landing-block,
.site-features-main .site-features-blocks .landing-block + .landing-block {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .site-features-main .site-features-blocks .landing-block + .landing-block {
    border-top-color: rgba(0, 0, 0, 0.08);
}

/* Features hero (YNAB-style) */
.site-features-hero {
    padding: 2.5rem 0 2rem;
    text-align: center;
}

.site-features-hero-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.site-features-hero-text {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

body.light-theme .site-features-hero-text {
    color: #64748b;
}

.site-features-hero .site-cta {
    margin-bottom: 2rem;
}

.site-features-hero-visual {
    display: flex;
    justify-content: center;
}

.site-features-hero-visual .landing-stats-panel {
    margin-top: 0;
}

.site-features-groups-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

/* Features: other (grid) */
.site-features-other-grid {
    list-style: none;
    margin: 1rem 0 1.5rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.site-features-other-grid li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.site-features-other-icon {
    font-size: 1.25rem;
    color: #5b8def;
    flex-shrink: 0;
}

.site-features-other .site-cta {
    margin-top: 0.5rem;
}
