/* =============================================================================================
   Website stylesheet — dark first, refined light theme through prefers-color-scheme.
   Motion: transform/opacity only for anything that loops; prefers-reduced-motion switches it off.
   Sections: tokens · base · layout · type · controls · nav · hero · app mockup · feature sections
   · pricing · editions · FAQ · footer · pages · utilities · motion · responsive
   ============================================================================================= */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, "Noto Sans", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #060709;
  --bg-2: #0a0b0f;
  --text: #f5f5f7;
  --text-2: #a4a4ad;
  --text-3: #85858f;
  --dim: #6f6f79;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .075);
  --surface-3: rgba(255, 255, 255, .12);
  --card: linear-gradient(180deg, #121419 0%, #0c0e12 100%);
  --card-solid: #111318;
  --glass: rgba(18, 20, 26, .62);
  --pop: rgba(24, 26, 32, .92);
  --input: rgba(255, 255, 255, .05);
  --kbd: rgba(255, 255, 255, .07);
  --btn-bg: #f5f5f7;
  --btn-text: #0a0a0c;
  --accent: #2dd4bf;
  --accent-text: #5eead4;
  --focus: #5eead4;
  --ok: #34d399;
  --grad: linear-gradient(100deg, #5eead4 0%, #38bdf8 38%, #818cf8 70%, #c084fc 100%);
  --grad-soft: linear-gradient(135deg, #2dd4bf, #3b82f6 55%, #8b5cf6);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -30px rgba(0, 0, 0, .8);
  --shadow-lg: 0 40px 120px -40px rgba(0, 0, 0, .9);
  --toast-bg: #f5f5f7;
  --toast-text: #0a0a0c;
  --grain-opacity: .05;

  /* App mockup (the Folia theme of the app) */
  --acc: #3b82f6;
  --acc2: #8b5cf6;
  --tint: .4;
  --rad: 10px;
  --m-win: #1a1b20;
  --m-top: #1f2026;
  --m-side: #17181d;
  --m-pane: #1e1f25;
  --m-text: #ececf1;
  --m-muted: #8f909a;
  --m-faint: #5f606a;
  --m-line: rgba(255, 255, 255, .07);
  --m-hover: rgba(255, 255, 255, .05);

  --ease: cubic-bezier(.33, 1, .68, 1);          /* ease-out cubic */
  --ease-out: cubic-bezier(.16, 1, .3, 1);       /* longer tail for reveals */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);

  --nav-h: 60px;
  --gutter: clamp(16px, 5vw, 48px);
  --maxw: 1200px;
  --r: 22px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #fbfbfd;
    --bg-2: #f4f4f7;
    --text: #1d1d1f;
    --text-2: #5e5e66;
    --text-3: #6c6c74;
    --dim: #8a8a92;
    --line: rgba(0, 0, 0, .08);
    --line-2: rgba(0, 0, 0, .13);
    --surface: rgba(0, 0, 0, .03);
    --surface-2: rgba(0, 0, 0, .05);
    --surface-3: rgba(0, 0, 0, .08);
    --card: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%);
    --card-solid: #ffffff;
    --glass: rgba(255, 255, 255, .72);
    --pop: rgba(255, 255, 255, .94);
    --input: #fff;
    --kbd: #fff;
    --btn-bg: #1d1d1f;
    --btn-text: #fff;
    --accent: #0d9488;
    --accent-text: #0f766e;
    --focus: #0d9488;
    --ok: #059669;
    --grad: linear-gradient(100deg, #0d9488 0%, #0284c7 38%, #4f46e5 70%, #9333ea 100%);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .04), 0 20px 50px -28px rgba(20, 20, 40, .28);
    --shadow-lg: 0 40px 100px -40px rgba(20, 20, 50, .35);
    --toast-bg: #1d1d1f;
    --toast-text: #fff;
    --grain-opacity: .03;

    --m-win: #f2f2f5;
    --m-top: #ebebef;
    --m-side: #e8e8ed;
    --m-pane: #ffffff;
    --m-text: #1d1d1f;
    --m-muted: #7b7b84;
    --m-faint: #a9a9b1;
    --m-line: rgba(0, 0, 0, .08);
    --m-hover: rgba(0, 0, 0, .04);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Film grain over the background (behind content). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, pre { margin: 0; }
ul, ol { padding: 0; }
main { overflow-x: clip; }
main:focus { outline: none; }
::selection { background: rgba(59, 130, 246, .35); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); font-size: .92em; padding: .1em .35em; border-radius: 6px; background: var(--surface-2); }
[hidden] { display: none !important; }
[data-price] { white-space: nowrap; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; flex: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 300;
  padding: 10px 16px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-text); font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: calc(860px + 2 * var(--gutter)); }
.center { text-align: center; }
.center .lead, .center .fine { margin-inline: auto; }
.sec { position: relative; padding-block: clamp(80px, 10.5vw, 150px); }
.sec-tight { padding-block: clamp(36px, 6vw, 72px); }
.sec-head {
  display: grid; justify-items: center; gap: 18px; text-align: center;
  max-width: 840px; margin: 0 auto clamp(40px, 6vw, 76px);
}
.split { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-copy { display: grid; gap: 18px; align-content: start; }
.split-visual { min-width: 0; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(2.55rem, 1.05rem + 6.2vw, 5.9rem);
  line-height: 1.02; letter-spacing: -.045em; font-weight: 700; text-wrap: balance;
}
.display-2 {
  font-size: clamp(2.2rem, 1rem + 4.6vw, 4.4rem);
  line-height: 1.04; letter-spacing: -.042em; font-weight: 700; text-wrap: balance;
}
.title {
  font-size: clamp(2.1rem, .95rem + 4.3vw, 4.1rem);
  line-height: 1.04; letter-spacing: -.04em; font-weight: 700; text-wrap: balance;
}
.h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.25rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 700; margin-bottom: 24px; }
.h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.015em; font-weight: 650; }
.lead {
  font-size: clamp(1.07rem, .94rem + .6vw, 1.35rem);
  line-height: 1.5; color: var(--text-2); max-width: 40em; text-wrap: pretty;
}
.sub { font-size: clamp(1.04rem, .95rem + .4vw, 1.22rem); line-height: 1.55; color: var(--text-2); max-width: 38em; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
}
.eyebrow, .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow .badge { -webkit-text-fill-color: currentColor; }
.dim { color: var(--dim); }
.fine { font-size: 14px; color: var(--text-3); }
.fine a, .note a, .lead a, .prose a, .qa-in a, .pc-store a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.note {
  display: flex; gap: 8px; align-items: flex-start; justify-content: center;
  margin-top: 28px; color: var(--text-2); font-size: 15px; text-wrap: pretty;
}
.note .i { width: 17px; height: 17px; margin-top: 3px; color: var(--text-3); }

