/* Kiln website. Same tokens as the app: one ember accent on calm, near-black surfaces. */
:root {
  --bg0: #0a0a0c; --bg1: #131316; --bg2: #18181c; --bg3: #1f1f24; --bg4: #29292f;
  --line: #222227; --line2: #2e2e35; --text: #ececf0; --dim: #a3a3ad; --faint: #6b6b76;
  --accent: #ff7a45; --accent-soft: rgba(255, 122, 69, .13); --accent-ink: #1a0d06;
  --green: #74d39c; --amber: #f0b45a; --blue: #7db5f5; --red: #f2766b;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, .8, .24, 1); --spring: cubic-bezier(.3, 1.3, .5, 1);
  --edge: color-mix(in srgb, var(--text) 8%, transparent);
  --wash: color-mix(in srgb, var(--text) 3%, transparent);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg0: #f6f5f2; --bg1: #ffffff; --bg2: #f3f2ee; --bg3: #ebe9e4; --bg4: #e0ded8;
  --line: #e3e1db; --line2: #d2d0c8; --text: #1c1b19; --dim: #5d5b55; --faint: #95928a;
  --accent: #e0561f; --accent-soft: rgba(224, 86, 31, .1); --accent-ink: #fff;
  --green: #2f7d4f; --amber: #a66d0d; --blue: #2f62b0; --red: #c93c30;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg0); color: var(--text); font: 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; overflow-x: hidden; }
a { color: inherit; }
img { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
kbd { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--line2); background: var(--bg2); font: 600 12px var(--ui); color: var(--text); vertical-align: 1px; }
.grow { flex: 1; }
.wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, transform .15s var(--ease), border-color .2s, filter .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { border: 1px solid var(--line2); color: var(--text); }
.btn.ghost:hover { background: var(--wash); border-color: color-mix(in srgb, var(--text) 18%, transparent); }
.btn.sm { height: 32px; padding: 0 13px; border-radius: 9px; font-size: 13px; }
.btn.lg { height: 48px; padding: 0 22px; border-radius: 14px; font-size: 15.5px; }
.btn.xl { height: 54px; padding: 0 28px; border-radius: 15px; font-size: 16.5px; }
.btn.soon { background: var(--bg3); color: var(--dim); cursor: default; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: color-mix(in srgb, var(--bg0) 78%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-color: var(--edge); }
.nav-in { display: flex; align-items: center; gap: 28px; width: min(1180px, 100% - 40px); height: 60px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 16px; text-decoration: none; letter-spacing: -.02em; }
.brand img { border-radius: 6px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--dim); font-size: 14px; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* type */
.eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .01em; margin-bottom: 14px; }
h1 { font: 650 clamp(44px, 7.4vw, 92px)/1.02 var(--display); letter-spacing: -.045em; }
h2 { font: 650 clamp(34px, 5vw, 60px)/1.06 var(--display); letter-spacing: -.04em; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.soft { color: var(--faint); }
.lede { max-width: 640px; margin-top: 20px; color: var(--dim); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; }
.note { max-width: 680px; margin-top: 22px; color: var(--faint); font-size: 13.5px; }
.m-agent { padding: 0 4px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* hero */
.hero { display: flex; flex-direction: column; align-items: center; padding: 148px 24px 40px; text-align: center; }
.hero .lede { margin-left: auto; margin-right: auto; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.cta-note { margin-top: 14px; color: var(--faint); font-size: 13.5px; }
.stage { display: flex; flex-direction: column; align-items: center; width: min(1180px, 100%); margin-top: 64px; }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 13px; background: var(--wash); border: 1px solid var(--edge); margin-bottom: 22px; }
.seg button { position: relative; z-index: 1; height: 34px; padding: 0 18px; border-radius: 9px; color: var(--dim); font-size: 14px; font-weight: 500; transition: color .25s; }
.seg button.on { color: var(--text); }
.seg-ink { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 9px; background: var(--bg3); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .45s var(--spring), width .45s var(--spring); }

/* the window */
.win { width: 100%; border-radius: 16px; border: 1px solid var(--edge); background: var(--bg1); box-shadow: 0 40px 120px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .3); overflow: hidden; text-align: left; font-size: 13px; }
:root[data-theme="light"] .win { box-shadow: 0 40px 100px rgba(40, 36, 28, .16); }
.win-bar { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; background: var(--bg0); border-bottom: 1px solid var(--edge); }
.lights { display: flex; gap: 7px; margin-right: 14px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.win-tab { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 6px; border-radius: 8px; background: var(--wash); font-size: 12.5px; }
.win-tab.dim { background: none; color: var(--faint); }
.win-tab b, .w-proj b { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 5px; background: hsl(var(--h) 62% 52%); color: #fff; font-size: 9.5px; }
.win-title { margin-left: auto; margin-right: auto; padding-right: 120px; color: var(--faint); font-size: 12.5px; }
.win-body { display: flex; height: 540px; }
.w-side { display: flex; flex-direction: column; gap: 2px; width: 220px; flex: none; padding: 12px 10px; background: color-mix(in srgb, var(--bg2) 70%, var(--bg1)); border-right: 1px solid var(--edge); }
.w-proj { display: flex; align-items: center; gap: 10px; padding: 6px 6px 12px; }
.w-proj b { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.w-proj span { display: flex; flex-direction: column; font-weight: 600; line-height: 1.25; }
.w-proj small { display: flex; align-items: center; gap: 5px; color: var(--green); font-size: 11px; font-weight: 500; }
.live { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 6px transparent; } }
.w-nav { display: flex; flex-direction: column; gap: 1px; padding-bottom: 8px; }
.w-nav span, .w-item { display: flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 8px; color: var(--dim); transition: background .25s, color .25s; }
.w-nav span small { margin-left: auto; color: var(--faint); font-size: 11px; }
.w-nav span.on, .w-item.on { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.w-h { padding: 12px 10px 4px; color: var(--faint); font-size: 11px; font-weight: 500; }
.w-meter { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-top: auto; padding: 8px 10px; color: var(--dim); font-size: 11px; }
.w-meter i, .mini-meter i { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--text) 9%, transparent); overflow: hidden; }
.w-meter b, .mini-meter b { display: block; height: 100%; border-radius: 2px; background: color-mix(in srgb, var(--text) 45%, transparent); }
.w-main { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; animation: viewIn .45s var(--ease); }
.w-main.pad { padding: 22px; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
.w-msgs { display: flex; flex-direction: column; gap: 18px; flex: 1; min-height: 0; padding: 26px max(28px, 7%) 10px; overflow: hidden; justify-content: flex-end; }
.m { display: flex; gap: 11px; animation: msgIn .5s var(--spring) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.m .av, .w-card .av { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--c) 22%, var(--bg2)); color: var(--c); font-size: 11px; font-weight: 650; }
.m .av.ai { border-radius: 8px; font-family: var(--mono); }
.m .mb { flex: 1; min-width: 0; }
.m.me .mb { padding: 9px 13px 11px; margin-top: -9px; border-radius: 14px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.m .mh { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; font-size: 12px; }
.m .mh b { font-weight: 600; }
.m .mh small { color: var(--faint); font-size: 11px; }
.m .run { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px 0 2px; border-radius: 9px; background: var(--wash); color: var(--dim); font-size: 10.5px; }
.m .run i { width: 14px; height: 14px; border-radius: 50%; font-style: normal; font-size: 8px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 30%, var(--bg2)); color: var(--c); }
.m p { color: var(--text); font-size: 13.5px; line-height: 1.55; }
.m .ment { padding: 0 3px; border-radius: 5px; font-weight: 600; }
.m .ment.a { color: var(--accent); background: var(--accent-soft); }
.m .ment.p { color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, transparent); }
.tasks { margin-top: 8px; border: 1px solid var(--edge); border-radius: 11px; overflow: hidden; }
.task { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 12px; border-top: 1px solid var(--edge); font-size: 12.5px; }
.task:first-child { border-top: 0; }
.task .st { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--faint); flex: none; }
.task.going .st { border-color: var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; }
.task.ok .st { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 2.5px var(--bg1); }
@keyframes spin { to { transform: rotate(360deg); } }
.task .md { margin-left: auto; padding: 1px 7px; border-radius: 6px; background: var(--wash); color: var(--dim); font-size: 11px; }
.caret::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: var(--accent); vertical-align: 1px; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.w-box { margin: 6px max(28px, 7%) 18px; padding: 12px 12px 10px 16px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--text) 11%, transparent); background: var(--bg2); }
.w-ph { display: block; min-height: 22px; color: var(--faint); font-size: 13.5px; }
.w-ph.typing { color: var(--text); }
.w-ph .ment { padding: 0 3px; border-radius: 5px; color: var(--text); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.w-tools { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.w-ic { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--faint); font-style: normal; font-size: 13px; }
.w-model { color: var(--dim); font-size: 12.5px; padding: 0 8px; }
.w-send { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.w-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--accent-soft); color: var(--text); font-size: 11.5px; animation: pop .3s var(--spring); }
@keyframes pop { from { opacity: 0; transform: scale(.8); } }
.w-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.w-col h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px 4px; font-size: 13px; font-weight: 600; }
.w-col h4 small { padding: 0 6px; border-radius: 8px; background: var(--wash); color: var(--dim); font-size: 10.5px; }
.w-col h4 i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--faint); }
.w-col h4 i.c1 { border-color: var(--amber); background: linear-gradient(90deg, transparent 50%, var(--amber) 50%); }
.w-col h4 i.c2 { border-color: var(--green); background: var(--green); }
.w-card { display: flex; flex-direction: column; gap: 6px; padding: 11px 12px; margin-bottom: 7px; border-radius: 11px; background: var(--bg2); border: 1px solid var(--edge); cursor: pointer; transition: transform .25s var(--spring), border-color .2s, opacity .3s; }
.w-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--text) 16%, transparent); }
.w-card em { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 11.5px; font-style: normal; }
.w-card .av { width: 17px; height: 17px; font-size: 8.5px; }
.w-card.done { color: var(--faint); text-decoration: line-through; background: none; cursor: default; }
.w-card.doing { box-shadow: inset 2px 0 0 var(--amber); }
.w-tip { margin-top: 14px; color: var(--faint); font-size: 12px; text-align: center; }
.w-panes { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 10px; height: 100%; }
.w-pane { display: flex; flex-direction: column; min-height: 0; border-radius: 11px; border: 1px solid var(--edge); background: var(--bg0); overflow: hidden; }
.w-pane.wide { grid-column: 1 / -1; }
.w-pane header { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 11px; border-bottom: 1px solid var(--edge); font-size: 12px; font-weight: 550; }
.w-pane header small { margin-left: auto; color: var(--faint); font-weight: 500; }
.w-pane header small.working { color: var(--accent); }
.w-pane pre { flex: 1; margin: 0; padding: 10px 12px; overflow: hidden; color: var(--dim); font: 11.5px/1.65 var(--mono); white-space: pre-wrap; }
.w-pane .ok { color: var(--green); } .w-pane .dim { color: var(--faint); } .w-pane .hl { color: var(--text); } .w-pane .ac { color: var(--accent); }

