/* Kybl homepage. Tokens from notes/brand/kybl-brand.html. */
:root {
  --red: #d9381f;
  --red-hot: #ff5a3c;
  --red-deep: #a8260f;
  --iron: #1e1a1a;
  --sun: #ffc93c;
  --leaf: #2fa36b;
  --chip: #f1efed;
  --k-line: #1e1a1a;

  --bg: #ffffff;
  --surface: #f6f5f3;
  --card: #ffffff;
  --line: #e8e5e2;
  --fg: #1e1a1a;
  --dim: #6b6462;
  --accent: #d9381f;
  --hero-bg: #d9381f;
  --shadow: 0 1px 2px rgba(30, 26, 26, 0.06), 0 12px 32px -12px rgba(30, 26, 26, 0.18);

  --display: "Fredoka", "Avenir Next Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "DM Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --nav-h: 72px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151212; --surface: #1c1717; --card: #231d1d; --line: #2f2827; --fg: #f4efed; --dim: #a8a09d;
    --accent: #ff5a3c; --hero-bg: #b92d17; --k-line: #f1efed; color-scheme: dark;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --bg: #151212; --surface: #1c1717; --card: #231d1d; --line: #2f2827; --fg: #f4efed; --dim: #a8a09d;
  --accent: #ff5a3c; --hero-bg: #b92d17; --k-line: #f1efed; color-scheme: dark;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.85em; background: var(--surface); padding: 1px 6px; border-radius: 6px; }
.sec-surface code { background: var(--card); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.gut { padding-inline: max(24px, env(safe-area-inset-left, 0px)); }
.wrap { max-width: var(--wrap); margin-inline: auto; }
.label { font: 700 12px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.body { color: var(--dim); font-size: 18px; max-width: 54ch; }

/* buttons: fully rounded, like the rim */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 999px; padding: 14px 22px; min-height: 48px;
  font: 700 15.5px/1 var(--body); text-decoration: none; cursor: pointer;
  background: var(--red); color: #fff;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-iron { background: var(--iron); color: #fff; box-shadow: 0 10px 24px -10px rgba(40, 6, 0, 0.6); }
.btn-iron:hover { background: #000; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 2px #fff; }
.btn-line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--line); }
.btn-line:hover { background: var(--surface); box-shadow: inset 0 0 0 2px var(--fg); }
.btn-sm { min-height: 40px; padding: 10px 18px; font-size: 14.5px; }

/* polka ribbon: never under text */
.polka-strip {
  height: 40px; background-color: var(--red);
  background-image: radial-gradient(circle, #fff 0 5px, transparent 5.6px), radial-gradient(circle, #fff 0 5px, transparent 5.6px);
  background-size: 32px 40px; background-position: 0 -10px, 16px 10px;
}

/* ---------- hero ---------- */
.hero { background: var(--hero-bg); color: #fff; overflow: hidden; position: relative; }
.nav { height: var(--nav-h); display: flex; align-items: center; }
.nav-in { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; transition: transform 0.25s ease; }
.brand:hover svg { transform: rotate(-8deg); }
.brand span { font: 700 34px/1 var(--display); letter-spacing: -0.02em; transform: translateY(-2px); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { color: #fff; text-decoration: none; font-weight: 500; font-size: 15.5px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 2px; transition: background-size 0.25s ease; }
.nav-links a:not(.btn):hover { background-size: 100% 2px; }

.hero-copy { text-align: center; display: grid; justify-items: center; gap: 18px; padding-top: clamp(28px, 6vh, 64px); }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun); }
.hero h1 { font-weight: 700; font-size: clamp(44px, 6.4vw, 84px); line-height: 0.98; letter-spacing: -0.02em; max-width: 16ch; }
.lede { font-size: 19px; line-height: 1.55; max-width: 60ch; opacity: 0.94; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

.hero-stage { position: relative; margin-top: clamp(36px, 6vh, 64px); }
.window {
  position: relative; border-radius: 14px 14px 0 0; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(30, 26, 26, 0.18), 0 40px 80px -30px rgba(60, 10, 0, 0.7);
  max-height: 560px;
}
.window img { width: 100%; height: auto; }
.lights { position: absolute; top: 1.55%; left: 1.25%; display: flex; gap: 8px; z-index: 1; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.2); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.hero-kb { position: absolute; width: clamp(110px, 13vw, 170px); right: calc(max(24px, env(safe-area-inset-left, 0px)) - 18px); top: 0; transform: translate(0, -72%); --k-line: #1e1a1a; filter: drop-shadow(0 14px 18px rgba(60, 10, 0, 0.35)); }

/* ---------- sections ---------- */
.sec { padding-block: clamp(80px, 12vh, 128px); min-height: min(100svh, 980px); display: flex; align-items: center; }
.sec > .wrap { width: 100%; }
.sec-surface { background: var(--surface); }
.sec-head { display: grid; gap: 14px; margin-bottom: 48px; }
.sec-head.center { justify-items: center; text-align: center; }
.sec-head.center .body { max-width: 58ch; }
h2 { font-size: clamp(34px, 4.2vw, 52px); font-weight: 600; line-height: 1.04; letter-spacing: -0.015em; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.2; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-rev { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.split-copy { display: grid; gap: 18px; align-content: center; }
.split-copy h2 { max-width: 16ch; }

.shot { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--line); background: var(--card); }
.shot img { width: 100%; height: auto; transition: transform 0.6s ease; }
.shot:hover img { transform: scale(1.02); }
.shot-dialog { max-width: 520px; justify-self: end; width: 100%; }

.providers { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.providers li {
  display: grid; justify-items: center; align-content: center; gap: 8px; height: 92px; padding: 10px 6px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  font: 500 13px/1.2 var(--body); color: var(--dim); text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.providers li:hover { transform: translateY(-2px); border-color: var(--accent); }
.providers img { height: 28px; width: auto; }
.keynote { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--dim); max-width: 50ch; margin-top: 6px; }
.keynote svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--leaf); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }

/* features */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px; display: grid; gap: 10px; align-content: start; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card p { color: var(--dim); font-size: 16px; }
.card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--accent); margin-bottom: 8px; }
.card .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.keys { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--dim); font-size: 14.5px; margin-top: 4px; }
.keys span { display: inline-flex; align-items: center; gap: 4px; }
kbd { font: 600 13px/1 var(--mono); min-width: 28px; height: 28px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 8px; background: var(--card); border: 1px solid var(--line); border-bottom-width: 2px; color: var(--fg); margin-right: 2px; }

/* sync */
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; font-size: 16.5px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.tray { display: inline-flex; align-items: center; gap: 16px; justify-self: start; height: 36px; padding-inline: 16px; border-radius: 10px; margin-top: 10px; background: #ecebe9; color: #1e1a1a; font: 500 13.5px/1 -apple-system, var(--body); }
.tray svg { width: 18px; height: 18px; }
.tray .busy { position: relative; display: inline-flex; }
.tray .busy::after { content: ""; position: absolute; right: -3px; bottom: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 1.5px currentColor; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tray { background: #262222; color: #f4f2f1; } }

/* mascot states */
.states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.state { background: var(--bg); border-radius: 24px; padding: 28px 18px 24px; display: grid; gap: 8px; justify-items: center; text-align: center; transition: transform 0.2s ease; }
.state:hover { transform: translateY(-2px); }
.state:hover svg { animation: wobble 0.6s ease; }
.state svg { width: 100%; max-width: 190px; height: auto; overflow: visible; margin-bottom: 6px; }
.state b { font: 600 20px/1.2 var(--display); }
.state span { font-size: 14.5px; color: var(--dim); }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-4deg); } 65% { transform: rotate(3deg); } }

/* download */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.platform { border: 1px solid var(--line); border-radius: 24px; padding: 34px 28px 30px; display: grid; justify-items: center; text-align: center; gap: 8px; background: var(--card); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.platform:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.platform img { height: 44px; width: auto; margin-bottom: 8px; }
.platform p { color: var(--dim); font-size: 15px; }
.platform .dl { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .platform img.ink { filter: invert(1); } }
.first-run { margin: 32px auto 0; max-width: 720px; border-top: 1px solid var(--line); padding-top: 20px; color: var(--dim); font-size: 15px; }
.first-run summary { cursor: pointer; font-weight: 700; color: var(--fg); list-style: none; text-align: center; }
.first-run summary::after { content: " +"; color: var(--accent); }
.first-run[open] summary::after { content: " −"; }
.first-run p { margin-top: 12px; text-align: center; }

/* footer */
.foot { background: var(--iron); color: #f4efed; padding-block: 56px 32px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand svg { width: 76px; height: 76px; }
.foot-word { font: 700 44px/0.9 var(--display); letter-spacing: -0.02em; }
.foot-tag { font: 600 18px/1.2 var(--display); color: var(--sun); margin-top: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.foot-links a { text-decoration: none; color: #d8d0cd; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 2px; transition: background-size 0.25s ease, color 0.2s; }
.foot-links a:hover { color: #fff; background-size: 100% 1.5px; }
.credits { margin-top: 40px; font-size: 13px; color: #9d9491; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .split, .split-rev { grid-template-columns: 1fr; }
  .split-rev .shot-wrap { order: 2; }
  .shot-dialog { justify-self: center; }
  .platforms { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .sec { min-height: 0; }
  .window { max-height: 420px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .gut { padding-inline: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .brand span { font-size: 30px; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 17px; }
  .actions { width: 100%; flex-direction: column; }
  .actions .btn { width: 100%; }
  .hero-stage { margin-top: 64px; }
  .hero-kb { width: 76px; right: 4px; }
  .window { border-radius: 10px 10px 0 0; max-height: 300px; }
  .window img { width: 175%; max-width: none; }
  .lights { gap: 5px; } .lights i { width: 8px; height: 8px; }
  .providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .states { gap: 10px; }
  .state { padding: 20px 10px 18px; }
  .state b { font-size: 17px; }
  .body { font-size: 16.5px; }
  .platform .dl .btn { width: 100%; }
  .sec { padding-block: 72px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-kb { animation: bob 3.4s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: translate(0, -72%) rotate(-2deg); } 50% { transform: translate(0, -76%) rotate(2deg); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- feature bento with live mockups ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento .card { padding: 0; overflow: hidden; gap: 0; }
.card-copy { padding: 22px 26px 26px; display: grid; gap: 8px; }
.card-small { padding: 26px !important; gap: 10px !important; }
.card-thumbs, .card-queue { grid-column: span 2; align-content: stretch !important; }
.card-thumbs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); align-items: center; }
.card-thumbs .mock { order: 2; }
.card-queue { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; }
.card-thumbs .card-copy, .card-queue .card-copy { padding: 30px; }

/* the app's own look inside mockups: system font, small and dense */
.mock {
  --m-bg: #ffffff; --m-panel: #f6f5f3; --m-line: #e8e5e2; --m-fg: #1e1a1a; --m-dim: #77706d;
  font: 400 12.5px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--m-fg); background: var(--surface); position: relative; min-height: 230px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mock { --m-bg: #1b1717; --m-panel: #262020; --m-line: #352d2c; --m-fg: #f1ebe8; --m-dim: #a39a97; }
}
.mock svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* thumbnails grid */
.mock-grid { padding: 26px 0 0 0; align-self: stretch; overflow: hidden; }
.mock-grid > * { background: var(--m-bg); }
.mg-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border: 1px solid var(--m-line); border-bottom: 0; border-radius: 12px 0 0 0; }
.mg-crumb { font-weight: 600; } .mg-crumb i { font-style: normal; color: var(--m-dim); margin-inline: 4px; }
.mg-seg { display: flex; gap: 2px; padding: 2px; border-radius: 7px; background: var(--m-panel); }
.mg-seg b { width: 22px; height: 18px; border-radius: 5px; }
.mg-seg b.on { background: var(--m-bg); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.mg-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 16px; border: 1px solid var(--m-line); border-top: 1px solid var(--m-line); }
.mg-tiles figure { margin: 0; display: grid; gap: 6px; }
.mg-tiles span {
  aspect-ratio: 4 / 3; border-radius: 8px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--a) 70% 62%), hsl(var(--b) 65% 38%));
}
.mg-tiles span::before { content: ""; position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; left: 18%; top: 14%; background: hsl(var(--b) 80% 85% / .4); }
.mg-tiles span::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: hsl(var(--a) 50% 18% / .45); clip-path: polygon(0 60%, 28% 0, 50% 45%, 72% 5%, 100% 55%, 100% 100%, 0 100%); }
.mg-tiles figcaption { font-size: 11.5px; display: grid; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-tiles em { font-style: normal; color: var(--m-dim); font-size: 10.5px; }
.mg-tiles figure:nth-child(2) span { outline: 2.5px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .mg-tiles span { animation: thumb-in 3.6s ease infinite; }
  .mg-tiles figure:nth-child(n) span { animation-delay: calc(var(--i, 0) * 90ms); }
  .mg-tiles figure:nth-child(1) { --i: 0 } .mg-tiles figure:nth-child(2) { --i: 1 } .mg-tiles figure:nth-child(3) { --i: 2 } .mg-tiles figure:nth-child(4) { --i: 3 }
  .mg-tiles figure:nth-child(5) { --i: 4 } .mg-tiles figure:nth-child(6) { --i: 5 } .mg-tiles figure:nth-child(7) { --i: 6 } .mg-tiles figure:nth-child(8) { --i: 7 }
  .card-thumbs:hover .mg-tiles span { animation-play-state: running; }
}
@keyframes thumb-in { 0% { filter: grayscale(1) brightness(1.5) blur(4px); } 14%, 100% { filter: none; } }

/* share link */
.mock-share { display: grid; align-content: center; gap: 10px; padding: 28px 22px; }
.ms-label { font-weight: 600; color: var(--m-dim); font-size: 12px; }
.ms-row { display: flex; gap: 8px; }
.ms-seg { flex: 1; display: flex; padding: 3px; border-radius: 9px; background: var(--m-panel); border: 1px solid var(--m-line); }
.ms-seg span { flex: 1; text-align: center; padding: 6px 2px; border-radius: 7px; color: var(--m-dim); white-space: nowrap; }
.ms-seg span.on { background: var(--m-bg); color: var(--m-fg); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.14); }
.ms-copy { display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--m-line); background: var(--m-bg); font-weight: 600; }
.ms-copy svg { width: 13px; height: 13px; }
.ms-toast { justify-self: center; display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 8px 14px; border-radius: 999px; background: var(--iron); color: #fff; font-weight: 500; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.ms-toast svg { width: 14px; height: 14px; color: #6fdca5; }
@media (prefers-reduced-motion: no-preference) {
  .ms-toast { animation: toast 3.2s ease infinite; }
  .ms-copy { animation: press 3.2s ease infinite; }
}
@keyframes toast { 0%, 22% { opacity: 0; transform: translateY(8px) scale(.96); } 30%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes press { 0%, 14%, 26%, 100% { transform: none; } 20% { transform: scale(.94); background: var(--m-panel); } }

/* drop zone */
.mock-drop { display: grid; place-items: center; align-content: center; gap: 4px; margin: 18px 18px 0; min-height: 212px; border: 2px dashed color-mix(in srgb, var(--red) 55%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--red) 6%, var(--m-bg)); }
.md-kb { width: 104px; height: 104px; --k-line: var(--fg); }
.mock-drop p { color: var(--m-dim); } .mock-drop b { color: var(--m-fg); }
.md-file { position: absolute; padding: 6px 10px; border-radius: 8px; background: var(--m-bg); border: 1px solid var(--m-line); box-shadow: 0 8px 18px -8px rgba(0,0,0,.35); font-weight: 500; font-size: 11.5px; }
.md-file::before { content: ""; display: inline-block; width: 9px; height: 11px; margin-right: 6px; border-radius: 2px; background: var(--red); vertical-align: -1px; }
.md-file.f1 { left: 12%; top: 16%; }
.md-file.f2 { right: 10%; top: 10%; }
.md-file.f2::before { background: var(--leaf); }
@media (prefers-reduced-motion: no-preference) {
  .md-file.f1 { animation: drop1 3.4s ease-in-out infinite; }
  .md-file.f2 { animation: drop2 3.4s ease-in-out infinite; }
}
@keyframes drop1 { 0% { transform: translate(-30px, -26px) rotate(-8deg); opacity: 0; } 15% { opacity: 1; } 55% { transform: translate(52px, 36px) rotate(-3deg) scale(.9); opacity: 1; } 70%, 100% { transform: translate(62px, 52px) scale(.4); opacity: 0; } }
@keyframes drop2 { 0%, 18% { transform: translate(30px, -24px) rotate(7deg); opacity: 0; } 32% { opacity: 1; } 70% { transform: translate(-48px, 40px) rotate(2deg) scale(.9); opacity: 1; } 84%, 100% { transform: translate(-58px, 56px) scale(.4); opacity: 0; } }

/* activity queue */
.mock-queue { align-self: stretch; padding: 26px; display: grid; align-content: center; }
.mock-queue > * { background: var(--m-bg); border-inline: 1px solid var(--m-line); }
.mq-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 12px 16px; border-top: 1px solid var(--m-line); border-radius: 12px 12px 0 0; border-bottom: 1px solid var(--m-line); }
.mq-sum { width: 100%; color: var(--m-dim); font-variant-numeric: tabular-nums; }
.pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--m-panel); }
.pill.accent { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--accent); }
.pill.ok { background: color-mix(in srgb, var(--leaf) 16%, transparent); color: var(--leaf); }
.mq-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--m-line); }
.mq-row:last-child { border-radius: 0 0 12px 12px; }
.mq-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--accent); }
.mq-ic.ok { background: color-mix(in srgb, var(--leaf) 16%, transparent); color: var(--leaf); }
.mq-ic svg { width: 14px; height: 14px; }
.mq-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; }
.mq-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mq-meta { color: var(--m-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mq-bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--m-panel); overflow: hidden; display: block; }
.mq-bar b { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .mq-bar b { animation: fill var(--d) ease-in-out infinite; }
}
@keyframes fill { 0% { width: calc(var(--p) * 60%); } 85%, 100% { width: calc(var(--p) * 100% + (1 - var(--p)) * 60%); } }

