:root {
    --bg-body: #f0f4f8;
    --bg-card: #fff;
    --bg-hover: #f8fafc;
    --bg-muted: #f1f5f9;
    --t-base: #1e293b;
    --t-muted: #64748b;
    --t-light: #94a3b8;
    --t-inverse: #fff;
    --border: #e4e8ef;
    --border-soft: #eef1f5;
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --success: #10b981;
    --success-soft: #ecfdf5;
    --warning: #f59e0b;
    --warning-soft: #fffbeb;
    --danger: #ef4444;
    --danger-soft: #fef2f2;
    --info: #0ea5e9;
    --info-soft: #f0f9ff;
    --purple: #8b5cf6;
    --purple-soft: #f5f3ff;
    --teal: #14b8a6;
    --teal-soft: #f0fdfa;
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --header-h: 68px;
    --radius: 14px;
    --max: 1120px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-body);
    color: var(--t-base);
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

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

img,
svg {
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--header-h);
    padding: 0 28px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-family: "Inter Tight", Inter, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--t-inverse);
}

.brand-mark svg {
    width: 16px;
    height: 16px;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--t-base);
    cursor: pointer;
}

.nav-toggle:hover {
    background: var(--bg-hover);
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
}

.nav-toggle-icon {
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-icon::before {
    top: -5px;
}

.nav-toggle-icon::after {
    top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.site-nav {
    display: flex;
    gap: 22px;
    margin: auto;
    color: var(--t-muted);
    font-size: 14px;
    font-weight: 500;
}

.site-nav .nav-cta {
    display: none;
}

.site-nav a:hover,
.site-nav a.is-active,
.footer-nav a:hover {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.btn--primary {
    background: var(--primary);
    color: var(--t-inverse);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.24);
}

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

.btn--ghost {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--t-base);
}

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

.header-cta {
    flex-shrink: 0;
}

main {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    padding: 36px 0 72px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
.hero h1 {
    font-family: "Inter Tight", Inter, sans-serif;
    letter-spacing: -0.03em;
}

h1 {
    max-width: 16ch;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.05;
}

h2 {
    max-width: 22ch;
    font-size: 34px;
    font-weight: 650;
    line-height: 1.15;
}

h3 {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.hero {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 28px;
    align-items: end;
    padding: 28px 8px 12px;
}

.lead,
.block-lead,
.feature p,
.steps p,
.benefit p,
.site-footer p {
    color: var(--t-muted);
}

.lead {
    max-width: 58ch;
    margin-top: 16px;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-points {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 8px;
    list-style: none;
}

.hero-points li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.hero-points strong,
.hero-points span {
    display: block;
}

.hero-points span {
    color: var(--t-muted);
    font-size: 13px;
}

.dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 99px;
    flex: none;
}

.dot.success { background: var(--success); }
.dot.primary { background: var(--primary); }
.dot.purple { background: var(--purple); }

.block {
    margin-top: 72px;
}

.block-head {
    max-width: 680px;
    margin-bottom: 24px;
}

.block-lead {
    margin-top: 10px;
}

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

.feature,
.benefit,
.steps li {
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border-radius: 10px;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-icon.success { background: var(--success-soft); color: var(--success); }
.feature-icon.info { background: var(--info-soft); color: var(--info); }
.feature-icon.primary { background: var(--primary-soft); color: var(--primary); }
.feature-icon.warning { background: var(--warning-soft); color: var(--warning); }
.feature-icon.purple { background: var(--purple-soft); color: var(--purple); }
.feature-icon.teal { background: var(--teal-soft); color: var(--teal); }

.feature h3,
.benefit h3,
.steps h3 {
    margin-bottom: 8px;
}

.feature p,
.benefit p,
.steps p {
    font-size: 14px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.step-num {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    border-radius: 99px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.shot {
    margin: 0;
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
}

.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.audience,
.close {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.audience {
    padding: 22px;
}

.audience .eyebrow {
    margin-bottom: 12px;
}

.audience h3 {
    margin-bottom: 8px;
}

.audience p:last-child,
.close p {
    color: var(--t-muted);
    font-size: 14px;
}

.close {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.faq {
    display: grid;
    gap: 12px;
}

.faq-item {
    padding: 0 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 2px solid var(--t-muted);
    border-bottom: 2px solid var(--t-muted);
    transform: rotate(45deg);
    flex: none;
}

.faq-item[open] summary::after {
    margin-top: 4px;
    transform: rotate(-135deg);
}

.faq-item p {
    max-width: 72ch;
    margin: 0 0 18px;
    color: var(--t-muted);
    font-size: 15px;
}

.close {
    align-items: center;
    margin-top: 72px;
    padding: 28px;
    background: var(--primary-soft);
    border-color: transparent;
}

.close h2 {
    max-width: none;
    font-size: 28px;
}

.close p {
    margin-top: 8px;
}

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

.benefit-index {
    display: block;
    margin-bottom: 12px;
    color: var(--primary);
    font-family: "Inter Tight", Inter, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    padding: 8px 0 48px;
    border-top: 1px solid var(--border);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-footer p {
    margin-right: auto;
    font-size: 14px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--t-muted);
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 980px) {
    h1 {
        font-size: 40px;
    }

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

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

    .nav-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .header-cta {
        margin-left: auto;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 30;
        flex-direction: column;
        gap: 4px;
        margin: 0;
        padding: 8px 16px 16px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 10px;
        border-radius: 10px;
    }

    .site-nav a:hover,
    .site-nav a.is-active {
        background: var(--bg-muted);
    }

}

@media (max-width: 720px) {
    .site-header {
        gap: 12px;
        padding: 0 16px;
    }

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

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 28px;
    }

    .card-grid,
    .benefit-grid,
    .audience-grid,
    .close {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 24px;
    }

    .site-footer p {
        margin-right: 0;
    }
}

@media (max-width: 380px) {
    .header-cta {
        display: none;
    }

    .nav-toggle {
        margin-left: auto;
    }

    .site-nav.is-open .nav-cta {
        display: inline-flex;
        justify-content: center;
        margin-top: 8px;
    }

    .site-nav a.nav-cta,
    .site-nav a.nav-cta:hover,
    .site-nav a.nav-cta.is-active {
        background: var(--primary);
        color: var(--t-inverse);
    }
}

.doc-lead {
    max-width: 62ch;
}

.doc-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.doc-toc a {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
    font-size: 14px;
    font-weight: 600;
}

.doc-toc a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.doc-section {
    margin-top: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.doc-section h2 {
    max-width: none;
    font-size: 28px;
}

.doc-section h3 {
    margin-top: 18px;
}

.doc-section p + p,
.doc-section p + ul,
.doc-section p + ol,
.doc-section h3 + p,
.doc-section ul + p,
.doc-section ol + p {
    margin-top: 10px;
}

.doc-section ul,
.doc-section ol {
    margin: 10px 0 0;
    padding-left: 1.2em;
    color: var(--t-muted);
}

.doc-section li + li {
    margin-top: 6px;
}

.doc-section li strong {
    color: var(--t-base);
}
