:root {
  --ink: #0b1b33; --muted: #5b6b82; --line: #dfe6f0; --bg: #ffffff; --soft: #f3f7fd;
  --blue: #1557d6; --blue-dark: #0e3f9e; --navy: #071a3a; --green: #0f8a4b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.1rem; }
code { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: .15em .4em; font-size: .9em; word-break: break-all; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 48px 20px 80px; }
.muted { color: var(--muted); }
.err { color: #b3261e; min-height: 1.2em; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue); }
.lede { color: var(--muted); max-width: 44rem; margin: 0 auto 2rem; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 16px 20px; }
.nav nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--navy); text-decoration: none; letter-spacing: -.03em; }
.brand::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .4em; border-radius: 3px; background: var(--blue); vertical-align: -1px; }

.btn { display: inline-block; background: var(--blue); color: #fff !important; border: 1px solid var(--blue); border-radius: 10px;
  padding: .8em 1.3em; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--blue) !important; border-color: var(--line); }
.btn.ghost:hover { background: var(--soft); }
.btn.small { padding: .5em .9em; font-size: .9rem; }
.btn.wide { display: block; text-align: center; }
.stack { display: grid; gap: 12px; }
input { font: inherit; padding: .8em 1em; border: 1px solid var(--line); border-radius: 10px; width: 100%; }

