:root {
  --bg: #f6f5f1; --paper: #ffffff; --ink: #14161a; --ink2: #4a4f57; --muted: #8a8f97; --line: #e6e3dc;
  --accent: #1f5eff; --accent-soft: #e8eeff; --good: #10a37f; --good-soft: #e3f6ef; --warn: #b7791f;
  --radius: 18px; --shadow: 0 1px 2px rgba(20,22,26,.04), 0 8px 24px rgba(20,22,26,.06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1114; --paper: #171a1f; --ink: #f2f3f5; --ink2: #b9bec7; --muted: #7d838d; --line: #262a31;
    --accent: #6b93ff; --accent-soft: #1b2440; --good: #3fd0a6; --good-soft: #13302a; --shadow: none; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.loading { padding: 40vh 0; text-align: center; color: var(--muted); }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 58px; }
.brand { font-weight: 800; letter-spacing: -.01em; }
.brand span { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink2); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.nav a.on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }

/* hero */
.hero { padding: 72px 0 40px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink2); background: var(--paper); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; letter-spacing: -.035em; margin: 22px 0 18px; font-weight: 800; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink2); max-width: 720px; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 36px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 28px; letter-spacing: -.02em; }
.kpi span { color: var(--muted); font-size: 14px; }
.meta { margin-top: 18px; color: var(--muted); font-size: 13px; }

/* sections */
section.s { padding: 56px 0 8px; scroll-margin-top: 70px; }
.shead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.num { color: var(--accent); font-weight: 700; font-size: 14px; }
h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.025em; margin: 0; line-height: 1.15; }
.askl { margin-left: auto; font-size: 13px; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 4px 0; font-family: inherit; white-space: nowrap; }
.askl:hover { color: var(--accent); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.prose p { margin: 0 0 12px; color: var(--ink2); }
.prose ul { margin: 0 0 12px; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 22px; margin: 8px 0; color: var(--ink2); }
.prose li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 3px; background: var(--accent); opacity: .8; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.feat h3, .case h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.feat p, .case p { margin: 0; color: var(--ink2); font-size: 15px; }
.ficon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 18px; margin-bottom: 12px; }

/* scope builder */
.builder { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
@media (max-width: 820px) { .builder { grid-template-columns: 1fr; } }
.block { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 10px; transition: border-color .15s, opacity .15s; cursor: pointer; }
.block.off { opacity: .55; }
.block.on { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.block.req { cursor: default; }
.block .bt { flex: 1; min-width: 0; }
.block h3 { margin: 0; font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.block p { margin: 4px 0 0; color: var(--ink2); font-size: 14px; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge.rec { background: var(--good-soft); color: var(--good); border-color: transparent; }
.bnum { text-align: right; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.bnum b { display: block; color: var(--ink); font-size: 15px; }
.tog { flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; margin-top: 2px; border: 0; padding: 0; cursor: pointer; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.on .tog { background: var(--accent); }
.on .tog::after { transform: translateX(18px); }
.req .tog { background: var(--ink2); opacity: .5; cursor: default; }
.summary { position: sticky; top: 76px; }
.summary .big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 2px; }
.summary .row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.summary .row b { color: var(--ink); }
.lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.reset { margin-top: 12px; font-size: 13px; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* timeline */
.tl { display: grid; gap: 10px; }
.tlrow { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: center; font-size: 14px; }
@media (max-width: 620px) { .tlrow { grid-template-columns: 1fr; gap: 4px; } }
.tlbar { height: 30px; background: var(--bg); border-radius: 10px; position: relative; overflow: hidden; border: 1px solid var(--line); }
.tlbar i { position: absolute; top: 0; bottom: 0; border-radius: 9px; background: var(--accent); opacity: .85; display: flex; align-items: center; padding: 0 10px; color: #fff; font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tlaxis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin: 6px 0 0 194px; }
@media (max-width: 620px) { .tlaxis { margin-left: 0; } }

/* team */
.team { display: flex; flex-wrap: wrap; gap: 10px; }
.member { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 8px; font-size: 14px; }
.member b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 13px; }

/* price */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .price { grid-template-columns: 1fr; } }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ptable td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.ptable tr.total td { border-bottom: 0; font-size: 17px; font-weight: 800; padding-top: 14px; }

/* cta */
.cta { margin: 56px 0 80px; background: var(--ink); color: var(--bg); border-radius: 24px; padding: 40px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.cta h2 { color: var(--bg); }
.cta p { margin: 8px 0 0; opacity: .75; }
.cta .grow { flex: 1; min-width: 240px; }
.btn { appearance: none; border: 0; border-radius: 12px; padding: 13px 20px; font: 600 15px Inter, system-ui, sans-serif; cursor: pointer; background: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; opacity: .85; }
.btn:disabled { opacity: .6; cursor: default; }
.steps { counter-reset: st; display: grid; gap: 10px; }
.step { counter-increment: st; display: flex; gap: 14px; align-items: flex-start; }
.step::before { content: counter(st); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; }

/* ask sheet */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 30; box-shadow: 0 10px 30px rgba(31,94,255,.35); border-radius: 999px; padding: 14px 20px; }
.veil { position: fixed; inset: 0; background: rgba(10,12,16,.45); z-index: 40; display: grid; place-items: end center; }
@media (min-width: 640px) { .veil { place-items: center; } }
.sheet { background: var(--paper); color: var(--ink); width: min(520px, 100%); border-radius: 22px 22px 0 0; padding: 24px; }
@media (min-width: 640px) { .sheet { border-radius: 22px; } }
.sheet h3 { margin: 0 0 4px; font-size: 20px; }
.sheet textarea { width: 100%; min-height: 120px; margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: 15px/1.5 Inter, system-ui, sans-serif; background: var(--bg); color: var(--ink); resize: vertical; }
.sheet .acts { display: flex; gap: 10px; justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 50; }
.foot { color: var(--muted); font-size: 13px; padding: 0 0 40px; text-align: center; }
.changes { background: var(--accent-soft); color: var(--ink); border-radius: 14px; padding: 12px 16px; font-size: 14px; margin-top: 18px; }
