/* DeskLayout website: one stylesheet for every page. Light and dark follow the visitor's system. */
:root {
  --bg: #fbfbfd;
  --bg-alt: #f2f2f5;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-2: #5c5c62;
  --line: rgba(0, 0, 0, 0.09);
  --accent: #2a62d9;
  --accent-fill: #2f6bea;
  --accent-text: #ffffff;
  --accent-soft: rgba(47, 107, 234, 0.1);
  --ok: #1e7b3e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0e;
    --bg-alt: #141417;
    --card: #1a1a1d;
    --text: #f5f5f7;
    --text-2: #a7a7ad;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #4b8dff;
    --accent-soft: rgba(75, 141, 255, 0.14);
    --ok: #4cd383;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 32px); } }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; font-size: 15px; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
/* Language menu: a native <select> (keyboard and screen-reader friendly), drawn as a pill */
.lang { position: relative; display: inline-flex; }
.lang select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 14px; color: var(--text-2);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 30px 5px 13px; cursor: pointer; min-height: 32px;
}
[dir="rtl"] .lang select { padding: 5px 13px 5px 30px; }
.lang::after {
  content: ""; position: absolute; inset-inline-end: 12px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); color: var(--text-2); pointer-events: none;
}
.lang select:hover, .lang select:focus-visible { color: var(--text); }
.lang select option { color: initial; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .lang { margin-inline-start: auto; } }
/* Phones: the brand, the language menu and the Download button share one row in every language */
@media (max-width: 480px) {
  .nav .wrap { gap: 10px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 26px; height: 26px; }
  .lang select { font-size: 13px; padding: 4px 24px 4px 10px; min-height: 30px; }
  [dir="rtl"] .lang select { padding: 4px 10px 4px 24px; }
  .lang::after { inset-inline-end: 10px; width: 6px; height: 6px; margin-top: -4px; }
  .nav .btn.small { padding: 0 11px; font-size: 13px; min-height: 32px; }
}
/* The narrowest phones: the icon alone stands for the brand */
@media (max-width: 360px) { .brand { font-size: 0; gap: 0; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; border: 1px solid var(--line);
  background: var(--card); color: var(--text);
}
.btn:hover { text-decoration: none; filter: brightness(0.97); }
.btn.primary { background: var(--accent-fill); color: var(--accent-text); border-color: transparent; }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 14px; }

/* Hero */
.hero { padding: 88px 0 40px; text-align: center; }
.hero .icon { width: 96px; height: 96px; margin: 0 auto 22px; }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.06; letter-spacing: -0.025em; margin: 0 auto 18px; max-width: 14em; font-weight: 750; }
.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--text-2); max-width: 36em; margin: 0 auto 30px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { color: var(--text-2); font-size: 14px; margin-top: 14px; }
.shot { margin: 56px auto 0; max-width: 1040px; }
/* The product video: one English film, click to play */
.film { max-width: 1040px; margin: 0 auto; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: #0b0b0d;
  box-shadow: var(--shadow), 0 30px 70px rgba(0, 0, 0, .14); }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0b0b0d; }
.shot img { filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.18)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12)); }

/* The privacy and terms pages are English only: other languages get a short note above them. */
.i18n-note { display: none; }
html:not([lang="en"]) .i18n-note {
  display: block; margin: 0 0 22px; padding: 10px 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-size: 15px;
}
/* While a translated page is being filled in, don't flash the English text (site.js lifts this). */
html.i18n-pending body { visibility: hidden; }

/* Check-mark lists */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; margin: 9px 0; font-size: 16px; }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; background: var(--accent);
  -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat;
}
:root { --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Sections */
section { padding: 88px 0; }
section[id], main[id] { scroll-margin-top: 60px; }
.alt { background: var(--bg-alt); }
.eyebrow { color: var(--accent); font-weight: 650; font-size: 14px; letter-spacing: 0.02em; margin: 0 0 10px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 720; }
h3 { font-size: 19px; margin: 0 0 6px; font-weight: 650; }
.section-head { max-width: 40em; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-2); font-size: 19px; margin: 0; }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .text { order: 2; }
.feature .text p { color: var(--text-2); font-size: 18px; margin: 0 0 14px; }
.feature img { filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.16)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1)); }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .text { order: 0; }
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card h3 svg { flex: none; color: var(--accent); }
.card p { color: var(--text-2); margin: 0; font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.step .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-fill); color: var(--accent-text); display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.step p { color: var(--text-2); margin: 0; font-size: 16px; }

