/* KnobLink website: same dark studio language as the app. Flat tonal surfaces, full pills,
   colour only where it means something (orange = a level / a glow on the hardware drawing, green = done). */
:root {
  --bg: #0f1012; --panel: #17191c; --panel2: #1f2125; --soft: #26292e; --line: #2a2d32;
  --ink: #eceef1; --muted: #8d929b; --faint: #5d626b; --accent: #ff6a2b; --accent2: #ffb36b; --go: #3ddc84;
  --edge: #3a3e45; --label: #a3a8b1; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* nav */
nav { position: sticky; top: 0; z-index: 10; background: rgba(15,16,18,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; }
.logo img { width: 28px; height: 28px; }
.logo img.wm { width: auto; height: 21px; }
nav .links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
nav .links a { color: var(--muted); text-decoration: none; padding: 11px 0; }
nav .links a:hover, nav .links a.on { color: var(--ink); }

/* buttons: pills; the main action is light, never orange */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: none; cursor: pointer; background: var(--soft); color: var(--ink); transition: background .15s; }
.btn:hover { background: #30333a; }
.btn.primary { background: var(--ink); color: #111317; }
.btn.primary:hover { background: #fff; }
.btn.small { padding: 8px 16px; font-size: 14px; }

/* type */
.eyebrow { font-size: 14px; color: var(--muted); font-weight: 500; margin: 0 0 14px; }
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 700; }
h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -.01em; }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 30px; }
.fine { font-size: 13px; color: var(--faint); margin-top: 16px; }
section { padding: 110px 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* hero */
.hero { padding: 72px 0 90px; }
.hero .grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.scene { position: relative; }
.scene .kbd svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)); }
.flow { height: 46px; display: flex; justify-content: center; }
.flow i { width: 2px; background: linear-gradient(var(--accent), transparent); border-radius: 2px; animation: flow 1.6s ease-in-out infinite; }
@keyframes flow { 0% { opacity: .2; } 50% { opacity: 1; } 100% { opacity: .2; } }
.gb { background: #2b2d31; border-radius: 16px; padding: 18px 22px 20px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.gb .bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9ea3ab; margin-bottom: 14px; }
.gb .bar b { color: #d9dce1; font-weight: 600; }
.gb .knobs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gb .k { text-align: center; font-size: 11px; color: #b5b9c0; }
.gb .k svg { width: 64px; height: 64px; display: block; margin: 0 auto 6px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px; }
.tile { background: var(--panel); border-radius: 22px; padding: 26px 24px 28px; }
.tile svg { width: 30px; height: 30px; fill: none; stroke: var(--accent2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.tile p { color: var(--muted); margin: 0; font-size: 15px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.step { background: var(--panel); border-radius: 22px; padding: 26px 24px; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 13px; font-weight: 650; margin-bottom: 18px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* brands strip */
.brands { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; color: var(--faint); font-weight: 600; font-size: 17px; letter-spacing: -.01em; margin: 30px 0 34px; }

/* pricing */
.price { max-width: 520px; margin: 40px auto 0; background: var(--panel); border-radius: 28px; padding: 38px 36px; text-align: left; }
.price .amt { font-size: 56px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.price .amt small { font-size: 17px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.price ul { list-style: none; padding: 0; margin: 24px 0 28px; color: var(--muted); }
.price li { padding: 7px 0; display: flex; gap: 10px; }
.price li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--go); margin-top: 9px; flex: none; }

/* faq */
.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 8px 0; margin: -8px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

footer { padding: 46px 0 60px; color: var(--faint); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; margin-right: 18px; display: inline-block; padding: 12px 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* keyboards page */
.lib-hero { padding: 64px 0 30px; }
.featured { background: var(--panel); border-radius: 28px; padding: 26px; margin: 26px 0 30px; }
.featured .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.featured .head b { font-size: 22px; letter-spacing: -.02em; }
.featured .head span { color: var(--muted); font-size: 14px; }
.featured svg { width: 100%; height: auto; display: block; }
.search { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 999px; padding: 0 18px; max-width: 520px; }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search input { flex: 1; border: none; background: none; color: var(--ink); font: inherit; padding: 13px 0; outline: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 26px; }
.chips button { border: none; border-radius: 999px; padding: 7px 15px; font: inherit; font-size: 14px; background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.chips button.on { background: var(--ink); color: #111317; box-shadow: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.kb { background: var(--panel); border-radius: 18px; padding: 16px; cursor: pointer; border: none; color: inherit; font: inherit; text-align: left; transition: background .15s; }
.kb:hover, .kb.on { background: var(--panel2); }
.kb svg { width: 100%; height: 92px; display: block; margin-bottom: 12px; pointer-events: none; }
.kb b { display: block; font-size: 15px; font-weight: 600; }
.kb small { color: var(--muted); font-size: 13px; }

/* help page */
.doc { max-width: 760px; padding: 64px 28px 40px; margin: 0 auto; }
.doc h2 { font-size: 26px; margin-top: 54px; }
.doc p, .doc li { color: var(--muted); }
.doc ol li { margin: 8px 0; }
.doc code { background: var(--panel); padding: 2px 7px; border-radius: 6px; font-size: 14px; }

@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  nav .links a.hide-s { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .tiles { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  nav .wrap { gap: 14px; }
  nav .links { gap: 16px; }
  nav .btn.small { padding: 9px 14px; font-size: 14px; }
  .logo img.wm { height: 18px; }
  .logo > img:first-child { display: none; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta .btn { justify-content: center; }
  .hero .grid > * { min-width: 0; }
  .logo { padding: 12px 0; }
}
@media (max-width: 370px) {
  nav .btn.small { display: none; }
  h1 { font-size: 34px; }
  .gb { padding: 16px 14px; }
  .gb .knobs { gap: 6px; }
  .gb .k svg { width: 52px; height: 52px; }
}

/* keyboard setup pages */
.model-hero { padding: 72px 0 24px; }
.model-hero .eyebrow a { color: inherit; text-decoration: none; }
.model-hero h1 { max-width: 16ch; }
.model-draw { padding: 8px 0 24px; }
.narrow { max-width: 760px; }
.does { padding-left: 20px; color: var(--muted); line-height: 1.6; }
.does li { margin: 10px 0; }
.does b { color: var(--ink); font-weight: 600; }
.narrow h2 { font-size: 26px; margin: 48px 0 12px; }
.related { color: var(--muted); margin-top: 40px; }
.related a { color: var(--ink); margin-right: 14px; text-decoration: none; white-space: nowrap; }
.models { margin: 40px 0 0; }
.models h2 { font-size: 20px; }
.models ul { columns: 3 240px; padding: 0; list-style: none; }
.models li { margin: 0 0 10px; break-inside: avoid; }
.models a { color: var(--muted); text-decoration: none; font-size: 14px; }
.models a:hover { color: var(--ink); }
.price .was, .js-price + .was { color: var(--muted); font-size: .55em; font-weight: 500; margin-left: 6px; }

/* download page: the four install steps as pictures */
.dl { padding-block: 56px 40px; display: grid; gap: 40px; }
.dl-hero h1 { font-size: clamp(32px, 4.4vw, 48px); margin: 0 0 12px; }
.dl-hero .lead a { color: var(--ink); }
.dl-hero .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--go); margin-right: 8px; box-shadow: 0 0 10px var(--go); }
.dl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dl-step { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: grid; grid-template-rows: 230px auto; min-width: 0; }
.dl-art { background: radial-gradient(120% 90% at 50% 0%, #26292e, #17191c); display: grid; place-items: center; padding: 20px; overflow: hidden; }
.dl-text { padding: 20px 22px 24px; display: grid; gap: 6px; align-content: start; }
.dl-text .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #111317; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.dl-text h2 { font-size: 20px; margin: 6px 0 0; letter-spacing: -.01em; }
.dl-text p { margin: 0; color: var(--muted); line-height: 1.55; }
.dl-text b { color: var(--ink); font-weight: 600; }
.dl-text .btn { justify-self: start; margin-top: 10px; }
/* window mock */
.win { width: 100%; max-width: 330px; background: #ececee; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.5); overflow: hidden; color: #1d1f23; }
.win .bar { height: 26px; background: #dcdce0; display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 11px; font-weight: 600; color: #55595f; }
.win .bar i { width: 10px; height: 10px; border-radius: 50%; background: #c7c8cc; }
.win .bar i:nth-child(1) { background: #ff5f57; } .win .bar i:nth-child(2) { background: #febc2e; } .win .bar i:nth-child(3) { background: #28c840; }
.win .bar span { margin-left: 8px; }
.dmg { display: flex; align-items: center; justify-content: space-around; padding: 22px 10px 18px; }
.dmg .ic { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: #33363b; }
.dmg .ic img, .dmg .folder { width: 64px; height: 64px; }
.dmg .folder path { fill: #6cb6ff; } .dmg .folder .tab { fill: none; stroke: #4c9ae8; stroke-width: 2; } .dmg .folder .a { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dmg .arrow { width: 70px; fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 7; }
@media (prefers-reduced-motion: no-preference) { .dmg .arrow { animation: dash 1.2s linear infinite; } @keyframes dash { to { stroke-dashoffset: -26; } } }
/* alert mock */
.alert { width: 230px; background: #2b2d31; border-radius: 18px; padding: 18px 18px 14px; display: grid; gap: 6px; color: #eceef1; box-shadow: 0 20px 50px rgba(0,0,0,.55); font-size: 13px; }
.alert .ai { position: relative; width: 46px; height: 46px; } .alert .ai img { width: 46px; height: 46px; }
.alert .ai i { position: absolute; right: -6px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: #f0b323; color: #1d1f23; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; }
.alert small { color: #a9adb4; line-height: 1.4; }
.alert .done { margin-top: 8px; background: #2f6fe4; color: #fff; border-radius: 10px; text-align: center; padding: 7px; font-weight: 600; box-shadow: 0 0 0 3px rgba(255,106,43,.0), 0 0 0 0 var(--accent); outline: 3px solid var(--accent); outline-offset: 3px; }
/* settings mock */
.settings .cols { display: grid; grid-template-columns: 112px 1fr; min-height: 140px; }
.settings .side { background: #e3e3e7; padding: 10px 8px; display: grid; gap: 4px; align-content: start; font-size: 11px; color: #4b4f55; }
.settings .side span { padding: 4px 7px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings .side .on { background: #2f6fe4; color: #fff; }
.settings .pane { padding: 14px 12px; display: grid; gap: 8px; align-content: start; font-size: 11.5px; }
.settings .pane small { color: #75797f; font-weight: 600; }
.settings .row { background: #fff; border-radius: 8px; padding: 10px; display: grid; gap: 10px; color: #33363b; }
.settings .row em { justify-self: start; font-style: normal; font-weight: 600; background: #fff; border: 1px solid #c9cbd0; border-radius: 7px; padding: 4px 12px; outline: 3px solid var(--accent); outline-offset: 2px; }
/* keyboard mock */
.plug { display: grid; justify-items: center; gap: 14px; }
.plug svg { width: 240px; }
.plug .kb { fill: #2b2d31; stroke: #3a3d43; } .plug .keys rect { fill: #eceef1; } .plug .knobs circle, .plug .knobs rect { fill: #55595f; }
.plug .cable { fill: none; stroke: #8d929b; stroke-width: 3; stroke-linecap: round; }
.plug .ok { font-size: 13px; font-weight: 600; color: var(--go); background: rgba(61,220,132,.1); border-radius: 99px; padding: 6px 14px; }
.dl-why { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px; max-width: 760px; }
.dl-why h2 { font-size: 20px; margin: 0 0 8px; }
.dl-why p { color: var(--muted); margin: 0 0 10px; line-height: 1.6; }
.dl-why a { color: var(--ink); }
@media (max-width: 760px) { .dl-steps { grid-template-columns: 1fr; } .dl-step { grid-template-rows: 210px auto; } }