.hero { padding: 56px 0 48px; text-align: center;
  background:
    radial-gradient(900px 480px at 85% 0%, #dbe8ff 0%, transparent 70%),
    linear-gradient(#eef3fb 1px, transparent 1px) 0 0 / 100% 36px,
    linear-gradient(90deg, #eef3fb 1px, transparent 1px) 0 0 / 36px 100%,
    var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; text-align: left; }
.hero-grid .cta { justify-content: flex-start; }

.window { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(11, 27, 51, .28); overflow: hidden; transform: rotate(.6deg); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd9e8; }
.window-bar span { margin-left: 8px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.window-body { padding: 18px; display: grid; gap: 12px; }
.bubble { justify-self: end; margin: 0; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 16px 16px 4px 16px; font-size: .95rem; }
.match { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  opacity: 0; animation: rise .5s ease forwards; }
.match:nth-of-type(2) { animation-delay: .25s; } .match:nth-of-type(3) { animation-delay: .5s; } .match:nth-of-type(4) { animation-delay: .75s; }
.match b { display: block; font-size: .95rem; line-height: 1.3; }
.match small { display: block; color: var(--muted); margin-bottom: 6px; }
.ring { --v: 50; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(#fff 57%, transparent 58%), conic-gradient(var(--blue) calc(var(--v) * 1%), #e3eaf5 0); }
.ring b { font-size: .95rem; color: var(--navy); }
.pill { display: inline-block; background: var(--soft); color: var(--muted); border-radius: 999px; padding: .1em .65em; font-size: .74rem; font-weight: 650; margin-right: 4px; }
.pill.green { background: #e7f6ee; color: var(--green); }
.caption { color: var(--muted); font-size: .75rem; text-align: center; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { width: 0; } }
@media (prefers-reduced-motion: reduce) { .match, .bar-row i::after { animation: none !important; opacity: 1; } }

.trust { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin: 36px auto 0; max-width: 900px; }
.trust span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45em .95em; font-size: .86rem; color: var(--muted); }
.trust strong { color: var(--navy); font-weight: 700; }

.icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #e6eefc; color: var(--blue); margin-bottom: 14px; }
.icon svg, .ico { width: 24px; height: 24px; }
.ico { color: var(--blue); display: block; margin: 0 auto 8px; }
.flow div:not(:last-child)::after { content: "\2192"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--blue); font-weight: 700; z-index: 1; }

.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.panel { background: #0d2650; border: 1px solid #1d3a6e; border-radius: 16px; padding: 22px; }
.panel h3 { color: #fff; }
.ask { margin: 0 0 16px; color: #8fb4ff; font-style: italic; font-size: .92rem; }
.bar-row { display: grid; grid-template-columns: 1fr 70px 24px; gap: 10px; align-items: center; font-size: .86rem; color: #d6e2f8; padding: 7px 0; }
.bar-row i { height: 8px; border-radius: 99px; background: #1d3a6e; position: relative; overflow: hidden; }
.bar-row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, #4f8cff, #7fe0b0); animation: grow 1s ease; }
.bar-row b { text-align: right; color: #fff; }
.bar-row.off { color: #7187ad; text-decoration: line-through; }
table.mini { background: transparent; border: 0; font-size: .84rem; color: #d6e2f8; }
table.mini th { background: transparent; color: #8fb4ff; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
table.mini th, table.mini td { padding: 8px 6px; border-bottom: 1px solid #1d3a6e; }
.ok { color: #7fe0b0; font-weight: 700; } .todo { color: #ffcf7a; font-size: .76rem; white-space: nowrap; }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kanban small { display: block; color: #8fb4ff; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.kanban span { display: block; background: #12305f; border: 1px solid #1d3a6e; border-radius: 10px; padding: 8px; font-size: .8rem; color: #e6eeff; margin-bottom: 8px; }
.kanban span.hot { border-color: #4f8cff; box-shadow: 0 0 0 3px rgba(79, 140, 255, .18); }
.kanban em { display: block; font-style: normal; color: #8fa6cf; font-size: .72rem; }
.card { transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(11, 27, 51, .35); }
.hero h1 span { color: var(--blue); }
.hero .sub { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 650; margin: 0 0 .6em; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 28px 0 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px auto 0; max-width: 820px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 12px; box-shadow: 0 1px 0 rgba(11,27,51,.03); }
.stats b { display: block; font-size: 1.45rem; color: var(--navy); letter-spacing: -.02em; }
.stats small { color: var(--muted); }

section { padding: 72px 0; }
section.soft { background: var(--soft); }
section.dark { background: var(--navy); color: #fff; }
section.dark .lede, section.dark .muted { color: #b7c6e2; }
.pricing-hero { padding: 48px 0 24px; background:
  radial-gradient(700px 320px at 50% 0%, #dbe8ff 0%, transparent 70%), var(--bg); }
.pricing-fine { margin: 28px auto 0; max-width: 40rem; font-size: .92rem; }
.plan-label { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--blue); }
.plan .plan-note { margin: 0 0 .2em; min-height: 2.6em; }
.plan ul { margin-top: 1em; }
.plan li { margin: .35em 0; }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
.flow div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 14px; text-align: center; position: relative; }
.flow b { display: block; color: var(--blue); letter-spacing: .1em; font-size: .8rem; }
.flow span { font-weight: 650; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-align: left; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: .8em 0 0; padding-left: 1.1em; color: var(--muted); }
.card .num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 12px; }
.card .price { font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; margin: .15em 0 .35em; }
.card .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.card.featured { border: 2px solid var(--blue); box-shadow: 0 18px 40px -24px rgba(21, 87, 214, .55); }

.chat { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; text-align: left; }
.chat p { margin: 0; padding: 14px 18px; border-radius: 16px; max-width: 85%; }
.chat .me { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.chat .it { background: #12305f; color: #e6eeff; border-bottom-left-radius: 4px; }

.notices { display: grid; gap: 12px; text-align: left; }
.notice { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 14px; padding: 16px 20px; text-decoration: none; color: inherit; }
.notice:hover { border-color: var(--blue); border-left-color: var(--blue-dark); }
.notice b { font-weight: 650; }
.notice small { color: var(--muted); }
.tag { background: #e7f6ee; color: var(--green); border-radius: 999px; padding: .2em .7em; font-size: .78rem; font-weight: 650; white-space: nowrap; }

table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-align: left; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-size: .9rem; }
tr:last-child td { border-bottom: 0; }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--muted); }

details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; text-align: left; }
details + details { margin-top: 10px; }
summary { font-weight: 650; cursor: pointer; }
details p { color: var(--muted); margin: .7em 0 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); margin-left: 16px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-grid .cta { justify-content: center; }
  .window { transform: none; text-align: left; }
  .panels { grid-template-columns: 1fr; }
  .flow div::after { display: none; }
  .grid, .grid.four { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .grid, .grid.four, .stats, .flow { grid-template-columns: 1fr; }
  .nav nav a.hide { display: none; }
  .notice { grid-template-columns: 1fr; }
  .trust { justify-content: flex-start; }
}
.hero-grid > * { min-width: 0; }