/* ---------- Controls ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn .i { width: 18px; height: 18px; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { --h: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-primary {
  background: var(--btn-bg); color: var(--btn-text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 30px -12px rgba(94, 234, 212, .35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 16px 40px -12px rgba(94, 234, 212, .55); }
.btn-glass {
  background: var(--surface-2); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn-glass:hover { background: var(--surface-3); transform: translateY(-1px); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 500; }
.link-arrow .i { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }
.fine .link-arrow { text-decoration: none; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 11px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pill-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pill-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--accent); opacity: .35; animation: ping 2.4s var(--ease) infinite;
}
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .01em; white-space: nowrap;
  color: #5eead4; background: rgba(45, 212, 191, .13); box-shadow: inset 0 0 0 1px rgba(45, 212, 191, .22);
}
@media (prefers-color-scheme: light) { .badge { color: #0f766e; background: rgba(13, 148, 136, .1); } }
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 7px;
  font: 600 12.5px/1 var(--font); color: var(--text-2); white-space: nowrap;
  background: var(--kbd); box-shadow: inset 0 0 0 1px var(--line), inset 0 -1.5px 0 var(--line-2);
}
.round-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s;
}
.round-btn:hover { background: var(--surface-3); }
.round-btn .i { width: 20px; height: 20px; }

.card {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}
.card-bar {
  display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px;
  border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2);
}
.card-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); min-width: 0; }
.card-title .i { width: 16px; height: 16px; color: var(--text-2); }
.card-keys { margin-left: auto; display: flex; gap: 4px; }
.card-keys kbd { min-width: 22px; height: 22px; font-size: 11.5px; }
.lights { display: flex; gap: 8px; flex: none; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.lights.sm { gap: 7px; }
.lights.sm i { width: 11px; height: 11px; }
.mp-ic {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--accent-text);
}
.mp-ic .i { width: 21px; height: 21px; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .35s var(--ease);
}
.nav.is-scrolled::before, .nav.is-open::before { opacity: 1; }
.nav-in {
  display: flex; align-items: center; gap: 20px; height: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; flex: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: none; gap: 30px; margin: 0 auto; font-size: 14px; }
.nav-links a { color: var(--text-2); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-buy { display: none; }
.nav-burger { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; }
.nav-burger .i { width: 22px; height: 22px; }
.nav-burger:hover { background: var(--surface-2); }
.mnav {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 49; overflow-y: auto;
  padding: 16px var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  animation: sheet .4s var(--ease-out);
}
.mnav nav { display: grid; }
.mnav nav a { padding: 16px 4px; font-size: 24px; font-weight: 650; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
.mnav-cta { display: grid; gap: 10px; margin-top: 28px; }
body.menu-open { overflow: hidden; }

.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .02em; color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: color .2s, background-color .2s;
}
.lang-btn .i { width: 16px; height: 16px; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 220px;
  list-style: none; padding: 6px; border-radius: 16px;
  background: var(--pop); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-lg);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  transform-origin: top right; animation: pop .22s var(--ease);
}
.lang-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 10px; font-size: 14.5px; color: var(--text);
}
.lang-list a:hover, .lang-list a:focus-visible { background: var(--surface-2); outline: none; }
.lang-list a[aria-current] { font-weight: 650; }
.lang-list .i { width: 15px; height: 15px; color: var(--accent-text); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 112px)); }
.hero-copy { display: grid; justify-items: center; gap: 22px; text-align: center; }
.hero-copy .lead { margin-top: 2px; }
.hero-copy .cta-row { margin-top: 12px; }
.hero-copy .fine { margin-top: -6px; }
.hero-copy .fine + .fine { margin-top: -14px; }
.aurora {
  position: absolute; inset: -20vh -10vw auto; height: 130vh; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 96%); mask-image: linear-gradient(180deg, #000 50%, transparent 96%);
}
.aurora i {
  position: absolute; width: 62vw; height: 62vw; max-width: 980px; max-height: 980px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent 72%);
  animation: drift 24s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { --c: rgba(45, 212, 191, .30); left: 2vw; top: -6vw; }
.aurora i:nth-child(2) { --c: rgba(59, 130, 246, .30); right: -2vw; top: -10vw; animation-duration: 29s; animation-delay: -6s; }
.aurora i:nth-child(3) { --c: rgba(139, 92, 246, .24); left: 26vw; top: 18vw; animation-duration: 33s; animation-delay: -12s; }
.aurora.small { inset: -30vh -10vw 0; height: auto; opacity: .75; }
@media (prefers-color-scheme: light) {
  .aurora i:nth-child(1) { --c: rgba(45, 212, 191, .22); }
  .aurora i:nth-child(2) { --c: rgba(59, 130, 246, .18); }
  .aurora i:nth-child(3) { --c: rgba(139, 92, 246, .14); }
}
.hero-stage {
  position: relative; width: 100%; max-width: 1240px; margin: clamp(52px, 8vw, 88px) auto 0;
  padding-inline: var(--gutter); padding-bottom: clamp(40px, 8vw, 120px);
}
.stage-glow {
  position: absolute; left: 8%; right: 8%; top: 12%; height: 70%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side at 30% 55%, rgba(45, 212, 191, .28), transparent),
    radial-gradient(closest-side at 70% 45%, rgba(99, 102, 241, .34), transparent);
}
.tilt {
  transform-origin: 50% 0;
  transform: perspective(1800px) rotateX(18deg) scale(.94);
}

/* ---------- App mockup (drawn at a fixed design size, scaled to the container) ---------- */
.mock { position: relative; width: 100%; container-type: inline-size; }
.mock-hero { aspect-ratio: 1080 / 680; }
.mock-theme { aspect-ratio: 760 / 470; }
.win {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  border-radius: 14px; overflow: hidden;
  font: 13px/1.3 var(--font); color: var(--m-text); text-align: left;
  background: var(--m-win);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .09), 0 50px 120px -30px rgba(0, 0, 0, .8), 0 30px 60px -40px rgba(0, 0, 0, .7);
  user-select: none; -webkit-user-select: none;
}
@media (prefers-color-scheme: light) {
  .win { box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 50px 120px -30px rgba(30, 30, 60, .35), 0 20px 40px -30px rgba(30, 30, 60, .3); }
}
.mock-hero .win {
  width: 1080px; height: 680px;
  transform: scale(var(--s, 1));
  transform: scale(tan(atan2(100cqw, 1080px)));
}
.mock-theme .win {
  width: 760px; height: 470px;
  transform: scale(var(--s, 1));
  transform: scale(tan(atan2(100cqw, 760px)));
}
.win .i { width: 15px; height: 15px; }
.win .fi { width: 16px; height: 16px; flex: none; }
.win-top {
  position: absolute; inset: 0 0 auto; height: 52px; display: flex; align-items: center; gap: 18px; padding: 0 14px 0 18px;
  background: var(--m-top); border-bottom: 1px solid var(--m-line);
}
.win-arrows { display: flex; gap: 12px; color: var(--m-muted); }
.win-arrows .i { width: 16px; height: 16px; }
.win-arrows .i + .i { opacity: .45; }
.tabs { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.tab {
  display: flex; align-items: center; gap: 7px; width: 138px; height: 30px; padding: 0 11px; border-radius: 8px; flex: none;
  color: var(--m-muted); font-size: 12.5px; font-weight: 500;
  transition: background-color .35s var(--ease), color .35s var(--ease), opacity .45s var(--ease), transform .45s var(--ease);
}
.tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab .i { width: 14px; height: 14px; color: var(--acc); }
.tab.is-on { background: var(--m-pane); color: var(--m-text); box-shadow: 0 0 0 1px var(--m-line), 0 2px 6px -2px rgba(0, 0, 0, .35); }
.tab-new { opacity: 0; transform: translateY(-3px) scale(.92); }
.win.has-newtab .tab-new { opacity: 1; transform: none; }
.tab-plus {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; flex: none; color: var(--m-muted);
  transform: translateX(-144px); transition: transform .45s var(--ease);
}
.win.has-newtab .tab-plus { transform: none; }
.win-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.seg { display: flex; padding: 2px; border-radius: 8px; background: var(--m-hover); box-shadow: inset 0 0 0 1px var(--m-line); }
.seg span { display: grid; place-items: center; width: 28px; height: 24px; border-radius: 6px; color: var(--m-muted); }
.seg span.is-on { background: var(--m-pane); color: var(--m-text); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.seg .i { width: 14px; height: 14px; }
.win-search {
  display: flex; align-items: center; gap: 7px; width: 170px; height: 28px; padding: 0 10px; border-radius: 8px;
  background: var(--m-hover); box-shadow: inset 0 0 0 1px var(--m-line); color: var(--m-faint); font-size: 12.5px;
}
.win-search .i { width: 13px; height: 13px; }
.win-body { position: absolute; left: 0; right: 0; top: 52px; bottom: 26px; display: grid; grid-template-columns: 196px 1fr; }
.side { padding: 8px 10px; background: var(--m-side); border-right: 1px solid var(--m-line); overflow: hidden; }
.side-h { margin: 12px 8px 5px; font-size: 11px; font-weight: 650; color: var(--m-faint); }
.side-h:first-child { margin-top: 6px; }
.side-i {
  display: flex; align-items: center; gap: 9px; height: 28px; padding: 0 9px; border-radius: 7px;
  font-size: 13px; white-space: nowrap;
}
.side-i .i { width: 15px; height: 15px; color: var(--acc); }
.side-i.is-on { background: color-mix(in srgb, var(--acc) 22%, transparent); }
.gauge { margin-left: auto; width: 34px; height: 4px; border-radius: 2px; background: var(--m-line); overflow: hidden; }
.gauge i { display: block; height: 100%; width: calc(var(--g) * 100%); background: linear-gradient(90deg, var(--acc), var(--acc2)); border-radius: 2px; }
.tag-dot { width: 10px; height: 10px; border-radius: 50%; margin: 0 2px 0 3px; flex: none; }
.tag-red { background: #ff5f57; } .tag-orange { background: #ff9f0a; } .tag-green { background: #30d158; } .tag-blue { background: #0a84ff; }
.main { position: relative; padding: 8px; min-width: 0; }
.panes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 100%; }
.pane {
  position: relative; min-width: 0; border-radius: var(--rad); overflow: hidden;
  background: color-mix(in oklab, var(--acc) calc(var(--tint) * 6%), var(--m-pane));
  box-shadow: inset 0 0 0 1px var(--m-line);
}
.pane::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--acc) 70%, transparent), 0 0 24px -4px color-mix(in srgb, var(--acc) 40%, transparent);
  opacity: 0; transition: opacity .45s var(--ease);
}
.pane.is-on::after { opacity: 1; }
.pane-h { display: flex; align-items: center; gap: 5px; height: 36px; padding: 0 14px; font-size: 12.5px; font-weight: 600; color: var(--m-muted); }
.pane-h .i { width: 10px; height: 10px; color: var(--m-faint); }
.pane-h .crumb:last-of-type { color: var(--m-text); }
.cols {
  display: grid; grid-template-columns: 1fr 70px 118px; gap: 10px; height: 24px; align-items: center;
  padding: 0 12px 0 38px; font-size: 11px; font-weight: 500; color: var(--m-faint); border-bottom: 1px solid var(--m-line);
}
.rows { padding: 4px 6px; }
.row {
  position: relative; display: grid; grid-template-columns: 22px 1fr 70px 118px; gap: 0 10px; align-items: center;
  height: 30px; padding: 0 6px; border-radius: 7px; font-size: 12.5px;
}
.row::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: linear-gradient(90deg, var(--acc), var(--acc2)); opacity: 0; transition: opacity .25s var(--ease);
}
.row > * { position: relative; z-index: 1; }
.row .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s, .row .d { color: var(--m-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .25s; }
.row .s { text-align: right; }
.row.is-sel::before { opacity: 1; }
.row.is-sel .n, .row.is-sel .s, .row.is-sel .d, .row.is-sel .fi { color: #fff; }
.row.is-in { opacity: 0; transform: translateX(-10px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.row.is-in.is-shown { opacity: 1; transform: none; }
.row.is-in::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: color-mix(in srgb, var(--acc) 26%, transparent); opacity: 0;
}
.row.is-in.is-shown::after { animation: flash 1.6s var(--ease) both; }
.gridview {
  position: absolute; inset: 8px; border-radius: var(--rad); overflow: hidden;
  background: color-mix(in oklab, var(--acc) calc(var(--tint) * 6%), var(--m-pane));
  box-shadow: inset 0 0 0 1px var(--m-line), inset 0 0 0 1.5px color-mix(in srgb, var(--acc) 70%, transparent);
  opacity: 0; transform: scale(.985); transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.gridview.is-shown { opacity: 1; transform: none; }
.gv { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px 10px; padding: 18px 20px; }
.gv-i { display: grid; justify-items: center; gap: 9px; font-size: 11.5px; text-align: center; color: var(--m-text); }
.gv-i .fi { width: 54px; height: 54px; }
.gv-i span { max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-status {
  position: absolute; left: 196px; right: 0; bottom: 0; height: 26px; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  font-size: 11px; color: var(--m-faint); text-align: center; background: var(--m-win); border-top: 1px solid var(--m-line);
}
.win-status::before { content: ""; position: absolute; left: -196px; width: 196px; top: -1px; bottom: 0; background: var(--m-side); border-right: 1px solid var(--m-line); }

/* File-type colours */
.fi-folder { color: #5aa9f6; }
.fi-pdf { color: #ef5350; } .fi-img, .fi-shot { color: #ab6af0; } .fi-md, .fi-txt, .fi-dmg { color: #8e99ab; }
.fi-xls, .fi-csv { color: #2fb36b; } .fi-vid { color: #f28b2c; } .fi-zip { color: #e0a82e; }
.fi-svg { color: #19b3a6; } .fi-audio { color: #ec4899; } .fi-ppt { color: #f06c32; } .fi-html { color: #ec6b3f; }
.fi-doc { color: #3b82f6; } .fi-cmd { color: var(--m-muted); }

/* Heads-up display, flying chips, keycap, pointer */
.hud {
  position: absolute; right: 18px; bottom: 16px; width: 330px; padding: 12px 14px 13px; border-radius: 13px;
  background: color-mix(in srgb, var(--m-top) 88%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--m-line), 0 18px 40px -18px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.hud.is-shown { opacity: 1; transform: none; }
.hud-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; }
.hud-top .i { width: 14px; height: 14px; color: var(--acc); }
.hud-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-p { margin-left: auto; color: var(--m-muted); font-variant-numeric: tabular-nums; }
.hud-bar { height: 5px; margin-top: 10px; border-radius: 3px; background: var(--m-line); overflow: hidden; }
.hud-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--acc), var(--acc2)); transform: scaleX(0); transform-origin: 0 50%; }
.fly { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.chip {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 9px; border-radius: 8px;
  font-size: 12.5px; font-weight: 500; color: #fff; white-space: nowrap;
  background: linear-gradient(90deg, var(--acc), var(--acc2)); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6);
  opacity: 0;
}
.chip .fi { width: 15px; height: 15px; color: #fff !important; }
.keypos { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; }
.keycap {
  display: inline-flex; min-width: 38px; height: 34px; padding: 0 10px; border-radius: 8px;
  font: 600 15px/34px var(--font); color: #1d1d1f; justify-content: center;
  background: linear-gradient(#ffffff, #e9e9ee); box-shadow: 0 1.5px 0 #b9b9c2, 0 10px 24px -6px rgba(0, 0, 0, .5);
  opacity: 0;
}
.cursor {
  position: absolute; left: 0; top: 0; z-index: 7; width: 24px; height: 24px; pointer-events: none;
  transform: translate(1100px, 720px); transition: transform .9s var(--ease-io), opacity .4s;
  opacity: 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.cursor svg { width: 24px; height: 24px; transform-origin: 20% 10%; }
.is-live > .cursor, .is-live .cursor { opacity: 1; }
.ripple {
  position: absolute; left: -9px; top: -11px; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--acc) 80%, white); opacity: 0;
}

/* ---------- 1 · Tree ---------- */
.tree-card { max-width: 560px; margin-inline: auto; }
.tree { position: relative; padding: 10px; }
.js .tree { height: calc(var(--rows) * 36px + 20px); }
.tr {
  display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 9px;
  font-size: 14px; color: var(--text);
}
.js .tree .tr {
  position: absolute; left: 10px; right: 10px; top: 10px; opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s var(--ease), background-color .3s;
}
.js .tree .tr.is-vis { opacity: 1; }
.tr.is-cur { background: linear-gradient(90deg, color-mix(in srgb, #3b82f6 30%, transparent), color-mix(in srgb, #8b5cf6 20%, transparent)); }
.tr-indent {
  align-self: stretch; flex: none; width: calc(var(--depth) * 20px);
  background: repeating-linear-gradient(90deg, transparent 0 9px, var(--line-2) 9px 10px, transparent 10px 20px);
}
.tr-chev { display: grid; place-items: center; width: 14px; height: 14px; flex: none; color: var(--text-3); transition: transform .4s var(--ease); }
.tr-chev .i { width: 12px; height: 12px; }
.tr.is-open .tr-chev { transform: rotate(90deg); }
.tr .fi { width: 18px; height: 18px; margin-right: 4px; }
.tr-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-branch, .tr-git, .tr-s { transition: opacity .6s var(--ease); }
.tr-branch {
  padding: 2px 8px; border-radius: 999px; font: 600 11px/1.4 var(--mono); white-space: nowrap;
  color: #93c5fd; background: rgba(59, 130, 246, .14);
}
.tr-git { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 5px; font: 700 11px/1 var(--mono); }
.tr-git-M { color: #fbbf24; background: rgba(251, 191, 36, .14); }
.tr-git-A { color: #34d399; background: rgba(52, 211, 153, .14); }
.tr-s { min-width: 64px; text-align: right; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.js .tree:not(.is-sized) .tr-s, .js .tree:not(.is-sized) .tr-git, .js .tree:not(.is-sized) .tr-branch { opacity: 0; }
@media (prefers-color-scheme: light) {
  .tr-branch { color: #1d4ed8; } .tr-git-M { color: #b45309; } .tr-git-A { color: #047857; }
}

.points { list-style: none; margin-top: 10px; }
.points li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 2px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.4;
}
.points li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- 2 · Search ---------- */
.search-grid { display: grid; gap: 18px; }
.qo-field, .cs-field {
  display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 20px;
  border-bottom: 1px solid var(--line); font-size: 19px; letter-spacing: -.01em;
}
.qo-field > .i, .cs-field > .i { width: 21px; height: 21px; color: var(--text-3); }
.qo-text, .cs-text { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; height: 100%; white-space: nowrap; overflow: hidden; }
.qo-ph { position: absolute; left: 0; color: var(--text-3); transition: opacity .15s; }
.qo.has-q .qo-ph { opacity: 0; }
.caret { width: 2px; height: 22px; margin-left: 1px; border-radius: 1px; background: var(--accent); animation: blink 1.05s steps(1) infinite; flex: none; }
.qo-list { position: relative; padding: 8px; }
.js .qo-list { height: calc(6 * 50px + 16px); }
.qo-item {
  display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 14px; border-radius: 11px; font-size: 15px;
}
.js .qo-item {
  position: absolute; left: 8px; right: 8px; top: 8px; opacity: 0; transform: translateY(0);
  transition: transform .45s var(--ease-out), opacity .3s var(--ease);
}
.js .qo-item.is-vis { opacity: 1; }
.qo-item .fi { width: 20px; height: 20px; }
.qo-item .fi-cmd { width: 18px; height: 18px; color: var(--text-2); }
.qo-n { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qo-n mark { background: none; color: var(--accent-text); font-weight: 700; }
.qo-p { margin-left: auto; padding-left: 12px; font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46%; }
.qo-hl {
  display: none; position: absolute; left: 8px; right: 8px; top: 8px; height: 50px; border-radius: 11px;
  background: linear-gradient(90deg, rgba(59, 130, 246, .2), rgba(139, 92, 246, .14));
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .35);
  opacity: 0; transition: opacity .3s var(--ease);
}
.js .qo-hl { display: block; }
.qo-hl.is-vis { opacity: 1; }
.qo-foot { display: flex; gap: 20px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.qo-foot kbd { height: 22px; min-width: 22px; font-size: 11.5px; margin-right: 4px; }
.cs-scope { flex: none; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); letter-spacing: 0; }
.cs-chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 16px 20px 0; padding: 7px 13px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: #c4b5fd; background: rgba(139, 92, 246, .14); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .25);
}
.cs-chip .i { width: 15px; height: 15px; }
.js .cs-chip { opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .5s var(--ease); }
.js .cs-chip.is-shown { opacity: 1; transform: none; }
@media (prefers-color-scheme: light) { .cs-chip { color: #6d28d9; } }
.cs-results { display: grid; gap: 12px; padding: 16px 16px 20px; }
.cs-res {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: start; padding: 14px; border-radius: 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.js .cs-res { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .6s var(--ease-out); }
.js .cs-res.is-shown { opacity: 1; transform: none; }
.cs-thumb {
  display: grid; gap: 5px; align-content: start; width: 58px; height: 74px; padding: 11px 9px; border-radius: 7px;
  background: #fdfdfd; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.cs-thumb i { height: 4px; border-radius: 2px; background: #d8d8de; }
.cs-thumb i:nth-child(1) { background: #ef5350; width: 60%; }
.cs-thumb i:nth-child(3) { width: 80%; }
.cs-thumb i:nth-child(4) { width: 55%; }
.cs-thumb-shot { height: 44px; margin-top: 14px; padding: 8px 7px; background: linear-gradient(160deg, #2b2f3a, #1b1d24); }
.cs-thumb-shot i { height: 3px; background: #4b5060; }
.cs-thumb-shot i:nth-child(1) { background: #ab6af0; width: 40%; }
.cs-n { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.cs-p { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.cs-snip { font-size: 14px; color: var(--text-2); margin-top: 8px; line-height: 1.5; }
.cs-snip mark { color: var(--text); background: rgba(250, 204, 21, .22); border-radius: 4px; padding: 0 3px; }
.cs-tag {
  padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; white-space: nowrap;
  color: #5eead4; background: rgba(45, 212, 191, .12);
}
@media (prefers-color-scheme: light) { .cs-tag { color: #0f766e; } }
.mini-points { list-style: none; display: grid; gap: 32px 40px; margin-top: clamp(48px, 7vw, 80px); }
.mini-points h3 { margin: 16px 0 6px; font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.mini-points p { font-size: 15px; color: var(--text-2); line-height: 1.55; }

/* ---------- 3 · Space Lens ---------- */
.lens { display: grid; }
.lens-viz { position: relative; padding: clamp(10px, 3vw, 34px); border-bottom: 1px solid var(--line); }
.bubbles { width: 100%; height: auto; overflow: visible; }
.bub {
  transform-box: view-box; transform-origin: 0 0; transform: scale(.001); opacity: 0;
  transition: transform 1s var(--spring), opacity .5s var(--ease);
  transition-delay: calc(var(--i) * 55ms);
}
.lens.is-grown .bub { transform: scale(1); opacity: 1; }
.lens.is-pick .bub { transition-delay: 0s; }
.lens.is-pick .bub:not([data-bub="backups"]) { opacity: .32; }
.bub-ring { fill: none; stroke: #fff; stroke-width: 4; stroke-opacity: 0; transition: stroke-opacity .35s var(--ease); }
.lens.is-pick .bub[data-bub="backups"] .bub-ring { stroke-opacity: .95; }
.lens.is-gone .bub[data-bub="backups"] { transform: scale(.001); opacity: 0; transition: transform .7s cubic-bezier(.55, 0, .7, .2), opacity .5s .2s; }
.lens.is-back .bub { opacity: 1; }
.bub-n { fill: #fff; font-weight: 650; text-anchor: middle; letter-spacing: -.01em; }
.bub-s { fill: rgba(255, 255, 255, .82); text-anchor: middle; font-weight: 500; }
.lens-freed {
  position: absolute; left: calc(76 / 640 * 100%); top: calc(214 / 420 * 100%);
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 650; color: #062b1e; background: #34d399; box-shadow: 0 12px 30px -10px rgba(52, 211, 153, .6);
  opacity: 0; transform: translate(-30%, -50%) scale(.7); transition: opacity .4s var(--ease), transform .6s var(--spring);
}
.lens-freed .i { width: 16px; height: 16px; }
.lens.is-gone .lens-freed { opacity: 1; transform: translate(-30%, -50%); }
.lens-side { display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.lens-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.lens-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.lens-title .i { width: 17px; height: 17px; color: var(--text-2); }
.lens-list { display: grid; gap: 4px; }
.ll {
  display: grid; grid-template-columns: 10px 1fr auto; gap: 6px 10px; align-items: center; padding: 9px 10px; border-radius: 11px;
  font-size: 14px; transition: background-color .35s, opacity .5s;
}
.ll-dot { width: 10px; height: 10px; border-radius: 50%; }
.ll-s { color: var(--text-2); font-variant-numeric: tabular-nums; }
.ll-bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.ll-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; transform: scaleX(var(--w)); transform-origin: 0 50%; }
.ll-blue { background: #3b82f6; } .ll-violet { background: #8b5cf6; } .ll-orange { background: #f97316; }
.ll-teal { background: #14b8a6; } .ll-pink { background: #ec4899; } .ll-green { background: #22c55e; }
.lens.is-pick .ll.is-target { background: rgba(249, 115, 22, .14); }
.lens.is-gone .ll.is-target { opacity: .35; }
.lens.is-gone .ll.is-target .ll-n { text-decoration: line-through; }
.lens-btn {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 36px; padding: 0 14px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: #fca5a5; background: rgba(239, 68, 68, .13); box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .2);
  transition: transform .2s var(--ease), background-color .2s;
}
.lens-btn .i { width: 15px; height: 15px; }
.lens.is-press .lens-btn { transform: scale(.95); background: rgba(239, 68, 68, .3); }
@media (prefers-color-scheme: light) { .lens-btn { color: #b91c1c; } }
.storage { margin-top: auto; }
.storage-bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.storage-bar .used {
  display: block; height: 100%; width: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6 55%, #ec4899 80%, #f97316);
  transform: scaleX(.824); transform-origin: 0 50%; transition: transform 1.1s var(--ease-out);
}
.lens.is-gone .storage-bar .used { transform: scaleX(.742); }
.storage-legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.inline-points { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 36px; }
.inline-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-2); }
.inline-points .i { width: 17px; height: 17px; color: var(--ok); }

/* ---------- 4 · Tools ---------- */
.tools-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.tool {
  position: relative; isolation: isolate; overflow: hidden; min-height: 208px; padding: 26px 24px 24px; border-radius: 20px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
  transition: box-shadow .35s var(--ease);
}
.tool.is-lit { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card); }
.spot {
  position: absolute; left: 0; top: 0; z-index: -1; width: 380px; height: 380px; margin: -190px 0 0 -190px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(94, 234, 212, .17), rgba(99, 102, 241, .08) 55%, transparent);
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
.is-lit > .spot { opacity: 1; }
.tool-ic {
  --a: #3b82f6; --b: #8b5cf6;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #fff;
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px -10px var(--a);
}
.tool-ic .i { width: 23px; height: 23px; }
.tool-duplicates { --a: #f97316; --b: #ef4444; } .tool-rename { --a: #3b82f6; --b: #6366f1; }
.tool-compare { --a: #14b8a6; --b: #0ea5e9; } .tool-pdf { --a: #ef4444; --b: #db2777; }
.tool-names { --a: #a855f7; --b: #ec4899; } .tool-media { --a: #f59e0b; --b: #f97316; }
.tool-rules { --a: #eab308; --b: #f59e0b; } .tool-tags { --a: #22c55e; --b: #14b8a6; }
.tool-copies { --a: #0ea5e9; --b: #3b82f6; } .tool-preview { --a: #6366f1; --b: #8b5cf6; }
.tool-drawer { --a: #64748b; --b: #475569; } .tool-auto { --a: #ec4899; --b: #8b5cf6; }
.tool h3 { margin: 20px 0 7px; font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.tool p { font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.tool-k { position: absolute; top: 24px; right: 22px; }
.pro {
  margin-top: 26px; padding: clamp(24px, 4vw, 40px); border-radius: 26px;
  background: linear-gradient(135deg, rgba(45, 212, 191, .08), rgba(99, 102, 241, .08) 55%, rgba(236, 72, 153, .06));
  box-shadow: inset 0 0 0 1px var(--line);
}
.pro-head { display: grid; justify-items: start; gap: 12px; max-width: 640px; }
.pro-head h3 { font-size: clamp(1.35rem, 1rem + 1.2vw, 1.75rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.pro-head p { color: var(--text-2); }
.pro-grid { display: grid; gap: 10px; margin-top: 26px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.pro-item {
  position: relative; isolation: isolate; overflow: hidden; display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.pro-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex: none; color: var(--accent-text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.pro-ic .i { width: 20px; height: 20px; }
.pro-item h4 { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.pro-item p { margin-top: 3px; font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ---------- 5 · History ---------- */
.hist-stage { position: relative; max-width: 600px; margin-inline: auto; }
.hist-list { padding: 6px 10px 12px; }
.hist-day { padding: 12px 10px 6px; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.hist-row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 104px; gap: 12px; align-items: center;
  padding: 10px; border-radius: 13px; transition: background-color .3s var(--ease);
}
.hist-row.is-hover { background: var(--surface-2); }
.hist-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
.hist-ic .i { width: 17px; height: 17px; }
.hist-ic-trash { color: #f87171; } .hist-ic-rename { color: #60a5fa; } .hist-ic-rules { color: #fbbf24; }
.hist-ic-tags { color: #fb923c; } .hist-ic-copy { color: #2dd4bf; }
.hist-txt { display: grid; min-width: 0; }
.hist-t { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .3s; }
.hist-s { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-time, .hist-act { grid-column: 3; grid-row: 1; }
.hist-time { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; transition: opacity .25s var(--ease); }
.hist-row.is-hover .hist-time, .hist-row.is-undone .hist-time { opacity: 0; }
.hist-act { position: relative; height: 28px; }
.hist-undo, .hist-done {
  position: absolute; inset: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px;
  font-size: 12.5px; font-weight: 650; white-space: nowrap; transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.hist-undo .i, .hist-done .i { width: 14px; height: 14px; }
.hist-undo { color: #fff; background: linear-gradient(90deg, #3b82f6, #6366f1); opacity: 0; transform: scale(.9); }
.hist-row.is-hover .hist-undo { opacity: 1; transform: none; }
.hist-row.is-press .hist-undo { transform: scale(.94); }
.hist-done { color: var(--ok); opacity: 0; }
.hist-row.is-undone .hist-undo { opacity: 0; }
.hist-row.is-undone .hist-done { opacity: 1; }
.hist-row.is-undone .hist-t { color: var(--text-3); }
.mini { margin-top: 14px; }
.mini .card-bar { height: 40px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 8px; padding: 18px 12px; }
.mini-i { display: grid; justify-items: center; gap: 7px; font-size: 12px; color: var(--text-2); text-align: center; min-width: 0; }
.mini-i span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-i .fi { width: 40px; height: 40px; }
.js .mini-i[data-back] { opacity: 0; transform: scale(.6); transition: opacity .4s var(--ease), transform .7s var(--spring); }
.js .mini-i[data-back].is-back { opacity: 1; transform: none; }
.mini-i[data-back].is-back .fi { filter: drop-shadow(0 0 12px rgba(239, 83, 80, .55)); }
.hist-stage .chip { background: linear-gradient(90deg, #3b82f6, #6366f1); }
.hist-stage .cursor { transform: none; }

/* ---------- 6 · Servers & clouds ---------- */
.marquee {
  overflow: hidden; margin-bottom: clamp(40px, 6vw, 64px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 12px; width: max-content; padding: 4px 12px 4px 0; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.svc {
  display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px; white-space: nowrap;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; color: var(--text);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
}
.remote { display: grid; align-items: center; }
.r-file { min-width: 0; }
.r-path { margin-left: auto; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-code {
  padding: 18px 20px; overflow: hidden; white-space: pre; font: 13.5px/1.75 var(--mono); color: var(--text-2);
  background: none;
}
.r-code code { padding: 0; background: none; font-size: inherit; }
.r-code .caret { display: inline-block; width: 2px; height: 17px; vertical-align: -3px; margin: 0 1px; }
.c-t { color: #f472b6; } .c-a { color: #93c5fd; } .c-s { color: #86efac; }
@media (prefers-color-scheme: light) { .c-t { color: #be185d; } .c-a { color: #1d4ed8; } .c-s { color: #15803d; } }
.r-typed { color: var(--text); background: color-mix(in srgb, #3b82f6 22%, transparent); border-radius: 3px; }
.r-typed:empty { background: none; }
.r-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.r-foot kbd { transition: transform .15s var(--ease), background-color .2s, color .2s; }
.r-foot kbd.is-press { transform: scale(.9); color: #fff; background: #3b82f6; }
.r-link { position: relative; height: 96px; }
.r-line {
  position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; margin-left: -1px;
  background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px);
}
.r-packet {
  position: absolute; left: 50%; top: 10px; display: grid; place-items: center; width: 34px; height: 34px; margin-left: -17px; border-radius: 10px;
  color: #fff; background: linear-gradient(135deg, #3b82f6, #8b5cf6); box-shadow: 0 10px 24px -8px rgba(59, 130, 246, .7);
  opacity: 0;
}
.r-packet .i { width: 17px; height: 17px; }
.remote.is-send .r-packet { animation: packet-v 1.15s var(--ease-io) forwards; }
.r-label {
  position: absolute; left: calc(50% + 28px); top: 50%; transform: translateY(-50%);
  font-size: 12.5px; color: var(--text-3); white-space: nowrap; opacity: 0; transition: opacity .3s;
}
.remote.is-send .r-label { opacity: 1; }
.r-server { display: grid; justify-items: center; gap: 8px; padding: 28px 24px; text-align: center; }
.r-srv-ic {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 17px; color: var(--text-2);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: color .4s, box-shadow .4s;
}
.r-srv-ic .i { width: 28px; height: 28px; }
.remote.is-ok .r-srv-ic { color: var(--ok); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .35), 0 0 0 7px rgba(52, 211, 153, .1); }
.r-srv-n { font-weight: 650; }
.r-status { position: relative; width: 100%; height: 26px; }
.r-wait, .r-ok { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; transition: opacity .35s var(--ease), transform .45s var(--spring); }
.r-wait { color: var(--text-3); }
.r-ok { color: var(--ok); opacity: 0; transform: scale(.9); }
.r-ok .i { width: 16px; height: 16px; }
.remote.is-ok .r-wait { opacity: 0; }
.remote.is-ok .r-ok { opacity: 1; transform: none; }
.r-sub { font-size: 12.5px; color: var(--text-3); }

/* ---------- 7 · Themes ---------- */
.themes { display: grid; gap: clamp(28px, 4vw, 52px); align-items: center; }
.theme-stage {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(14px, 4vw, 44px); border-radius: 26px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.wallpaper { position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 40%, #3b0764 70%, #0c4a6e 100%); }
.wallpaper i { position: absolute; border-radius: 50%; }
.wallpaper i:nth-child(1) { width: 60%; aspect-ratio: 1; left: -12%; top: -20%; background: radial-gradient(closest-side, rgba(244, 63, 94, .75), transparent); }
.wallpaper i:nth-child(2) { width: 55%; aspect-ratio: 1; right: -10%; bottom: -25%; background: radial-gradient(closest-side, rgba(45, 212, 191, .7), transparent); }
.wallpaper i:nth-child(3) { width: 45%; aspect-ratio: 1; left: 35%; top: 25%; background: radial-gradient(closest-side, rgba(250, 204, 21, .45), transparent); }
.win-theme { --m-alpha: 100%; --fc: #5aa9f6; }
.win-theme[data-mode="dark"] {
  --m-win: #1a1b20; --m-top: #1f2026; --m-side: #17181d; --m-pane: #1e1f25;
  --m-text: #ececf1; --m-muted: #8f909a; --m-faint: #5f606a; --m-line: rgba(255, 255, 255, .07); --m-hover: rgba(255, 255, 255, .05);
}
.win-theme[data-mode="light"] {
  --m-win: #f2f2f5; --m-top: #ebebef; --m-side: #e8e8ed; --m-pane: #ffffff;
  --m-text: #1d1d1f; --m-muted: #7b7b84; --m-faint: #a9a9b1; --m-line: rgba(0, 0, 0, .08); --m-hover: rgba(0, 0, 0, .04);
}
.win-theme.is-glass { --m-alpha: 52%; -webkit-backdrop-filter: blur(26px) saturate(1.7); backdrop-filter: blur(26px) saturate(1.7); }
.win-theme { background: color-mix(in srgb, color-mix(in oklab, var(--acc) calc(var(--tint) * 8%), var(--m-win)) var(--m-alpha), transparent); color: var(--m-text); }
.win-theme .win-top { height: 46px; background: color-mix(in srgb, color-mix(in oklab, var(--acc) calc(var(--tint) * 10%), var(--m-top)) var(--m-alpha), transparent); }
.win-theme .win-body { top: 46px; bottom: 0; grid-template-columns: 172px 1fr; }
.win-theme .side { background: color-mix(in srgb, color-mix(in oklab, var(--acc) calc(var(--tint) * 14%), var(--m-side)) var(--m-alpha), transparent); }
.win-theme .pane { background: color-mix(in srgb, color-mix(in oklab, var(--acc) calc(var(--tint) * 7%), var(--m-pane)) var(--m-alpha), transparent); }
.win-theme .pane::after { opacity: 1; }
.win-theme .tab { width: 150px; }
.win-theme .tab-plus { transform: none; }
.win-theme, .win-theme * {
  transition-property: background-color, color, border-color, box-shadow, border-radius;
  transition-duration: .55s; transition-timing-function: var(--ease);
}
.icons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 6px; padding: 10px 14px; }
.ic { display: grid; justify-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: var(--rad); font-size: 12px; text-align: center; min-width: 0; }
.ic span { max-width: 100%; padding: 1px 6px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic .fi { width: 50px; height: 50px; }
.win-theme .fi-folder { color: color-mix(in oklab, var(--acc) 78%, white); }
.win-theme .ic.is-sel { background: color-mix(in srgb, var(--acc) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 30%, transparent); }
.win-theme .ic.is-sel span { color: #fff; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.win-theme .ic.is-sel .fi-folder { color: var(--fc); }
.win-theme[data-preset="classic"] .ic.is-sel span { background: var(--acc); }
.win-theme[data-preset="forest"] .ic.is-sel span, .win-theme[data-preset="graphite"] .ic.is-sel span { color: var(--m-text); background: color-mix(in srgb, var(--acc) 30%, transparent); }
.theme-ctl { display: grid; gap: 26px; }
.tc-row { display: flex; flex-wrap: wrap; gap: 26px 36px; }
.tc-label { margin-bottom: 10px; font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatch {
  display: grid; justify-items: center; gap: 8px; padding: 12px 4px 10px; border-radius: 14px; min-width: 0;
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, box-shadow .25s, color .2s;
}
.swatch:hover { background: var(--surface-2); }
.swatch[aria-pressed="true"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--a); }
.sw { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 6px 14px -6px var(--a); }
.sw-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg-ctl { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.seg-ctl button { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: background-color .25s, color .25s, box-shadow .25s; }
.seg-ctl button .i { width: 16px; height: 16px; }
.seg-ctl button[aria-pressed="true"] { color: var(--text); background: var(--surface-3); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch { display: inline-flex; align-items: center; gap: 12px; height: 42px; font-size: 14.5px; font-weight: 600; }
.switch-track { position: relative; width: 46px; height: 28px; border-radius: 14px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s var(--ease); }
.switch-knob { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); transition: transform .35s var(--spring); }
.switch[aria-checked="true"] .switch-track { background: var(--accent); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(18px); }
.fcolors { display: flex; flex-wrap: wrap; gap: 11px; }
.fc { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); transition: transform .2s var(--ease), box-shadow .2s; }
.fc:hover { transform: scale(1.1); }
.fc[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c); }

/* ---------- 8 · Privacy ---------- */
.privacy { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.privacy-copy { display: grid; gap: 18px; justify-items: center; text-align: center; }
.orbit { position: relative; width: min(440px, 84vw); aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.orbit-glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(45, 212, 191, .25), rgba(59, 130, 246, .1) 60%, transparent); }
.ring { position: absolute; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin var(--dur) linear infinite; }
.ring-1 { --dur: 46s; --R: 31cqw; inset: 19%; }
.ring-2 { --dur: 70s; --R: 47cqw; inset: 3%; animation-direction: reverse; }
.ring span {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 50px; height: 50px; margin: -25px 0 0 -25px;
  border-radius: 15px; color: var(--accent-text); background: var(--card-solid); box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 30px -12px rgba(0, 0, 0, .6);
  transform: rotate(var(--a)) translateX(var(--R)) rotate(calc(-1 * var(--a)));
}
.ring span .i { width: 22px; height: 22px; animation: spin var(--dur) linear infinite reverse; }
.ring-2 span .i { animation-direction: normal; }
.orbit-core {
  position: absolute; inset: 34%; display: grid; place-items: center; align-content: center; gap: 8px; border-radius: 50%; text-align: center;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 22%, var(--card-solid)), var(--card-solid));
  box-shadow: inset 0 0 0 1px var(--line-2), 0 0 60px -10px rgba(45, 212, 191, .35);
}
.orbit-core .i { width: 32px; height: 32px; color: var(--accent-text); }
.orbit-core strong { font-size: 15px; font-weight: 650; }
.priv-grid { list-style: none; display: grid; gap: 14px; margin-top: clamp(40px, 6vw, 72px); }
.priv { padding: 24px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.priv h3 { margin: 16px 0 6px; font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.priv p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }

/* ---------- Screenshots ---------- */
.gallery {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 6px max(var(--gutter), calc((100% - var(--maxw)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 min(86%, 980px); scroll-snap-align: start; }
.shot img { width: 100%; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
.shot figcaption { margin-top: 16px; font-size: 15px; color: var(--text-2); }
.shot figcaption strong { color: var(--text); font-weight: 650; }
.gallery-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- 9 · Pricing ---------- */
#pricing { overflow: clip; isolation: isolate; }
.pricing-glow {
  position: absolute; left: 50%; top: 56%; z-index: -1; width: min(1000px, 140vw); height: 700px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .22), rgba(139, 92, 246, .1) 55%, transparent);
}
.price-card {
  position: relative; max-width: 520px; margin: 0 auto; padding: clamp(26px, 5vw, 44px); border-radius: 30px;
  background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4);
  box-shadow: var(--shadow-lg);
}
.price-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(94, 234, 212, .75), rgba(59, 130, 246, .25) 40%, rgba(139, 92, 246, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.pc-top { display: flex; align-items: center; gap: 14px; }
.pc-top img { width: 56px; height: 56px; }
.pc-name { font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.pc-sub { font-size: 13.5px; color: var(--text-3); }
.pc-price { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 4px; }
.amount { font-size: clamp(3.4rem, 2.2rem + 4.4vw, 4.6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.per { font-size: 17px; color: var(--text-2); }
.checks { list-style: none; display: grid; gap: 12px; margin: 26px 0 30px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.checks .i { width: 20px; height: 20px; margin-top: 1px; color: var(--ok); }
.pc-cta { display: grid; gap: 10px; }
.pc-cta .btn { width: 100%; }
.pc-trial { margin-top: 18px; text-align: center; font-size: 15px; font-weight: 600; }
.pc-fine { margin-top: 6px; text-align: center; font-size: 13.5px; color: var(--text-3); text-wrap: pretty; }
.pc-paddle { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pc-paddle .i { width: 14px; height: 14px; }
.pc-store { max-width: 660px; margin: 34px auto 0; text-align: center; font-size: 15px; color: var(--text-2); text-wrap: pretty; }
.pc-store .link-arrow { text-decoration: none; }

/* ---------- 10 · Editions ---------- */
.table-wrap { border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card); }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.cmp th, .cmp td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { padding: 20px 18px 16px; font-size: 15px; font-weight: 650; text-align: center; vertical-align: bottom; }
.cmp thead th:first-child { text-align: left; }
.cmp td { text-align: center; }
.cmp thead th:first-child { width: 52%; }
.cmp tbody th { font-weight: 500; }
.cmp thead th:nth-child(2), .cmp td:nth-child(2) { background: rgba(59, 130, 246, .06); }
.cmp-h { display: block; }
.cmp thead .badge { margin-top: 7px; }
.cmp .yes, .cmp .no { display: inline-grid; place-items: center; }
.cmp .yes { color: var(--ok); }
.cmp .no { color: var(--text-3); }
.cmp .i { width: 20px; height: 20px; }
.cmp tr.fact td { font-size: 14px; color: var(--text-2); }
.cmp tr.fact:first-of-type > * { border-top: 1px solid var(--line-2); }

/* ---------- 11 · FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa h3 { font: inherit; }
.qa-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 22px 4px; text-align: left;
  font-size: clamp(16.5px, 1rem + .3vw, 18.5px); font-weight: 600; letter-spacing: -.012em;
}
.qa-q:hover { color: var(--accent-text); }
.qa-ic { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--surface-2); transition: background-color .25s; }
.qa-ic::before, .qa-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background: currentColor; transition: transform .4s var(--ease); }
.qa-ic::after { transform: rotate(90deg); }
.qa.open .qa-ic::after { transform: rotate(0deg); }
.qa.open .qa-ic { background: var(--surface-3); }
.qa-a { display: grid; grid-template-rows: 1fr; }
.js .qa-a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s var(--ease), visibility 0s .45s; }
.js .qa.open .qa-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .45s var(--ease), visibility 0s; }
.qa-in { overflow: hidden; min-height: 0; }
.qa-in p { padding: 0 4px 24px; max-width: 64ch; font-size: 16px; line-height: 1.65; color: var(--text-2); }

/* ---------- 12 · Final call to action ---------- */
.final { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(96px, 14vw, 180px); text-align: center; }
.final .wrap { display: grid; justify-items: center; gap: 22px; }
.final-glow {
  position: absolute; left: 50%; top: 0; z-index: -1; width: min(1100px, 150vw); height: 100%; transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(closest-side at 35% 50%, rgba(45, 212, 191, .2), transparent),
    radial-gradient(closest-side at 65% 50%, rgba(139, 92, 246, .22), transparent);
}
.final-icon { width: 148px; height: 148px; filter: drop-shadow(0 26px 44px rgba(45, 212, 191, .28)); }
.final .cta-row { margin-top: 10px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 72px) 0 36px; font-size: 14px; color: var(--text-2); }
.foot-grid { display: grid; gap: 36px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 12px; align-content: start; }
.foot-brand p { max-width: 26ch; color: var(--text-3); }
.foot-col h2 { margin-bottom: 14px; font-size: 13px; font-weight: 650; color: var(--text); }
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col a { transition: color .2s; }
.foot-col a:hover, .foot-col a[aria-current] { color: var(--text); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.foot-tm { max-width: 70ch; }

/* ---------- Secondary pages ---------- */
.page-hero { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--nav-h) + clamp(52px, 9vw, 108px)) 0 clamp(36px, 6vw, 64px); }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero .wrap.center { justify-items: center; }
.page-icon { width: 112px; height: 112px; filter: drop-shadow(0 20px 36px rgba(45, 212, 191, .25)); }
.page-glyph { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; color: #fff; background: var(--grad-soft); box-shadow: 0 18px 40px -16px rgba(59, 130, 246, .7); }
.page-glyph .i { width: 34px; height: 34px; }
.dl-progress { width: 240px; height: 4px; margin: 10px auto 0; border-radius: 2px; overflow: hidden; background: var(--surface-2); }
.dl-progress i { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--grad-soft); animation: indet 1.5s var(--ease-io) infinite; }
.steps { list-style: none; display: grid; gap: 12px; }
.step { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; font-size: 15px; font-weight: 700; color: #fff; background: var(--grad-soft); }
.step h3 { margin: 4px 0 4px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.step p { font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.step div > p:only-child { margin-top: 5px; color: var(--text); }
.step strong { color: var(--text); font-weight: 600; }
.callout { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; padding: 22px 24px; }
.callout h3 { margin-bottom: 4px; font-size: 16px; font-weight: 650; }
.callout p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.notes { margin-top: 32px; padding: 20px 24px; border-radius: 0 16px 16px 0; background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.notes p { margin-top: 6px; color: var(--text-2); }
.buy-card { display: grid; justify-items: center; gap: 16px; max-width: 580px; margin: 0 auto; padding: clamp(28px, 5vw, 52px); }
.buy-status { display: inline-flex; align-items: center; gap: 10px; min-height: 24px; color: var(--text-2); }
.buy-closed { color: var(--text-2); }
.buy-card .fine { display: inline-flex; align-items: center; gap: 6px; }
.buy-card .fine .i { width: 14px; height: 14px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.loader { display: flex; justify-content: center; gap: 8px; margin: 28px 0 8px; }
.loader i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: bounce 1.1s var(--ease) infinite; }
.loader i:nth-child(2) { animation-delay: .15s; }
.loader i:nth-child(3) { animation-delay: .3s; }
.page-thanks [data-state] { display: grid; justify-items: center; gap: 16px; }
.page-thanks [data-state] .cta-row { margin-top: 8px; }
.page-thanks h1:focus { outline: none; }
.thanks-help { margin-top: 26px; }
.keys { display: grid; gap: 12px; width: 100%; max-width: 640px; margin: 12px 0; text-align: left; }
.key-block { border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card); }
.key-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px 9px 16px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); background: var(--surface-2); transition: background-color .2s, color .2s; }
.copy-btn:hover { background: var(--surface-3); }
.copy-btn .i { width: 14px; height: 14px; }
.copy-btn.is-done { color: var(--ok); }
.key-text { padding: 16px; font: 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; user-select: all; -webkit-user-select: all; }
.key-text code { padding: 0; background: none; font-size: inherit; }
.recover { width: 100%; max-width: 560px; margin-top: 14px; padding: 24px; text-align: left; }
.recover label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field-row input {
  flex: 1 1 220px; min-width: 0; height: 50px; padding: 0 16px; border-radius: 13px; border: 1px solid var(--line-2);
  font: 16px var(--font); color: var(--text); background: var(--input); transition: border-color .2s, box-shadow .2s;
}
.field-row input::placeholder { color: var(--text-3); }
.field-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field-row .btn { --h: 50px; flex: 1 0 auto; }
.recover-done { display: grid; justify-items: center; gap: 10px; text-align: center; }
.recover-done h2:focus { outline: none; }
.recover-done p { color: var(--text-2); }
.done-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); animation: pop .5s var(--spring); }
.done-ic .i { width: 26px; height: 26px; }
.support-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.contact-card, .link-card { display: grid; align-content: start; gap: 10px; padding: 26px; }
.contact-card p { color: var(--text-2); }
.contact-card .btn { margin-top: 6px; max-width: 100%; }
.contact-card .btn span { overflow: hidden; text-overflow: ellipsis; }
.link-card { transition: box-shadow .3s var(--ease); }
.link-card:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card); }
.link-card p { color: var(--text-2); }
.link-card .link-arrow { margin-top: 6px; }
.link-card:hover .link-arrow .i { transform: translateX(3px); }
.legal .page-hero { padding-bottom: 20px; }
.legal .page-hero .wrap { gap: 14px; }
.prose { padding-bottom: clamp(64px, 10vw, 120px); }
.prose section { padding: 28px 0; border-top: 1px solid var(--line); }
.prose h2 { margin-bottom: 12px; font-size: 1.25rem; font-weight: 650; letter-spacing: -.015em; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 22px; }
.prose strong { color: var(--text); font-weight: 600; }
.big-404 {
  font-size: clamp(6rem, 22vw, 12rem); font-weight: 800; letter-spacing: -.06em; line-height: .9;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-redirect { display: grid; place-items: center; min-height: 100vh; }
.redirect { display: grid; justify-items: center; gap: 8px; padding: 40px 20px; text-align: center; }
.redirect img { width: 96px; height: 96px; }
.redirect h1 { margin-top: 12px; font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.redirect p { color: var(--text-2); }
.redirect ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 540px; margin-top: 20px; }
.redirect a { display: block; padding: 10px 16px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 200; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 600;
  color: var(--toast-text); background: var(--toast-bg); box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .55);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .45s var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }
/* Above the fold: shown by CSS as the page loads, without waiting for the script. */
.js .hero [data-reveal] {
  transition: none;
  animation: hero-in .8s var(--ease-out) both;
  animation-delay: calc(80ms + var(--d, 0) * 70ms);
}
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- 5b · Drawer: a panel sliding from the edge of the screen ---------- */
.eyebrow-kbd { margin-left: 6px; font-size: 11px; vertical-align: 1px; -webkit-text-fill-color: var(--text-2); }
.dw-stage {
  position: relative; height: 440px; max-width: 620px; margin-inline: auto; overflow: hidden; border-radius: 22px;
  background:
    radial-gradient(120% 90% at 10% 0%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, rgba(236, 72, 153, .22), transparent 60%),
    var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.dw-app { position: absolute; left: 6%; top: 13%; width: 60%; }
.dw-body { display: grid; gap: 10px; padding: 16px 18px 20px; }
.dw-meta { display: grid; gap: 2px; margin-bottom: 4px; font-size: 13px; }
.dw-meta b { font-weight: 650; color: var(--text); }
.dw-meta span { color: var(--text-2); }
.dw-line { display: block; width: var(--w); height: 8px; border-radius: 4px; background: var(--surface-2); }
.dw-attach {
  display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; margin-top: 6px; padding: 8px 12px;
  border-radius: 10px; background: var(--surface-2); font-size: 13px; color: var(--text);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.dw-attach .fi { width: 20px; height: 20px; flex: none; }
.dw-attach em { font-style: normal; font-size: 12px; color: var(--text-3); }
.dw-attach.is-lift { transform: scale(.96); opacity: .45; }
.dw-edge {
  position: absolute; right: 0; top: 8%; bottom: 8%; width: 4px; border-radius: 4px; background: var(--acc);
  box-shadow: 0 0 26px 4px color-mix(in srgb, var(--acc) 70%, transparent); opacity: 0; transition: opacity .3s var(--ease);
}
.is-edge .dw-edge { opacity: .95; }
.dw-drawer {
  position: absolute; top: 14px; right: 14px; bottom: 14px; width: 36%; min-width: 196px; padding: 12px 12px 58px;
  display: flex; flex-direction: column; gap: 4px; border-radius: 18px;
  background: color-mix(in srgb, var(--card) 86%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -22px rgba(0, 0, 0, .6);
  transform: translateX(calc(100% + 26px)); transition: transform .65s var(--ease-out);
}
.is-open .dw-drawer, html:not(.js) .dw-drawer { transform: none; }
.dw-head { display: flex; align-items: center; gap: 8px; padding: 2px 6px 6px; font-size: 13px; font-weight: 650; color: var(--text); }
.dw-head .i { width: 16px; height: 16px; color: var(--acc); }
.dw-sec { padding: 8px 6px 3px; font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.dw-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.dw-item {
  display: grid; justify-items: center; gap: 4px; min-width: 0; padding: 9px 4px 7px; border-radius: 11px;
  background: var(--surface-2); font-size: 11.5px; color: var(--text-2);
}
.dw-item .fi { width: 26px; height: 26px; }
.dw-item .n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.js .dw-new { opacity: 0; transform: scale(.6); transition: opacity .35s var(--ease), transform .55s var(--spring); }
.is-dropped .dw-new { opacity: 1; transform: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--acc) 70%, transparent); }
.is-filed .dw-new { opacity: 0; transform: scale(.6); }
.dw-favs { display: grid; gap: 2px; }
.dw-fav {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; font-size: 13px; color: var(--text);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.dw-fav .i { width: 16px; height: 16px; color: var(--text-2); flex: none; }
.dw-fav.is-hot { background: color-mix(in srgb, var(--acc) 26%, transparent); box-shadow: inset 0 0 0 1.5px var(--acc); }
.dw-toast {
  position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 10px; border-radius: 11px; font-size: 12px; font-weight: 600; color: var(--ok); white-space: nowrap;
  background: color-mix(in srgb, var(--ok) 18%, var(--bg)); opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.dw-toast .i { width: 15px; height: 15px; }
.is-filed .dw-toast { opacity: 1; transform: none; }
.dw-stage .chip, .dlg-stage .chip { background: linear-gradient(90deg, var(--acc), #8b5cf6); }

/* ---------- 5c · Open/Save dialogs: Folia's panel next to any app's dialog ---------- */
.dlg-stage { position: relative; max-width: 640px; margin-inline: auto; padding: 22px 0; }
.dlg-row { display: flex; justify-content: center; align-items: stretch; gap: 10px; }
.dlg-sheet { position: relative; flex: 1 1 380px; max-width: 400px; display: grid; gap: 12px; padding: 18px; border-radius: 16px; }
.dlg-title { font-size: 14px; font-weight: 650; text-align: center; color: var(--text); }
.dlg-field { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 13px; }
.dlg-field > span { white-space: nowrap; }
.dlg-field > span { text-align: right; color: var(--text-2); }
.dlg-field > b {
  display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px 10px; border-radius: 8px;
  font-weight: 500; color: var(--text); background: var(--surface-2); white-space: nowrap; overflow: hidden;
}
.dlg-field .i { width: 15px; height: 15px; flex: none; color: var(--text-2); }
.dlg-where .i-chevron-down { margin-left: auto; width: 12px; height: 12px; }
.dlg-where i { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.dlg-where .dlg-to { display: none; }
.is-moved .dlg-where .dlg-from { display: none; }
.is-moved .dlg-where .dlg-to { display: inline; }
.dlg-where { transition: box-shadow .3s var(--ease); }
.is-moved .dlg-where { box-shadow: inset 0 0 0 1.5px var(--acc); }
.is-moved .dlg-where .i-folder { color: var(--acc); }
.dlg-list { display: grid; align-content: start; gap: 1px; height: 136px; padding: 6px; overflow: hidden; border-radius: 10px; background: var(--surface-2); transition: opacity .35s var(--ease); }
.is-moved .dlg-list { opacity: .35; }
.dlg-file { display: flex; align-items: center; gap: 8px; padding: 5px 8px; font-size: 12.5px; color: var(--text-2); }
.dlg-file .fi { width: 16px; height: 16px; flex: none; }
.dlg-buttons { display: flex; justify-content: flex-end; gap: 8px; }
.dlg-btn { padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text); background: var(--surface-2); transition: transform .15s var(--ease); }
.dlg-btn.primary { color: #fff; background: var(--acc); }
.dlg-btn.is-press { transform: scale(.94); }
.dlg-done {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; border-radius: inherit;
  font-size: 14px; font-weight: 650; color: var(--ok); background: color-mix(in srgb, var(--bg) 90%, var(--acc));
  opacity: 0; transition: opacity .35s var(--ease);
}
.dlg-done .i { width: 30px; height: 30px; }
.is-saved .dlg-done { opacity: 1; }
.dlg-panel {
  flex: 0 1 210px; display: grid; align-content: start; gap: 1px; padding: 12px 10px; border-radius: 16px;
  background: color-mix(in srgb, var(--card) 80%, color-mix(in srgb, var(--acc) 14%, transparent));
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -24px rgba(0, 0, 0, .55);
}
.js .dlg-panel { opacity: 0; transform: translateX(-14px); transition: opacity .45s var(--ease), transform .6s var(--ease-out); }
.is-panel .dlg-panel { opacity: 1; transform: none; }
.dlg-brand { display: flex; align-items: center; gap: 7px; padding: 2px 6px 6px; font-size: 12.5px; font-weight: 650; color: var(--text); }
.dlg-brand .i { width: 15px; height: 15px; color: var(--acc); }
.dlg-sec { padding: 8px 6px 3px; font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.dlg-item {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border-radius: 8px; font-size: 12.5px; color: var(--text);
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.dlg-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg-item .i { width: 15px; height: 15px; flex: none; color: var(--text-2); }
.dlg-item.is-hover { background: color-mix(in srgb, var(--acc) 26%, transparent); }
.dlg-item.is-press { transform: scale(.97); }
.tm { margin-top: 18px; font-size: 12px; }
@media (max-width: 620px) {
  .dw-stage { height: 400px; }
  .dw-app { width: 66%; left: 4%; }
  .dw-drawer { width: 46%; min-width: 0; }
  .dlg-field { grid-template-columns: 84px minmax(0, 1fr); font-size: 12px; }
  .dlg-list { height: 100px; }
  .dlg-sheet { padding: 14px; }
  .dlg-panel { flex-basis: 150px; }
}

/* ---------- Keyframes ---------- */
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(5vw, 4vw, 0) scale(1.14); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .5; } 80%, 100% { transform: scale(2); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sheet { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-8px); opacity: 1; } }
@keyframes packet-v {
  0% { opacity: 0; transform: translateY(0) scale(.6); }
  15% { opacity: 1; transform: translateY(0) scale(1); }
  85% { opacity: 1; transform: translateY(42px) scale(1); }
  100% { opacity: 0; transform: translateY(42px) scale(.6); }
}
@keyframes packet-h {
  0% { opacity: 0; transform: translateX(0) scale(.6); }
  15% { opacity: 1; transform: translateX(0) scale(1); }
  85% { opacity: 1; transform: translateX(calc(100cqw - 50px)) scale(1); }
  100% { opacity: 0; transform: translateX(calc(100cqw - 50px)) scale(.6); }
}

/* ---------- Responsive (mobile first) ---------- */
@media (max-width: 479px) {
  .hero .cta-row, .final .cta-row, .page-hero .cta-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .nav-actions .btn-primary { display: none; }
  .cs-res { grid-template-columns: 46px 1fr; }
  .cs-thumb { width: 46px; height: 58px; padding: 8px 7px; }
  .cs-thumb-shot { height: 34px; margin-top: 10px; }
  .cs-tag { grid-column: 2; justify-self: start; grid-row: 2; }
  .cs-body { grid-row: 1; }
  .qo-p { display: none; }
  .swatches { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .swatch { font-size: 11.5px; }
  .hist-row { grid-template-columns: 30px minmax(0, 1fr) 92px; gap: 10px; padding: 9px 6px; }
  .hist-ic { width: 30px; height: 30px; }
  .cmp th, .cmp td { padding: 12px 10px; font-size: 13.5px; overflow-wrap: anywhere; }
  .cmp thead th { font-size: 13px; }
  .cmp thead th:first-child { width: 44%; }
  .cmp thead .badge { height: auto; padding: 3px 7px; font-size: 10.5px; line-height: 1.25; white-space: normal; overflow-wrap: normal; text-align: center; }
  .r-code { padding: 14px 14px; font-size: 11.5px; }
}
@media (min-width: 640px) {
  .mini-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .priv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hist-stage { padding-bottom: 150px; }
  .hist { width: 90%; }
  .mini { position: absolute; right: 0; bottom: 0; width: 54%; margin: 0; box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -20px rgba(0, 0, 0, .7); }
  .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-buy { display: inline-flex; }
  .nav-burger { display: none; }
  .mnav { display: none !important; }
  .nav-actions { margin-left: 0; }
  .remote { grid-template-columns: minmax(0, 1.25fr) minmax(110px, .45fr) minmax(0, .8fr); }
  .r-link { height: 60px; container-type: inline-size; }
  .r-line { left: 8px; right: 8px; top: 50%; bottom: auto; width: auto; height: 2px; margin: -1px 0 0; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .r-packet { left: 8px; top: 50%; margin: -17px 0 0; }
  .remote.is-send .r-packet { animation-name: packet-h; }
  .r-label { left: 0; right: 0; top: calc(50% + 24px); transform: none; text-align: center; }
  .foot-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: auto; }
}
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .split-copy .eyebrow, .split-copy { justify-items: start; }
  .split.rev .split-visual { order: -1; }
  .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lens { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .lens-viz { border-bottom: 0; border-right: 1px solid var(--line); display: grid; align-items: center; }
  .themes { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .privacy { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .privacy-copy { justify-items: start; text-align: left; }
  .priv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  .split-copy { justify-items: center; text-align: center; }
  .split-copy .points { width: 100%; max-width: 560px; text-align: left; }
}

/* ---------- Reduced motion: no looping or decorative movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .tilt { transform: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; padding: 0 var(--gutter); animation: none; }
  .svc.dup { display: none; }
  .caret { opacity: 0; }
}
