
:root {
    --bg: #ffffff;
    --surface: #f7f9fc;
    --surface-strong: #eef4ff;
    --card: #ffffff;
    --text: #111827;
    --muted: #556070;
    --border: #dde6f0;
    --primary: #1e3a8a;
    --primary-strong: #1d4ed8;
    --primary-hover: #163172;
    --primary-soft: #eff6ff;
    --success: #166534;
    --success-bg: #ecfdf5;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07);
    --shadow-md: 0 4px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.13);
    --radius: 16px;
    --container: 1180px;
    --transition: 0.18s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main {
    flex: 1;
    position: relative;
    z-index: 1;
}
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    isolation: isolate;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(217, 226, 239, 0.8);
}

.header-row {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand img { height: 34px; width: auto; }
.brand--footer img { height: 28px; margin-bottom: 14px; }

.primary-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.primary-nav a {
    font-size: 0.95rem;
    color: var(--muted);
    transition: color 0.18s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active { color: var(--primary); }

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1.5px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.button:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.button--outline {
    background: #fff;
    color: var(--primary);
    border-color: var(--border);
}

.button--outline:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.hero {
    background: linear-gradient(135deg, #eef4ff 0%, #f4f8ff 55%, #f9fbff 100%);
    padding: 96px 0 80px;
}

.hero-grid,
.two-column {
    display: grid;
    gap: 48px;
    align-items: center;
}

.hero-grid { grid-template-columns: 1.15fr 0.85fr; }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(29, 78, 216, 0.08);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 18px;
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 4.5vw, 4.2rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1rem; }
p { margin: 0; }

.lead { font-size: 1.1rem; line-height: 1.7; color: var(--muted); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.section { padding: 92px 0; }
.section--surface { background: var(--surface); }
.section-heading { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-heading p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.card-grid,
.pricing-grid,
.footer-grid {
    display: grid;
    gap: 24px;
}

.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin: 0 auto; }
.pricing-grid--single { grid-template-columns: minmax(0, 420px); justify-content: center; }
.footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr; }

.card,
.pricing-card,
.faq-card,
.contact-card,
.demo-widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.card {
    padding: 28px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.guide-card:is(:hover, :focus-visible) h3 {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.guide-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card p,
.pricing-card p,
.faq-card p,
.muted { color: var(--muted); line-height: 1.7; }

.pricing-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pricing-card--popular {
    border-color: rgba(29, 78, 216, 0.3);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(180deg, #fafcff 0%, #ffffff 100%);
}

.badge {
    align-self: flex-start;
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
}

.feature-list,
.checklist,
.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li,
.checklist li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-list li::before,
.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 800;
}

.checklist--light li { color: #fff; font-weight: 500; }
.checklist--light li::before { color: rgba(255, 255, 255, 0.75); }

.faq-stack { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq-card { padding: 0; overflow: hidden; transition: box-shadow var(--transition); }
.faq-card[open] { box-shadow: var(--shadow-lg); }
.faq-card summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
}
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary);
    line-height: 1;
    flex-shrink: 0;
    transition: transform var(--transition);
}
.faq-card[open] summary::after {
    transform: rotate(45deg);
}
.faq-card p { padding: 0 24px 20px; line-height: 1.7; }

.contact-shell { max-width: 620px; margin: 0 auto; }
.contact-card { padding: 36px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input,
.field textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    color: var(--text);
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.notice,
.notice--error,
.notice--success {
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
}
.notice { background: var(--surface); color: var(--muted); }
.notice--error { background: #fef2f2; color: #991b1b; }
.notice--success { background: #ecfdf3; color: #166534; }

.demo-widget { overflow: hidden; max-width: 410px; margin: 0 auto; }
.demo-widget__header {
    background: var(--primary);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: start;
    justify-content: space-between;
}
.demo-widget__header span { display: block; font-size: 0.82rem; opacity: 0.75; margin-top: 4px; }
.demo-widget__header button {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1rem;
}
.demo-widget__body {
    background: #f8fbff;
    padding: 20px;
    display: grid;
    gap: 12px;
}
.demo-bubble {
    max-width: 82%;
    padding: 11px 14px;
    border-radius: 16px;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}
.demo-bubble--bot { background: #e8eefc; }
.demo-bubble--user { background: var(--primary); color: #fff; margin-left: auto; }
.demo-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 10px;
}
.demo-card p { font-size: 0.82rem; font-weight: 600; }
.demo-card input {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}
.demo-card button {
    border: 0;
    border-radius: 10px;
    padding: 11px 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}
.demo-widget__footer {
    border-top: 1px solid var(--border);
    background: #fff;
    padding: 14px 18px 18px;
}
.demo-widget__footer input {
    width: 100%;
    border: 0;
    padding: 4px 0 12px;
    color: var(--muted);
}
.demo-widget__footer span {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    color: var(--muted);
}

.flow-diagram {
    display: grid;
    grid-template-columns:
        minmax(140px, 1fr) 32px
        minmax(140px, 1fr) 32px
        minmax(140px, 1fr) 32px
        minmax(140px, 1fr) 32px
        minmax(140px, 1fr) 32px
        minmax(140px, 1fr);
    gap: 10px;
    align-items: stretch;
}

.flow-step {
    grid-column: span 1;
    min-height: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    padding: 22px 18px;
    display: grid;
    gap: 10px;
    text-align: left;
}

.flow-step strong {
    font-size: 1.08rem;
    line-height: 1.2;
}

.flow-step p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--muted);
}

.flow-step__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
}

.flow-step--accent {
    border-color: rgba(29, 78, 216, 0.26);
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    box-shadow: var(--shadow-lg);
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 700;
}

.flow-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.flow-note {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 22px;
    text-align: left;
}

.flow-note h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.flow-note p {
    color: var(--muted);
    line-height: 1.65;
}

.cta-panel {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.cta-panel .checklist {
    max-width: 280px;
    margin: 0 auto 28px;
    text-align: left;
}

/* Trust bar */
.trust-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.trust-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
}

.trust-stat {
    font-size: 0.88rem;
    color: var(--muted);
}

.trust-stat strong {
    color: var(--text);
    font-weight: 600;
}

.trust-divider {
    color: var(--border);
    font-size: 1.1rem;
    user-select: none;
}

@media (max-width: 640px) {
    .trust-divider { display: none; }
    .trust-bar__inner { gap: 8px 16px; }
}

/* Pricing per-month label */
.price-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
}

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding-top: 64px;
}
.site-footer h2 { margin: 0 0 14px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.site-footer ul { display: grid; gap: 11px; }
.site-footer a { color: var(--muted); font-size: 0.95rem; transition: color var(--transition); }
.site-footer a:hover { color: var(--primary); }
.footer-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 26px 0 34px;
    margin-top: 28px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

.stack-24 { display: grid; gap: 24px; }
.stack-32 { display: grid; gap: 32px; }
.center { text-align: center; }

/* ── Mobile nav toggle ──────────────────────────── */
.nav-toggle {
    display: none;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    color: var(--text);
    line-height: 1;
}

.nav-drawer {
    display: flex;
    align-items: center;
    gap: 28px;
}

@media (max-width: 960px) {
    .hero-grid,
    .two-column,
    .card-grid,
    .pricing-grid,
    .footer-grid,
    .flow-notes { grid-template-columns: 1fr; }

    .flow-diagram {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .flow-arrow {
        justify-content: center;
        min-height: 28px;
        font-size: 1.2rem;
        transform: rotate(90deg);
    }

    /* Mobile header */
    .site-header {
        backdrop-filter: none;
    }

    .header-row {
        flex-wrap: nowrap;
        padding: 0;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-drawer {
        display: flex;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px;
        gap: 0;
        z-index: 9999;
        border-top: 1px solid var(--border);
        min-height: calc(100dvh - 72px);
        max-height: calc(100dvh - 72px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity var(--transition), transform var(--transition), visibility 0s linear var(--transition);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: var(--shadow-lg);
    }

    .nav-drawer.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition: opacity var(--transition), transform var(--transition), visibility 0s;
    }

    body.nav-open {
        overflow: hidden;
    }

    .primary-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .primary-nav a {
        display: block;
        padding: 12px 8px;
        font-size: 1.05rem;
    }

    .header-actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero { padding: 64px 0 56px; }
    .section { padding: 64px 0; }
    .footer-bar { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
    .container { width: min(calc(100% - 24px), var(--container)); }
    h1 { font-size: 2.15rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .pricing-grid--single { grid-template-columns: 1fr; }
}

/* Blog */
.blog-hero { padding: 72px 0; }
.blog-hero .eyebrow { margin-bottom: 20px; }
.blog-hero .lead { max-width: 680px; margin: 16px auto 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card { overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.blog-card__image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-card__body { padding: 24px; }
.blog-card time, .article-header time { color: var(--muted); font-size: 0.88rem; }
.blog-card h2 { margin: 9px 0 12px; font-size: 1.3rem; }
.blog-card h2 a { color: var(--text); text-decoration: none; }
.blog-card h2 a:hover { color: var(--primary); }
.blog-card p { color: var(--muted); }
.blog-card__link { display: inline-block; margin-top: 16px; font-weight: 750; text-decoration: none; }
.blog-empty { max-width: 720px; margin: 0 auto; }
.article-header { padding: 72px 0 40px; text-align: center; background: var(--surface); }
.article-header .container { max-width: 900px; }
.article-header h1 { margin: 20px 0 16px; }
.article-header .lead { margin: 0 auto 18px; max-width: 760px; }
.article-back { font-weight: 700; text-decoration: none; }
.article-content { max-width: 820px; padding-top: 56px; padding-bottom: 88px; font-size: 1.05rem; line-height: 1.8; }
.article-content h2, .article-content h3, .article-content h4 { margin: 1.8em 0 0.65em; }
.article-content p, .article-content ul, .article-content ol, .article-content blockquote, .article-content table, .article-content pre { margin: 0 0 1.25em; }
.article-content img { max-width: 100%; height: auto; border-radius: 12px; }
.article-content blockquote { padding: 18px 22px; border-left: 4px solid var(--primary); background: var(--surface); }
.article-content table { width: 100%; border-collapse: collapse; overflow-x: auto; }
.article-content th, .article-content td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.article-content pre { overflow-x: auto; padding: 18px; background: #0f172a; color: #e2e8f0; border-radius: 10px; }

@media (max-width: 960px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; }
    .article-header { padding: 56px 0 32px; }
    .article-content { padding-top: 40px; padding-bottom: 64px; }
}
