/* Optional website. Same language as the app: system type, the system blue, hairlines, glass only over a wallpaper. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --line: rgba(0, 0, 0, 0.08);
  --card: #ffffff;
  --accent: #0071e3;
  --accent-press: #0062c4;
  --glass: rgba(246, 246, 248, 0.72);
  --glass-line: rgba(255, 255, 255, 0.7);
  --selection: rgba(0, 0, 0, 0.07);
  --shadow: 0 0.5px 1px rgba(0, 0, 0, 0.12), 0 14px 40px rgba(0, 0, 0, 0.18);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --bg-soft: #141416;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #6e6e73;
    --line: rgba(255, 255, 255, 0.1);
    --card: #161618;
    --accent: #0a84ff;
    --accent-press: #2c95ff;
    --glass: rgba(36, 36, 40, 0.66);
    --glass-line: rgba(255, 255, 255, 0.14);
    --selection: rgba(255, 255, 255, 0.11);
    --shadow: 0 0.5px 1px rgba(0, 0, 0, 0.4), 0 18px 50px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body[data-lang="zh"] { font-size: 16px; line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

.i { width: 1em; height: 1em; flex: none; }

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 0.4em;
  margin: 0 0.1em;
  border-radius: 0.3em;
  font: 500 0.76em/1 var(--font);
  color: var(--text-2);
  background: var(--selection);
  vertical-align: 0.08em;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: 600 16px var(--font);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.button:hover { text-decoration: none; background: var(--accent-press); }
.button:active { transform: scale(0.98); }
.button.quiet { background: var(--bg-soft); color: var(--text); border: 0.5px solid var(--line); }
.button.quiet:hover { background: var(--selection); }
.button.small { height: 32px; padding: 0 14px; font-size: 14px; }
.button[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.button .i { font-size: 18px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 56px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font: 600 17px var(--display); }
.brand:hover { text-decoration: none; }
.links { display: flex; gap: 24px; flex: 1; }
.links a, .lang { color: var(--text-2); font-size: 14px; }
.links a:hover, .lang:hover { color: var(--text); text-decoration: none; }
.nav-end { display: flex; align-items: center; gap: 18px; }

/* Hero */
.hero { text-align: center; padding: 88px 0 40px; }
.hero-icon { margin: 0 auto 28px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.22)); }
.hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.04; letter-spacing: -0.035em; }
body[data-lang="zh"] .hero h1 { letter-spacing: -0.01em; line-height: 1.15; }
.lead { color: var(--text-2); font-size: 21px; line-height: 1.45; max-width: 640px; margin: 22px auto 0; }
body[data-lang="zh"] .lead { font-size: 19px; line-height: 1.65; }
.cta { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.cta.left { justify-content: flex-start; margin-top: 26px; }
.fine { color: var(--text-3); font-size: 13px; margin-top: 14px; }

@property --sel { syntax: "<angle>"; inherits: true; initial-value: 0deg; }

/* Demo stage: a little desktop with the real overlay on it */
.stage {
  position: relative;
  margin: 64px auto 0;
  height: 460px;
  border-radius: 22px;
  overflow: hidden;
  outline: none;
  background:
    radial-gradient(120% 90% at 15% 110%, #5d7fd8 0%, transparent 55%),
    radial-gradient(90% 80% at 95% 0%, #c2a7d6 0%, transparent 60%),
    linear-gradient(160deg, #a9c1ea 0%, #d6c8e2 100%);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.1);
}
@media (prefers-color-scheme: dark) {
  .stage {
    background:
      radial-gradient(120% 90% at 15% 110%, #26386e 0%, transparent 55%),
      radial-gradient(90% 80% at 95% 0%, #3d2a52 0%, transparent 60%),
      linear-gradient(160deg, #141a2c 0%, #1f1726 100%);
  }
}
.stage-window {
  position: absolute;
  left: 10%;
  top: 14%;
  width: 52%;
  height: 64%;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 12px;
  display: flex;
  gap: 7px;
}
.stage-window span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }

.overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: var(--shadow), inset 0 0 0 0.5px var(--glass-line);
  animation: pop 0.17s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.overlay[hidden] { display: none; }
@keyframes pop { from { opacity: 0; scale: 0.96; } to { opacity: 1; scale: 1; } }

.list-overlay { width: min(460px, 90%); border-radius: 22px; text-align: left; }
.ov-head { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-bottom: 0.5px solid var(--line); }
.ov-title { font-size: 19px; }
.ov-rows { padding: 6px 8px; }
.ov-row { display: flex; align-items: center; gap: 11px; height: 46px; padding: 0 10px; border-radius: 11px; }
.ov-row.sel { background: var(--selection); }
.ov-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: rgba(10, 132, 255, 0.13); color: #0a84ff; font-size: 15px; }
.ov-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ov-text b { font-weight: 400; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-row.sel .ov-text b { font-weight: 500; }
.ov-text small { font-size: 11px; color: var(--text-2); }
.ov-n { font-size: 11px; color: var(--text-3); }
.ov-foot { display: flex; justify-content: space-between; align-items: center; height: 36px; padding: 0 16px; border-top: 0.5px solid var(--line); font-size: 11px; color: var(--text-2); }
.ov-foot kbd { font-size: 10px; }
.ov-foot .dim { color: var(--text-3); }

.badge {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  background: linear-gradient(color-mix(in srgb, var(--tint) 88%, white), color-mix(in srgb, var(--tint) 90%, black));
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.25);
}

.radial { width: 340px; height: 340px; border-radius: 50%; }
.radial .slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--text);
  opacity: 0.8;
  transform: rotate(var(--a)) translateY(-118px) rotate(calc(-1 * var(--a)));
  transition: color 0.15s, scale 0.15s;
  z-index: 2;
}
.radial .slot[data-on="1"]::after { content: ""; position: absolute; bottom: -4px; width: 5px; height: 5px; border-radius: 50%; background: #30d158; }
.radial .slot.sel { color: #fff; opacity: 1; scale: 1.12; }
.radial .wedge {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: conic-gradient(from calc(var(--sel, 0deg) - 21.5deg), var(--accent) 0deg 43deg, transparent 43deg);
  -webkit-mask: radial-gradient(circle, transparent 76px, #000 77px);
  mask: radial-gradient(circle, transparent 76px, #000 77px);
  transition: --sel 0.2s;
}
.radial .hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 136px;
  height: 136px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(127, 127, 127, 0.06);
  box-shadow: inset 0 0 0 0.75px var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}
.radial .hub b { font-size: 13px; font-weight: 600; }
.radial .hub small { font-size: 11px; color: var(--text-2); }
.radial .hub small.on { color: #30d158; }

.stage-toast {
  position: absolute;
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow), inset 0 0 0 0.5px var(--glass-line);
  animation: pop 0.2s ease-out;
}
.stage-toast[hidden] { display: none; }

.try { color: var(--text-2); font-size: 14px; margin-top: 18px; }
.keytry { background: none; border: 0; padding: 4px; cursor: pointer; font: inherit; }
.touch-only { display: none; }
@media (hover: none) { .touch-only { display: block; } .desktop-only { display: none; } }

/* Sections */
section { padding: 96px 0; }
section h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; text-align: center; }
.section-lead { color: var(--text-2); font-size: 19px; text-align: center; max-width: 620px; margin: 14px auto 0; }

.how { padding-top: 64px; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 26px; border-radius: var(--radius); background: var(--bg-soft); display: flex; flex-direction: column; gap: 6px; }
.steps b { font-size: 21px; font-family: var(--display); font-weight: 600; }
.steps span:not(.step-n) { color: var(--text-2); font-size: 15px; }
.step-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--text); color: var(--bg); margin-bottom: 8px; }
.note { text-align: center; color: var(--text-3); font-size: 14px; margin-top: 22px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 52px; }
.card {
  position: relative; padding: 18px; border-radius: var(--radius); background: var(--card); border: 0.5px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s; outline: none;
}
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card h3 { font-size: 17px; }
/* The one-line description appears on hover or focus, so the grid stays scannable. */
.card p { color: var(--text-2); font-size: 14px; line-height: 1.45; margin-top: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.3s, opacity 0.25s, margin 0.3s; }
.card:hover, .card:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); }
/* Context is the odd one out: it spans the last row and always shows its line. */
.card:last-child { grid-column: 1 / -1; }
.card:last-child p { max-height: none; opacity: 1; margin-top: 6px; }
.card:hover p, .card:focus-visible p { max-height: 120px; opacity: 1; margin-top: 6px; }
@media (hover: none) { .card p { max-height: none; opacity: 1; margin-top: 6px; } }
.keys kbd { font-size: 12px; }

.context { background: var(--bg-soft); }
.rules { margin: 52px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.rules div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 0; border-top: 0.5px solid var(--line); }
.rules dt { font-weight: 600; font-size: 15px; }
.rules dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; align-content: flex-start; }
.chip { padding: 3px 10px; border-radius: 999px; font-size: 13.5px; color: var(--text-2); background: var(--selection); }

.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 52px; }
.detail-grid h3 { font-size: 19px; margin-bottom: 6px; }
.detail-grid p { color: var(--text-2); font-size: 15px; }