/* menu bar dropdown over the sync screenshot */
.shot-wrap { position: relative; padding-bottom: 64px; }
.menubar { position: absolute; right: -18px; bottom: 0; width: 260px; font: 400 13.5px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
.mb-strip { display: flex; align-items: center; justify-content: flex-end; gap: 14px; height: 30px; padding-inline: 12px; border-radius: 10px 10px 0 0; background: rgba(236, 235, 233, 0.92); color: #1e1a1a; font-weight: 500; backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.mb-ic { display: inline-grid; place-items: center; position: relative; padding: 3px 6px; border-radius: 5px; }
.mb-ic.on { background: rgba(0,0,0,.12); }
.mb-ic svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.mb-ic.busy::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 1.5px #1e1a1a; }
.mb-menu { list-style: none; margin: 4px 0 0 auto; padding: 5px; width: 220px; border-radius: 10px; background: rgba(246, 245, 243, 0.94); color: #1e1a1a; backdrop-filter: blur(16px); box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 24px 48px -16px rgba(30,26,26,.45); }
.mb-menu li { padding: 5px 10px; border-radius: 5px; }
.mb-menu li.dis { color: #8b8482; }
.mb-menu li.sep { height: 1px; padding: 0; margin: 5px 10px; background: rgba(0,0,0,.1); }
.mb-menu li.hl { background: #2f6fe4; color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mb-strip { background: rgba(38, 34, 34, 0.92); color: #f4f2f1; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
  :root:not([data-theme="light"]) .mb-ic.on { background: rgba(255,255,255,.16); }
  :root:not([data-theme="light"]) .mb-ic.busy::after { box-shadow: 0 0 0 1.5px #262222; }
  :root:not([data-theme="light"]) .mb-menu { background: rgba(40, 35, 35, 0.94); color: #f1ebe8; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 24px 48px -16px rgba(0,0,0,.7); }
  :root:not([data-theme="light"]) .mb-menu li.sep { background: rgba(255,255,255,.12); }
}

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-thumbs, .card-queue { grid-column: 1 / -1; }
  .card-keys { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menubar { right: 8px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card-thumbs, .card-queue { grid-template-columns: 1fr; }
  .card-thumbs .mock { order: 0; }
  .mock-grid { padding: 16px 0 0 16px; }
  .mg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mg-tiles figure:nth-child(n+7) { display: none; }
  .mock-queue { padding: 16px; }
  .mq-main { grid-template-columns: minmax(0, 1fr); }
  .card-thumbs .card-copy, .card-queue .card-copy { padding: 22px 24px 26px; }
  .shot-wrap { padding-bottom: 150px; }
  .menubar { width: 230px; right: 0; }
}

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-wrap .sec-head { margin-bottom: 0; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; transition: border-color 0.2s ease; }
.faq details:hover { border-color: var(--accent); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative; font: 600 19px/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--dim); padding-bottom: 22px; font-size: 16.5px; max-width: 62ch; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .faq details { padding: 0 18px; } .faq summary { font-size: 17px; } }
