:root {
    --ink: #172033;
    --muted: #5c6778;
    --line: #e3e8ef;
    --paper: #f4f6f8;
    --navy: #12203a;
    --brand: #465fff;
    --brand-dark: #2f46d6;
    --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--muted);
    background: #fff;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong, b { color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; }
h3 { font-size: 1.15rem; }

.skip { position: absolute; left: 12px; top: -40px; background: var(--navy); color: #fff; padding: 8px 12px; }
.skip:focus { top: 12px; }
.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

.util { background: var(--navy); color: #d5dcea; font-size: 0.92rem; }
.util-row { display: flex; justify-content: space-between; gap: 12px; min-height: 36px; align-items: center; }
.util a { color: #fff; text-decoration: none; font-weight: 700; }
.util p { margin: 0; }

.nav-wrap { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.nav-bar { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { margin-right: auto; }
.brand img { height: 28px; width: auto; }
.nav-center { display: flex; gap: 6px; }
.nav-center a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 8px; }
.nav-center a[aria-current="page"], .nav-center a:hover { background: #eef1ff; color: var(--brand-dark); }
.nav-end { display: flex; gap: 8px; }
.nav-burger { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; min-height: 38px; padding: 0 12px; font: inherit; font-weight: 700; color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 8px; text-decoration: none; font-weight: 700; border: 1px solid transparent; }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-dark); color: #fff; }
.btn-default { background: #fff; color: var(--ink); border-color: #cfd6e0; }
.btn-default:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-block { width: 100%; }

.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 40; display: flex; }
.drawer-backdrop { position: absolute; inset: 0; border: 0; background: rgb(18 32 58 / 0.45); }
.drawer-panel { position: relative; width: min(300px, 88vw); background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.drawer-panel > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; padding: 10px 4px; border-bottom: 1px solid var(--line); }

.hero { padding: 48px 0 36px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.kicker { color: var(--brand-dark); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.lead { margin-top: 14px; font-size: 1.08rem; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ticks { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ticks li { padding-left: 18px; position: relative; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.sheet { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgb(18 32 58 / 0.08); padding: 18px; }
.sheet-top, .sheet-parties { display: flex; justify-content: space-between; gap: 12px; }
.sheet-top { align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sheet-top span, .sheet small, .sheet-note { color: var(--muted); font-size: 0.86rem; }
.sheet-parties { margin-top: 12px; }
.sheet-parties div { flex: 1; background: var(--paper); border-radius: 8px; padding: 10px; display: grid; gap: 2px; }
.sheet table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.95rem; }
.sheet th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sheet td { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.sheet-note { margin-top: 10px; }

.rail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.rail-row { display: flex; flex-wrap: wrap; }
.rail-row a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 14px 16px; }
.rail-row a:hover { color: var(--brand-dark); }

.block { padding: 56px 0; }
.block-muted { background: var(--paper); }
.block-head { max-width: 40rem; margin-bottom: 22px; }
.block-head p, .section-head p { margin-top: 8px; }

.feat-grid, .who, .demo-grid, .point-grid, .plan-grid { display: grid; gap: 12px; }
.feat-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feat, .who article, .card, .demo-card, .plan {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
}
.feat { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; min-height: 160px; }
.feat:hover, .demo-card:hover { border-color: #b9c4ff; }
.feat span, .who a, .text-link { margin-top: auto; font-weight: 700; }
.who { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 22px; }
.who p { margin: 8px 0 12px; }
.who a { text-decoration: none; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.steps b { color: var(--brand); }
.steps p { margin-top: 6px; }

.page { padding: 36px 0 56px; }
.section-head { margin-bottom: 22px; }
.crumbs { color: var(--muted); font-size: 0.92rem; margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.module-layout { display: grid; gap: 12px; }
.card p, .demo-card p, .note { margin-top: 8px; }
.screen-list, .checks, .fine, .plan-rows { list-style: none; margin: 12px 0 0; padding: 0; }
.screen-list { display: flex; flex-wrap: wrap; gap: 8px; }
.screen-list li { background: var(--paper); border-radius: 999px; padding: 6px 10px; color: var(--ink); }
.checks { display: grid; gap: 8px; }
.checks li { color: var(--ink); }
.related { margin: 28px 0 12px; }
.demo-grid, .point-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.demo-card { display: block; color: inherit; text-decoration: none; }
.stack { display: grid; gap: 12px; }
.panel { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.panel h2 { font-size: 1.45rem; }

.plans { display: grid; gap: 14px; }
.billing { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.billing button { border: 0; background: #fff; font: inherit; font-weight: 700; min-height: 38px; padding: 0 14px; cursor: pointer; color: var(--ink); }
.billing button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.plan { display: flex; flex-direction: column; gap: 8px; }
.plan.is-featured { border-color: var(--brand); box-shadow: 0 10px 24px rgb(70 95 255 / 0.12); }
.plan-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.badge { background: #eef1ff; color: var(--brand-dark); border-radius: 999px; padding: 3px 8px; font-size: 0.78rem; font-weight: 700; }
.price { color: var(--ink); font-size: 1.55rem; font-weight: 700; }
.price small { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.plans[data-mode="monthly"] [data-yearly],
.plans[data-mode="yearly"] [data-monthly] { display: none; }
.plan-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.plan .btn { margin-top: auto; }
.fine { display: grid; gap: 6px; margin-top: 16px; font-size: 0.95rem; }

.faq-list { display: grid; gap: 8px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 700; padding: 14px 0; }
.faq p { padding-bottom: 14px; }

.close { background: var(--navy); color: #d5dcea; }
.close h2, .close p { color: #fff; }
.close p { color: #d5dcea; margin-top: 8px; }
.close-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; padding: 36px 0; }
.close .btn-solid { background: #fff; color: var(--navy); }
.close .btn-solid:hover { background: #eef1ff; }

.site-foot { background: var(--paper); border-top: 1px solid var(--line); padding: 32px 0 18px; }
.foot-grid { display: grid; gap: 22px; }
.foot-grid p { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.foot-grid nav { display: grid; gap: 6px; align-content: start; }
.foot-grid nav a, .foot-copy a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-grid > div p { font-weight: 400; margin-top: 10px; }
.foot-copy { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.92rem; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .plan-grid { grid-template-columns: repeat(4, 1fr); }
    .module-layout { grid-template-columns: 1.5fr 0.8fr; }
    .panel { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
    .foot-grid { grid-template-columns: 1.3fr 0.7fr 1fr; }
}

@media (max-width: 899px) {
    .nav-center, .nav-end { display: none; }
    .nav-burger { display: inline-flex; align-items: center; }
}

@media (min-width: 700px) and (max-width: 899px) {
    .plan-grid { grid-template-columns: 1fr 1fr; }
}

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