.nowrap { white-space: nowrap; }
kbd {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif; font-size: 0.92em;
  padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--card);
  unicode-bidi: isolate; direction: ltr; display: inline-block;
}

/* Pricing */
/* Narrow phones: longer period names (French "Hebdomadaire") still fit on one row */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--accent); }
.plan .name { font-size: 15px; font-weight: 650; color: var(--accent); margin: 0 0 6px; }
.price { font-size: 46px; font-weight: 760; letter-spacing: -0.02em; line-height: 1.1; }
.price small { font-size: 17px; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-inline-start: 6px; }
.price-note { color: var(--ok); font-size: 14px; font-weight: 600; min-height: 22px; margin: 4px 0 18px; }
.plan .checks { margin: 0 0 26px; flex: 1; }
.plan .btn { width: 100%; }
.prices-fine { text-align: center; color: var(--text-2); font-size: 14px; margin-top: 22px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 620; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-2); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-2); margin: 12px 0 0; }

/* Download */
.download { text-align: center; }
.download .icon { width: 88px; height: 88px; margin: 0 auto 20px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--text-2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-inline-start: auto; }
footer a { color: var(--text-2); }
footer .legal { flex-basis: 100%; margin: 4px 0 0; max-width: 78em; font-size: 12.5px; line-height: 1.55; color: var(--text-2); }

/* Text pages (privacy, terms) */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 0 88px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); text-align: start; margin: 0 0 8px; }
.doc .updated { color: var(--text-2); margin: 0 0 36px; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.placeholder { background: var(--accent-soft); color: var(--text); border-radius: 5px; padding: 0 4px; }

/* Motion. Everything here is skipped when the visitor asks for reduced motion. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-move: cubic-bezier(.65, 0, .25, 1); }
.motion [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.motion [data-reveal].in { opacity: 1; transform: none; }
/* The opening lines don't wait for scrolling: they rise in as the page loads. */
.motion .hero [data-reveal] { opacity: 1; transform: none; animation: rise .9s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
/* The big screenshots settle into place while they scroll in (browsers with scroll timelines). */
@supports (animation-timeline: view()) {
  .motion .shot img { animation: settle-tilt linear both; animation-timeline: view(); animation-range: entry 5% cover 42%; transform-origin: 50% 100%; }
  .motion .feature img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 38%; }
}
@keyframes settle-tilt { from { transform: perspective(1800px) rotateX(16deg) scale(.9); } to { transform: none; } }
@keyframes settle { from { transform: translateY(56px) scale(.95); } to { transform: none; } }
.js .nav { border-bottom-color: transparent; transition: border-color .3s, box-shadow .3s; }
.js .nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }

/* Demo player: short scenes drawn with HTML and CSS (demo.js), played like a video. */
:root {
  --wall-top: #dde4ee; --wall-bottom: #b3c2d6;
  --bezel: #18181a; --alu1: #e7e8ea; --alu2: #bcbec2;
  --win: #ffffff; --win-bar: #f3f3f5; --win-line: rgba(0, 0, 0, .15); --skel: rgba(0, 0, 0, .09);
  --menubar: rgba(255, 255, 255, .78);
}
@media (prefers-color-scheme: dark) {
  :root {
    --wall-top: #2c3443; --wall-bottom: #141920;
    --bezel: #0b0b0c; --alu1: #85868b; --alu2: #5c5d61;
    --win: #2c2c2e; --win-bar: #363639; --win-line: rgba(255, 255, 255, .14); --skel: rgba(255, 255, 255, .1);
    --menubar: rgba(52, 52, 56, .9);
  }
}
html:not(.js) #demo { display: none; }
#demo { padding-top: 40px; }
.player { max-width: 1040px; margin: 0 auto; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab {
  position: relative; overflow: hidden; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--text-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  min-height: 40px; padding: 0 18px; cursor: pointer;
}
.tab[aria-pressed="true"] { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tab .fill { position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 0; background: var(--accent-fill); transition: width .1s linear; }
.player-bar { display: flex; align-items: center; gap: 14px; margin-top: 16px; min-height: 48px; }
.play {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.play .i-play, .paused .play .i-pause { display: none; }
.paused .play .i-play { display: block; }
.caption { margin: 0; font-size: 18px; font-weight: 560; line-height: 1.4; }
.caption.swap { animation: caption-in .38s ease-out; }
.stage.fresh { animation: stage-in .45s ease-out; }
@keyframes caption-in { from { opacity: .2; transform: translateY(6px); } }
@keyframes stage-in { from { opacity: .3; } }
@media (max-width: 600px) { .caption { font-size: 16px; } }

.stage {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; direction: ltr; container-type: inline-size;
  border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--wall-top), var(--wall-bottom));
  box-shadow: var(--shadow), 0 30px 70px rgba(0, 0, 0, .14);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
.stage.instant, .stage.instant * { transition: none !important; animation: none !important; }
.stage > * { position: absolute; }
.stage .dev, .stage .w, .stage .mini, .stage .thumb, .stage .zone, .stage .cursor {
  transition: left .9s var(--ease-move), top .9s var(--ease-move), width .9s var(--ease-move), height .9s var(--ease-move),
    opacity .6s ease, transform .6s var(--ease-move);
}
.stage .w.drag, .stage .cursor { transition-duration: .6s; }

/* Displays */
.dev { z-index: 1; }
.dev.off { opacity: 0; transform: translateY(-3cqw); }
.scr { position: absolute; inset: 0; overflow: hidden; border-radius: .3cqw; box-shadow: 0 0 0 .5cqw var(--bezel), 0 1.4cqw 3cqw rgba(0, 0, 0, .25); }
.scr .w { position: absolute; }
.menubar { position: absolute; left: 0; right: 0; top: 0; height: 3.333%; background: var(--menubar); }
.dev.monitor::before { content: ""; position: absolute; left: 45%; width: 10%; top: calc(100% + .5cqw); height: 4.6cqw; background: linear-gradient(90deg, var(--alu2), var(--alu1) 50%, var(--alu2)); }
.dev.monitor::after { content: ""; position: absolute; left: 36%; width: 28%; top: calc(100% + 5cqw); height: .6cqw; border-radius: .3cqw; background: var(--alu2); }
.dev.laptop::after { content: ""; position: absolute; left: -9%; width: 118%; top: calc(100% + .5cqw); height: 1cqw; border-radius: 0 0 1cqw 1cqw; background: linear-gradient(180deg, var(--alu1), var(--alu2)); }
.notch { position: absolute; left: 50%; top: 0; width: 9%; height: 1cqw; transform: translateX(-50%); background: var(--bezel); border-radius: 0 0 .4cqw .4cqw; z-index: 3; }
.wall-1 { background: linear-gradient(160deg, #8ec5ff 0%, #3d7bf2 38%, #5b45c9 78%, #7b5cf0 100%); }
.wall-2 { background: linear-gradient(200deg, #8ff0d8 0%, #22a39a 36%, #1d6fb0 72%, #1d4f96 100%); }
.wall-3 { background: linear-gradient(160deg, #ffd08a 0%, #f08a4b 36%, #d9468f 76%, #b93a7a 100%); }

/* Windows */
.w { z-index: 2; display: flex; flex-direction: column; overflow: hidden; border-radius: .55cqw; background: var(--win); box-shadow: 0 .3cqw 1.4cqw rgba(0, 0, 0, .24), 0 0 0 1px var(--win-line); }
.w-bar { flex: none; height: 1.7cqw; display: flex; align-items: center; gap: .32cqw; padding: 0 .55cqw; background: var(--win-bar); border-bottom: 1px solid var(--win-line); font-size: .85cqw; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; }
.w-bar i { flex: none; width: .55cqw; height: .55cqw; border-radius: 50%; background: #ff5f57; }
.w-bar i:nth-child(2) { background: #febc2e; }
.w-bar i:nth-child(3) { background: #28c840; }
.w-icon { flex: none; width: 1cqw; height: 1cqw; margin-left: .45cqw; border-radius: .25cqw; background: var(--app); }
.w-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .4cqw; padding: .65cqw; overflow: hidden; }
.w-body i, .w-body b { display: block; flex: none; }
.sk { height: .42cqw; border-radius: .21cqw; background: var(--skel); }
.sk.ttl { height: .75cqw; }
.addr { width: 68%; height: .9cqw; align-self: center; border-radius: .45cqw; background: var(--skel); }
.w-body .img { flex: 1 1 auto; max-height: 46%; min-height: 0; border-radius: .35cqw; background: linear-gradient(135deg, color-mix(in srgb, var(--app) 50%, white), color-mix(in srgb, var(--app) 80%, black)); }
.cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 36% 1fr; gap: .55cqw; }
.cols > div { display: flex; flex-direction: column; gap: .4cqw; overflow: hidden; }
.row { display: flex; flex-direction: column; gap: .22cqw; padding: .3cqw; border-radius: .25cqw; }
.row:first-child { background: color-mix(in srgb, var(--app) 18%, transparent); }
.cal { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; gap: .2cqw; }
.cal i { position: relative; border-radius: .15cqw; background: var(--skel); }
.cal i.ev::after { content: ""; position: absolute; left: 10%; right: 10%; top: 34%; height: 32%; border-radius: .15cqw; background: var(--evc); }
.bub { height: 1.25cqw; border-radius: .62cqw; background: var(--skel); }
.bub.me { align-self: flex-end; background: color-mix(in srgb, var(--app) 70%, white); }
.w[data-app="code"] .w-body { background: #1f2229; gap: .36cqw; }
.cl { height: .38cqw; border-radius: .19cqw; opacity: .9; }
.w[data-app="terminal"] .w-body { background: #141416; gap: .4cqw; }
.tl { height: .38cqw; border-radius: .19cqw; background: #9ca3af; opacity: .5; }
.tl.p { background: #4ade80; opacity: .9; }
.w[data-app="charts"] .w-body { background: #0f141b; }
.chart { flex: 1; min-height: 0; width: 100%; }
.bars { flex: none; height: 18%; display: flex; align-items: flex-end; gap: 1.5%; }
.bars i { flex: 1 !important; border-radius: .1cqw; background: rgba(148, 163, 184, .35); }
.wl { display: flex; align-items: center; justify-content: space-between; }
.wl b { width: 22%; height: .8cqw; border-radius: .2cqw; }
.wl .up { background: #22c55e; }
.wl .dn { background: #ef4444; }

/* Overlays */
.hud {
  z-index: 5; transform: translate(-50%, -50%) scale(.92); opacity: 0; display: flex; align-items: center; gap: .8cqw;
  padding: .9cqw 1.5cqw; border-radius: 1.2cqw; background: rgba(28, 28, 30, .8); color: #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .3);
  font-size: 1.15cqw; font-weight: 600; white-space: nowrap; transition: opacity .4s ease, transform .5s var(--ease-out);
}
.hud.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
[dir="rtl"] .hud { direction: rtl; }
.spin { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; border: .2cqw solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .8s linear infinite; }
.okc { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: #30d158; display: grid; place-items: center; }
.okc svg { width: 70%; height: 70%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes spin { to { transform: rotate(360deg); } }
.keys { z-index: 6; left: 50%; bottom: 7%; display: flex; gap: .6cqw; opacity: 0; transform: translateX(-50%) translateY(1cqw); transition: opacity .35s ease, transform .4s var(--ease-out); }
.keys.on { opacity: 1; transform: translateX(-50%); }
.keys kbd {
  display: grid; place-items: center; min-width: 3.4cqw; height: 3.4cqw; padding: 0 .8cqw; border-radius: .7cqw;
  font-size: 1.7cqw; color: var(--text); background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 .3cqw 0 var(--win-line); transition: transform .12s ease, box-shadow .12s ease;
}
.keys.press kbd { transform: translateY(.25cqw); box-shadow: 0 .05cqw 0 var(--win-line); }
.cursor { z-index: 7; width: 1.9cqw; opacity: 0; }
.cursor.on { opacity: 1; }
.cursor svg { display: block; width: 100%; fill: #111; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 .1cqw .2cqw rgba(0, 0, 0, .35)); }
.zone { z-index: 1; opacity: 0; border-radius: .5cqw; background: color-mix(in srgb, var(--accent-fill) 30%, transparent); box-shadow: inset 0 0 0 .18cqw color-mix(in srgb, var(--accent-fill) 75%, white); }
.zone.on { opacity: 1; }

/* Desktops strip (scene 2) */
.thumb { z-index: 2; border-radius: .45cqw; box-shadow: 0 .3cqw 1cqw rgba(0, 0, 0, .18); }
.thumb.cur { box-shadow: 0 0 0 .25cqw var(--accent-fill), 0 .3cqw 1cqw rgba(0, 0, 0, .18); }
.thumb.ghost { background: transparent; box-shadow: none; outline: .14cqw dashed var(--text-2); opacity: .5; }
.thumb.pop { animation: pop .55s var(--ease-out); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.thumb-label { z-index: 2; text-align: center; font-size: .95cqw; font-weight: 600; color: var(--text-2); transition: opacity .4s; }
.thumb-label.ghost { opacity: .4; }
.mini { z-index: 3; border-radius: .15cqw; background: var(--win); box-shadow: 0 0 0 1px var(--win-line); overflow: hidden; }
.mini::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16%; background: var(--app); opacity: .85; }

@media (prefers-reduced-motion: reduce) {
  .stage *, .stage { transition-duration: .01ms !important; animation: none !important; }
}

/* Arabic (right to left) and Japanese: their own system fonts, no Latin letter-spacing */
[dir="rtl"] body { font-family: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", "SF Pro Text", Tahoma, Arial, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
html[lang="ja"] body { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif; line-break: strict; word-break: auto-phrase; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { letter-spacing: 0; }

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

/* Feedback page (feedback.html) */
.feedback-page { max-width: 720px; margin: 0 auto; padding: 56px 0 88px; }
.feedback-page h1 { font-size: clamp(32px, 5vw, 44px); text-align: start; margin: 0 0 10px; max-width: none; }
.feedback-page .lede { margin: 0 0 32px; text-align: start; font-size: 18px; }
.feedback-form { display: grid; gap: 22px; }
/* Their own display rules would otherwise beat the hidden attribute. */
.feedback-form[hidden], .feedback-thanks[hidden], .form-message[hidden] { display: none; }
.feedback-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.feedback-form legend, .field-label { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kinds legend { grid-column: 1 / -1; float: left; width: 100%; }
@media (max-width: 640px) { .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kind-option { position: relative; display: block; }
.kind-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kind-card {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-size: 14.5px; font-weight: 550; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.kind-option:hover .kind-card { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.kind-option input:checked + .kind-card { border-color: var(--accent-fill); background: var(--accent-soft); color: var(--text); box-shadow: 0 0 0 1px var(--accent-fill); }
.kind-option input:checked + .kind-card svg { color: var(--accent); }
.kind-option input:focus-visible + .kind-card { outline: 3px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-2); opacity: .75; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-fill); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-hint { font-size: 13.5px; color: var(--text-2); margin: 0; }
.about-mac { border-top: 1px solid var(--line) !important; padding-top: 18px !important; }
.about-mac .field-hint { margin-bottom: 12px; }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field-row .field-label { font-size: 13.5px; font-weight: 550; }
/* The bot trap: clipped to nothing rather than pushed off screen (off to the left would scroll a right-to-left page). */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-message { margin: 0; padding: 11px 14px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--text); font-size: 14.5px; }
.form-actions .btn { min-width: 140px; }
.form-actions .btn[disabled] { opacity: .6; cursor: progress; }
.privacy-note { margin-top: -8px; }
.feedback-thanks { text-align: center; padding: 48px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.feedback-thanks svg { color: var(--ok); }
.feedback-thanks h2 { margin: 12px 0 6px; }
.feedback-thanks p { color: var(--text-2); margin: 0 auto 22px; max-width: 30em; }
.feedback-thanks:focus { outline: none; }

/* Page not found (404.html) */
.not-found { text-align: center; padding: 96px 0 120px; }
.not-found .code { font-size: 15px; font-weight: 600; letter-spacing: 0.12em; color: var(--accent); margin: 0 0 10px; }
.not-found h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 auto 12px; }
.not-found .lede { margin: 0 auto 30px; }

/* The beta's note under the download button. */
.download .beta-note { max-width: 560px; margin: 16px auto 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
