:root {
  --bg: #0d0e12; --surface: #15171d; --surface2: #1c1f28; --line: #2a2e3a; --text: #eef0f5; --muted: #9aa1b3; --dim: #6d7386;
  --accent: #ffb454; --accent-ink: #1a1203; --ok: #7be0a4; --warn: #ffd166; --hot: #ff8f7a; --r: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); padding-bottom: calc(72px + env(safe-area-inset-bottom)); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 10px; font-weight: 750; text-wrap: balance; }
h3 { font-size: 1.05rem; margin: 30px 0 4px; letter-spacing: -0.01em; }
p { margin: 8px 0; } .muted { color: var(--muted); } .small { font-size: 0.86rem; } .dim { color: var(--dim); font-weight: 600; }
.lead { color: var(--muted); font-size: 1.06rem; margin: 0 0 18px; text-wrap: pretty; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* header, tabs, footer */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 1.12rem; letter-spacing: -0.02em; font-weight: 500; } .brand:hover { text-decoration: none; } .brand svg { color: var(--accent); } .brand b { font-weight: 800; }
.topnav { display: none; gap: 4px; margin-left: 18px; } .topnav a { color: var(--muted); padding: 7px 12px; border-radius: 99px; font-size: 0.95rem; } .topnav a.on, .topnav a:hover { color: var(--text); background: var(--surface2); text-decoration: none; }
.units { margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 0.82rem; color: var(--muted); }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; color: var(--muted); font-size: 0.74rem; font-weight: 600; } .tabs a:hover { text-decoration: none; }
.tabs a.on { color: var(--accent); } .tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.badge { position: absolute; top: 4px; left: calc(50% + 8px); background: var(--accent); color: var(--accent-ink); border-radius: 99px; font-size: 0.68rem; min-width: 17px; padding: 0 4px; text-align: center; font-weight: 800; }
.foot { max-width: 760px; margin: 50px auto 0; padding: 22px 16px 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; text-align: center; } .fine { color: var(--dim); font-size: 0.76rem; }

/* layout */
main { outline: none; }
.page { max-width: 760px; margin: 0 auto; padding: 26px 16px 0; } .page.wide { max-width: 920px; }
.back { display: inline-block; color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 20px 0; } .panel h3 { margin-top: 0; }
.note { color: var(--muted); font-size: 0.92rem; border-left: 2px solid var(--accent); padding: 2px 0 2px 12px; margin: 14px 0; }
.verdict { font-size: 1.08rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 16px 0; text-wrap: pretty; }
.stage { background: radial-gradient(120% 90% at 50% 100%, #1b1e27 0%, var(--surface) 70%); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 10px 8px; margin: 12px 0; overflow-x: auto; text-align: center; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); color: var(--text); font-weight: 650; } .btn:hover { text-decoration: none; border-color: var(--dim); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chipbtn { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); color: var(--text); font-size: 0.86rem; font-weight: 600; white-space: nowrap; } .chipbtn:hover { text-decoration: none; border-color: var(--dim); }
.chipbtn.on { background: color-mix(in srgb, var(--accent) 18%, var(--surface2)); border-color: var(--accent); color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; } .actions.wide { margin: 16px 0; } .actions.wide .btn { flex: 1 1 150px; }
.disc { display: block; color: var(--dim); font-size: 0.76rem; margin-top: 4px; }
.link { font-weight: 600; font-size: 0.88rem; }

/* search */
.search { position: relative; margin: 10px 0; } .search > svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; height: 50px; padding: 0 14px 0 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; -webkit-appearance: none; appearance: none; }
.search.big input { height: 60px; font-size: 1.08rem; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); }
.search input::placeholder { color: var(--dim); } .search input:focus { outline: none; border-color: var(--accent); }
.results { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px #000a; max-height: 60vh; overflow-y: auto; }
.res { display: block; width: 100%; text-align: left; padding: 11px 14px; background: none; border: 0; border-bottom: 1px solid var(--line); } .res:last-child { border-bottom: 0; } button.res:hover, button.res:focus { background: #262a36; }
.res small { display: block; color: var(--muted); font-size: 0.8rem; } .res.none { color: var(--muted); font-size: 0.9rem; } .res.meas b { color: var(--accent); }

/* cards */
.cards { display: grid; gap: 10px; margin: 10px 0; }
.card { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.thumb { display: flex; align-items: flex-end; justify-content: center; height: 100px; overflow: hidden; } .thumb svg { max-height: 100px; width: auto; height: 100%; }
.name { color: var(--text); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; } .name span { color: var(--muted); font-weight: 600; }
.step { margin-top: 6px; font-size: 0.9rem; color: var(--text); }
.lvl { display: inline-block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 99px; margin-right: 4px; vertical-align: 1px; }
.lvl.gentle { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); } .lvl.moderate { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); } .lvl.big { background: color-mix(in srgb, var(--hot) 20%, transparent); color: var(--hot); }
.hero-toy { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; } .hero-toy h1 { margin-bottom: 4px; } .hero-toy .lead { margin-bottom: 10px; } .hero-toy svg { flex: none; max-height: 150px; width: auto; }

/* drawings */
.sil { width: 100%; height: auto; display: inline-block; } .sil text { font: 600 11px var(--font); fill: var(--muted); } .sil .ground { stroke: var(--line); stroke-width: 1; }
.sil .can rect { fill: #ffffff0d; stroke: #7d8496; stroke-width: 1.2; } .sil .can line { stroke: #7d8496; stroke-width: 1; }
.chart { width: 100%; max-width: 640px; height: auto; } .chart .grid line { stroke: var(--line); stroke-width: 1; } .chart text { font: 11px var(--font); fill: var(--muted); } .chart .axis { fill: var(--dim); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tag { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 5px 6px 5px 10px; font-size: 0.88rem; font-weight: 600; } .tag i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); } .tag a { color: var(--text); }
.tag button { background: none; border: 0; color: var(--muted); font-size: 1.1rem; line-height: 1; width: 26px; height: 26px; border-radius: 50%; } .tag button:hover { background: var(--surface2); color: var(--text); }

/* tables, forms */
.tablewrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; } th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; } tr:last-child > * { border-bottom: 0; }
tbody th { color: var(--muted); font-weight: 500; } td { font-variant-numeric: tabular-nums; font-weight: 600; } thead th { font-size: 0.84rem; white-space: normal; }
.slider { display: block; margin: 12px 0; } .slider span { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.92rem; } .slider b { color: var(--text); font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; height: 34px; accent-color: var(--accent); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; } .seg button { flex: 1 1 auto; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; } .seg button.on { background: color-mix(in srgb, var(--accent) 18%, var(--surface2)); border-color: var(--accent); color: var(--accent); } .seg small { color: inherit; opacity: 0.7; font-weight: 500; }
.select { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.92rem; } select { height: 40px; border-radius: 10px; background: var(--surface2); color: var(--text); border: 1px solid var(--line); padding: 0 10px; font: inherit; font-size: 0.92rem; max-width: 60%; }

