:root {
  --bg: #0b0b0d; --fg: #f5f5f7; --muted: #a1a1a6; --card: #17171a; --line: #2a2a2e;
  --accent: #6ea8ff; --accent-fg: #06142b;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #fbfbfd; --fg: #1d1d1f; --muted: #5f5f66; --card: #fff; --line: #e3e3e8;
          --accent: #0a5bd8; --accent-fg: #fff; color-scheme: light; }
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

.hero { text-align: center; padding: 72px 16px 40px; }
.mark { display: block; width: clamp(56px, 12vw, 88px); aspect-ratio: 1; margin: 0 auto 20px; background: currentColor;
  -webkit-mask: url(/assets/k-logo.svg) center/contain no-repeat; mask: url(/assets/k-logo.svg) center/contain no-repeat; }
.small-mark { width: 28px; margin-bottom: 16px; }
.wordmark {
  font: 700 clamp(48px, 12vw, 96px)/1 -apple-system, "SF Pro Display", system-ui, sans-serif;
  letter-spacing: -0.04em;
}
.lede { margin: 16px auto 0; max-width: 40ch; font-size: clamp(19px, 3vw, 24px); color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 600; color: var(--fg); border: 1px solid var(--line); background: var(--card);
}
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; }

.stage {
  position: relative; margin: 48px auto 0; max-width: 880px; padding: 12px;
  border-radius: 24px; background: var(--card); border: 1px solid var(--line);
  overflow: hidden; transition: opacity .2s;
}
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile {
  aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 10px; overflow: hidden;
  background: var(--line); cursor: zoom-in; will-change: transform, opacity; position: relative;
}
.tile[aria-pressed="true"] { z-index: 2; cursor: zoom-out; box-shadow: 0 20px 60px rgb(0 0 0 / .5); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.hint { margin-top: 12px; color: var(--muted); font-size: 14px; }

.sec { max-width: 980px; margin: 0 auto; padding: 72px 16px; border-top: 1px solid var(--line); }
.sec h2 { font-size: clamp(30px, 6vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
.sec > p, .split p { margin-top: 16px; max-width: 56ch; color: var(--muted); font-size: 19px; }
.devices { display: flex; align-items: flex-end; gap: 16px; margin-top: 40px; }
.devices .mac { flex: 1 1 0; min-width: 0; border-radius: 12px; border: 1px solid var(--line); }
.phone { width: 30%; max-width: 260px; border-radius: 28px; border: 1px solid var(--line); }
.devices .phone { width: 22%; flex: none; }
.split { display: grid; gap: 32px; align-items: center; }
.split .phone { width: 60%; justify-self: center; }
@media (min-width: 760px) {
  .split { grid-template-columns: 1fr 280px; }
  .split .phone { width: 100%; }
}
.cards, .grid { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 32px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards li, .grid li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.cards h3, .grid h3 { font-size: 17px; }
.cards p, .grid p { margin-top: 6px; color: var(--muted); font-size: 15px; }

footer { text-align: center; padding: 48px 16px 64px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer a { color: inherit; }
footer .small { margin-top: 8px; font-size: 13px; }

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