/* The concepts' shared look (kolify.dev's colours and type) and the "try it" stage around the app's own pages. */
:root { color-scheme: dark; --bg: #0b0c0f; --card: #14151a; --card2: #101115; --ink: #f2f2f4; --soft: #c7cad1; --dim: #9a9da6; --line: #24262d; --accent: #6ea8fe; --ok: #55d68a; --gold: #f5a524; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #9cc2ff; } a:hover { color: #fff; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; font-size: 14px; }
.top nav a { color: var(--dim); text-decoration: none; } .top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 14px; font: 800 15px Manrope, sans-serif; text-decoration: none; border: 0; cursor: pointer; }
.btn.primary { background: var(--accent); color: #0b0c0f; } .btn.primary:hover { color: #0b0c0f; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid #2c2f38; }
.btn.light { background: var(--ink); color: #0b0c0f; min-height: 42px; border-radius: 999px; }
.chip { display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.dim { color: var(--dim); }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.05; margin: 0; }
.concept-note { margin: 0; padding: 10px 24px; background: #17202f; color: #c9dcff; font-size: 13px; text-align: center; }
.concept-note a { color: #fff; font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The stage: the overlay over a game scene on the left, its settings on the right, both a fixed size. */
.kd { display: flex; flex-direction: column; gap: 12px; width: min(1720px, calc(100vw - 48px)); margin-left: calc(50% - min(860px, 50vw - 24px)); }
.kd-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kd-bar .live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--soft); }
.kd-bar .live i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(85,214,138,.18); }
.kd-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(560px, 38vw, 660px); gap: 14px; height: 680px; }
.kd-scene { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(1200px 400px at 70% 110%, rgba(76,140,60,.55), transparent 60%),
    linear-gradient(180deg, #7fb2ff 0%, #a9cbff 38%, #9cc48a 38.2%, #6e9a52 60%, #5b7f44 100%); }
.kd-scene::after { content: ""; position: absolute; inset: 0; background: rgba(5,8,12,.18); pointer-events: none; }
.kd-ov { position: absolute; left: 12px; top: 12px; width: calc(100% - 24px); height: 500px; border: 0; background: transparent; z-index: 2; color-scheme: normal; }
.kd-st { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 20px; background: #0b0c0f; }
.kd-hint { margin: 0; font-size: 13px; color: var(--dim); }
.kd-hotbar { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; background: rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.25); z-index: 1; }
.kd-hotbar span { width: 34px; height: 34px; background: rgba(255,255,255,.08); border: 1px solid rgba(0,0,0,.4); }
.kd-hotbar span:first-child { outline: 2px solid #fff; }
@media (max-width: 1000px) { .kd-grid { grid-template-columns: minmax(0, 1fr); height: auto; } .kd-scene { height: 560px; } .kd-st { height: 640px; } }

/* The FAQ and the footer. */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 10px; align-items: start; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; }
.faq summary { min-height: 56px; display: flex; align-items: center; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; padding-left: 12px; color: var(--dim); font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--soft); }
.foot { border-top: 1px solid var(--line); }
.foot a { color: var(--dim); text-decoration: none; } .foot a:hover { color: var(--ink); }

/* Get it: the client picker and every download. */
.get { padding: 8px 0 48px; }
.pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 16px; }
.pick button { min-height: 88px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: left; cursor: pointer; font: inherit; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.pick button b { font-size: 16px; }
.pick button span { font-size: 12px; color: var(--dim); }
.pick button[aria-checked="true"] { border: 2px solid var(--accent); background: #171a22; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.how ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: #d7d9de; }
.steps-card { display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: 22px; }
.why { background: var(--card2); }
.files { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.files li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid var(--line); }
.files li:first-child { border-top: 0; }
.files a { font-weight: 700; text-decoration: none; }
.files span { color: var(--dim); font-size: 13px; }
