:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-soft: #eff6ff;
    --success: #059669;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --radius: 12px;
    --max: 1120px;
    --prose: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -40px;
    z-index: 100;
    background: var(--brand);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
}

.skip-link:focus { top: 12px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner,
.section-inner,
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}

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

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    appearance: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

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

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

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

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

.btn-outline {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
}

.btn-outline:hover { border-color: #cbd5e1; background: #f8fafc; }

.page-hero {
    padding: 72px 0 48px;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(37, 99, 235, 0.15), transparent),
        var(--bg);
}

.page-hero.compact {
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--line);
}

.badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 4vw, 46px);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.page-hero.compact h1 {
    font-size: clamp(28px, 4vw, 40px);
}

.page-hero p,
.hero-lead {
    margin: 0 0 28px;
    max-width: 560px;
    color: var(--muted);
    font-size: 18px;
}

.page-hero.compact p {
    margin: 0;
    font-size: 17px;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-lg { padding: 14px 22px; font-size: 15px; }

.section {
    padding: 72px 0;
}

.section-title {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section-title h2 {
    margin: 0 0 12px;
    font-size: 32px;
    letter-spacing: -0.02em;
}

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

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

.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.feature p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.price-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg);
    position: relative;
}

.price-card .tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.price-card h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.price-card .desc {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--muted);
}

.price {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
}

.price-note {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}

.price-card li {
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.price-card li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
}

.price-card .btn { width: 100%; }

.faq {
    max-width: 720px;
    margin: 0 auto;
}

.cta-band {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #fff;
    text-align: center;
    padding: 64px 24px;
    border-radius: 20px;
    margin: 0 24px 72px;
    max-width: calc(var(--max) - 48px);
    margin-left: auto;
    margin-right: auto;
}

.cta-band h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.cta-band p {
    margin: 0 0 24px;
    opacity: 0.9;
}

.cta-band .btn-primary {
    background: #fff;
    color: var(--brand-dark);
}

.cta-band .btn-primary:hover { background: #eff6ff; }

.legal-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
    padding: 48px 0 80px;
}

.toc {
    position: sticky;
    top: 88px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
}

.toc h2 {
    margin: 0 0 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.toc ol {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
}

.toc li { margin: 6px 0; }

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

.prose {
    max-width: var(--prose);
}

.prose h2 {
    margin: 40px 0 12px;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
    margin: 24px 0 8px;
    font-size: 17px;
}

.prose p,
.prose li {
    color: #334155;
    font-size: 15.5px;
}

.prose ul,
.prose ol { padding-left: 22px; }

.prose li { margin: 6px 0; }

.prose table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 14px;
    margin: 16px 0 24px;
}

.prose th,
.prose td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.prose th {
    background: #f1f5f9;
    font-size: 13px;
}

.prose tr:last-child td { border-bottom: 0; }

.note {
    background: var(--brand-soft);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 14px;
    color: #1e3a8a;
    margin: 16px 0 24px;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0 28px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

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

.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.faq-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}

.meta-line {
    font-size: 13px;
    color: var(--muted);
    margin: 8px 0 0;
}

.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 48px 0 32px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.site-footer h4 {
    color: #e2e8f0;
    margin: 0 0 12px;
    font-size: 14px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li { margin-bottom: 8px; }

.site-footer a {
    color: #94a3b8;
    text-decoration: none;
}

.site-footer a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 24px;
    }
    .nav { width: 100%; flex-wrap: wrap; gap: 10px 20px; }
    .header-cta { margin-left: auto; }
    .legal-layout,
    .footer-grid,
    .card-grid,
    .features,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .toc { position: static; }
}

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