/* dokki.io: flat purple, dark first. Solid fills only. */
:root {
  --bg: #17122B;
  --surface: #221B3D;
  --border: #3A3060;
  --primary: #7C5CFF;
  --primary-ink: #6847F0;
  --primary-ink-hover: #5A39E6;
  --soft: #C4B5FF;
  --text: #F4F1FF;
  --muted: #A79FC4;
  --on-primary: #FFFFFF;
  --device: #0E0A1C;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Segoe UI Variable Display", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-l: 28px;
  --radius-m: 18px;
  --radius-s: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F7F5FF;
  --surface: #FFFFFF;
  --border: #DCD4F7;
  --primary-ink: #6143E8;
  --primary-ink-hover: #5232D9;
  --soft: #5B3FD9;
  --text: #1B1433;
  --muted: #5E5680;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--soft); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 12px 16px; border-radius: var(--radius-s); background: var(--primary-ink); color: var(--on-primary); font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--border); background: transparent; color: var(--text); font: 700 17px/1.2 var(--display); text-decoration: none; text-align: center; transition: background-color .2s, border-color .2s, color .2s; }
.button:hover { border-color: var(--soft); }
.button-primary { background: var(--primary-ink); border-color: var(--primary-ink); color: var(--on-primary); }
.button-primary:hover { background: var(--primary-ink-hover); border-color: var(--primary-ink-hover); }
.button-quiet { border-color: transparent; color: var(--soft); padding-inline: 12px; }
.button-quiet:hover { border-color: transparent; text-decoration: underline; text-underline-offset: 5px; }
.button-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.text-link { color: var(--soft); font-weight: 600; text-underline-offset: 4px; }
.link-button { padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); }
.icon-button:hover { color: var(--text); background: var(--border); }
.icon-button svg, [data-symbol] svg { width: 22px; height: 22px; }
.lang-switch { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; }
.lang-switch:hover { color: var(--text); background: var(--border); }
select.lang-switch { appearance: none; -webkit-appearance: none; max-width: 190px; border: 0; background: transparent; font-family: inherit; text-overflow: ellipsis; cursor: pointer; }
select.lang-switch option { background: var(--surface); color: var(--text); }