/* home */
.home { max-width: 1080px; margin: 0 auto; padding: 30px 16px 0; display: grid; gap: 22px; }
.eyebrow { color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 10px; }
.pitch h1 { font-size: clamp(2.1rem, 8.5vw, 3.7rem); line-height: 1.02; margin-bottom: 14px; } .pitch h1 em { font-style: normal; color: var(--accent); }
.ask { display: block; font-size: 1.15rem; font-weight: 700; margin: 22px 0 6px; letter-spacing: -0.01em; }
.demo { display: block; background: radial-gradient(120% 90% at 50% 100%, #1d2029 0%, var(--surface) 70%); border: 1px solid var(--line); border-radius: 22px; padding: 18px 12px 12px; text-align: center; color: var(--muted); font-size: 0.86rem; transition: border-color .2s, transform .2s; } .demo:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); } .demo span { display: block; margin-top: 6px; }
.demo path { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; transform-origin: 50% 100%; transform-box: fill-box; } .demo path:nth-of-type(2) { animation-delay: .1s; } .demo path:nth-of-type(3) { animation-delay: .2s; }
@keyframes rise { from { transform: scaleY(0.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .demo path { animation: none; } html { scroll-behavior: auto; } }
.jobs { display: grid; gap: 10px; } .jobs a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; color: var(--text); } .jobs a:hover { border-color: var(--accent); text-decoration: none; } .jobs b { display: block; font-size: 1.08rem; margin-bottom: 2px; } .jobs b::after { content: " →"; color: var(--accent); } .jobs span { color: var(--muted); font-size: 0.92rem; }
.values { display: grid; gap: 16px; padding: 10px 2px; } .values b { display: block; margin-bottom: 2px; } .values span { color: var(--muted); font-size: 0.92rem; }
.prose p { color: #d5d8e2; }

/* dialogs */
.gate { position: fixed; inset: 0; z-index: 50; background: #07080bf2; backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; } .gate[hidden] { display: none; }
.gatebox { max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; text-align: center; } .gatebox h2 { margin: 0 0 8px; letter-spacing: -0.02em; } .gatebox p { color: var(--muted); } .gatebox .row { justify-content: center; margin-top: 16px; }
.sheet { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 22px; width: min(420px, calc(100vw - 32px)); } .sheet::backdrop { background: #07080bcc; } .sheet h3 { margin: 0; } .sheet form { margin-top: 14px; text-align: right; }

@media (min-width: 760px) {
  body { padding-bottom: 0; } .tabs { display: none; } .topnav { display: flex; }
  .home { grid-template-columns: 1.05fr 0.95fr; align-items: center; column-gap: 40px; padding-top: 56px; } .jobs, .values { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; } .page { padding-top: 40px; }
}

/* plain pages for search engines */
.topnav.static { display: flex; margin-left: auto; gap: 0; } .topnav.static a { white-space: nowrap; padding: 7px 8px; font-size: 0.84rem; }