.price-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  padding: 48px;
  border-radius: 26px;
  background: var(--bg-soft);
  border: 0.5px solid var(--line);
}
.price-card h2, .price-card .section-lead { text-align: left; margin-left: 0; }
.price { font: 600 64px/1 var(--display); letter-spacing: -0.03em; margin-top: 28px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: baseline; font-size: 16px; }
.checks .i { color: var(--accent); font-size: 17px; position: relative; top: 3px; }

.faq details { border-top: 0.5px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 0.5px solid var(--line); }
.faq h2 { margin-bottom: 40px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 22px; line-height: 1; transition: rotate 0.2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--text-2); margin-top: 10px; font-size: 16px; }

/* Simple pages */
.simple { padding: 80px 0 120px; }
.simple h1 { font-size: 44px; letter-spacing: -0.03em; }
.simple .lead { margin: 14px 0 0; font-size: 19px; text-align: left; }
.simple .button { margin-top: 32px; }
.simple h2 { text-align: left; font-size: 24px; margin: 48px 0 12px; }
.install { margin: 36px 0 0; padding-left: 20px; color: var(--text-2); }
.install li { padding: 4px 0; }
.status { margin-top: 18px; color: var(--text-2); min-height: 1.5em; }
.inline-form { display: flex; gap: 10px; margin-top: 32px; }
.inline-form .button { margin-top: 0; }
.inline-form input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 0.5px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font: 16px var(--font);
  outline: none;
}
.inline-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.keybox { display: flex; gap: 10px; align-items: center; margin-top: 24px; padding: 12px; border-radius: 12px; background: var(--bg-soft); }
.keybox code { flex: 1; font: 12px ui-monospace, Menlo, monospace; word-break: break-all; color: var(--text-2); }
.keybox .button { margin: 0; }
.release { padding-top: 8px; }
.prose { margin-top: 36px; color: var(--text); }
.prose p, .prose li { color: var(--text-2); margin: 12px 0; font-size: 16px; }
.prose h2 { font-size: 21px; margin: 36px 0 4px; }
.prose ul { padding-left: 20px; }
.prose strong { color: var(--text); }