/* works with */
.works { padding: 40px 24px 20px; text-align: center; }
.works p { color: var(--faint); font-size: 13px; }
.works-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 14px; color: var(--dim); font-size: 15px; font-weight: 500; }
.works-row b { margin-right: 4px; }

/* bands */
.band { padding: 130px 0 40px; }
.band h2 { max-width: 900px; }

/* together */
.tg-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; margin-top: 56px; }
.diagram { margin: 0; padding: 24px; border-radius: 22px; background: var(--wash); border: 1px solid var(--edge); }
.diagram svg { display: block; width: 100%; height: auto; color: var(--text); overflow: visible; }
.diagram figcaption { margin-top: 8px; color: var(--faint); font-size: 13px; text-align: center; }
.wires path { fill: none; stroke: url(#wire); stroke-width: 2; }
.pulses circle { fill: var(--accent); }
.hub > rect { fill: var(--bg1); stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1.2; }
.hub-t { fill: var(--text); font: 650 15px var(--ui); letter-spacing: -.01em; }
.hub-rows rect { fill: var(--bg3); }
.hub-rows rect.dim { fill: var(--bg2); }
.hub-rows text { fill: var(--dim); font: 500 12px var(--ui); }
.node circle { fill: color-mix(in srgb, var(--c) 22%, var(--bg1)); stroke: color-mix(in srgb, var(--c) 55%, transparent); stroke-width: 1.5; }
.node .ini { fill: var(--c, var(--text)); font: 650 18px var(--ui); text-anchor: middle; }
.node .nm { fill: var(--text); font: 600 13.5px var(--ui); text-anchor: middle; }
.node .plan { fill: var(--faint); font: 500 11.5px var(--ui); text-anchor: middle; }
.node:nth-of-type(1) .ini { fill: #74d39c; } .node:nth-of-type(2) .ini { fill: #7db5f5; } .node:nth-of-type(3) .ini { fill: #b6a0f2; } .node:nth-of-type(4) .ini { fill: #f0b45a; }
.tg-points { display: flex; flex-direction: column; gap: 28px; }
.pt b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.pt p { margin-top: 6px; color: var(--dim); font-size: 15px; }

/* auto */
.auto { margin-top: 52px; padding: 28px; border-radius: 22px; background: var(--wash); border: 1px solid var(--edge); }
.auto-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.auto-pick button { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line2); color: var(--dim); font-size: 14px; transition: all .2s; }
.auto-pick button:hover { color: var(--text); }
.auto-pick button.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.auto-flow { display: grid; grid-template-columns: 1fr 44px 1fr 44px 1.3fr; align-items: center; gap: 8px; margin-top: 28px; min-height: 170px; }
.af-msg, .af-route, .af-out { padding: 16px; border-radius: 15px; background: var(--bg1); border: 1px solid var(--edge); min-height: 92px; animation: viewIn .5s var(--ease) both; }
.af-msg small, .af-route small, .af-out small { display: block; color: var(--faint); font-size: 11.5px; margin-bottom: 6px; }
.af-msg p { font-size: 15px; }
.af-route b { font-size: 16px; }
.af-route .why { margin-top: 6px; color: var(--dim); font-size: 13px; }
.af-out .row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13.5px; border-top: 1px solid var(--edge); animation: viewIn .4s var(--ease) both; }
.af-out .row:first-of-type { border-top: 0; }
.af-out .row em { margin-left: auto; padding: 1px 8px; border-radius: 6px; background: var(--wash); color: var(--dim); font-style: normal; font-size: 12px; }
.tier { display: inline-flex; gap: 2px; }
.tier i { width: 4px; height: 12px; border-radius: 2px; background: var(--bg4); }
.tier i.on { background: var(--accent); }
.af-arrow { position: relative; height: 2px; background: var(--edge); overflow: hidden; border-radius: 1px; }
.af-arrow span { position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: flow 1.4s linear infinite; }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.auto-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.auto-stats div { padding: 14px 16px; border-radius: 14px; background: var(--bg1); border: 1px solid var(--edge); }
.auto-stats b { display: block; font: 650 26px var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.auto-stats small { color: var(--faint); font-size: 13px; }

/* voice */
.race { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 52px; }
.lane { display: flex; flex-direction: column; padding: 20px; border-radius: 20px; background: var(--wash); border: 1px solid var(--edge); }
.lane header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lane header span { font-weight: 600; }
.lane header small { color: var(--faint); font-size: 13px; }
.lane p { flex: 1; min-height: 120px; margin: 14px 0; color: var(--text); font-size: 16px; line-height: 1.6; }
.lane p::after { content: '▍'; color: var(--faint); animation: blink 1s step-end infinite; }
.lane.done p::after { content: ''; }
.lane.hot { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.lane .bar { display: block; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; }
.lane .bar b { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--dim); }
.lane.hot .bar b { background: var(--accent); }
.race .btn { grid-column: 1 / -1; justify-self: center; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 26px; padding: 28px; border-radius: 22px; background: var(--wash); border: 1px solid var(--edge); }
.calc-in label { display: flex; justify-content: space-between; margin-top: 18px; color: var(--dim); font-size: 14px; }
.calc-in label:first-child { margin-top: 0; }
.calc-in output { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin-top: 8px; background: none; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--p, 20%), color-mix(in srgb, var(--text) 10%, transparent) var(--p, 20%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); transition: transform .15s; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--text) 10%, transparent); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; }
.calc-out b { display: block; font: 650 clamp(40px, 5vw, 58px)/1 var(--display); letter-spacing: -.045em; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc-out > span { display: block; margin-top: 8px; color: var(--dim); }
.calc-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.calc-bars div { display: flex; flex-direction: column; gap: 5px; }
.calc-bars i { display: block; height: 8px; border-radius: 4px; background: var(--dim); transition: width .5s var(--ease); }
.calc-bars i.hot { background: var(--accent); }
.calc-bars small { color: var(--faint); font-size: 12.5px; }
.calc-bars em { color: var(--text); font-style: normal; font-weight: 600; }

/* features */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 52px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 20px; background: var(--wash); border: 1px solid var(--edge); transition: border-color .25s, transform .3s var(--ease); }
.tile:hover { border-color: color-mix(in srgb, var(--text) 15%, transparent); transform: translateY(-3px); }
.tile p { color: var(--dim); font-size: 15px; }
.tile.big { grid-column: span 2; grid-row: span 2; }
.mini-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 18px; }
.mini-panes span { display: flex; align-items: center; gap: 8px; height: 76px; padding: 0 16px; border-radius: 13px; background: var(--bg1); border: 1px solid var(--edge); font-size: 14px; }
.mini-panes span.w { box-shadow: inset 2px 0 0 var(--accent); }
.mini-panes span.a { box-shadow: inset 2px 0 0 var(--amber); }
.mini-panes span.d { color: var(--faint); }
.mini-meter { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 12px; margin-top: auto; padding-top: 8px; color: var(--dim); font-size: 12.5px; }

