@font-face {
  font-family: "Onest";
  src: url("fonts/onest.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0e1116;
  --ink-2: #3a414c;
  --muted: #6b7380;
  --line: #e4e7ec;
  --bg: #ffffff;
  --panel: #f3f4f6;
  --field: #e6eef5;
  --field-2: #d6e3ee;
  --accent: #1f6feb;
  --accent-soft: #e5efff;
  --signal: #0f8a5f;
  --signal-soft: #e2f4ec;
  --radius-l: 32px;
  --radius-m: 20px;
  --shadow: 0 1px 2px rgba(14, 17, 22, .06), 0 18px 48px -12px rgba(14, 17, 22, .18);
  --wrap: 100%;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 "Onest", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
img, svg { display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 12px; }
@media (min-width: 700px) { .wrap { padding: 0 clamp(20px, 2.2vw, 40px); } }
.inset { padding-left: clamp(12px, 3vw, 56px); padding-right: clamp(12px, 3vw, 56px); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-head .wrap { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.brand span { color: var(--muted); font-weight: 400; margin-left: -10px; }
.nav { display: none; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.head-actions { margin-left: auto; display: flex; gap: 10px; }
@media (min-width: 900px) { .nav { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 14px;
  font: inherit; font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
  transition: background-color .2s, color .2s, transform .2s cubic-bezier(.2, .7, .2, 1);
}
.btn:hover { background: #2a313c; border-color: #2a313c; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.btn:hover svg { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--field); border-color: var(--field); }
.btn.sm { height: 42px; padding: 0 18px; border-radius: 12px; font-size: 15px; }
.head-actions .ghost { display: none; }
@media (min-width: 560px) { .head-actions .ghost { display: inline-flex; } }

/* Type */
h1, h2, h3 { font-weight: 500; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 4.8vw, 88px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; }
h3 { font-size: 26px; line-height: 1.15; letter-spacing: -.025em; }
.lead { font-size: clamp(18px, 1.4vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.soft { color: var(--muted); }

/* Hero */
.hero { padding: 8px 0 0; }
.hero-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--field) 0%, #eef3f8 55%, var(--field-2) 100%);
  border-radius: var(--radius-l);
  padding: 48px 24px 0;
  display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr);
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy .lead { margin: 24px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-2); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--signal); }

.stage { position: relative; align-self: end; margin: 0 -8px; min-width: 0; }
.screen { overflow-x: hidden; }
.device {
  position: relative; background: #11151b; border-radius: 26px 26px 0 0; padding: 12px 12px 0;
  box-shadow: 0 40px 80px -20px rgba(14, 30, 50, .35);
}
.screen { background: #fff; border-radius: 16px 16px 0 0; overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.app-bar b { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.app-bar .file { margin-left: auto; display: flex; gap: 6px; }
.app-bar .file span { padding: 3px 9px; border-radius: 7px; background: var(--panel); color: var(--ink-2); font-weight: 500; }
.tabs { display: flex; gap: 6px; padding: 12px 18px 0; overflow: hidden; }
.tabs span { padding: 7px 12px; border-radius: 10px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tabs span.on { background: var(--ink); color: #fff; }
.sheet { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.sheet th { text-align: left; font-weight: 500; color: var(--muted); padding: 9px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet td { padding: 12px 18px; border-bottom: 1px solid #f0f2f5; white-space: nowrap; }
.sheet .n { text-align: right; font-variant-numeric: tabular-nums; }
.sheet .opt { display: none; }
.sheet tr:last-child td { opacity: .45; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 8px; background: var(--signal-soft); color: var(--signal); font-weight: 500; font-size: 12px; }
.chip {
  position: absolute; z-index: 2; background: #fff; border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: 13px; line-height: 1.35; display: none;
}
.chip b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chip .soft { font-size: 12px; }
.chip.a { left: -120px; bottom: 120px; }
.chip.b { right: 40px; top: 70px; }
.chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-right: 6px; box-shadow: 0 0 0 4px var(--signal-soft); }
.note-illus { font-size: 12px; color: var(--muted); }

@media (min-width: 700px) {
  .sheet .opt { display: table-cell; }
}
@media (min-width: 1000px) {
  .hero-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; padding: 96px 0 0 clamp(48px, 5vw, 96px); min-height: 680px; }
  .stage { padding-top: 120px; }
  .hero-copy { padding-bottom: 80px; align-self: center; }
  .stage { margin: 0; align-self: end; }
  .device { border-radius: 26px 0 0 0; padding: 12px 0 0 12px; }
  .screen { border-radius: 16px 0 0 0; }
  .chip { display: block; }
}

/* Sections */
section.block { padding: 112px 0 0; }
.block-head { display: grid; gap: 20px; margin-bottom: 48px; padding: 0 clamp(4px, 2vw, 40px); }
@media (min-width: 900px) { .block-head { grid-template-columns: 1fr 1fr; align-items: end; } }

/* Lists */
.lists { display: grid; gap: 12px; }
.list {
  display: grid; gap: 18px; align-items: center;
  background: var(--panel); border-radius: var(--radius-m); padding: 28px 24px;
  transition: background-color .25s;
}
.list:hover { background: #eceef1; }
.list .who { font-size: 14px; color: var(--muted); }
.list h3 { margin-top: 6px; }
.list p { margin: 0; color: var(--ink-2); max-width: 36em; }
.list dl { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.list dl div { background: #fff; border-radius: 12px; padding: 10px 14px; }
.list dt { font-size: 12px; color: var(--muted); }
.list dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .list { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 240px; padding: 36px 40px; gap: 40px; }
  .list dl { flex-direction: column; min-width: 170px; }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0 clamp(4px, 2vw, 40px); display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding: 28px 0 0; display: grid; gap: 10px; }
.steps li::before { content: counter(s); font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps b { font-weight: 500; font-size: 22px; letter-spacing: -.02em; line-height: 1.25; }
.steps span { color: var(--ink-2); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* Row anatomy */
.anatomy { display: grid; gap: 40px; background: var(--panel); border-radius: var(--radius-l); padding: 48px 24px; }
.fields { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; align-content: start; }
.fields li { background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.fields li.paid { background: var(--accent-soft); color: #1747a6; }
.anatomy .small { font-size: 15px; color: var(--muted); margin: 20px 0 0; }
@media (min-width: 900px) { .anatomy { grid-template-columns: 1fr 1.1fr; padding: clamp(56px, 5vw, 96px); } }

/* Closing CTA */
.closing { margin-top: 112px; background: linear-gradient(160deg, var(--field) 0%, #eef3f8 55%, var(--field-2) 100%); color: var(--ink); border-radius: var(--radius-l); padding: 56px 24px; display: grid; gap: 28px; }
.closing .lead { color: var(--ink-2); margin: 18px 0 0; }
.closing .mail { color: var(--muted); font-size: 15px; }
@media (min-width: 900px) { .closing { grid-template-columns: 1.4fr 1fr; align-items: end; padding: clamp(64px, 5vw, 96px); } .closing .act { justify-self: end; text-align: right; } }
.closing .act { display: grid; gap: 14px; justify-items: start; }
@media (min-width: 900px) { .closing .act { justify-items: end; } }

/* Text pages */
.page { padding: 64px 0 0; }
.page-head { background: var(--panel); border-radius: var(--radius-l); padding: 48px 24px; margin-bottom: 56px; }
.page-head p { margin: 16px 0 0; color: var(--muted); }
@media (min-width: 900px) { .page-head { padding: clamp(56px, 5vw, 96px); } }
.prose { max-width: 760px; }
.prose h2 { font-size: 30px; letter-spacing: -.025em; margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.page-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .page-grid { grid-template-columns: 300px 1fr; padding: 0 clamp(20px, 3vw, 56px); } }
.toc { position: sticky; top: 100px; align-self: start; display: none; }
.toc a { display: block; padding: 7px 0; text-decoration: none; color: var(--muted); font-size: 15px; }
.toc a:hover { color: var(--ink); }
@media (min-width: 1000px) { .toc { display: block; } }

.contact-grid { display: grid; gap: 12px; }
.contact-card { background: var(--panel); border-radius: var(--radius-m); padding: 32px 28px; }
.contact-card h2 { font-size: 26px; margin: 0 0 12px; }
.contact-card p { margin: 0 0 20px; color: var(--ink-2); }
.contact-card address { font-style: normal; line-height: 1.7; color: var(--ink-2); }
.big-mail { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; font-weight: 500; text-decoration: none; border-bottom: 1.5px solid var(--line); }
.big-mail:hover { border-color: var(--ink); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.4fr 1fr; } .contact-card { padding: 48px; } }

/* Footer */
.site-foot { margin: 112px 0 0; padding: 0 12px 12px; }
@media (min-width: 700px) { .site-foot { padding: 0 clamp(20px, 2.2vw, 40px) clamp(20px, 2.2vw, 40px); } }
.foot-panel { background: var(--ink); color: #9aa3af; border-radius: var(--radius-l); padding: 56px 24px 0; overflow: hidden; font-size: 15px; }
@media (min-width: 900px) { .foot-panel { padding: clamp(64px, 5vw, 96px) clamp(48px, 5vw, 96px) 0; } }
.foot-top { display: grid; gap: 48px; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.foot-intro p { color: #fff; font-size: clamp(22px, 2vw, 30px); line-height: 1.25; letter-spacing: -.02em; margin: 0 0 28px; max-width: 16em; }
.foot-col h2 { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: #6b7380; margin: 0 0 18px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-col a { color: #e7eaee; text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-col address { font-style: normal; line-height: 1.7; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; border-top: 1px solid #262c35; margin-top: 64px; padding: 24px 0; font-size: 13px; color: #6b7380; }
.foot-mark { font-weight: 600; letter-spacing: -.06em; line-height: .78; color: #fff; font-size: clamp(72px, 19.5vw, 400px); margin: 8px 0 0 -.04em; white-space: nowrap; user-select: none; }
.foot-mark span { color: #2fd38f; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