/* Navigation: a mascot button that unfolds into links (see navigation.js) */
.header { position: sticky; top: 14px; z-index: 20; height: 56px; margin-top: 14px; pointer-events: none; }
.nav-shell { position: relative; width: min(860px, 100%); height: 56px; padding: 4px; border: 1px solid var(--border); border-radius: 28px; background: var(--surface); pointer-events: auto; overflow: hidden; }
.header[data-nav-ready] .nav-shell { width: 56px; border-radius: 20px; }
.header[data-nav-animate] .nav-shell { transition: width .6s var(--ease), border-radius .6s var(--ease); }
.nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 16px; }
.nav-toggle img { width: 36px; height: 36px; }
.nav-content { position: absolute; inset: 4px 6px 4px 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; white-space: nowrap; }
.header:not([data-nav-ready]) .nav-content { left: 20px; }
.header[data-nav-ready] .nav-content { opacity: 0; visibility: hidden; transform: translateX(-12px); pointer-events: none; }
.header[data-nav-animate] .nav-content { transition: opacity .18s, transform .35s, visibility 0s .35s; }
@media (min-width: 801px) and (hover: hover) and (pointer: fine) {
  .header[data-expanded="true"] .nav-shell { width: min(860px, 100%); border-radius: 28px; }
  .header[data-expanded="true"] .nav-content { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .3s .1s, transform .45s .08s, visibility 0s; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 var(--display); text-decoration: none; letter-spacing: -.02em; }
.desktop-nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.desktop-nav > a { padding: 10px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.desktop-nav > a:hover { color: var(--text); }
.desktop-nav > .nav-download { margin-left: 6px; padding: 12px 18px; background: var(--primary-ink); color: var(--on-primary); font-weight: 700; }
.desktop-nav > .nav-download:hover { background: var(--primary-ink-hover); color: var(--on-primary); }
.header .theme-toggle svg { width: 19px; height: 19px; }
@media (max-width: 800px), (hover: none), (pointer: coarse) {
  .header:not([data-nav-ready]) .desktop-nav > a:not(.nav-download), .header:not([data-nav-ready]) .desktop-nav > button { display: none; }
}

html.menu-open { overflow: hidden; }
.menu-open body { position: fixed; inset-inline: 0; top: var(--nav-scroll-top, 0px); }
.mobile-menu { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--text); overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu::backdrop { background: #0B0817; }
.menu-sheet { width: min(640px, 100%); min-height: 100%; margin-inline: auto; padding: calc(16px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding-left: 8px; }
.menu-links { display: flex; flex-direction: column; margin-top: 24px; }
.menu-links > a { display: flex; align-items: center; min-height: 60px; padding-inline: 8px; border-top: 1px solid var(--border); font: 700 clamp(24px, 7vw, 32px)/1.1 var(--display); text-decoration: none; letter-spacing: -.02em; opacity: 0; transform: translateY(-10px); transition: opacity .25s, transform .3s, color .2s; }
.menu-links > a:last-child { border-bottom: 1px solid var(--border); }
.mobile-menu[data-visible] .menu-links > a { opacity: 1; transform: none; transition: opacity .4s calc(.1s + var(--i, 0) * .045s), transform .4s calc(.1s + var(--i, 0) * .045s), color .2s; }
.menu-links > a:nth-child(2) { --i: 1; } .menu-links > a:nth-child(3) { --i: 2; } .menu-links > a:nth-child(4) { --i: 3; } .menu-links > a:nth-child(5) { --i: 4; } .menu-links > a:nth-child(6) { --i: 5; }
.menu-links > a:hover { color: var(--soft); }
.menu-bottom { margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 8px; }
.menu-bottom > a { margin-right: auto; padding: 10px 8px; color: var(--muted); }

/* Hero */
.hero { display: grid; gap: 28px; padding-block: 40px 72px; }
.hero-art { order: -1; }
.mascot { width: 132px; height: auto; animation: mascot-idle 4.8s ease-in-out infinite; }
/* The D2 app icon, alive: a slow float, a blink every few seconds and a Wi-Fi signal that pulses. */
.mascot #eyes, .mascot #pupils { transform-box: view-box; transform-origin: 512px 477px; animation: mascot-blink 5.8s infinite; }
.mascot #wifi path { animation: mascot-wifi 3.2s ease-in-out infinite; }
.mascot #wifi path + path { animation-delay: .35s; }
@keyframes mascot-idle { 50% { transform: translateY(-2.5%); } }
@keyframes mascot-blink { 0%, 91%, 97%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
@keyframes mascot-wifi { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .mascot, .mascot * { animation: none !important; } }
.hero h1 { font-size: clamp(2.6rem, 10vw, 5.25rem); line-height: 1.02; font-weight: 800; letter-spacing: -.025em; max-width: 12ch; }
.hero-lead { margin-top: 22px; max-width: 34em; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; max-width: 34em; font-size: 15px; color: var(--muted); }
.hero-platforms { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); max-width: 34em; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 48px; padding-block: 72px 112px; }
  .hero-art { order: 0; display: grid; justify-items: center; }
  .mascot { width: min(100%, 380px); }
}

/* Sections */
.section { padding-block: 72px; border-top: 1px solid var(--border); }
.section h2 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 40em; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section h3 { font-size: 1.2rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.fine-print { margin-top: 18px; max-width: 48em; font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
@media (min-width: 900px) { .section { padding-block: 104px; } }

/* What it is */
.what-body { display: grid; gap: 32px; margin-top: 28px; }
.prose { display: grid; gap: 18px; max-width: 36em; font-size: 1.1rem; }
.prose strong { color: var(--soft); }
.what-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; align-content: start; }
.what-points li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--border); font-weight: 600; }
.what-points li:first-child { border-top: 1px solid var(--border); }
.what-points [data-symbol] { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-s); background: var(--surface); color: var(--soft); }
@media (min-width: 900px) { .what-body { grid-template-columns: 1.2fr 1fr; gap: 64px; } }

/* Demo: the real dock (phone) driving a simulated computer above it */
.demo-stage { display: grid; justify-items: center; gap: 22px; --laptop: #3A3060; --laptop-edge: #2C2450; }
:root[data-theme="light"] .demo-stage { --laptop: #CFC5F2; --laptop-edge: #B9ACEA; }
.laptop { width: min(660px, 100%); }
.laptop-lid { padding: 1.4% 1.4% 2%; border: 1px solid var(--border); border-radius: 22px 22px 8px 8px; background: var(--device); }
.laptop-base { position: relative; width: 112%; margin-left: -6%; height: 16px; border-radius: 2px 2px 18px 18px; background: var(--laptop); border-bottom: 3px solid var(--laptop-edge); }
.laptop-base span { position: absolute; left: 50%; top: 0; width: 16%; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: var(--laptop-edge); }
.device { width: min(540px, 100%); padding: 10px; border-radius: 40px; background: var(--device); border: 1px solid var(--border); }
.device-screen { position: relative; aspect-ratio: 2.13; border-radius: 30px; background: #17122B; overflow: hidden; touch-action: none; isolation: isolate; }
.demo-frame { position: absolute; inset: 0; border: 0; transform-origin: top left; display: block; background: #17122B; }
.demo-toolbar { max-width: 900px; margin: 24px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.demo-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; }
.chip:hover { border-color: var(--soft); }
.density-control { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.segmented { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.segmented button { min-width: 44px; min-height: 38px; border-radius: 999px; color: var(--muted); font-weight: 700; }
.segmented button[aria-pressed="true"] { background: var(--primary-ink); color: var(--on-primary); }
.demo .fine-print { margin-inline: auto; max-width: 900px; }
@media (max-width: 700px) {
  .demo-stage { gap: 22px; }
  .device { order: -1; padding: 6px; border-radius: 24px; }
  .device-screen { aspect-ratio: 1.93; border-radius: 19px; }
  .laptop-lid { border-radius: 14px 14px 6px 6px; }
  .laptop-base { width: 104%; margin-left: -2%; height: 10px; }
}

/* The simulated screen is sized in container units, so it scales as one picture. */
.pc-screen {
  --pc-bg: #2A2158; --pc-surface: #221B3D; --pc-bar: #2C2450; --pc-deep: #1D1640; --pc-line: #3A3060;
  --pc-primary: #7C5CFF; --pc-soft: #C4B5FF; --pc-text: #F4F1FF; --pc-muted: #A79FC4;
  --pc-mint: #5FE3B0; --pc-sun: #FFC94D; --pc-sky: #6FC3FF; --pc-coral: #FF7A85;
  container-type: inline-size; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px;
  background: var(--pc-bg); color: var(--pc-text); font-family: var(--body); line-height: 1.3; user-select: none;
}
/* cqw only resolves inside the container, so type is set on the children. */
.pc-screen > *, .pc-thumb-view > * { font-size: 1.3cqw; }
.pc-thumb-view { container-type: inline-size; }
.pc-shot { position: absolute; inset: 0; }
.pc-wallpaper, .pc-wallpaper svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.pc-menubar { position: absolute; inset: 0 0 auto; z-index: 2000; display: flex; align-items: center; gap: 1.7cqw; height: 3cqw; padding: 0 1.4cqw; background: rgba(23, 18, 43, .72); font-size: 1.3cqw; white-space: nowrap; }
.pc-menubar strong { font-weight: 700; }
.pc-mark { width: 1.5cqw; height: 1.5cqw; border-radius: .45cqw; background: var(--pc-soft); }
.pc-menubar-right { margin-left: auto; display: flex; align-items: center; gap: 1.2cqw; }
.pc-menubar svg { width: 1.6cqw; height: 1.6cqw; }
.pc-battery { position: relative; width: 2.4cqw; height: 1.15cqw; border: .12cqw solid var(--pc-text); border-radius: .3cqw; padding: .12cqw; }
.pc-battery i { display: block; width: 70%; height: 100%; border-radius: .12cqw; background: var(--pc-text); }
.pc-rec { display: inline-flex; align-items: center; gap: .5cqw; padding: .1cqw .7cqw; border-radius: 1cqw; background: var(--pc-coral); color: #17122B; font-weight: 700; font-variant-numeric: tabular-nums; }
.pc-rec i { width: .8cqw; height: .8cqw; border-radius: 50%; background: #17122B; }
.pc-desktop { position: absolute; inset: 3cqw 0 0; }

/* Windows */
.pc-window { position: absolute; width: 50cqw; height: 33cqw; border: .1cqw solid var(--pc-line); border-radius: 1.1cqw; background: var(--pc-surface); overflow: hidden; box-shadow: 0 1.2cqw 3cqw rgba(8, 5, 20, .45); }
.pc-window.kind-notes { width: 42cqw; height: 29cqw; }
.pc-window.kind-music { width: 44cqw; height: 28cqw; }
.pc-window.is-opening { animation: pc-open .22s var(--ease); }
@keyframes pc-open { from { opacity: 0; transform: scale(.94); } }
.pc-titlebar { display: flex; align-items: center; gap: .8cqw; height: 3cqw; padding: 0 1cqw; background: var(--pc-bar); font-weight: 600; }
.pc-window:not(.is-front) .pc-titlebar { color: var(--pc-muted); }
.pc-window:not(.is-front) .pc-lights > * { background: var(--pc-line); }
.pc-titlebar img { width: 2cqw; height: 2cqw; }
.pc-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-lights { display: flex; gap: .55cqw; margin-right: .8cqw; }
.pc-lights > * { position: relative; width: 1.05cqw; height: 1.05cqw; padding: 0; border-radius: 50%; background: var(--pc-sun); }
.pc-lights > :first-child { background: var(--pc-coral); }
.pc-lights > :last-child { background: var(--pc-mint); }
.pc-light::after { content: ""; position: absolute; inset: -.7cqw; }
.pc-light:focus-visible { outline-width: 2px; outline-offset: 1px; }
.pc-body { position: absolute; inset: 3cqw 0 0; overflow: hidden; padding: 1.2cqw; }
.pcw-line { display: block; width: var(--w); height: .8cqw; margin: .7cqw 0; border-radius: .4cqw; background: var(--pc-line); }
.pcw-url { display: flex; align-items: center; gap: .7cqw; height: 2.3cqw; margin: 0 6cqw 1.2cqw; padding: 0 1cqw; border-radius: 1.2cqw; background: var(--pc-deep); color: var(--pc-muted); font-size: 1.1cqw; }
.pcw-url span { width: .8cqw; height: .8cqw; border-radius: 50%; background: var(--pc-mint); }
.pcw-hero { display: flex; align-items: center; gap: 2cqw; padding: 2cqw; border-radius: 1cqw; background: var(--pc-primary); }
.pcw-hero > div { flex: 1; }
.pcw-hero .pcw-line { height: 1.2cqw; background: var(--pc-text); }
.pcw-mascot { display: flex; justify-content: center; align-items: center; gap: .8cqw; flex: none; width: 6cqw; height: 6cqw; border-radius: 2cqw; background: var(--pc-soft); }
.pcw-mascot i { width: 1cqw; height: 1.6cqw; border-radius: .5cqw; background: #17122B; }
.pcw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cqw; margin: 1.4cqw 0; }
.pcw-cards i { height: 6.5cqw; border-radius: .8cqw; border-top: .6cqw solid var(--pc-mint); background: var(--pc-bar); }
.pcw-cards i:nth-child(2) { border-color: var(--pc-sun); }
.pcw-cards i:nth-child(3) { border-color: var(--pc-sky); }
.pcw-split { display: grid; grid-template-columns: 12cqw 1fr; gap: 1.2cqw; min-height: 100%; }
.pcw-side { padding: .8cqw 1cqw; border-radius: .8cqw; background: var(--pc-deep); }
.pcw-code i { display: block; width: var(--w); height: .75cqw; margin: .55cqw 0 .55cqw calc(var(--indent) * 1.6cqw); border-radius: .4cqw; background: var(--c); }
.pcw-people span { display: flex; align-items: center; gap: .6cqw; margin: .45cqw 0 .9cqw; }
.pcw-people b { flex: none; width: 2cqw; height: 2cqw; border-radius: 50%; background: var(--c); }
.pcw-people i { flex: 1; height: .7cqw; border-radius: .35cqw; background: var(--pc-line); }
.pcw-chat { display: flex; flex-direction: column; gap: .8cqw; }
.pcw-chat i { width: var(--w); height: 2.4cqw; border-radius: 1.2cqw; background: var(--pc-bar); }
.pcw-chat .me { align-self: flex-end; background: var(--pc-primary); }
.pc-window[data-app="whatsapp"] .pcw-chat .me { background: #2F9E78; }
.pc-window[data-app="telegram"] .pcw-chat .me { background: #3D8FD1; }
.pcw-list span { display: block; padding: .6cqw .7cqw; border-radius: .6cqw; }
.pcw-list span.is-on { background: rgba(124, 92, 255, .35); }
.pcw-list i { display: block; height: .7cqw; margin: .35cqw 0; border-radius: .35cqw; background: var(--pc-line); }
.pcw-list i + i { width: 60%; }
.pcw-read b { display: block; width: 60%; height: 1.4cqw; margin-bottom: 1.2cqw; border-radius: .7cqw; background: var(--pc-soft); }
.pcw-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4cqw; }
.pcw-cal span { height: 5cqw; padding: .4cqw; border-radius: .5cqw; background: var(--pc-deep); }
.pcw-cal i { display: block; height: 1cqw; border-radius: .3cqw; background: var(--c); }
.pcw-note { padding: .4cqw 1cqw; }
.pcw-note strong { display: block; margin-bottom: .8cqw; font-size: 1.7cqw; }
.pcw-note p { font-size: 1.4cqw; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.pcw-note p.is-empty { color: var(--pc-muted); }
.pcw-note p::after { content: ""; display: inline-block; width: .15cqw; height: 1.5cqw; margin-left: .1cqw; vertical-align: -.25cqw; background: var(--pc-sun); animation: pc-caret 1s steps(1) infinite; }
@keyframes pc-caret { 50% { opacity: 0; } }
.pcw-music { display: flex; align-items: center; gap: 1.8cqw; margin-bottom: 1cqw; }
.pcw-music strong { display: block; font-size: 1.9cqw; }
.pcw-music span { display: block; color: var(--pc-muted); }
.pcw-cover { position: relative; flex: none; width: 11cqw; height: 11cqw; border-radius: 1cqw; background: var(--pc-coral); overflow: hidden; }
.pcw-cover i { position: absolute; left: 2.5cqw; top: 2.5cqw; width: 6cqw; height: 6cqw; border-radius: 50%; background: var(--pc-sun); }
.pcw-cover i + i { left: -1cqw; top: 7cqw; width: 14cqw; height: 6cqw; border-radius: 3cqw; background: var(--pc-primary); }
.pcw-music .pcw-progress { width: 22cqw; height: .5cqw; margin-top: 1.2cqw; border-radius: .25cqw; background: var(--pc-line); }
.pcw-progress i { display: block; width: 30%; height: 100%; border-radius: inherit; background: var(--pc-text); }
.is-playing .pcw-progress i { animation: pc-progress 30s linear infinite; }
@keyframes pc-progress { to { width: 100%; } }
.pcw-photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5cqw; }
.pcw-photos i { aspect-ratio: 1; border-radius: .4cqw; background: var(--c); }
.pcw-photos i:nth-child(4n + 1) { opacity: .8; }
.pcw-files { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4cqw 1cqw; align-content: start; }
.pcw-files span { display: grid; justify-items: center; gap: .6cqw; }
.pcw-files b { width: 5cqw; height: 3.8cqw; border-radius: .5cqw; background: var(--pc-sky); }
.pcw-files i { width: 70%; height: .6cqw; border-radius: .3cqw; background: var(--pc-line); }

/* Dock, now playing, HUD, capture and cursor */
.pc-dock { position: absolute; left: 50%; bottom: .8cqw; z-index: 2000; display: flex; gap: .45cqw; padding: .5cqw; transform: translateX(-50%); border: .1cqw solid rgba(196, 181, 255, .28); border-radius: 1.6cqw; background: rgba(29, 22, 64, .8); }
.pc-dock button { position: relative; width: 3.5cqw; height: 3.5cqw; padding: 0; border-radius: .9cqw; }
.pc-dock img { width: 100%; height: 100%; }
.pc-dock button.is-running::after { content: ""; position: absolute; left: 50%; bottom: -.45cqw; width: .4cqw; height: .4cqw; margin-left: -.2cqw; border-radius: 50%; background: var(--pc-text); }
.pc-dock button.is-bouncing img { animation: pc-bounce .9s var(--ease); }
@keyframes pc-bounce { 0%, 50%, 100% { transform: none; } 25%, 75% { transform: translateY(-1.4cqw); } }
.pc-nowplaying { position: absolute; top: 4cqw; right: 1.2cqw; z-index: 1900; display: flex; align-items: center; gap: .9cqw; width: 22cqw; padding: .9cqw; border-radius: 1.2cqw; background: var(--pc-surface); border: .1cqw solid var(--pc-line); }
.pc-nowplaying img { width: 3.6cqw; height: 3.6cqw; }
.pc-nowplaying div { flex: 1; min-width: 0; display: grid; }
.pc-nowplaying div > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-nowplaying #pc-np-state { color: var(--pc-mint); font-size: 1cqw; font-weight: 700; }
.pc-nowplaying:not(.is-playing) #pc-np-state { color: var(--pc-muted); }
.pc-nowplaying strong { font-size: 1.3cqw; }
.pc-nowplaying #pc-np-artist { color: var(--pc-muted); font-size: 1.1cqw; }
.pc-eq { display: flex; align-items: flex-end; gap: .25cqw; height: 1.6cqw; }
.pc-eq i { width: .4cqw; height: 30%; border-radius: .2cqw; background: var(--pc-mint); }
.pc-nowplaying.is-playing .pc-eq i { animation: pc-eq .9s ease-in-out infinite alternate; }
.pc-eq i:nth-child(2) { animation-delay: -.3s !important; }
.pc-eq i:nth-child(3) { animation-delay: -.6s !important; }
@keyframes pc-eq { to { height: 100%; } }
.pc-lock { position: absolute; inset: 0; z-index: 2600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqw; padding: 0; background: rgba(23, 18, 43, .35); color: var(--pc-text); font-size: 1.4cqw; font-weight: 600; cursor: pointer; }
.pc-screen.is-locked :is(.pc-desktop, .pc-dock, .pc-nowplaying, .pc-thumb, .pc-menubar > :not(.pc-menubar-right)) { visibility: hidden; }
.pc-lock-time { margin-bottom: 4cqw; font: 800 9cqw/1 var(--display); letter-spacing: -.03em; }
.pc-lock-avatar { display: flex; justify-content: center; align-items: center; gap: 1cqw; width: 7cqw; height: 7cqw; border-radius: 2.2cqw; background: var(--pc-primary); }
.pc-lock-avatar i { width: 1.4cqw; height: 2.2cqw; border-radius: .7cqw; background: #FFFFFF; }
.pc-dim { position: absolute; inset: 0; z-index: 3000; background: #000; opacity: .124; pointer-events: none; transition: opacity .3s; }
.pc-hud { position: absolute; left: 50%; bottom: 12cqw; z-index: 3100; display: grid; justify-items: center; align-content: center; gap: 1.6cqw; width: 14cqw; height: 14cqw; margin-left: -7cqw; border-radius: 2.4cqw; background: rgba(34, 27, 61, .94); border: .1cqw solid var(--pc-line); color: var(--pc-text); transition: opacity .26s; }
.pc-hud.is-leaving { opacity: 0; }
.pc-hud svg { width: 6cqw; height: 6cqw; }
.pc-hud-bar { width: 10cqw; height: .8cqw; border-radius: .4cqw; background: var(--pc-line); overflow: hidden; }
.pc-hud-bar i { display: block; width: calc(var(--level, .5) * 100%); height: 100%; background: var(--pc-text); transition: width .15s; }
.pc-hud[data-kind="brightness"] .pc-hud-bar i { background: var(--pc-sun); }
.pc-flash { position: absolute; inset: 0; z-index: 3200; background: #FFFFFF; opacity: 0; pointer-events: none; }
.pc-flash.is-on { animation: pc-flash .5s ease-out; }
@keyframes pc-flash { from { opacity: .85; } to { opacity: 0; } }
.pc-thumb { position: absolute; right: 1.4cqw; bottom: 6.4cqw; z-index: 2500; display: grid; gap: .4cqw; width: 18cqw; padding: .5cqw; border-radius: .8cqw; background: var(--pc-text); color: #17122B; font-size: 1cqw; font-weight: 700; box-shadow: 0 .8cqw 2cqw rgba(8, 5, 20, .5); animation: pc-thumb .35s var(--ease); }
.pc-thumb-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: .4cqw; background: var(--pc-bg); }
.pc-thumb-view .pc-shot * { animation: none !important; }
@keyframes pc-thumb { from { transform: translateX(120%); } }
.pc-cursor { position: absolute; z-index: 2900; width: 2.2cqw; height: 2.2cqw; margin: -.25cqw 0 0 -.45cqw; pointer-events: none; }
.pc-ripple { position: absolute; z-index: 2800; width: 4cqw; height: 4cqw; margin: -2cqw 0 0 -2cqw; border: .3cqw solid var(--pc-soft); border-radius: 50%; pointer-events: none; animation: pc-ripple .5s ease-out forwards; }
.pc-ripple.is-right { border-color: var(--pc-mint); }
@keyframes pc-ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pc-note p::after, .pc-eq i, .pcw-progress i { animation: none !important; }
  .pc-ripple { animation: none; opacity: .8; }
}

/* How it works: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
.steps li { position: relative; display: grid; gap: 10px; align-content: start; padding: 28px 24px; border-radius: var(--radius-l); background: var(--surface); }
.step-number { font: 800 56px/1 var(--display); color: var(--primary); letter-spacing: -.04em; }
.steps p { color: var(--muted); }
.pin { display: flex; gap: 8px; margin-top: 8px; }
.pin i { display: grid; place-items: center; width: 40px; height: 48px; border-radius: 10px; border: 2px solid var(--border); background: var(--bg); font: 800 22px/1 var(--display); font-style: normal; color: var(--text); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Features: a ruled list, not a wall of cards */
.feature-grid { display: grid; gap: 0 40px; }
.feature-grid article { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 6px 18px; padding-block: 26px; border-top: 1px solid var(--border); }
.feature-grid .feature-icon { grid-row: 1 / span 2; align-self: start; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-ink); color: var(--on-primary); }
.feature-grid p { color: var(--muted); }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

/* Privacy */
.circuit { margin: 0 0 48px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 28px 20px; border-radius: var(--radius-l); background: var(--surface); }
.circuit-node { display: grid; justify-items: center; gap: 10px; min-width: 88px; text-align: center; font-weight: 700; font-size: 15px; }
.circuit-node [data-symbol] { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--primary-ink); color: var(--on-primary); }
.circuit-node [data-symbol] svg { width: 30px; height: 30px; }
.circuit-link { position: relative; display: grid; justify-items: center; gap: 8px; margin-bottom: 34px; color: var(--soft); font-size: 14px; font-weight: 700; text-align: center; }
.circuit-link::before { content: ""; position: absolute; left: 4px; right: 4px; top: 22px; border-top: 3px dashed var(--soft); z-index: 0; }
.circuit-link [data-symbol] { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 2px solid var(--soft); }
.circuit-link > span:last-child { position: absolute; top: 56px; white-space: nowrap; }
.privacy-points { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 0 40px; }
.privacy-points li { display: grid; align-content: start; gap: 6px; padding-block: 22px; border-top: 1px solid var(--border); }
.privacy-points p { color: var(--muted); }
.badge { display: inline-block; vertical-align: middle; margin-inline-start: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--soft); color: var(--soft); font: 600 13px/1.3 var(--body); letter-spacing: 0; white-space: nowrap; }
@media (min-width: 720px) { .privacy-points { grid-template-columns: repeat(2, 1fr); } .circuit { padding: 40px 56px; } }
@media (max-width: 599px) {
  .circuit { grid-template-columns: 1fr; justify-items: center; padding: 24px 16px; }
  .circuit-link { margin: 0; padding-block: 28px; }
  .circuit-link::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 3px dashed var(--soft); transform: translateX(-1.5px); }
  .circuit-link > span:last-child { position: relative; z-index: 1; top: auto; padding: 2px 8px; background: var(--surface); }
}

/* Requirements */
.req-grid { display: grid; gap: 16px; }
.req-grid > div { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-l); }
.req-grid h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.req-grid h3 [data-symbol] { color: var(--soft); }
.req-grid ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.req-grid li::marker { color: var(--primary); }
@media (min-width: 860px) { .req-grid { grid-template-columns: repeat(3, 1fr); } }

/* Downloads */
.download-groups { display: grid; gap: 32px; }
.download-group h3 { margin-bottom: 12px; font-size: 1rem; color: var(--muted); font-weight: 700; }
.download-list { list-style: none; margin: 0; padding: 0; border-radius: var(--radius-l); background: var(--surface); overflow: hidden; }
.download-list li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 4px 14px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.download-list li:last-child { border-bottom: 0; }
.download-list li > div { display: grid; min-width: 0; }
.download-list li > div > span { font-size: 14px; color: var(--muted); }
.download-list strong { font-family: var(--display); font-size: 1.1rem; }
.platform-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-s); background: var(--bg); color: var(--soft); }
.status { justify-self: end; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
li[data-state="available"] .status { border-color: var(--soft); color: var(--soft); }
.download-list .button { grid-column: 2 / -1; justify-self: start; }
li[data-visitor] { box-shadow: inset 4px 0 0 var(--primary); }
@media (min-width: 560px) {
  .download-list li { grid-template-columns: 44px 1fr auto auto; }
  .download-list .button { grid-column: auto; }
}
.download-groups { max-width: 820px; }

/* FAQ */
.faq h2 { margin-bottom: 32px; }
.faq-list { max-width: 820px; margin-bottom: 28px; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding-block: 16px; font: 700 1.12rem/1.35 var(--display); cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); color: var(--soft); font-size: 22px; font-weight: 500; transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > p { padding-bottom: 22px; max-width: 44em; color: var(--muted); }
.faq-list strong { color: var(--text); }

/* Footer */
.footer { display: grid; gap: 24px; padding-block: 48px 64px; border-top: 1px solid var(--border); font-size: 15px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand > div { display: grid; }
.footer-brand strong { font: 800 20px/1.2 var(--display); color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a, .footer-links .link-button { color: var(--text); text-decoration: none; }
.footer-links a:hover, .footer-links .link-button:hover { color: var(--soft); text-decoration: underline; }
.footer-credit { max-width: 48em; font-size: 14px; }
.footer-credit a { color: var(--soft); }
@media (min-width: 900px) { .footer { grid-template-columns: auto 1fr; align-items: center; } .footer-links { justify-content: flex-end; } .footer-credit { grid-column: 1 / -1; } }

/* Document pages (privacy, support) */
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; }
.page-header nav { display: flex; align-items: center; gap: 4px; }
.doc { max-width: 760px; padding-block: 32px 80px; }
.doc h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.doc .updated { margin-top: 10px; color: var(--muted); font-size: 15px; }
.doc .intro { margin-top: 24px; font-size: 1.15rem; }
.doc h2 { margin: 48px 0 14px; font-size: 1.5rem; letter-spacing: -.01em; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 10px; }
.doc li::marker { color: var(--primary); font-weight: 700; }
.doc a { color: var(--soft); }
.doc .faq-list { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

/* Right to left (Arabic): i18n.js sets <html dir="rtl">. Flex rows and grids flip on
   their own; these rules mirror what is pinned to a side. The simulated Mac and the
   dock preview keep their own left-to-right layout. */
[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] .nav-content { inset: 4px 64px 4px 6px; }
[dir="rtl"] .header:not([data-nav-ready]) .nav-content { left: 6px; right: 20px; }
[dir="rtl"] .header[data-nav-ready] .nav-content { transform: translateX(12px); }
[dir="rtl"] .desktop-nav > .nav-download { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .menu-top { padding-left: 0; padding-right: 8px; }
[dir="rtl"] .menu-bottom > a { margin-right: 0; margin-left: auto; }
[dir="rtl"] .req-grid ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .doc ul, [dir="rtl"] .doc ol { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .brand, [dir="rtl"] .laptop, [dir="rtl"] .device { direction: ltr; }