/* download */
.get { padding: 150px 24px 110px; text-align: center; }
.get .wrap { display: flex; flex-direction: column; align-items: center; }
.get-icon { width: 112px; height: 112px; border-radius: 25px; margin-bottom: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.get .lede { margin: 18px auto 32px; }
.get-meta { margin-top: 14px; color: var(--faint); font-size: 13.5px; }
.term { width: min(560px, 100%); margin-top: 38px; text-align: left; }
.term-label { color: var(--faint); font-size: 13px; }
.term-line { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 6px 6px 6px 16px; border-radius: 13px; background: var(--bg1); border: 1px solid var(--edge); }
.term-line code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 13px var(--mono); color: var(--dim); scrollbar-width: none; }
.copy { height: 32px; padding: 0 14px; border-radius: 9px; background: var(--bg3); font-size: 13px; font-weight: 600; transition: background .2s; }
.copy:hover { background: var(--bg4); }
.copy.done { color: var(--green); }
.first { width: min(560px, 100%); margin-top: 18px; text-align: left; color: var(--dim); font-size: 14px; }
.first summary { cursor: pointer; color: var(--faint); }
.first p { margin-top: 10px; }

/* footer */
.foot { display: flex; align-items: center; gap: 22px; width: min(1120px, 100% - 48px); margin: 0 auto; padding: 28px 0 40px; border-top: 1px solid var(--edge); color: var(--faint); font-size: 13px; }
.foot-sp { flex: 1; }
.foot a { text-decoration: none; }
.foot a:hover, .foot button:hover { color: var(--text); }
.foot button { color: var(--faint); font-size: 13px; }