/* Footer */
.footer { border-top: 0.5px solid var(--line); padding: 36px 0 48px; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.footer nav { display: flex; gap: 20px; flex: 1; flex-wrap: wrap; }
.footer nav a { color: var(--text-2); font-size: 13px; }
.footer .fine { margin: 0; }

@media (max-width: 860px) {
  .links { display: none; }
  .nav-inner { justify-content: space-between; }
  .steps, .grid, .detail-grid { grid-template-columns: 1fr 1fr; }
  .rules { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 56px; }
  .steps, .grid, .detail-grid { grid-template-columns: 1fr; }
  .rules div { grid-template-columns: 1fr; gap: 4px; }
  .stage { height: 400px; margin-top: 44px; }
  .stage-window { display: none; }
  .radial { scale: 0.85; }
  .inline-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Switcher demo, mirroring the app's Command-Tab-style row */
.switcher { border-radius: 24px; padding: 0 14px 14px; text-align: left; }
.sw-head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 4px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.badge.small { width: 20px; height: 20px; border-radius: 6px; font-size: 12px; }
.sw-row { display: flex; gap: 8px; }
.sw-card { width: 116px; padding: 6px; border-radius: 15px; display: flex; flex-direction: column; gap: 6px; }
.sw-card.sel { background: var(--selection); }
.sw-prev { height: 92px; border-radius: 10px; background: rgba(127, 127, 127, 0.1); overflow: hidden; display: grid; place-items: center; }
.sw-text { align-self: start; justify-self: start; padding: 8px; font-size: 10px; line-height: 1.35; color: var(--text); opacity: 0.85; overflow-wrap: anywhere; }
.sw-swatch { width: 100%; height: 100%; background: #2f6fed; }
.sw-glyph { font-size: 36px; color: var(--text-2); }
.sw-label { font-size: 10.5px; color: var(--text-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-card.sel .sw-label { color: var(--text); }
.sw-cap { display: flex; flex-direction: column; align-items: center; padding-top: 10px; }
.sw-cap b { font-size: 13px; font-weight: 500; }
.sw-cap small { font-size: 11px; color: var(--text-2); }

.only-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 52px; }
.only-grid > div { padding: 24px; border-radius: var(--radius); background: var(--bg-soft); }
.only-grid h3 { font-size: 19px; margin-bottom: 4px; }
.only-grid p { color: var(--text-2); font-size: 15px; }
.only-icon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; margin-bottom: 14px; color: #fff; background: var(--accent); font-size: 19px; }
@media (max-width: 860px) { .only-grid { grid-template-columns: 1fr 1fr; } .sw-card { width: 92px; } .sw-prev { height: 74px; } }

/* ---- Edges demo: a small Mac screen; the light is drawn by edges.js to match the app ---- */
.edges { padding-top: 40px; }
.ed-frame { margin: 48px auto 0; max-width: 1000px; }
.ed-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  --ed-menu: 30px;
  --ed-accent: #0A84FF;
  background:
    radial-gradient(120% 90% at 15% 110%, #5d7fd8 0%, transparent 55%),
    radial-gradient(90% 80% at 95% 0%, #c2a7d6 0%, transparent 60%),
    linear-gradient(160deg, #a9c1ea 0%, #d6c8e2 100%);
  box-shadow: 0 0 0 10px #1d1d1f, 0 0 0 11px #3a3a3c, 0 30px 70px rgba(0, 0, 0, 0.28);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
@media (prefers-color-scheme: dark) {
  .ed-screen {
    background:
      radial-gradient(120% 90% at 15% 110%, #26386e 0%, transparent 55%),
      radial-gradient(90% 80% at 95% 0%, #3d2a52 0%, transparent 60%),
      linear-gradient(160deg, #141a2c 0%, #1f1726 100%);
  }
}
.ed-menubar {
  position: absolute; inset: 0 0 auto 0; height: var(--ed-menu);
  display: flex; align-items: center; gap: 16px; padding: 0 16px;
  font-size: 12px; color: rgba(0, 0, 0, 0.78);
  background: rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.ed-screen:not(.no-notch) .ed-menubar { background: rgba(0, 0, 0, 0.22); color: rgba(255, 255, 255, 0.92); }
@media (prefers-color-scheme: dark) { .ed-menubar { background: rgba(0, 0, 0, 0.3); color: rgba(255, 255, 255, 0.9); } }
.ed-menubar b { font-weight: 600; }
.ed-apple { width: 11px; height: 13px; border-radius: 50% 50% 45% 45%; background: currentColor; opacity: 0.85; }
.ed-spacer { flex: 1; }
.ed-notch { position: absolute; top: 0; left: 50%; width: 13.5%; height: var(--ed-menu); translate: -50% 0; fill: #000; z-index: 3; }
.ed-screen.no-notch .ed-notch { display: none; }
.ed-window {
  position: absolute; left: 22%; top: 20%; width: 46%; height: 50%;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}
.ed-dots { display: flex; gap: 7px; padding: 12px; }
.ed-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.ed-file {
  position: absolute; left: 38%; top: 36%; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 6px; border: 0; border-radius: 10px; background: none; cursor: grab;
  font: 500 12px/1.2 var(--font); color: var(--text);
  touch-action: none;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.3s;
}
.ed-file.dragging { cursor: grabbing; transition: none; }
.ed-file.taken { opacity: 0; transition: opacity 0.25s; }
.ed-file:focus-visible { outline: 2px solid var(--ed-accent); }
.ed-thumb {
  width: 64px; height: 44px; border-radius: 6px;
  background: linear-gradient(150deg, #8fb4ff, #c7a8f0 60%, #f3b9d2);
  box-shadow: 0 0 0 2.5px #fff, 0 4px 14px rgba(0, 0, 0, 0.25);
}
.ed-thumb.small { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1.5px #fff; }
.ed-name { padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.55); }
@media (prefers-color-scheme: dark) { .ed-name { background: rgba(0, 0, 0, 0.35); } }
.ed-dock {
  position: absolute; left: 50%; bottom: 8px; translate: -50% 0;
  display: flex; gap: 8px; padding: 7px 9px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.5);
}
.ed-dock span { width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, 0.55); }
.ed-glow, .ed-body { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ed-glow { mix-blend-mode: plus-lighter; }
@supports not (mix-blend-mode: plus-lighter) { .ed-glow { mix-blend-mode: screen; } }
.ed-labels { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.ed-pill {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  height: 28px; padding: 0 11px; border-radius: 999px;
  font: 600 12.5px/1 var(--font); color: #fff;
  background: rgba(20, 20, 22, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.25);
  opacity: 0; transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.ed-pill svg { width: 14px; height: 14px; opacity: 0.75; }
.ed-pill.hot { background: #fff; color: rgba(0, 0, 0, 0.85); box-shadow: 0 0 22px color-mix(in srgb, var(--ed-accent) 60%, transparent); }
.ed-pill.hot svg { color: var(--ed-accent); opacity: 1; }
.ed-toast {
  position: absolute; left: 50%; bottom: 64px; translate: -50% 0; z-index: 6;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; font-size: 13px; color: var(--text);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow), inset 0 0 0 0.5px var(--glass-line);
}
.ed-toast svg { width: 16px; height: 16px; color: var(--ed-accent); }
.ed-toast.in { animation: pop 0.25s ease-out; }
.ed-toast[hidden] { display: none; }
.ed-shelf {
  position: absolute; left: 50%; top: calc(var(--ed-menu) + 8px); translate: -50% 0; z-index: 5;
  display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 12px; color: var(--text);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow), inset 0 0 0 0.5px var(--glass-line);
}
.ed-shelf.in { animation: pop 0.3s ease-out; }
.ed-shelf[hidden] { display: none; }
.ed-hand {
  position: absolute; left: 0; top: 0; z-index: 7; width: 22px; height: 22px; margin: -3px 0 0 -5px;
  fill: #fff; stroke: #000; stroke-width: 1.2; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.ed-hand[hidden] { display: none; }
.ed-hint { text-align: center; color: var(--text-3); font-size: 14px; margin-top: 30px; }
.ed-controls { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 16px; }
.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--selection); }
.seg button {
  border: 0; background: none; padding: 6px 14px; border-radius: 7px; font: 500 13px/1 var(--font); color: var(--text-2); cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.swatches { display: inline-flex; gap: 10px; }
.swatches button { width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0; background: var(--c); cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--c); }
@media (max-width: 560px) {
  .ed-menubar { font-size: 9px; padding: 0 10px; }
  .ed-apple { width: 8px; height: 9px; }
  .ed-screen { box-shadow: 0 0 0 6px #1d1d1f, 0 18px 40px rgba(0, 0, 0, 0.25); border-radius: 12px; }
  .ed-pill { height: 22px; padding: 0 8px; font-size: 10.5px; gap: 4px; }
  .ed-pill svg { width: 11px; height: 11px; }
  .ed-menubar span:not(.ed-spacer):not(:last-child), .ed-dock { display: none; }
  .ed-thumb { width: 44px; height: 30px; }
  .ed-file { font-size: 10px; left: 34%; }
  .ed-toast { bottom: 18px; font-size: 11.5px; padding: 7px 12px; }
}

/* Hero demo: the keys being pressed, shown while the demo plays itself */
.stage-keys {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transition: opacity 0.25s;
  pointer-events: none;
}
.stage-keys.on { opacity: 1; }
.stage-keys kbd {
  min-width: 46px; height: 46px; padding: 0 12px; margin: 0;
  font-size: 18px; border-radius: 10px; color: var(--text);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow), inset 0 0 0 0.5px var(--glass-line), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.12s, box-shadow 0.12s;
}
.stage-keys kbd.down { transform: translateY(2px); box-shadow: var(--shadow), inset 0 0 0 0.5px var(--glass-line); color: var(--accent); }
.stage-keys kbd.tap { animation: tap 0.32s ease-out; }
.stage-keys .k-plus { color: rgba(255, 255, 255, 0.8); font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.stage-keys .k-key:empty { display: none; }
@keyframes tap { 0% { transform: translateY(0); } 35% { transform: translateY(3px); color: var(--accent); } 100% { transform: translateY(0); } }
@media (max-width: 560px) { .stage-keys kbd { min-width: 36px; height: 36px; font-size: 15px; } }
@media (max-width: 560px) {
  .only-grid { grid-template-columns: 1fr; }
  .only-grid > div { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 18px; }
  .only-icon { margin: 0; grid-row: span 2; }
  .only-grid h3 { font-size: 17px; }
}
