/* DuoMirror website — one stylesheet, no external resources. */
:root {
  color-scheme: light dark;
  --bg: #f5f7fd;
  --surface: #ffffff;
  --surface-2: #eceffa;
  --ink: #0c1230;
  --muted: #485174;
  --line: #d9dff0;
  --link: #2742d4;
  --accent: #3554f0;
  --ok: #0f7a4b;
  --warn-bg: #fff4d6;
  --warn-ink: #5c4100;
  --warn-line: #e3b93c;
  --cyan: #7fe3ff;
  --blue: #4aa3ff;
  --violet: #7b6cff;
  --night: #0a0f26;
  --night-2: #1a2358;
  --night-3: #46308a;
  --grad: linear-gradient(135deg, var(--cyan), var(--blue) 45%, var(--violet));
  --radius: 18px;
  --shadow: 0 1px 2px rgba(12, 18, 48, .06), 0 12px 32px rgba(12, 18, 48, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1120px;
  /* Kapitel H company tokens (used only in the company block) */
  --kh-red: #F20505;
  --kh-font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080c20;
    --surface: #111735;
    --surface-2: #171f45;
    --ink: #eef1ff;
    --muted: #aab3d6;
    --line: #27315a;
    --link: #9dbcff;
    --accent: #8fb0ff;
    --ok: #62d9a0;
    --warn-bg: #3a2f08;
    --warn-ink: #ffe7a3;
    --warn-line: #8a6d14;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; hyphens: auto; -webkit-hyphens: auto; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
code, kbd { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .08em .35em; }
kbd { background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: .05em .4em; white-space: nowrap; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--surface); color: var(--ink); padding: .6rem 1rem; border-radius: 10px; box-shadow: var(--shadow); }
.skip:focus { top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 .8rem; }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: .5rem 1.25rem; flex-wrap: wrap; padding-block: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.nav { display: flex; align-items: center; gap: .2rem; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin-inline: -.5rem; padding-inline: .1rem; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .45rem .6rem; border-radius: 10px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.lang a { text-decoration: none; font-size: .8rem; font-weight: 700; color: var(--muted); padding: .3rem .65rem; border-radius: 999px; min-width: 2.4rem; text-align: center; }
.lang a[aria-current="true"] { background: var(--ink); color: var(--bg); }
@media (min-width: 900px) {
  .nav { order: 0; width: auto; margin: 0; overflow: visible; }
  .brand { margin-right: 1rem; }
  .site-header .wrap { flex-wrap: nowrap; }
  .nav { margin-right: auto; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.25rem; border-radius: 14px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #071033; box-shadow: 0 6px 22px rgba(74, 163, 255, .35); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-plain { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-sm { min-height: 40px; padding: .45rem .9rem; font-size: .92rem; border-radius: 12px; }
.btn[aria-disabled="true"] { cursor: not-allowed; opacity: .75; background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line); box-shadow: none; transform: none; }
.btn small { display: block; font-weight: 500; font-size: .78rem; opacity: .85; }
.btn-stack { flex-direction: column; align-items: flex-start; gap: .1rem; text-align: left; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }

/* Hero */
.hero { position: relative; isolation: isolate; color: #fff; background:
  radial-gradient(900px 500px at 35% 10%, rgba(74, 163, 255, .28), transparent 60%),
  linear-gradient(135deg, var(--night) 0%, var(--night-2) 55%, var(--night-3) 100%);
  overflow: hidden; }
.hero .wrap { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 7vw, 5.5rem); align-items: center; }
.hero .eyebrow { color: var(--cyan); }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #d3dbfb; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero-facts { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-facts li { margin: 0; font-size: .85rem; font-weight: 600; color: #e4e9ff; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: .3rem .8rem; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }

/* The folded phone */
.duo-stage { perspective: 1400px; display: grid; justify-items: center; gap: 1rem; }
.duo { --tilt: 14deg; width: min(100%, 400px); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.duo-top { position: relative; aspect-ratio: 7 / 5; border-radius: 30px 30px 6px 6px; padding: 9px 9px 5px; background: #05081a; transform-origin: bottom center; transform: rotateX(var(--tilt)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.duo-screen { position: relative; height: 100%; border-radius: 22px 22px 4px 4px; overflow: hidden; background: linear-gradient(135deg, #7fe3ff 0%, #4aa3ff 48%, #7b6cff 100%); }
.duo-screen::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 9%; background: rgba(255, 255, 255, .22); }
.duo-win { position: absolute; left: 9%; top: 19%; width: 62%; height: 62%; background: #f8faff; border-radius: 12px; box-shadow: 0 12px 30px rgba(10, 20, 80, .3); padding: 9% 6% 5%; color: #1a2247; font-size: clamp(.62rem, 2.6vw, .82rem); line-height: 1.35; }
.duo-win-2 { position: absolute; right: 6%; top: 32%; width: 26%; height: 38%; background: rgba(255, 255, 255, .55); border-radius: 12px; }
.duo-lights { position: absolute; top: 9%; left: 6%; display: flex; gap: 5px; }
.duo-lights i { width: 8px; height: 8px; border-radius: 50%; background: #ff6b5f; }
.duo-lights i:nth-child(2) { background: #ffbe2e; }
.duo-lights i:nth-child(3) { background: #29c83f; }
.duo-winctl { position: absolute; top: 5%; right: 5%; display: none; gap: 9px; font-size: .7em; color: #55608c; font-family: var(--mono); }
.duo-title { position: absolute; top: 6.5%; left: 0; right: 0; text-align: center; font-size: .78em; font-weight: 600; color: #6a7397; }
.duo-typed { display: block; min-height: 2.7em; font-weight: 500; word-break: break-word; }
.duo-caret { display: inline-block; width: 2px; height: 1.05em; background: #3554f0; vertical-align: -.15em; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
.duo-bar { display: block; height: 7px; border-radius: 4px; background: #d7deef; margin-top: 7px; }
.duo-bar.w1 { width: 62%; } .duo-bar.w2 { width: 88%; } .duo-bar.w3 { width: 46%; }
.duo-cursor { position: absolute; left: 58%; top: 52%; width: 16px; height: 22px; z-index: 3; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); animation: glide 9s ease-in-out infinite; }
.duo.is-live .duo-cursor { animation: none; }
.duo-hinge { height: 8px; margin: 3px 6%; border-radius: 4px; background: #7fd4ea; box-shadow: 0 0 18px rgba(127, 227, 255, .55); }
.duo-bottom { border-radius: 6px 6px 30px 30px; background: linear-gradient(180deg, #333a55, #1c2136); padding: 12px 11px 16px; border: 1px solid #454c6b; border-top-color: #2a304a; }
.duo-keys { display: grid; gap: 5px; }
.duo-row { display: flex; gap: 4px; justify-content: center; }
.duo-row.mods { display: none; }
.duo[data-os="mac"] .duo-row.mods.mac, .duo[data-os="win"] .duo-row.mods.win { display: flex; }
.duo[data-os="win"] .duo-lights { display: none; }
.duo[data-os="win"] .duo-winctl { display: flex; }
.key { flex: 1 1 0; min-width: 0; height: clamp(26px, 8vw, 34px); display: grid; place-items: center; border-radius: 7px; background: #5a6079; color: #f1f3ff; font-size: clamp(.62rem, 2.6vw, .8rem); font-weight: 600; box-shadow: 0 1px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .1); cursor: pointer; transition: background-color .08s, transform .08s; }
.key.wide { flex-grow: 1.6; font-size: clamp(.55rem, 2.2vw, .7rem); }
.key.space { flex-grow: 5.2; background: #6b7189; }
.key.mod { background: #474d66; }
.key.is-down, .key:active { background: #9fb9ff; color: #071033; transform: translateY(1px); }
.duo-pad { position: relative; margin: 12px auto 0; width: 62%; aspect-ratio: 16 / 7; border-radius: 14px; border: 2px solid #7fd4ea; background: rgba(255, 255, 255, .06); cursor: crosshair; touch-action: none; }
.duo-pad::after { content: attr(data-hint); position: absolute; inset: 0; display: grid; place-items: center; font-size: .7rem; color: #b9c2e6; letter-spacing: .04em; pointer-events: none; opacity: 0; transition: opacity .3s; }
.js .duo-pad::after { opacity: .9; }
.duo.is-live .duo-pad::after { opacity: 0; }
.duo-touch { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(127, 227, 255, .5); border: 1px solid #c9f3ff; pointer-events: none; opacity: 0; transition: opacity .2s; }
.duo-pad.is-touch .duo-touch { opacity: 1; }
.duo-controls { display: none; gap: .4rem; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px; }
.js .duo-controls { display: inline-flex; }
.duo-controls button { font: 700 .85rem/1 var(--font); color: #dbe3ff; background: transparent; border: 0; border-radius: 999px; padding: .55rem 1rem; cursor: pointer; min-height: 36px; }
.duo-controls button[aria-pressed="true"] { background: #fff; color: #0c1230; }
.duo-caption { font-size: .85rem; color: #b9c4ee; text-align: center; margin: 0; max-width: 40ch; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes glide { 0%, 100% { left: 58%; top: 52%; } 25% { left: 30%; top: 34%; } 50% { left: 78%; top: 44%; } 75% { left: 46%; top: 70%; } }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.section.alt .card { background: var(--bg); box-shadow: none; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #071033; margin-bottom: .9rem; }
.ico svg { width: 24px; height: 24px; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; margin: 0; }
.steps > li::before { content: counter(step, decimal-leading-zero); display: block; font: 800 .95rem/1 var(--mono); color: var(--accent); margin-bottom: .8rem; letter-spacing: .05em; }

.facts { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.facts div { display: grid; gap: .1rem .9rem; padding: .8rem 1.1rem; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }
@media (min-width: 640px) { .facts div { grid-template-columns: 13rem 1fr; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 34rem; }
caption { caption-side: bottom; text-align: left; padding: .8rem 1rem; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); }
th, td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: var(--surface-2); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
tbody th { font-weight: 700; width: 24%; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }

.note { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.25rem 0; }
.note p:last-child { margin-bottom: 0; }
.todo { background: var(--warn-bg); color: var(--warn-ink); border: 1px dashed var(--warn-line); border-radius: 6px; padding: .05em .4em; font-weight: 700; font-family: var(--mono); font-size: .9em; }
.badge { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: .25rem .7rem; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.badge.free { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--surface)); }
.badge.soon { background: color-mix(in srgb, var(--violet) 16%, var(--surface)); border-color: color-mix(in srgb, var(--violet) 45%, var(--surface)); }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: .6rem 0 .2rem; }
.plan { display: flex; flex-direction: column; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.25rem; }
.plan li { padding-left: 1.6em; position: relative; color: var(--muted); }
.plan li::before { content: ""; position: absolute; left: .15em; top: .5em; width: .9em; height: .5em; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan.pro { border-color: color-mix(in srgb, var(--violet) 55%, var(--line)); }

/* FAQ */
.faq { display: grid; gap: .6rem; max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 700; position: relative; border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.3rem; top: 50%; width: .6rem; height: .6rem; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 1.2rem 1.1rem; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq h3 { font-size: inherit; margin: 0; letter-spacing: 0; line-height: 1.4; }

/* Code + copy */
.code { position: relative; margin: 1rem 0 1.25rem; }
pre { margin: 0; background: #0b1029; color: #e6ebff; border: 1px solid #27315a; border-radius: 12px; padding: 1rem 1.1rem; overflow-x: auto; font: .86rem/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.copy { display: none; position: absolute; top: .5rem; right: .5rem; font: 700 .75rem/1 var(--font); color: #dbe3ff; background: #1b2450; border: 1px solid #3a4680; border-radius: 8px; padding: .5rem .7rem; cursor: pointer; }
.js .copy { display: block; }
.js .code pre { padding-right: 5.5rem; }
.copy.done { background: #145c3c; border-color: #2c9a6a; }

/* Article pages */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.page-head h1 { font-size: clamp(1.75rem, 4.6vw, 3rem); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.prose { max-width: 46rem; padding-block: 1.5rem clamp(3rem, 6vw, 5rem); }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose .table-wrap, .prose .facts { margin: 1.25rem 0; }
.prose .tldr { font-size: 1.1rem; border-left-color: var(--violet); }
.updated { font-size: .88rem; color: var(--muted); }
.dl-grid .card { display: flex; flex-direction: column; gap: .3rem; }
.dl-grid .btn { margin-top: auto; align-self: stretch; }
.link-list { list-style: none; padding: 0; }
.link-list a { font-weight: 700; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 3rem 2rem; font-size: .93rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { color: var(--ink); text-decoration: none; display: inline-block; padding: .2rem 0; }
.site-footer li a:hover { text-decoration: underline; }
.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
/* Kapitel H company block: company look (Arial, white/fog, one red accent) */
.kh { font-family: var(--kh-font); display: inline-grid; gap: .5rem; padding-top: .9rem; margin-top: 1.1rem; border-top: 2px solid var(--kh-red); color: var(--ink); text-decoration: none; }
.kh span { font-size: .82rem; color: var(--muted); }
.kh img { display: block; width: 132px; height: auto; }
.kh .on-dark { display: none; }
@media (prefers-color-scheme: dark) { .kh .on-dark { display: block; } .kh .on-light { display: none; } }

/* Scroll reveal (only with JS, only if motion is welcome) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .duo { --tilt: 8deg; }
}
@media print {
  .site-header, .site-footer, .duo-stage, .copy, .cta-row { display: none !important; }
  body { background: #fff; color: #000; }
  .faq details .answer { display: block; }
}