/* small screens */
@media (max-width: 960px) {
  .tg-grid, .calc { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .w-side { display: none; }
  .auto-flow { grid-template-columns: 1fr; }
  .af-arrow { width: 2px; height: 24px; justify-self: center; }
  .af-arrow span { width: 100%; height: 40%; background: linear-gradient(180deg, transparent, var(--accent), transparent); animation-name: flowY; }
  @keyframes flowY { from { transform: translateY(-100%); } to { transform: translateY(250%); } }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .hero { padding-top: 116px; }
  .race, .bento { grid-template-columns: 1fr; }
  .auto-stats div { padding: 12px; } .auto-stats b { font-size: 20px; }
  .tile.big { grid-column: auto; }
  .win-body { height: 460px; }
  .w-board { grid-template-columns: 1fr; }
  .w-panes { grid-template-columns: 1fr; }
  .w-pane:nth-child(2) { display: none; }
  .win-title { display: none; }
  .seg button { padding: 0 12px; font-size: 13px; }
  .band { padding-top: 96px; }
  .foot { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
  .pulses { display: none; }
}

/* ---------- round 9 ---------- */
/* nav: a floating pill, centred, with the mark inside it */
.nav { inset: 14px 0 auto; pointer-events: none; border: 0; background: none !important; backdrop-filter: none !important; }
.nav-in { pointer-events: auto; width: fit-content; max-width: calc(100% - 32px); height: 52px; gap: 6px; padding: 0 7px 0 9px; border-radius: 18px; border: 1px solid transparent; transition: background .35s, border-color .35s, box-shadow .35s, backdrop-filter .35s; }
.nav.solid .nav-in { background: color-mix(in srgb, var(--bg1) 72%, transparent); border-color: var(--edge); box-shadow: 0 12px 40px rgba(0, 0, 0, .28); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); }
.brand { padding-right: 14px; margin-right: 4px; border-right: 1px solid var(--edge); }
.brand img { border-radius: 7px; }
.nav-links { gap: 2px; margin: 0 6px 0 0; }
.nav-links a { padding: 7px 12px; border-radius: 10px; transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a.on { background: var(--wash); color: var(--text); }
.nav .btn.sm { height: 36px; border-radius: 12px; }

/* hero mark: the real icon, set down with a lit floor under it */
.hero { padding-top: 150px; }
.hero-mark { position: relative; margin-bottom: 26px; }
.hero-mark img { position: relative; z-index: 1; border-radius: 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); animation: markIn 1s var(--spring) both; }
.hero-mark i { position: absolute; left: 50%; bottom: -18px; width: 150px; height: 26px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent); animation: floor 4s ease-in-out infinite; }
@keyframes markIn { from { opacity: 0; transform: translateY(16px) scale(.85); } }
@keyframes floor { 50% { opacity: .55; transform: translateX(-50%) scaleX(.85); } }
h1 .soft { background: linear-gradient(90deg, var(--faint), var(--dim) 40%, var(--accent) 50%, var(--dim) 60%, var(--faint)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s ease-in-out infinite; }
@keyframes shine { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }

/* the window tips up into place as it scrolls in */
.stage { perspective: 1800px; }
.win { transform-origin: 50% 0; transform: rotateX(calc((1 - var(--p, 1)) * 14deg)) scale(calc(.94 + var(--p, 1) * .06)); transition: transform .1s linear; will-change: transform; }

/* marquee */
.works { padding: 56px 0 10px; }
.works-h { color: var(--faint); font-size: 13.5px; }
.marquee { display: flex; margin-top: 20px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-in { display: flex; flex: none; gap: 12px; padding-right: 12px; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-in { animation-play-state: paused; }
.marquee-in span { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 16px; border-radius: 14px; border: 1px solid var(--edge); background: var(--wash); color: var(--text); font-size: 15px; font-weight: 550; white-space: nowrap; }
.marquee-in b { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: var(--bg2); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-100%); } }
.m-person { padding: 0 4px; border-radius: 6px; background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); font-weight: 600; }

