/* KMacros site. The palette is the apps' own: dark by default, light when the visitor's system is set to light. */
:root {
  --bg: #0f1116; --surf: #181b22; --surf2: #20242d; --line: #2b303b;
  --txt: #eef1f6; --txt2: #9aa3b2; --acc: #ff7a3d; --acc-soft: rgba(255, 122, 61, .16); --on-acc: #1b0d05;
  --ok: #3ddc97; --code-bg: #0b0d12;
  --radius: 16px; --max: 1080px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f4f7; --surf: #ffffff; --surf2: #e9ecf1; --line: #d9dee7;
    --txt: #171a21; --txt2: #5a6373; --acc: #e8590c; --acc-soft: rgba(232, 89, 12, .12);
    --ok: #1a9e69; --code-bg: #eef0f4;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acc); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--acc); color: var(--on-acc); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--txt); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand b { color: var(--acc); font-weight: 800; }
.brand .k { color: var(--txt); }
.foot-name { color: var(--txt); }
.site-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; }
.site-nav a { color: var(--txt2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--txt); }
.site-nav a[aria-current="page"] { color: var(--txt); border-bottom-color: var(--acc); }

/* type */
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--txt2); max-width: 36rem; }
.eyebrow { color: var(--acc); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.muted { color: var(--txt2); }
.accent { color: var(--acc); }

/* layout blocks */
section { padding: 56px 0; }
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-art { display: flex; justify-content: center; position: relative; }
.hero-art .phone { width: min(300px, 70%); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--surf); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--txt2); font-size: .98rem; }
.steps { counter-reset: step; display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; background: var(--surf); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 22px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--acc); color: var(--on-acc); font-weight: 800; margin-bottom: 12px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--txt2); font-size: .98rem; }
.band { background: var(--surf); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .28); }
.phones { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.phones img { width: min(220px, 44%); border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 16px 44px rgba(0, 0, 0, .28); }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--acc); color: var(--on-acc); border: 2px solid var(--acc); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--txt); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--txt2); filter: none; }
.btn.disabled { background: transparent; color: var(--txt2); border: 2px dashed var(--line); cursor: default; }
.btn.disabled:hover { filter: none; }

.badge { display: inline-flex; line-height: 0; }
.badge img { display: block; width: auto; }
.badge-play img { height: 64px; margin: -8px -10px; }
.badge-ms img { height: 48px; }

/* tables, code */
table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .97rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--txt2); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92em; background: var(--code-bg); padding: 2px 6px; border-radius: 6px; }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; margin: 0 0 1.2em; }
pre code { background: none; padding: 0; font-size: .9rem; line-height: 1.55; }
.method { font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: .82rem; background: var(--acc-soft); color: var(--acc); padding: 2px 8px; border-radius: 6px; margin-right: 8px; }
.callout { background: var(--acc-soft); border: 1px solid var(--line); border-left: 4px solid var(--acc); border-radius: 12px; padding: 14px 18px; margin: 0 0 1.4em; }
.callout p { margin: 0; }

/* article pages (privacy, docs, support) */
.page { padding: 48px 0 64px; }
.page .wrap { max-width: 800px; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.4rem; margin-top: 2em; }
.page li { margin-bottom: .4em; }
.page details { background: var(--surf); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
.page summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.page details[open] summary { margin-bottom: 4px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--txt2); font-size: .94rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.site-footer a { color: var(--txt2); }
.site-footer a:hover { color: var(--txt); }

@media (max-width: 820px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero-art .phone { width: min(240px, 62%); }
  section { padding: 40px 0; }
  .site-nav { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