/* tiles light up under the cursor */
.tile, .lane, .calc, .auto, .diagram { position: relative; }
.tile::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover::before { opacity: 1; }

/* section headings rise word by word */
.band h2 .w { display: inline-block; opacity: 0; transform: translateY(.4em); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.band h2.in .w { opacity: 1; transform: none; }
.band h2.rv { opacity: 1; transform: none; }

/* install guide */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 52px 0 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 22px; border-radius: 22px; border: 1px solid var(--edge); background: var(--wash); }
.step > b { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 16.5px; letter-spacing: -.015em; }
.step em { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 12.5px var(--ui); font-style: normal; }
.step p { color: var(--dim); font-size: 14.5px; }
.step p strong { color: var(--text); font-weight: 600; }
.shot { display: flex; align-items: center; justify-content: center; height: 190px; border-radius: 14px; background: linear-gradient(160deg, #3a2a52, #1c2a4a 60%, #14203a); overflow: hidden; color: #1d1d1f; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.shot .hot { background: #0a84ff !important; color: #fff !important; box-shadow: 0 0 0 3px rgba(10, 132, 255, .35); animation: hot 2s ease-in-out infinite; }
@keyframes hot { 50% { box-shadow: 0 0 0 6px rgba(10, 132, 255, .12); } }
.dmg { gap: 22px; background: linear-gradient(160deg, #f4f3f0, #e4e2dc); }
.dmg-app { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; }
.dmg-app img { border-radius: 15px; box-shadow: 0 8px 20px rgba(0,0,0,.25); animation: drag 3s var(--ease) infinite; }
@keyframes drag { 0%, 15% { transform: none; } 55%, 70% { transform: translateX(118px) scale(.8); opacity: .6; } 85%, 100% { transform: none; opacity: 1; } }
.apps { width: 64px; height: 56px; border-radius: 10px; background: linear-gradient(180deg, #6cb6ff, #2f7fe0); box-shadow: inset 0 6px 0 rgba(255,255,255,.25); }
.dmg-arrow { width: 40px; height: 2px; background: #9a978f; position: relative; }
.dmg-arrow::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid #9a978f; border-right: 0; }
.dialog { flex-direction: column; gap: 5px; margin: 0; }
.dialog > * { position: relative; }
.dialog::before { content: none; }
.dialog { padding: 0; }
.dialog img { border-radius: 9px; margin-bottom: 4px; }
.dialog strong { color: #fff; font-size: 13px; }
.dialog small { max-width: 220px; color: rgba(255,255,255,.7); font-size: 10.5px; line-height: 1.35; text-align: center; }
.dlg-btns { display: flex; flex-direction: column; gap: 5px; width: 190px; margin-top: 6px; }
.dlg-btns span { height: 22px; line-height: 22px; border-radius: 6px; background: rgba(255,255,255,.14); color: #fff; font-size: 11px; text-align: center; }
.settings { align-items: stretch; justify-content: flex-start; padding: 0; background: #1f1f22; }
.set-side { display: flex; flex-direction: column; gap: 6px; width: 34%; padding: 16px 10px; background: #2a2a2e; }
.set-side i { height: 12px; border-radius: 4px; background: rgba(255,255,255,.1); font-style: normal; }
.set-side i.on { height: auto; padding: 4px 6px; background: #0a84ff; color: #fff; font-size: 10px; }
.set-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px; }
.set-main small { color: rgba(255,255,255,.55); font-size: 10.5px; font-weight: 600; }
.set-row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; border-radius: 8px; background: rgba(255,255,255,.06); color: #eee; font-size: 11px; line-height: 1.35; }
.set-row .hot { padding: 3px 10px; border-radius: 6px; font-size: 11px; }
.install .note { margin-top: 26px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } .nav-links a { padding: 7px 9px; } }
@media (max-width: 680px) { .brand { border: 0; padding-right: 0; } .hero { padding-top: 120px; } }
@media (prefers-reduced-motion: reduce) { .marquee-in, .hero-mark img, .hero-mark i, h1 .soft, .dmg-app img, .shot .hot { animation: none !important; } .band h2 .w { opacity: 1; transform: none; } .win { transform: none; } }
